panic: maddr rwlock 0xffff800001584060: enter read deadlock Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *419117 87088 0 0x2 0 0 ifconfig db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83325ab2) at panic+0x1cf sys/kern/subr_prf.c:198 rw_do_enter_read(ffff800001584060,0) at rw_do_enter_read+0x435 sys/kern/kern_rwlock.c:379 in6_hasmulti(fffffd806d5339f0,ffff800001584000) at in6_hasmulti+0x41 in6_lookupmulti sys/netinet6/in6.c:-1 [inline] in6_hasmulti(fffffd806d5339f0,ffff800001584000) at in6_hasmulti+0x41 sys/netinet6/in6.c:1150 ip6_output(fffffd806d533900,ffffffff839adbf8,0,1,ffff80003c97b1e0,0) at ip6_output+0x1369 sys/netinet6/ip6_output.c:507 mld6_sendpkt(ffff800001599700,83,0) at mld6_sendpkt+0x364 sys/netinet6/mld6.c:499 mld6_start_listening(ffff800001599700,ffff800001584000) at mld6_start_listening+0xe7 sys/netinet6/mld6.c:139 in6_addmulti(ffff80003c97b588,ffff800001584000,ffff80003c97b5fc) at in6_addmulti+0x3cb sys/netinet6/in6.c:1084 in6_joingroup(ffff800001584000,ffff80003c97b588,ffff80003c97b5fc) at in6_joingroup+0x6c sys/netinet6/in6.c:-1 in6_update_ifa(ffff800001584000,ffff80003c97b680,0) at in6_update_ifa+0x1a86 sys/netinet6/in6.c:-1 in6_ifattach_linklocal(ffff800001584000,0) at in6_ifattach_linklocal+0x33b sys/netinet6/in6_ifattach.c:266 in6_ifattach(ffff800001584000) at in6_ifattach+0x2d0 sys/netinet6/in6_ifattach.c:384 ifioctl(ffff800010fdc8b0,801169ab,ffff80003c97b870,ffff80002a7bc2b0) at ifioctl+0x1aa3 sys/net/if.c:2218 sys_ioctl(ffff80002a7bc2b0,ffff80003c97ba40,ffff80003c97b990) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 end trace frame: 0xffff80003c97ba30, count: 0 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic *cpu0: maddr rwlock 0xffff800001584060: enter read deadlock ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83325ab2) at panic+0x1cf sys/kern/subr_prf.c:198 rw_do_enter_read(ffff800001584060,0) at rw_do_enter_read+0x435 sys/kern/kern_rwlock.c:379 in6_hasmulti(fffffd806d5339f0,ffff800001584000) at in6_hasmulti+0x41 in6_lookupmulti sys/netinet6/in6.c:-1 [inline] in6_hasmulti(fffffd806d5339f0,ffff800001584000) at in6_hasmulti+0x41 sys/netinet6/in6.c:1150 ip6_output(fffffd806d533900,ffffffff839adbf8,0,1,ffff80003c97b1e0,0) at ip6_output+0x1369 sys/netinet6/ip6_output.c:507 mld6_sendpkt(ffff800001599700,83,0) at mld6_sendpkt+0x364 sys/netinet6/mld6.c:499 mld6_start_listening(ffff800001599700,ffff800001584000) at mld6_start_listening+0xe7 sys/netinet6/mld6.c:139 in6_addmulti(ffff80003c97b588,ffff800001584000,ffff80003c97b5fc) at in6_addmulti+0x3cb sys/netinet6/in6.c:1084 in6_joingroup(ffff800001584000,ffff80003c97b588,ffff80003c97b5fc) at in6_joingroup+0x6c sys/netinet6/in6.c:-1 in6_update_ifa(ffff800001584000,ffff80003c97b680,0) at in6_update_ifa+0x1a86 sys/netinet6/in6.c:-1 in6_ifattach_linklocal(ffff800001584000,0) at in6_ifattach_linklocal+0x33b sys/netinet6/in6_ifattach.c:266 in6_ifattach(ffff800001584000) at in6_ifattach+0x2d0 sys/netinet6/in6_ifattach.c:384 ifioctl(ffff800010fdc8b0,801169ab,ffff80003c97b870,ffff80002a7bc2b0) at ifioctl+0x1aa3 sys/net/if.c:2218 sys_ioctl(ffff80002a7bc2b0,ffff80003c97ba40,ffff80003c97b990) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c97ba40) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c97ba40) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6fe40edba510, count: -16 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80003c97aef0 rbx 0xffff800001584000 rdx 0 rcx 0 rax 0xffff80002a7bc2b0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x5a893796d656062e r11 0x6d47d8ce7864951f r12 0 r13 0xffff80002a7bc2b4 r14 0 r15 0x1 rip 0xffffffff82215455 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c97aee0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (ifconfig) tid=419117 pid=87088 tcnt=1 stat=onproc flags process=2 proc=0 runpri=50, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002f0ec7e8,0xffffffff838f0568 process=0xffff8000ffffb198 user=0xffff80003c976000, vmspace=0xfffffd8077b0b5d8 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND *87088 419117 4836 0 7 0x2 ifconfig 4836 518368 4028 0 3 0x10008a sigsusp sh 32347 359210 73704 0 2 0 syz-executor 32347 70258 73704 0 3 0x4000080 fsleep syz-executor 34875 307131 23650 0 2 0 syz-executor 34875 460451 23650 0 3 0x4000080 fsleep syz-executor 97302 108585 56493 0 2 0 syz-executor 97302 247912 56493 0 3 0x4000080 fsleep syz-executor 4028 325594 81665 0 3 0x82 wait syz-executor 89073 226857 41787 0 3 0x80 nanoslp syz-executor 89073 272668 41787 0 3 0x4000080 kqpoll syz-executor 89073 321689 41787 0 3 0x4000080 fsleep syz-executor 7850 102652 21036 0 2 0xc80 syz-executor 7850 471633 21036 0 3 0x4000080 kqsel syz-executor 7850 13841 21036 0 3 0x4000080 fsleep syz-executor 38932 223350 63917 0 2 0xc80 syz-executor 38932 196585 63917 0 3 0x4000080 lockf syz-executor 38932 260432 63917 0 3 0x4000080 lockf syz-executor 38932 441432 63917 0 3 0x4000080 fsleep syz-executor 38932 383499 63917 0 3 0x4000080 fsleep syz-executor 63187 407038 35226 0 2 0xc80 syz-executor 63187 295153 35226 0 3 0x4000080 fifor syz-executor 63187 195708 35226 0 3 0x4000080 fifor syz-executor 63187 112987 35226 0 3 0x4000080 fsleep syz-executor 63917 428759 81665 0 2 0xc82 syz-executor 21036 308394 81665 0 2 0xc82 syz-executor 73704 26603 81665 0 2 0xc82 syz-executor 23650 364955 81665 0 3 0x82 nanoslp syz-executor 56493 103153 81665 0 3 0x82 nanoslp syz-executor 35226 438956 81665 0 2 0xc82 syz-executor 41787 512133 81665 0 3 0x82 nanoslp syz-executor 81665 427090 73302 0 3 0x82 kqread syz-executor 73302 278816 22052 0 3 0x10008a sigsusp ksh 22052 475697 47187 0 3 0x98 kqread sshd-session 47187 504794 1938 0 3 0x92 kqread sshd-session 61657 467121 1 0 3 0x100083 ttyin getty 1938 27421 1 0 3 0x88 kqread sshd 46085 414844 45402 73 3 0x1100090 kqread syslogd 45402 54616 1 0 3 0x100082 sbwait syslogd 28994 318358 1 0 3 0x100080 kqread resolvd 72660 454534 15422 77 3 0x100092 kqread dhcpleased 76857 31041 15422 77 3 0x100092 kqread dhcpleased 15422 507325 1 0 3 0x80 kqread dhcpleased 67620 181951 0 0 3 0x14200 bored smr 1534 95572 0 0 2 0x14200 zerothread 25135 494141 0 0 3 0x14200 aiodoned aiodoned 27735 70422 0 0 3 0x14200 syncer update 90566 74143 0 0 3 0x14200 cleaner cleaner 62353 426546 0 0 3 0x14200 reaper reaper 93781 225056 0 0 3 0x14200 pgdaemon pagedaemon 41473 4837 0 0 3 0x14200 bored viomb 73813 369425 0 0 3 0x40014200 acpi0 acpi0 58111 322085 0 0 3 0x14200 bored softnet0 27885 155656 0 0 3 0x14200 bored systqmp 24674 211554 0 0 3 0x14200 bored systq 73468 162846 0 0 3 0x40014200 tmoslp softclock 28872 479099 0 0 3 0x40014200 idle0 1 58310 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11044 12233K 12514K 166960K 12256 0 pcb 19 12K 12K 166960K 42 0 rtable 246 8K 9K 166960K 410 0 pf 31 13K 13K 166960K 35 0 ifaddr 41 7K 7K 166960K 48 0 ifgroup 53 2K 2K 166960K 59 0 sysctl 3 1K 9K 166960K 7 0 counters 33 17K 18K 166960K 37 0 ioctlops 0 0K 4K 166960K 50 0 iov 0 0K 12K 166960K 42 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1342 84K 85K 166960K 1446 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 4 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 69 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 19 69K 93K 166960K 240 0 sigio 0 0K 0K 166960K 3 0 proc 67 67K 91K 166960K 508 0 subproc 72 4K 4K 166960K 81 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 6 0 in_multi 91 6K 7K 166960K 103 0 ether_multi 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 91 413K 413K 166960K 91 0 exec 0 0K 1K 166960K 374 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 242 160K 168K 166960K 3867 0 UVM aobj 8 2K 2K 166960K 8 0 pinsyscall 40 80K 94K 166960K 1334 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 1 0K 0K 166960K 4 0 NDP 11 0K 2K 166960K 29 0 temp 39 8662K 8918K 166960K 11841 0 kqueue 13 20K 24K 166960K 30 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 46 0 43 1 0 1 1 0 8 0 rtentry 136 119 0 12 4 0 4 4 0 8 0 unpcb 144 77 0 58 1 0 1 1 0 8 0 syncache 336 4 0 4 1 0 1 1 0 8 1 tcpcb 736 25 0 19 1 0 1 1 0 8 0 arp 96 20 0 2 1 0 1 1 0 8 0 inpcb 328 123 0 110 2 0 2 2 0 8 0 ip6q 72 1 0 1 1 0 1 1 0 8 1 ip6af 40 2 0 2 1 0 1 1 0 8 1 nd6 112 27 0 3 1 0 1 1 0 8 0 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1072 3 0 3 1 0 1 1 0 8 1 pfrule 1344 2 0 2 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 485 0 44 29 0 29 29 0 8 1 art_table 40 486 0 44 5 0 5 5 0 8 0 art_node 32 119 0 21 1 0 1 1 0 8 0 semapl 112 66 0 56 1 0 1 1 0 8 0 shmpl 112 5 0 0 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 1736 0 230 95 0 95 95 0 8 0 ffsino 256 1736 0 230 95 0 95 95 0 8 0 nchpl 144 2065 0 371 63 0 63 63 0 8 0 rtmask 32 1 0 1 1 0 1 1 0 8 1 vnodes 216 1869 0 0 104 0 104 104 0 8 0 namei 1024 6710 0 6710 2 0 2 2 0 8 2 kstatmem 264 26 0 4 2 0 2 2 0 8 0 scsiplug 72 2 0 2 1 0 1 1 0 8 1 scxspl 216 6555 0 6555 2 0 2 2 1 8 2 plimitpl 152 146 0 129 1 0 1 1 0 8 0 sigapl 424 525 0 481 6 0 6 6 0 8 1 knotepl 120 6376 0 6329 10 0 10 10 0 8 8 kqueuepl 184 107 0 95 4 0 4 4 0 8 3 pipepl 304 124 0 97 3 0 3 3 0 8 0 fdescpl 448 512 0 481 5 0 5 5 0 8 1 filepl 120 2338 0 2113 15 0 15 15 0 8 7 lockfpl 104 55 0 49 1 0 1 1 0 8 0 lockfspl 48 26 0 22 1 0 1 1 0 8 0 sessionpl 144 23 0 15 1 0 1 1 0 8 0 pgrppl 48 33 0 17 1 0 1 1 0 8 0 ucredpl 104 192 0 181 1 0 1 1 0 8 0 zombiepl 144 481 0 481 1 0 1 1 0 8 1 processpl 1152 525 0 481 4 0 4 4 0 8 0 procpl 664 686 0 628 6 0 6 6 0 8 1 sosppl 176 2 0 2 1 0 1 1 0 8 1 sockpl 552 246 0 211 3 0 3 3 0 8 0 mcl64k 65536 6 0 6 1 0 1 1 0 8 1 mcl8k 8192 4 0 4 1 0 1 1 0 8 1 mcl4k 4096 2581 0 2527 14 0 14 14 0 8 6 mcl2k 2048 393 0 391 4 0 4 4 0 8 3 mtagpl 96 9 0 4 1 0 1 1 0 8 0 mbufpl 256 5063 0 4909 15 0 15 15 0 8 3 bufpl 280 2506 0 119 171 0 171 171 0 8 0 anonpl 24 107915 0 104694 44 0 44 44 0 187 21 amapchunkpl 152 11266 0 10761 26 0 26 26 0 158 5 amappl16 200 1925 0 1900 14 3 11 14 0 8 8 amappl15 192 2 0 2 1 0 1 1 0 8 1 amappl14 184 5 0 5 1 0 1 1 0 8 1 amappl13 176 416 0 414 1 0 1 1 0 8 0 amappl12 168 853 0 814 2 0 2 2 0 8 0 amappl11 160 10 0 10 1 0 1 1 0 8 1 amappl10 152 42 0 32 1 0 1 1 0 8 0 amappl9 144 249 0 248 1 0 1 1 0 8 0 amappl8 136 35 0 34 1 0 1 1 0 8 0 amappl7 128 90 0 88 1 0 1 1 0 8 0 amappl6 120 284 0 270 1 0 1 1 0 8 0 amappl5 112 69 0 61 1 0 1 1 0 8 0 amappl4 104 395 0 372 1 0 1 1 0 8 0 amappl3 96 1789 0 1695 3 0 3 3 0 8 0 amappl2 88 633 0 564 2 0 2 2 0 8 0 amappl1 80 9582 0 9032 13 0 13 13 0 8 0 amappl 88 3139 0 2967 5 0 5 5 0 92 0 uvmvnodes 80 99 0 0 3 0 3 3 0 8 0 dma4096 4096 1 0 1 1 0 1 1 0 8 1 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 0 1 1 0 8 1 dma128 128 253 0 253 1 0 1 1 0 8 1 dma64 64 6 0 6 1 0 1 1 0 8 1 dma32 32 7 0 7 1 0 1 1 0 8 1 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 7 0 0 1 0 1 1 0 8 0 uaddrrnd 24 512 0 481 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 512 0 481 1 0 1 1 0 8 0 vmmpekpl 168 5886 0 5857 2 0 2 2 0 8 0 vmmpepl 168 40833 0 39005 90 0 90 90 0 357 9 vmsppl 368 511 0 481 4 0 4 4 0 8 1 rwobjpl 40 14475 0 13504 12 0 12 12 0 8 0 pdppl 4096 1031 0 962 97 28 69 81 0 8 0 pvpl 32 250766 0 241931 111 0 111 111 0 265 26 pmappl 216 511 0 481 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 371 0 28 10 0 10 10 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83325ab2) at panic+0x1cf sys/kern/subr_prf.c:198 rw_do_enter_read(ffff800001584060,0) at rw_do_enter_read+0x435 sys/kern/kern_rwlock.c:379 in6_hasmulti(fffffd806d5339f0,ffff800001584000) at in6_hasmulti+0x41 in6_lookupmulti sys/netinet6/in6.c:-1 [inline] in6_hasmulti(fffffd806d5339f0,ffff800001584000) at in6_hasmulti+0x41 sys/netinet6/in6.c:1150 ip6_output(fffffd806d533900,ffffffff839adbf8,0,1,ffff80003c97b1e0,0) at ip6_output+0x1369 sys/netinet6/ip6_output.c:507 mld6_sendpkt(ffff800001599700,83,0) at mld6_sendpkt+0x364 sys/netinet6/mld6.c:499 mld6_start_listening(ffff800001599700,ffff800001584000) at mld6_start_listening+0xe7 sys/netinet6/mld6.c:139 in6_addmulti(ffff80003c97b588,ffff800001584000,ffff80003c97b5fc) at in6_addmulti+0x3cb sys/netinet6/in6.c:1084 in6_joingroup(ffff800001584000,ffff80003c97b588,ffff80003c97b5fc) at in6_joingroup+0x6c sys/netinet6/in6.c:-1 in6_update_ifa(ffff800001584000,ffff80003c97b680,0) at in6_update_ifa+0x1a86 sys/netinet6/in6.c:-1 in6_ifattach_linklocal(ffff800001584000,0) at in6_ifattach_linklocal+0x33b sys/netinet6/in6_ifattach.c:266 in6_ifattach(ffff800001584000) at in6_ifattach+0x2d0 sys/netinet6/in6_ifattach.c:384 ifioctl(ffff800010fdc8b0,801169ab,ffff80003c97b870,ffff80002a7bc2b0) at ifioctl+0x1aa3 sys/net/if.c:2218 sys_ioctl(ffff80002a7bc2b0,ffff80003c97ba40,ffff80003c97b990) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c97ba40) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c97ba40) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6fe40edba510, count: -16 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83325ab2) at panic+0x1cf sys/kern/subr_prf.c:198 rw_do_enter_read(ffff800001584060,0) at rw_do_enter_read+0x435 sys/kern/kern_rwlock.c:379 in6_hasmulti(fffffd806d5339f0,ffff800001584000) at in6_hasmulti+0x41 in6_lookupmulti sys/netinet6/in6.c:-1 [inline] in6_hasmulti(fffffd806d5339f0,ffff800001584000) at in6_hasmulti+0x41 sys/netinet6/in6.c:1150 ip6_output(fffffd806d533900,ffffffff839adbf8,0,1,ffff80003c97b1e0,0) at ip6_output+0x1369 sys/netinet6/ip6_output.c:507 mld6_sendpkt(ffff800001599700,83,0) at mld6_sendpkt+0x364 sys/netinet6/mld6.c:499 mld6_start_listening(ffff800001599700,ffff800001584000) at mld6_start_listening+0xe7 sys/netinet6/mld6.c:139 in6_addmulti(ffff80003c97b588,ffff800001584000,ffff80003c97b5fc) at in6_addmulti+0x3cb sys/netinet6/in6.c:1084 in6_joingroup(ffff800001584000,ffff80003c97b588,ffff80003c97b5fc) at in6_joingroup+0x6c sys/netinet6/in6.c:-1 in6_update_ifa(ffff800001584000,ffff80003c97b680,0) at in6_update_ifa+0x1a86 sys/netinet6/in6.c:-1 in6_ifattach_linklocal(ffff800001584000,0) at in6_ifattach_linklocal+0x33b sys/netinet6/in6_ifattach.c:266 in6_ifattach(ffff800001584000) at in6_ifattach+0x2d0 sys/netinet6/in6_ifattach.c:384 ifioctl(ffff800010fdc8b0,801169ab,ffff80003c97b870,ffff80002a7bc2b0) at ifioctl+0x1aa3 sys/net/if.c:2218 sys_ioctl(ffff80002a7bc2b0,ffff80003c97ba40,ffff80003c97b990) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c97ba40) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c97ba40) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6fe40edba510, count: -16