[pf4freebsd] Re: non-sleepable locks held

Max Laier max at love2party.net
Wed Sep 15 20:47:10 PDT 2004


This is "options WITNESS" output telling us that we have some work to do
regarding the locks to make pf and altq fit for Giant free kernel. In fact
work we work hard in that area at the moment and have some promising stuff
allready. However, as this is non-trivial we take our time before we commit.
So please allow us to get that right before revealing to public.

For now this won't cause trouble (other than messing up your dmesg). If you
ever get to see a "lock order removal" in connection with pf, this
information (including the stack backtrace and exact version information) is
very valueable to us. If you want to be really helpfull keep your kernel
objects so we can get back to you for objdump output and alike.

Thank you for your report.

Regards,
    Max

> i got these today:
>
> Aug 28 00:01:18 flds kernel: malloc() of "128" with the following
> non-sleepable locks held:
> Aug 28 00:01:18 flds kernel: exclusive sleep mutex pf task mtx r = 0
> (0xc0424de0) locked @ /space/src/sys/net/pf_ioctl.c:859
> Aug 28 00:01:18 flds kernel: malloc() of "64" with the following
> non-sleepable locks held:
> Aug 28 00:01:18 flds kernel: exclusive sleep mutex pf task mtx r = 0
> (0xc0424de0) locked @ /space/src/sys/net/pf_ioctl.c:859
> Aug 28 00:01:18 flds kernel: malloc() of "16" with the following
> non-sleepable locks held:
> Aug 28 00:01:18 flds kernel: exclusive sleep mutex pf task mtx r = 0
> (0xc0424de0) locked @ /space/src/sys/net/pf_ioctl.c:859
> Aug 28 00:01:18 flds kernel: malloc() of "64" with the following
> non-sleepable locks held:
> Aug 28 00:01:18 flds kernel: exclusive sleep mutex pf task mtx r = 0
> (0xc0424de0) locked @ /space/src/sys/net/pf_ioctl.c:859
> Aug 28 00:01:18 flds kernel: malloc() of "16" with the following
> non-sleepable locks held:
> Aug 28 00:01:18 flds kernel: exclusive sleep mutex pf task mtx r = 0
> (0xc0424de0) locked @ /space/src/sys/net/pf_ioctl.c:859
> Aug 28 00:01:18 flds kernel: malloc() of "64" with the following
> non-sleepable locks held:
> Aug 28 00:01:18 flds kernel: exclusive sleep mutex ifnet r = 0
> (0xc0422cc0) locked @ /space/src/sys/net/if.c:1219
> Aug 28 00:01:18 flds kernel: exclusive sleep mutex pf task mtx r = 0
> (0xc0424de0) locked @ /space/src/sys/net/pf_ioctl.c:859
>
> My System is:
> FreeBSD flds 5.1-CURRENT FreeBSD 5.1-CURRENT #1: Sun Aug 24 12:57:30
> CEST 2003     root at flds:/usr/obj/space/src/sys/FLDS  i386
>
> i got pfaltq-fbsd the same day from cvs.
>
> I actually don't know how usefull this is but who knows what it is good
for.
>
> Regards,
> flo





More information about the freebsd-pf mailing list