]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linux_ioctl_cdrom: reduce stack usage
authorAndriy Gapon <avg@FreeBSD.org>
Wed, 27 May 2009 15:23:12 +0000 (15:23 +0000)
committerAndriy Gapon <avg@FreeBSD.org>
Wed, 27 May 2009 15:23:12 +0000 (15:23 +0000)
commit93f0eafde320e95e20950af79dcad474ba9f9450
tree00acc308d5b1470db5492a755b03fd6207d272f7
parentee1c1433e35693e7b48de84d1894626a45ad1b4f
linux_ioctl_cdrom: reduce stack usage

... by moving two ~2KB structures from stack to heap allocation.
I experienced stack overflow in linux emulation on i386 (8K stack)
when LINUX_DVD_READ_STRUCT ioctl was performed on atapicam cd
device and there was an error that resulted in additional quite
heavy stack use in cam layer.

Reviewed by: dchagin
Approved by: jhb (mentor)
sys/compat/linux/linux_ioctl.c