Date: Sat, 17 Jun 2017 07:08:06 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 220074] [kern] sys/kern/kern_prot.c: a sleep-under-mutex bug in crextend Message-ID: <bug-220074-8-M4UXHNDu2I@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-220074-8@https.bugs.freebsd.org/bugzilla/> References: <bug-220074-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=3D220074 Mateusz Guzik <mjg@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |Closed Hardware|i386 |Any Resolution|--- |Not A Bug CC| |mjg@FreeBSD.org Assignee|freebsd-bugs@FreeBSD.org |mjg@FreeBSD.org --- Comment #1 from Mateusz Guzik <mjg@FreeBSD.org> --- The loop in crcopysafe is supposed to guarantee that the memory allocated f= or 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. --=20 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-220074-8-M4UXHNDu2I>