[Bug 209113] Heap overflow in geom ioctl handler
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Jul 18 01:34:29 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209113
rday <ryan at ryanday.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ryan at ryanday.net
--- Comment #1 from rday <ryan at ryanday.net> ---
Created attachment 172625
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=172625&action=edit
Fix for 209113
A problem existed where a g_malloc call would allocate a buffer length
specified by a 32 bit integer. Then copyin would write a 64 bit integer worth
of data into the buffer.
By changing g_malloc()'s len argument to be a size_t (matching malloc) the
buffer will always be large enough for copyin.
It is still possible to hang the process while waiting for a large enough
allocation, so the M_NOWAIT flag has replaced the M_WAITOK flag.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-geom
mailing list