[Bug 219988] [kernel] sys/kern/kern_sysctl.c:a sleep-under-rmlock bug in sysctl_add_oid

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jun 14 16:16:00 UTC 2017


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

Mateusz Guzik <mjg at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mjg at FreeBSD.org

--- Comment #2 from Mateusz Guzik <mjg at FreeBSD.org> ---
The lock at hand is initialized with RM_SLEEPABLE, i.e. sleep is permitted.

It probably is desirable to turn it into a non-sleepable lock, but I don't
think it's a high priority (and right now I don't even if this is feasible).

The patch at hand is definitely incomplete even for sysctl_add_oid. strdup also
performs M_WAITOK.

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


More information about the freebsd-bugs mailing list