panic: rw_enter: rtlck locking against myself Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *441762 47174 0 0x14000 0x200 0K softnet db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8279852b) at panic+0x177 sys/kern/subr_prf.c:198 rw_enter(ffffffff82b9b020,1) at rw_enter+0x482 rw_enter_diag sys/kern/kern_rwlock.c:183 [inline] rw_enter(ffffffff82b9b020,1) at rw_enter+0x482 sys/kern/kern_rwlock.c:274 arpresolve(ffff8000001a02a8,fffffd806f0ce690,fffffd8066f27800,ffff8000006c8cc0,ffff8000211979d8) at arpresolve+0x3ce sys/netinet/if_ether.c:423 ether_resolve(ffff8000001a02a8,fffffd8066f27800,ffff8000006c8cc0,fffffd806f0ce690,ffff8000211979d8) at ether_resolve+0x215 sys/net/if_ethersubr.c:224 ether_output(ffff8000001a02a8,fffffd8066f27800,ffff8000006c8cc0,fffffd806f0ce690) at ether_output+0x47 ether_encap sys/net/if_ethersubr.c:330 [inline] ether_output(ffff8000001a02a8,fffffd8066f27800,ffff8000006c8cc0,fffffd806f0ce690) at ether_output+0x47 sys/net/if_ethersubr.c:359 arpcache(ffff8000001a02a8,fffffd806d3b781a,fffffd806f0ce690) at arpcache+0x2e8 sys/netinet/if_ether.c:734 in_arpinput(ffff8000001a02a8,fffffd8067479600) at in_arpinput+0x4c1 sys/netinet/if_ether.c:615 arpintr() at arpintr+0x71 sys/netinet/if_ether.c:538 if_netisr(0) at if_netisr+0xcf sys/net/if.c:912 taskq_thread(ffff80000002c000) at taskq_thread+0xe5 sys/kern/kern_task.c:449 end trace frame: 0x0, count: 4 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: rw_enter: rtlck locking against myself ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8279852b) at panic+0x177 sys/kern/subr_prf.c:198 rw_enter(ffffffff82b9b020,1) at rw_enter+0x482 rw_enter_diag sys/kern/kern_rwlock.c:183 [inline] rw_enter(ffffffff82b9b020,1) at rw_enter+0x482 sys/kern/kern_rwlock.c:274 arpresolve(ffff8000001a02a8,fffffd806f0ce690,fffffd8066f27800,ffff8000006c8cc0,ffff8000211979d8) at arpresolve+0x3ce sys/netinet/if_ether.c:423 ether_resolve(ffff8000001a02a8,fffffd8066f27800,ffff8000006c8cc0,fffffd806f0ce690,ffff8000211979d8) at ether_resolve+0x215 sys/net/if_ethersubr.c:224 ether_output(ffff8000001a02a8,fffffd8066f27800,ffff8000006c8cc0,fffffd806f0ce690) at ether_output+0x47 ether_encap sys/net/if_ethersubr.c:330 [inline] ether_output(ffff8000001a02a8,fffffd8066f27800,ffff8000006c8cc0,fffffd806f0ce690) at ether_output+0x47 sys/net/if_ethersubr.c:359 arpcache(ffff8000001a02a8,fffffd806d3b781a,fffffd806f0ce690) at arpcache+0x2e8 sys/netinet/if_ether.c:734 in_arpinput(ffff8000001a02a8,fffffd8067479600) at in_arpinput+0x4c1 sys/netinet/if_ether.c:615 arpintr() at arpintr+0x71 sys/netinet/if_ether.c:538 if_netisr(0) at if_netisr+0xcf sys/net/if.c:912 taskq_thread(ffff80000002c000) at taskq_thread+0xe5 sys/kern/kern_task.c:449 end trace frame: 0x0, count: -11 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800021197710 rbx 0xffffffff82b8eb8f cpu_info_full_primary+0x2b8f rdx 0 rcx 0 rax 0xffff800021178828 r8 0x101010101010101 r9 0x8080808080808080 r10 0xf3010d1a9f764aa4 r11 0x49c46355fc81ea2f r12 0xffffffff82b8e990 cpu_info_full_primary+0x2990 r13 0 r14 0 r15 0x1 rip 0xffffffff8229d9e8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021197700 ss 0 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (softnet) pid=441762 stat=onproc flags process=14000 proc=200 pri=32, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800021178000,0xffff800021178af0 process=0xffff8000ffffe180 user=0xffff800021192000, vmspace=0xffffffff82bfa0e8 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 74374 12599 89536 0 3 0x82 piperd syz-executor.7 13464 277574 89536 0 3 0x82 piperd syz-executor.2 92605 82389 1 0 3 0x100083 ttyin getty 57431 154520 89536 0 3 0x82 piperd syz-executor.0 30909 265061 89536 0 3 0x82 piperd syz-executor.1 60679 399762 89536 0 3 0x82 piperd syz-executor.4 90881 363256 89536 0 3 0x82 piperd syz-executor.6 96445 67724 0 0 3 0x14280 nfsidl nfsio 6216 19118 0 0 3 0x14280 nfsidl nfsio 82462 449159 0 0 3 0x14280 nfsidl nfsio 2791 304327 0 0 3 0x14280 nfsidl nfsio 26078 189663 0 0 3 0x14280 nfsidl nfsio 17741 396811 0 0 3 0x14280 nfsidl nfsio 92285 392109 0 0 3 0x14280 nfsidl nfsio 16238 256481 0 0 3 0x14280 nfsidl nfsio 86528 217184 0 0 3 0x14280 nfsidl nfsio 68289 354535 0 0 3 0x14280 nfsidl nfsio 62565 80563 0 0 3 0x14280 nfsidl nfsio 17822 55688 0 0 3 0x14280 nfsidl nfsio 23587 365373 0 0 3 0x14280 nfsidl nfsio 69827 126280 0 0 3 0x14280 nfsidl nfsio 172 364359 0 0 3 0x14280 nfsidl nfsio 93801 499549 0 0 3 0x14280 nfsidl nfsio 12975 466801 0 0 3 0x14280 nfsidl nfsio 61193 512572 0 0 3 0x14280 nfsidl nfsio 2110 159019 0 0 3 0x14280 nfsidl nfsio 84822 277446 0 0 3 0x14280 nfsidl nfsio 26097 68731 89536 0 3 0x82 piperd syz-executor.3 34885 132389 89536 0 2 0x2 syz-executor.5 10879 424652 0 0 3 0x14200 bored sosplice 89536 138342 16941 0 2 0x2 syz-fuzzer 89536 347910 16941 0 2 0x4000002 syz-fuzzer 89536 272573 16941 0 3 0x4000082 wait syz-fuzzer 89536 35516 16941 0 3 0x4000082 thrsleep syz-fuzzer 89536 91816 16941 0 3 0x4000082 thrsleep syz-fuzzer 89536 360991 16941 0 3 0x4000082 thrsleep syz-fuzzer 89536 249602 16941 0 3 0x4000082 wait syz-fuzzer 89536 32758 16941 0 3 0x4000082 wait syz-fuzzer 89536 367533 16941 0 3 0x4000082 thrsleep syz-fuzzer 89536 421908 16941 0 3 0x4000082 wait syz-fuzzer 89536 91198 16941 0 3 0x4000082 thrsleep syz-fuzzer 89536 332616 16941 0 3 0x4000082 wait syz-fuzzer 89536 246237 16941 0 2 0x4000002 syz-fuzzer 89536 128550 16941 0 3 0x4000082 wait syz-fuzzer 89536 58346 16941 0 3 0x4000082 wait syz-fuzzer 89536 119496 16941 0 3 0x4000082 wait syz-fuzzer 16941 295675 92532 0 3 0x10008a sigsusp ksh 92532 320117 56802 0 3 0x9a kqread sshd 56802 458555 1 0 3 0x88 kqread sshd 99842 123342 91109 74 3 0x1100092 bpf pflogd 91109 396 1 0 3 0x80 netio pflogd 29167 455921 29096 73 3 0x1100090 kqread syslogd 29096 160445 1 0 3 0x100082 netio syslogd 99849 480988 1 0 3 0x100080 kqread resolvd 36538 227274 34375 77 3 0x100092 kqread dhcpleased 51971 110382 34375 77 3 0x100092 kqread dhcpleased 34375 323345 1 0 3 0x80 kqread dhcpleased 75683 399254 0 0 3 0x14200 bored smr 8992 312164 0 0 2 0x14200 zerothread 68893 253714 0 0 3 0x14200 aiodoned aiodoned 83198 198168 0 0 3 0x14200 syncer update 36999 176030 0 0 3 0x14200 cleaner cleaner 26194 330292 0 0 3 0x14200 reaper reaper 68714 474506 0 0 3 0x14200 pgdaemon pagedaemon 55642 293864 0 0 3 0x14200 bored viomb 38584 61693 0 0 3 0x40014200 acpi0 acpi0 930 250989 0 0 7 0x40014200 idle1 93640 321971 0 0 3 0x14200 bored softnet 38703 509181 0 0 3 0x14200 bored softnet 31734 365162 0 0 3 0x14200 bored softnet *47174 441762 0 0 7 0x14200 softnet 73834 37050 0 0 3 0x14200 bored systqmp 63911 355334 0 0 3 0x14200 bored systq 78004 54190 0 0 3 0x40014200 bored softclock 4145 426460 0 0 3 0x40014200 idle0 1 228300 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10266 6528K 8075K 78643K 81694 0 pcb 13 20K 25K 78643K 5343 0 rtable 185 17K 18K 78643K 4201 0 ifaddr 90 30K 33K 78643K 1896 0 sysctl 3 1K 1K 78643K 11 0 counters 60 35K 36K 78643K 1322 0 ioctlops 0 0K 4K 78643K 5102 0 iov 0 0K 40K 78643K 3810 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1784 112K 112K 78643K 40587 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 282 0 VM map 2 1K 1K 78643K 2 0 sem 14 20K 36K 78643K 620 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 10 33K 85K 78643K 27692 0 sigio 0 0K 0K 78643K 4645 0 proc 75 91K 116K 78643K 3662 0 subproc 104 6K 10K 78643K 1091 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 1444 0 in_multi 67 4K 6K 78643K 1532 0 ether_multi 1 0K 0K 78643K 144 0 mrt 1 0K 0K 78643K 148 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 307 1367K 1367K 78643K 307 0 exec 0 0K 1K 78643K 5217 0 pfkey data 0 0K 0K 78643K 19 0 tdb 3 0K 0K 78643K 3 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 8 62K 64K 78643K 10 0 UVM amap 417 100K 114K 78643K 181236 0 UVM aobj 131 4K 4K 78643K 132 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 1610 0 NDP 16 0K 1K 78643K 605 0 temp 146 5775K 6815K 78643K 198551 0 kqueue 12 18K 28K 78643K 2249 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 2197 0 2194 35 34 1 4 0 8 0 rtentry 112 1302 0 1232 4 1 3 4 0 8 0 unpcb 144 35714 0 35699 356 355 1 11 0 8 0 syncache 296 108 0 108 32 32 0 1 0 8 0 tcpqe 32 183 0 183 9 9 0 1 0 8 0 tcpcb 776 8218 0 8214 324 317 7 14 0 8 6 arp 120 181 0 167 1 0 1 1 0 8 0 inpcb 368 31865 0 31858 600 587 13 16 0 8 12 nd6 48 273 0 257 1 0 1 1 0 8 0 pkpcb 40 87 0 87 14 14 0 1 0 8 0 kcovpl 48 76 0 68 1 0 1 1 0 8 0 mppekey 1024 19 0 19 7 7 0 1 0 8 0 ppxss 1256 371 0 371 59 58 1 1 0 8 1 pppxif 1456 186 0 186 35 34 1 1 0 8 1 pfstscr 40 104 0 101 4 3 1 1 0 8 0 pffrag 232 233 0 233 18 18 0 1 0 482 0 pffrnode 88 232 0 232 18 18 0 1 0 8 0 pffrent 40 796 0 796 20 20 0 1 0 8 0 pfosfp 40 1431 0 1007 5 0 5 5 0 8 0 pfosfpen 112 1431 0 716 21 0 21 21 0 8 0 pfanchor 1280 716 255 204 46 3 43 43 0 8 0 pfqueue 264 3 0 3 1 1 0 1 0 8 0 pfstitem 24 899 0 879 1 0 1 1 0 8 0 pfstkey 128 1053 0 1037 4 2 2 3 0 8 0 pfstate 384 966 0 950 21 19 2 8 0 8 0 pfrule 1344 21 0 16 2 1 1 2 0 8 0 rttmr 136 52 0 52 13 13 0 1 0 8 0 art_heap8 4096 6 0 5 6 5 1 2 0 8 0 art_heap4 256 6046 0 5714 82 58 24 31 0 8 0 art_table 32 6052 0 5719 4 0 4 4 0 8 0 art_node 16 1294 0 1233 1 0 1 1 0 8 0 sysvmsgpl 40 38 0 7 1 0 1 1 0 8 0 semupl 112 3 0 3 2 2 0 1 0 8 0 semapl 112 606 0 594 1 0 1 1 0 8 0 shmpl 112 129 0 1 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 49169 0 47633 97 0 97 97 0 8 0 ffsino 272 49169 0 47633 104 1 103 103 0 8 0 nchpl 144 85862 0 84219 63 0 63 63 0 8 0 rtmask 32 9 0 9 5 5 0 1 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 370899 0 370899 11 10 1 2 0 8 1 percpumem 16 674 0 631 1 0 1 1 0 8 0 vmpool 696 233 0 233 21 21 0 1 0 8 0 kstatmem 264 832 0 800 11 8 3 3 0 8 0 scsiplug 72 12 0 12 4 4 0 1 0 8 0 scxspl 216 205241 0 205241 35 34 1 7 0 8 1 plimitpl 152 4204 0 4188 1 0 1 1 0 8 0 sigapl 424 27929 0 27868 9 1 8 8 0 8 0 futexpl 64 301203 0 301203 4 3 1 1 0 8 1 knotepl 120 2308 0 0 17 0 17 17 0 8 0 kqueuepl 216 5566 0 5558 100 99 1 8 0 8 0 pipepl 320 7580 0 7552 230 227 3 11 0 8 0 fdescpl 496 27866 0 27843 5 1 4 5 0 8 0 filepl 152 287620 0 287382 516 500 16 24 0 8 5 lockfpl 104 12274 0 12272 26 25 1 2 0 8 0 lockfspl 48 4068 0 4066 1 0 1 1 0 8 0 sessionpl 144 103 0 86 1 0 1 1 0 8 0 pgrppl 48 586 0 569 1 0 1 1 0 8 0 ucredpl 104 87235 0 87214 1 0 1 1 0 8 0 zombiepl 144 27868 0 27868 2 1 1 1 0 8 1 processpl 1072 27929 0 27868 5 0 5 5 0 8 0 procpl 696 71412 0 71336 36 26 10 11 0 8 0 srpgc 96 126 0 126 37 36 1 1 0 8 1 sosppl 168 224 0 224 46 46 0 1 0 8 0 sockpl 488 70138 0 70110 1647 1626 21 45 0 8 16 mcl64k 65536 13 0 0 2 0 2 2 0 8 0 mcl16k 16384 9 0 0 2 0 2 2 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 1 2 3 0 8 0 mcl4k 4096 18 0 0 3 0 3 3 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 475 0 0 51 17 34 51 0 8 0 mtagpl 96 1914 0 0 20 1 19 19 0 8 0 mbufpl 256 3495 0 0 118 0 118 118 0 8 0 bufpl 288 42563 0 36241 452 0 452 452 0 8 0 anonpl 24 5291192 0 5273195 385 249 136 144 0 186 3 amapchunkpl 152 511648 0 510914 117 80 37 46 0 158 0 amappl16 200 53563 0 53045 334 303 31 42 0 8 2 amappl15 192 91 0 89 1 0 1 1 0 8 0 amappl14 184 374 0 359 2 1 1 2 0 8 0 amappl13 176 19 0 19 6 6 0 1 0 8 0 amappl12 168 1305 0 1301 1 0 1 1 0 8 0 amappl11 160 63 0 48 1 0 1 1 0 8 0 amappl10 152 126 0 113 1 0 1 1 0 8 0 amappl9 144 1070 0 1070 38 38 0 1 0 8 0 amappl8 136 1136 0 960 7 0 7 7 0 8 0 amappl7 128 420 0 391 4 3 1 2 0 8 0 amappl6 120 695 0 673 2 1 1 2 0 8 0 amappl5 112 784 0 775 1 0 1 1 0 8 0 amappl4 104 1650 0 1607 2 0 2 2 0 8 0 amappl3 96 80336 0 80293 2 0 2 2 0 8 0 amappl2 88 30110 0 30026 5 2 3 3 0 8 0 amappl1 80 619636 0 618962 24 6 18 23 0 8 0 amappl 88 178956 0 178764 6 0 6 6 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 131 0 1 3 0 3 3 0 8 0 uaddrrnd 24 28099 0 28076 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 28099 0 28076 1 0 1 1 0 8 0 vmmpekpl 168 208029 0 207964 4 0 4 4 0 8 0 vmmpepl 168 2518662 0 2516144 460 306 154 169 0 357 0 vmsppl 368 28098 0 28076 4 1 3 4 0 8 0 rwobjpl 56 645659 0 637823 128 11 117 117 0 8 0 pdppl 4096 56205 0 56152 1723 1656 67 79 0 8 14 pvpl 32 10060879 0 10037565 758 521 237 275 0 265 16 pmappl 248 28098 0 28076 3 1 2 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 3330 0 2403 27 0 27 27 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8279852b) at panic+0x177 sys/kern/subr_prf.c:198 rw_enter(ffffffff82b9b020,1) at rw_enter+0x482 rw_enter_diag sys/kern/kern_rwlock.c:183 [inline] rw_enter(ffffffff82b9b020,1) at rw_enter+0x482 sys/kern/kern_rwlock.c:274 arpresolve(ffff8000001a02a8,fffffd806f0ce690,fffffd8066f27800,ffff8000006c8cc0,ffff8000211979d8) at arpresolve+0x3ce sys/netinet/if_ether.c:423 ether_resolve(ffff8000001a02a8,fffffd8066f27800,ffff8000006c8cc0,fffffd806f0ce690,ffff8000211979d8) at ether_resolve+0x215 sys/net/if_ethersubr.c:224 ether_output(ffff8000001a02a8,fffffd8066f27800,ffff8000006c8cc0,fffffd806f0ce690) at ether_output+0x47 ether_encap sys/net/if_ethersubr.c:330 [inline] ether_output(ffff8000001a02a8,fffffd8066f27800,ffff8000006c8cc0,fffffd806f0ce690) at ether_output+0x47 sys/net/if_ethersubr.c:359 arpcache(ffff8000001a02a8,fffffd806d3b781a,fffffd806f0ce690) at arpcache+0x2e8 sys/netinet/if_ether.c:734 in_arpinput(ffff8000001a02a8,fffffd8067479600) at in_arpinput+0x4c1 sys/netinet/if_ether.c:615 arpintr() at arpintr+0x71 sys/netinet/if_ether.c:538 if_netisr(0) at if_netisr+0xcf sys/net/if.c:912 taskq_thread(ffff80000002c000) at taskq_thread+0xe5 sys/kern/kern_task.c:449 end trace frame: 0x0, count: -11 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020d68ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206 sched_idle(ffff800020d68ff0) at sched_idle+0x417 sys/kern/kern_sched.c:175 end trace frame: 0x0, count: 10 ddb{1}> trace x86_ipi_db(ffff800020d68ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206 sched_idle(ffff800020d68ff0) at sched_idle+0x417 sys/kern/kern_sched.c:175 end trace frame: 0x0, count: -5