[Bug 220074] [kern] sys/kern/kern_prot.c: a sleep-under-mutex bug in crextend

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Jun 17 07:08:07 UTC 2017


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

Mateusz Guzik <mjg at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |Closed
           Hardware|i386                        |Any
         Resolution|---                         |Not A Bug
                 CC|                            |mjg at FreeBSD.org
           Assignee|freebsd-bugs at FreeBSD.org    |mjg at FreeBSD.org

--- Comment #1 from Mateusz Guzik <mjg at FreeBSD.org> ---
The loop in crcopysafe is supposed to guarantee that the memory allocated for
the new credential set is sufficient. i.e. it is an invariant that crcopy as
called from here does not have to malloc.

it would be better if there was no malloc codepath from here in the first
place, but there is no bug here and the entire cr* family needs to be
refactored

as such I'm closing as NOTABUG. thanks for reporting.

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


More information about the freebsd-bugs mailing list