Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 May 2022 00:15:31 -0500
From:      Dustin Marquess <dmarquess@gmail.com>
To:        FreeBSD CURRENT <freebsd-current@freebsd.org>
Subject:   VNET lock reversal
Message-ID:  <CAJpsHY7L%2BVrOxZ1kF5=gBojaRNEQxnWWwP-V1g0rVKSUNU1szw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Just updated my -CURRENT box from a build almost exactly 14 days ago
to one just about an hour old.  When a VNET jail starts, I'm seeing a
lock reversal:

lock order reversal:
 1st 0xffffffff81e893a8 allprison (allprison, sx) @
/usr/src/sys/kern/kern_jail.c:1378
 2nd 0xffffffff81f99fe8 vnet_sysinit_sxlock (vnet_sysinit_sxlock, sx)
@ /usr/src/sys/net/vnet.c:579
lock order allprison -> vnet_sysinit_sxlock attempted at:
#0 0xffffffff80c9b7c6 at witness_checkorder+0xbd6
#1 0xffffffff80c35c67 at _sx_slock_int+0x67
#2 0xffffffff80d92185 at vnet_alloc+0x115
#3 0xffffffff80be7e02 at kern_jail_set+0x1722
#4 0xffffffff80be92f0 at sys_jail_set+0x40
#5 0xffffffff811200aa at amd64_syscall+0x13a
#6 0xffffffff810f12eb at fast_syscall_common+0xf8

I'll try and see if I can get a bisect going if somebody else hasn't
seen this yet.

-Dustin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJpsHY7L%2BVrOxZ1kF5=gBojaRNEQxnWWwP-V1g0rVKSUNU1szw>