[Bug 276772] wireguard: lock order reversal mld_mtx -> udpinp
Date: Fri, 02 Feb 2024 01:00:22 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276772
Bug ID: 276772
Summary: wireguard: lock order reversal mld_mtx -> udpinp
Product: Base System
Version: CURRENT
Hardware: amd64
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: kern
Assignee: bugs@FreeBSD.org
Reporter: lexi.freebsd@le-fay.org
occurs when bringing up the wg interface:
wg0: link state changed to UP
lock order reversal:
1st 0xffffffff818f8028 mld_mtx (mld_mtx, sleep mutex) @
/src/freebsd/main/sys/netinet6/mld6.c:1346
2nd 0xfffff80041b36c60 udpinp (udpinp, rw) @
/src/freebsd/main/sys/netinet/udp_usrreq.c:1131
lock order mld_mtx -> udpinp attempted at:
#0 0xffffffff809e28d4 at witness_checkorder+0xb54
#1 0xffffffff8096304c at __rw_rlock_int+0x7c
#2 0xffffffff80b8d5a2 at udp_send+0x122
#3 0xffffffff80a208f7 at sosend_dgram+0x317
#4 0xffffffff80a213c9 at sosend+0x49
#5 0xffffffff807ee7ec at wg_send+0x10c
#6 0xffffffff807ee632 at wg_send_buf+0x62
#7 0xffffffff807ee9de at wg_peer_send_buf+0x16e
#8 0xffffffff807ef0fb at wg_timers_run_send_initiation+0xcb
#9 0xffffffff807eeeb7 at wg_peer_send_staged+0x1e7
#10 0xffffffff807f0363 at wg_xmit+0x1b3
#11 0xffffffff80bafc52 at ip6_output+0x1dc2
#12 0xffffffff80bb60b0 at mld_dispatch_packet+0x390
#13 0xffffffff80bb6f60 at mld_fasttimo+0x9e0
#14 0xffffffff80988db1 at softclock_call_cc+0x141
#15 0xffffffff8098a3d7 at softclock_thread+0xb7
#16 0xffffffff8091ca22 at fork_exit+0x82
#17 0xffffffff80d7849e at fork_trampoline+0xe
FreeBSD 15.0-CURRENT #1 main-n267933-5f047ae0c73b: Fri Feb 2 00:45:35 GMT 2024
lexi@ilythia.eden.le-fay.org:/src/obj/src/freebsd/main/amd64.amd64/sys/ILYTHIA
--
You are receiving this mail because:
You are the assignee for the bug.