Bug 250073 - LOR between cc_list and vnet_rwlock (during reboot)
Summary: LOR between cc_list and vnet_rwlock (during reboot)
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-03 17:08 UTC by Gordon Bergling
Modified: 2020-10-03 17:08 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gordon Bergling freebsd_committer 2020-10-03 17:08:25 UTC
During a reboot of a recent -CURRENT installation, the following LOR is reproducible reported.

lock order reversal:
 1st 0xffffffff827a37e0 cc_list (cc_list, rw) @ /boiler/nfs/src/sys/netinet/cc/cc.c:226
 2nd 0xffffffff827a2fd8 vnet_rwlock (vnet_rwlock, rw) @ /boiler/nfs/src/sys/netinet/cc/cc.c:189
lock order cc_list -> vnet_rwlock attempted at:
#0 0xffffffff811fe7fe at witness_checkorder+0x13de
#1 0xffffffff811468ed at __rw_rlock_int+0xcd
#2 0xffffffff8114726e at __rw_rlock+0x2e
#3 0xffffffff814134fa at cc_deregister_algo+0xaa
#4 0xffffffff814138c9 at cc_modevent+0x29
#5 0xffffffff81116542 at module_shutdown+0xb2
#6 0xffffffff8114d8c5 at kern_reboot+0x695
#7 0xffffffff8114d1db at sys_reboot+0x5fb
#8 0xffffffff81834371 at amd64_syscall+0x281
#9 0xffffffff817f4ade at fast_syscall_common+0xf8

KERNCONF is the following:

include		GENERIC
options		RATELIMIT
options		TCPHPTS
options		KERN_TLS
options		ROUTE_MPATH