Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jun 2017 16:16:00 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 219988] [kernel] sys/kern/kern_sysctl.c:a sleep-under-rmlock bug in sysctl_add_oid
Message-ID:  <bug-219988-8-kekR3PFuds@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-219988-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-219988-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=3D219988

Mateusz Guzik <mjg@FreeBSD.org> changed:

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

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

--=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-219988-8-kekR3PFuds>