Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Sep 2015 00:05:15 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 203332] Fatal trap 12: rctl_enforce() at rctl_enforce
Message-ID:  <bug-203332-8-4fU4UFwkgk@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-203332-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-203332-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203332

Mateusz Guzik <mjg@FreeBSD.org> changed:

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

--- Comment #1 from Mateusz Guzik <mjg@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-203332-8-4fU4UFwkgk>