https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209113

rday <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from rday <[email protected]> ---
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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-geom
To unsubscribe, send any mail to "[email protected]"

Reply via email to