panic: maddr rwlock 0xffff800001575860: enter read deadlock Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *344982 38832 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(ffff800001575860,0) at rw_do_enter_read+0x435 sys/kern/kern_rwlock.c:379 in6_hasmulti(fffffd806e70b8f0,ffff800001575800) at in6_hasmulti+0x41 in6_lookupmulti sys/netinet6/in6.c:-1 [inline] in6_hasmulti(fffffd806e70b8f0,ffff800001575800) at in6_hasmulti+0x41 sys/netinet6/in6.c:1150 ip6_output(fffffd806e70b800,ffffffff839adbf8,0,1,ffff80003a52cc80,0) at ip6_output+0x1369 sys/netinet6/ip6_output.c:507 mld6_sendpkt(ffff8000015a7c80,83,0) at mld6_sendpkt+0x364 sys/netinet6/mld6.c:499 mld6_start_listening(ffff8000015a7c80,ffff800001575800) at mld6_start_listening+0xe7 sys/netinet6/mld6.c:139 in6_addmulti(ffff80003a52d028,ffff800001575800,ffff80003a52d09c) at in6_addmulti+0x3cb sys/netinet6/in6.c:1084 in6_joingroup(ffff800001575800,ffff80003a52d028,ffff80003a52d09c) at in6_joingroup+0x6c sys/netinet6/in6.c:-1 in6_update_ifa(ffff800001575800,ffff80003a52d120,0) at in6_update_ifa+0x1a86 sys/netinet6/in6.c:-1 in6_ifattach_linklocal(ffff800001575800,0) at in6_ifattach_linklocal+0x33b sys/netinet6/in6_ifattach.c:266 in6_ifattach(ffff800001575800) at in6_ifattach+0x2d0 sys/netinet6/in6_ifattach.c:384 ifioctl(ffff800001595378,801169ab,ffff80003a52d310,ffff80003c93b248) at ifioctl+0x1aa3 sys/net/if.c:2218 sys_ioctl(ffff80003c93b248,ffff80003a52d4e0,ffff80003a52d430) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 end trace frame: 0xffff80003a52d4d0, 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 0xffff800001575860: 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(ffff800001575860,0) at rw_do_enter_read+0x435 sys/kern/kern_rwlock.c:379 in6_hasmulti(fffffd806e70b8f0,ffff800001575800) at in6_hasmulti+0x41 in6_lookupmulti sys/netinet6/in6.c:-1 [inline] in6_hasmulti(fffffd806e70b8f0,ffff800001575800) at in6_hasmulti+0x41 sys/netinet6/in6.c:1150 ip6_output(fffffd806e70b800,ffffffff839adbf8,0,1,ffff80003a52cc80,0) at ip6_output+0x1369 sys/netinet6/ip6_output.c:507 mld6_sendpkt(ffff8000015a7c80,83,0) at mld6_sendpkt+0x364 sys/netinet6/mld6.c:499 mld6_start_listening(ffff8000015a7c80,ffff800001575800) at mld6_start_listening+0xe7 sys/netinet6/mld6.c:139 in6_addmulti(ffff80003a52d028,ffff800001575800,ffff80003a52d09c) at in6_addmulti+0x3cb sys/netinet6/in6.c:1084 in6_joingroup(ffff800001575800,ffff80003a52d028,ffff80003a52d09c) at in6_joingroup+0x6c sys/netinet6/in6.c:-1 in6_update_ifa(ffff800001575800,ffff80003a52d120,0) at in6_update_ifa+0x1a86 sys/netinet6/in6.c:-1 in6_ifattach_linklocal(ffff800001575800,0) at in6_ifattach_linklocal+0x33b sys/netinet6/in6_ifattach.c:266 in6_ifattach(ffff800001575800) at in6_ifattach+0x2d0 sys/netinet6/in6_ifattach.c:384 ifioctl(ffff800001595378,801169ab,ffff80003a52d310,ffff80003c93b248) at ifioctl+0x1aa3 sys/net/if.c:2218 sys_ioctl(ffff80003c93b248,ffff80003a52d4e0,ffff80003a52d430) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003a52d4e0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003a52d4e0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70f89f97fe90, count: -16 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80003a52c990 rbx 0xffff800001575800 rdx 0 rcx 0 rax 0xffff80003c93b248 r8 0x101010101010101 r9 0x8080808080808080 r10 0x24d37219a4275481 r11 0x7a8896eca7f9f618 r12 0 r13 0xffff80003c93b24c r14 0 r15 0x1 rip 0xffffffff82215455 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003a52c980 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (ifconfig) tid=344982 pid=38832 tcnt=1 stat=onproc flags process=2 proc=0 runpri=57, usrpri=57, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a7774c8,0xffff80003c93a2c8 process=0xffff8000ffff9698 user=0xffff80003a528000, vmspace=0xfffffd806cadb740 estcpu=7, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 96131 383727 60301 0 2 0xc80 syz-executor 96131 384730 60301 0 3 0x4000080 fsleep syz-executor 96131 198956 60301 0 3 0x4000080 fsleep syz-executor 96131 154460 60301 0 2 0x4000c80 syz-executor 87214 188471 14742 0 2 0 syz-executor 87214 477549 14742 0 3 0x4000080 fsleep syz-executor 50604 437655 84048 60929 2 0xc90 syz-executor 50604 34927 84048 60929 3 0x4000090 lockf syz-executor 50604 488793 84048 60929 3 0x4000090 fsleep syz-executor *38832 344982 94181 0 7 0x2 ifconfig 94181 440805 75578 0 3 0x10008a sigsusp sh 45424 138662 35180 0 3 0x82 nanoslp syz-executor 49036 503810 35180 0 2 0x2 syz-executor 84048 347303 35180 0 2 0xc82 syz-executor 81288 49066 35180 0 3 0x2 biowait syz-executor 60301 496320 35180 0 2 0xc82 syz-executor 14742 45729 35180 0 3 0x82 nanoslp syz-executor 9026 445139 35180 0 2 0x2 syz-executor 75578 513070 35180 0 3 0x82 wait syz-executor 35180 5931 91909 0 3 0x82 kqread syz-executor 91909 139931 79245 0 3 0x10008a sigsusp ksh 79245 193336 51342 0 3 0x98 kqread sshd-session 51342 303287 18708 0 3 0x92 kqread sshd-session 68706 400475 1 0 3 0x100083 ttyin getty 18708 162391 1 0 3 0x88 kqread sshd 61743 215631 84494 73 3 0x1100090 kqread syslogd 84494 230965 1 0 3 0x100082 sbwait syslogd 21841 377670 1 0 3 0x100080 kqread resolvd 47530 445525 79527 77 3 0x100092 kqread dhcpleased 917 250813 79527 77 3 0x100092 kqread dhcpleased 79527 420198 1 0 3 0x80 kqread dhcpleased 78585 141669 0 0 3 0x14200 bored smr 56848 240321 0 0 2 0x14200 zerothread 94952 505976 0 0 3 0x14200 aiodoned aiodoned 20435 418212 0 0 3 0x14200 syncer update 14778 252255 0 0 3 0x14200 cleaner cleaner 23407 146519 0 0 3 0x14200 reaper reaper 66943 452644 0 0 3 0x14200 pgdaemon pagedaemon 5265 46512 0 0 3 0x14200 bored viomb 49266 197793 0 0 3 0x40014200 acpi0 acpi0 20873 55267 0 0 3 0x14200 bored softnet0 28850 337634 0 0 3 0x14200 bored systqmp 92666 98143 0 0 3 0x14200 bored systq 71545 252146 0 0 3 0x40014200 tmoslp softclock 36592 376303 0 0 3 0x40014200 idle0 1 240138 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 11032 12107K 12249K 166960K 12133 0 pcb 18 12K 12K 166960K 22 0 rtable 235 7K 7K 166960K 359 0 pf 32 13K 13K 166960K 34 0 ifaddr 42 7K 7K 166960K 45 0 ifgroup 52 2K 2K 166960K 54 0 sysctl 1 1K 9K 166960K 5 0 counters 35 18K 18K 166960K 38 0 ioctlops 0 0K 2K 166960K 34 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1339 84K 85K 166960K 1369 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 1K 166960K 2 0 VM map 2 1K 1K 166960K 2 0 sem 2 0K 0K 166960K 2 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 16 57K 97K 166960K 141 0 proc 66 67K 124K 166960K 473 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 1 0 in_multi 91 6K 6K 166960K 91 0 ether_multi 2 0K 0K 166960K 2 0 mrt 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 55 254K 254K 166960K 55 0 exec 0 0K 1K 166960K 357 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 212 159K 167K 166960K 2948 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 37 74K 96K 166960K 1214 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 3 0 NDP 26 1K 1K 166960K 27 0 temp 35 8658K 8722K 166960K 3809 0 kqueue 13 20K 24K 166960K 27 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 40 0 37 1 0 1 1 0 8 0 rtentry 136 105 0 1 4 0 4 4 0 8 0 unpcb 144 36 0 21 1 0 1 1 0 8 0 syncache 336 3 0 3 1 0 1 1 0 8 1 tcpcb 736 12 0 8 1 0 1 1 0 8 0 arp 96 18 0 0 1 0 1 1 0 8 0 inpcb 328 68 0 59 2 0 2 2 0 8 1 nd6 112 22 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 5 0 3 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 437 0 0 28 0 28 28 0 8 0 art_table 40 438 0 0 5 0 5 5 0 8 0 art_node 32 105 0 10 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 1581 0 74 95 0 95 95 0 8 0 ffsino 256 1581 0 74 95 0 95 95 0 8 0 nchpl 144 1775 0 83 63 0 63 63 0 8 0 rtmask 32 2 0 1 1 0 1 1 0 8 0 vnodes 216 1665 0 0 93 0 93 93 0 8 0 namei 1024 5186 0 5184 2 0 2 2 0 8 1 kstatmem 264 26 0 2 2 0 2 2 0 8 0 scxspl 216 5748 0 5747 2 0 2 2 1 8 1 plimitpl 152 30 0 13 1 0 1 1 0 8 0 sigapl 424 430 0 389 6 0 6 6 0 8 0 knotepl 120 3219 0 3172 2 0 2 2 0 8 0 kqueuepl 184 26 0 17 1 0 1 1 0 8 0 pipepl 304 113 0 86 3 0 3 3 0 8 0 fdescpl 448 417 0 389 5 0 5 5 0 8 0 filepl 120 1489 0 1275 7 0 7 7 0 8 0 lockfpl 104 8 0 4 1 0 1 1 0 8 0 lockfspl 48 5 0 2 1 0 1 1 0 8 0 sessionpl 144 21 0 13 1 0 1 1 0 8 0 pgrppl 48 29 0 13 1 0 1 1 0 8 0 ucredpl 104 81 0 69 1 0 1 1 0 8 0 zombiepl 144 390 0 389 1 0 1 1 0 8 0 processpl 1152 430 0 389 4 0 4 4 0 8 0 procpl 664 447 0 400 5 0 5 5 0 8 0 sockpl 552 144 0 117 3 0 3 3 0 8 0 mcl64k 65536 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 4 0 4 1 0 1 1 0 8 1 mcl4k 4096 2459 0 2405 15 0 15 15 0 8 6 mcl2k 2048 186 0 185 1 0 1 1 0 8 0 mtagpl 96 5 0 4 1 0 1 1 0 8 0 mbufpl 256 4036 0 3907 9 0 9 9 0 8 0 bufpl 280 2254 0 118 153 0 153 153 0 8 0 anonpl 24 98639 0 95743 23 0 23 23 0 187 3 amapchunkpl 152 8224 0 7822 19 0 19 19 0 158 0 amappl16 200 1888 0 1874 5 0 5 5 0 8 4 amappl15 192 5 0 5 1 0 1 1 0 8 1 amappl14 184 5 0 5 1 0 1 1 0 8 1 amappl13 176 432 0 430 1 0 1 1 0 8 0 amappl12 168 754 0 718 2 0 2 2 0 8 0 amappl11 160 8 0 8 1 0 1 1 0 8 1 amappl10 152 67 0 57 1 0 1 1 0 8 0 amappl9 144 249 0 249 1 0 1 1 0 8 1 amappl8 136 27 0 26 1 0 1 1 0 8 0 amappl7 128 102 0 100 1 0 1 1 0 8 0 amappl6 120 261 0 248 1 0 1 1 0 8 0 amappl5 112 91 0 83 1 0 1 1 0 8 0 amappl4 104 377 0 354 1 0 1 1 0 8 0 amappl3 96 1296 0 1222 3 0 3 3 0 8 0 amappl2 88 524 0 458 2 0 2 2 0 8 0 amappl1 80 8664 0 8136 13 0 13 13 0 8 0 amappl 88 2261 0 2119 4 0 4 4 0 92 0 uvmvnodes 80 96 0 0 2 0 2 2 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 8 0 8 1 0 1 1 0 8 1 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 417 0 389 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 417 0 389 1 0 1 1 0 8 0 vmmpekpl 168 5092 0 5063 2 0 2 2 0 8 0 vmmpepl 168 34812 0 33194 79 0 79 79 0 357 1 vmsppl 368 416 0 389 4 0 4 4 0 8 1 rwobjpl 40 13025 0 12122 11 0 11 11 0 8 0 pdppl 4096 841 0 778 97 14 83 83 0 8 20 pvpl 32 213343 0 205602 69 0 69 69 0 265 0 pmappl 216 416 0 389 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 362 0 14 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(ffff800001575860,0) at rw_do_enter_read+0x435 sys/kern/kern_rwlock.c:379 in6_hasmulti(fffffd806e70b8f0,ffff800001575800) at in6_hasmulti+0x41 in6_lookupmulti sys/netinet6/in6.c:-1 [inline] in6_hasmulti(fffffd806e70b8f0,ffff800001575800) at in6_hasmulti+0x41 sys/netinet6/in6.c:1150 ip6_output(fffffd806e70b800,ffffffff839adbf8,0,1,ffff80003a52cc80,0) at ip6_output+0x1369 sys/netinet6/ip6_output.c:507 mld6_sendpkt(ffff8000015a7c80,83,0) at mld6_sendpkt+0x364 sys/netinet6/mld6.c:499 mld6_start_listening(ffff8000015a7c80,ffff800001575800) at mld6_start_listening+0xe7 sys/netinet6/mld6.c:139 in6_addmulti(ffff80003a52d028,ffff800001575800,ffff80003a52d09c) at in6_addmulti+0x3cb sys/netinet6/in6.c:1084 in6_joingroup(ffff800001575800,ffff80003a52d028,ffff80003a52d09c) at in6_joingroup+0x6c sys/netinet6/in6.c:-1 in6_update_ifa(ffff800001575800,ffff80003a52d120,0) at in6_update_ifa+0x1a86 sys/netinet6/in6.c:-1 in6_ifattach_linklocal(ffff800001575800,0) at in6_ifattach_linklocal+0x33b sys/netinet6/in6_ifattach.c:266 in6_ifattach(ffff800001575800) at in6_ifattach+0x2d0 sys/netinet6/in6_ifattach.c:384 ifioctl(ffff800001595378,801169ab,ffff80003a52d310,ffff80003c93b248) at ifioctl+0x1aa3 sys/net/if.c:2218 sys_ioctl(ffff80003c93b248,ffff80003a52d4e0,ffff80003a52d430) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003a52d4e0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003a52d4e0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70f89f97fe90, 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(ffff800001575860,0) at rw_do_enter_read+0x435 sys/kern/kern_rwlock.c:379 in6_hasmulti(fffffd806e70b8f0,ffff800001575800) at in6_hasmulti+0x41 in6_lookupmulti sys/netinet6/in6.c:-1 [inline] in6_hasmulti(fffffd806e70b8f0,ffff800001575800) at in6_hasmulti+0x41 sys/netinet6/in6.c:1150 ip6_output(fffffd806e70b800,ffffffff839adbf8,0,1,ffff80003a52cc80,0) at ip6_output+0x1369 sys/netinet6/ip6_output.c:507 mld6_sendpkt(ffff8000015a7c80,83,0) at mld6_sendpkt+0x364 sys/netinet6/mld6.c:499 mld6_start_listening(ffff8000015a7c80,ffff800001575800) at mld6_start_listening+0xe7 sys/netinet6/mld6.c:139 in6_addmulti(ffff80003a52d028,ffff800001575800,ffff80003a52d09c) at in6_addmulti+0x3cb sys/netinet6/in6.c:1084 in6_joingroup(ffff800001575800,ffff80003a52d028,ffff80003a52d09c) at in6_joingroup+0x6c sys/netinet6/in6.c:-1 in6_update_ifa(ffff800001575800,ffff80003a52d120,0) at in6_update_ifa+0x1a86 sys/netinet6/in6.c:-1 in6_ifattach_linklocal(ffff800001575800,0) at in6_ifattach_linklocal+0x33b sys/netinet6/in6_ifattach.c:266 in6_ifattach(ffff800001575800) at in6_ifattach+0x2d0 sys/netinet6/in6_ifattach.c:384 ifioctl(ffff800001595378,801169ab,ffff80003a52d310,ffff80003c93b248) at ifioctl+0x1aa3 sys/net/if.c:2218 sys_ioctl(ffff80003c93b248,ffff80003a52d4e0,ffff80003a52d430) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003a52d4e0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003a52d4e0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70f89f97fe90, count: -16