[Bug 203332] Fatal trap 12: rctl_enforce() at rctl_enforce

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Sep 29 00:05:15 UTC 2015


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

Mateusz Guzik <mjg at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mjg at FreeBSD.org
             Status|New                         |In Progress

--- Comment #1 from Mateusz Guzik <mjg at FreeBSD.org> ---
This looks like a use-after-free I mentioned some time ago.

do_fork makes newproc runnable and fork1 does not pin it in any way, thus by
the time do_fork returns the process could have already exited. Interestingly
do_fork itself has this problem.

Here faulting address 0xa8 matches what would be linked list access in a struct
racct if read pointer was null. Pointer in question is nullified on process
exit and initialized on fork.

I'll ponder a reasonable fix.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list