panic: receive 3: so 0xfffffd806f66c190, so_type 3, m 0xfffffd8070867700, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 173560 85775 0 0 0 0 syz-executor.1 *458253 89945 0 0 0 1K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e9a5d) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f66c190,0,ffff800020e1de68,0,0,ffff800020e1dd74) at soreceive+0x1727 soo_read(fffffd806fc304c0,ffff800020e1de68,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020dd69e8,6,ffff800020e1de68,0,ffff800020e1df50) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020dd69e8,ffff800020e1df00,ffff800020e1df50) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1dfd0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1dfd0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc1880, count: 7 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic receive 3: so 0xfffffd806f66c190, so_type 3, m 0xfffffd8070867700, m_type 0 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e9a5d) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f66c190,0,ffff800020e1de68,0,0,ffff800020e1dd74) at soreceive+0x1727 soo_read(fffffd806fc304c0,ffff800020e1de68,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020dd69e8,6,ffff800020e1de68,0,ffff800020e1df50) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020dd69e8,ffff800020e1df00,ffff800020e1df50) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1dfd0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1dfd0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc1880, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1dbb0 rbx 0xffff800020e1dc60 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffff800020e1db70 r9 0xffffffff8108ddff kprintf+0x16f r10 0x1 r11 0x8ca90b5f5afa6fc r12 0x3000000008 r13 0xffff800020e1dbc0 r14 0x100 r15 0x1 rip 0xffffffff822b91e8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1dba0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (dhclient) pid=458253 stat=onproc flags process=0 proc=0 pri=24, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff800020dd6c60,0xffff800020dd73d8 process=0xffff800020df13c0 user=0xffff800020e19000, vmspace=0xfffffd807effe170 estcpu=1, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 71550 43380 69505 0 2 0 syz-executor.0 71550 157644 69505 0 3 0x4000000 biowait syz-executor.0 85775 173560 40343 0 7 0 syz-executor.1 85775 380223 40343 0 3 0x4000000 smrbar syz-executor.1 62651 360321 0 0 3 0x14200 bored sosplice 40343 505759 81743 0 3 0x82 nanosleep syz-executor.1 69505 271211 81743 0 2 0x2 syz-executor.0 81743 456902 92416 0 3 0x82 thrsleep syz-fuzzer 81743 501536 92416 0 3 0x4000082 thrsleep syz-fuzzer 81743 429830 92416 0 3 0x4000082 thrsleep syz-fuzzer 81743 40048 92416 0 3 0x4000082 thrsleep syz-fuzzer 81743 206879 92416 0 3 0x4000082 kqread syz-fuzzer 81743 484909 92416 0 3 0x4000082 thrsleep syz-fuzzer 81743 272823 92416 0 3 0x4000082 thrsleep syz-fuzzer 81743 203410 92416 0 3 0x4000082 thrsleep syz-fuzzer 92416 103693 10003 0 3 0x10008a pause ksh 10003 493853 29072 0 3 0x92 select sshd 60333 418066 1 0 3 0x100083 ttyin getty 29072 108590 1 0 3 0x80 select sshd 50630 342420 49778 74 3 0x100092 bpf pflogd 49778 33740 1 0 3 0x80 netio pflogd 94250 394249 17847 73 3 0x100090 kqread syslogd 17847 464088 1 0 3 0x100082 netio syslogd 93477 406825 1 77 3 0x100090 poll dhclient *89945 458253 1 0 7 0 dhclient 88944 474779 0 0 3 0x14200 bored smr 69347 499447 0 0 2 0x14200 zerothread 50356 165925 0 0 3 0x14200 aiodoned aiodoned 41403 438140 0 0 3 0x14200 syncer update 29056 8439 0 0 3 0x14200 cleaner cleaner 43310 390238 0 0 3 0x14200 reaper reaper 61340 332830 0 0 3 0x14200 pgdaemon pagedaemon 24596 31674 0 0 3 0x14200 bored crynlk 27606 243833 0 0 3 0x14200 bored crypto 92429 450847 0 0 3 0x40014200 acpi0 acpi0 7279 133664 0 0 3 0x40014200 idle1 373 343545 0 0 3 0x14200 bored softnet 48145 70944 0 0 3 0x14200 bored systqmp 87616 240302 0 0 3 0x14200 bored systq 1434 159974 0 0 3 0x40014200 bored softclock 87197 387463 0 0 3 0x40014200 idle0 1 520128 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 71550 (syz-executor.0) thread 0xffff8000228ee510 (157644) exclusive rrwlock inode r = 0 (0xfffffd8068053b40) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:311 #2 rrw_enter+0x88 sys/kern/kern_rwlock.c:462 #3 ufs_ihashins+0x45 sys/ufs/ufs/ufs_ihash.c:140 #4 ffs_vget+0x13e sys/ufs/ffs/ffs_vfsops.c:1358 #5 ffs_inode_alloc+0x1e2 sys/ufs/ffs/ffs_alloc.c:394 #6 ufs_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1162 #7 VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 #8 domkdirat+0x121 sys/kern/vfs_syscalls.c:3051 #9 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #9 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #10 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd80680531b0) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:311 #2 rrw_enter+0x88 sys/kern/kern_rwlock.c:462 #3 VOP_LOCK+0x4b sys/kern/vfs_vops.c:603 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:575 #5 vfs_lookup+0xe6 sys/kern/vfs_lookup.c:419 #6 namei+0x63c sys/kern/vfs_lookup.c:249 #7 domkdirat+0x75 sys/kern/vfs_syscalls.c:3036 #8 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #8 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #9 Xsyscall+0x128 Process 89945 (dhclient) thread 0xffff800020dd69e8 (458253) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82933348) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 solock+0x66 sys/kern/uipc_socket2.c:292 #2 soreceive+0xb3a sys/kern/uipc_socket.c:956 #3 soo_read+0x53 sys/kern/sys_socket.c:70 #4 dofilereadv+0x1a1 sys/kern/sys_generic.c:237 #5 sys_read+0x83 sys/kern/sys_generic.c:157 #6 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #6 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #7 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9492 6407K 6663K 78643K 10702 0 pcb 13 8K 8K 78643K 29 0 rtable 102 3K 4K 78643K 236 0 ifaddr 56 11K 12K 78643K 68 0 counters 45 34K 34K 78643K 45 0 ioctlops 0 0K 4K 78643K 1513 0 iov 0 0K 24K 78643K 13 0 mount 1 1K 1K 78643K 1 0 vnodes 1221 77K 77K 78643K 1262 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 34 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 6 17K 25K 78643K 161 0 proc 59 63K 95K 78643K 440 0 subproc 32 2K 2K 78643K 34 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 4 0 in_multi 29 1K 2K 78643K 55 0 ether_multi 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 61 281K 281K 78643K 61 0 exec 0 0K 1K 78643K 211 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 159 41K 41K 78643K 1484 0 UVM aobj 5 2K 2K 78643K 5 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 8 0 NDP 9 0K 0K 78643K 14 0 temp 84 3860K 3926K 78643K 3145 0 kqueue 3 4K 12K 78643K 13 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 6 0 0 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 88 23 0 21 1 0 1 1 0 8 0 rtentry 112 53 0 12 2 0 2 2 0 8 0 unpcb 120 129 0 119 1 0 1 1 0 8 0 syncache 272 4 0 4 1 1 0 1 0 8 0 tcpqe 32 195 0 195 1 1 0 1 0 8 0 tcpcb 592 39 0 32 2 1 1 2 0 8 0 inpcb 296 163 0 154 3 2 1 2 0 8 0 nd6 48 11 0 7 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 2 0 1 0 8 0 pffrag 232 1 0 1 1 1 0 1 0 482 0 pffrnode 88 1 0 1 1 1 0 1 0 8 0 pffrent 40 45 0 45 1 1 0 1 0 8 0 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 22 0 7 1 0 1 1 0 8 0 pfstkey 112 22 0 7 1 0 1 1 0 8 0 pfstate 328 22 0 7 2 0 2 2 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 213 0 40 13 0 13 13 0 8 0 art_table 32 214 0 40 2 0 2 2 0 8 0 art_node 16 52 0 14 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 30 0 20 1 0 1 1 0 8 0 shmpl 112 2 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1590 0 185 88 0 88 88 0 8 0 ffsino 272 1590 0 185 95 1 94 94 0 8 0 nchpl 144 1997 0 387 60 0 60 60 0 8 0 uvmvnodes 72 1662 0 0 31 0 31 31 0 8 0 vnodes 208 1662 0 0 88 0 88 88 0 8 0 namei 1024 5637 0 5636 2 1 1 1 0 8 0 percpumem 16 33 0 0 1 0 1 1 0 8 0 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 560 2 0 0 1 0 1 1 0 8 0 scxspl 200 6474 0 6473 13 12 1 7 0 8 0 plimitpl 152 25 0 17 1 0 1 1 0 8 0 sigapl 424 377 0 344 4 0 4 4 0 8 0 futexpl 56 1730 0 1730 1 0 1 1 0 8 1 knotepl 112 72 0 52 1 0 1 1 0 8 0 kqueuepl 152 14 0 12 1 0 1 1 0 8 0 pipepl 304 87 0 76 3 2 1 2 0 8 0 fdescpl 496 361 0 344 3 0 3 3 0 8 0 filepl 152 2126 0 2019 6 1 5 5 0 8 0 lockfpl 104 31 0 28 1 0 1 1 0 8 0 lockfspl 48 12 0 10 1 0 1 1 0 8 0 sessionpl 120 18 0 7 1 0 1 1 0 8 0 pgrppl 48 18 0 7 1 0 1 1 0 8 0 ucredpl 96 387 0 378 1 0 1 1 0 8 0 zombiepl 144 344 0 344 2 1 1 1 0 8 1 processpl 1008 377 0 344 6 1 5 5 0 8 0 procpl 632 676 0 634 6 1 5 5 0 8 1 sosppl 144 2 0 2 1 1 0 1 0 8 0 sockpl 400 319 0 298 4 1 3 3 0 8 0 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 205 0 0 25 0 25 25 0 8 0 mtagpl 96 12 0 0 1 0 1 1 0 8 0 mbufpl 256 243 0 0 15 0 15 15 0 8 0 bufpl 280 3954 0 128 274 0 274 274 0 8 0 anonpl 16 51170 0 32860 75 1 74 74 0 124 0 amapchunkpl 152 2060 0 1773 13 0 13 13 0 158 0 amappl16 192 1519 0 657 44 0 44 44 0 8 0 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 75 0 70 1 0 1 1 0 8 0 amappl13 168 28 0 25 1 0 1 1 0 8 0 amappl12 160 23 0 18 1 0 1 1 0 8 0 amappl11 152 124 0 107 1 0 1 1 0 8 0 amappl10 144 21 0 16 1 0 1 1 0 8 0 amappl9 136 438 0 435 1 0 1 1 0 8 0 amappl8 128 405 0 366 2 0 2 2 0 8 0 amappl7 120 115 0 102 1 0 1 1 0 8 0 amappl6 112 98 0 88 1 0 1 1 0 8 0 amappl5 104 200 0 184 1 0 1 1 0 8 0 amappl4 96 545 0 519 1 0 1 1 0 8 0 amappl3 88 127 0 117 1 0 1 1 0 8 0 amappl2 80 1922 0 1843 2 0 2 2 0 8 0 amappl1 72 19264 0 18801 24 14 10 18 0 8 0 amappl 80 966 0 888 2 0 2 2 0 84 0 dma4096 4096 1 0 1 1 1 0 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 64 4 0 0 1 0 1 1 0 8 0 uaddrrnd 24 363 0 344 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 363 0 344 1 0 1 1 0 8 0 vmmpekpl 168 6645 0 6607 2 0 2 2 0 8 0 vmmpepl 168 52775 0 50590 124 27 97 113 0 357 2 vmsppl 368 362 0 344 2 0 2 2 0 8 0 pdppl 4096 733 0 690 7 1 6 6 0 8 0 pvpl 32 172456 0 151164 183 9 174 178 0 265 2 pmappl 232 362 0 344 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 264 0 8 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff82785ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x14 kd_curproc sys/dev/kcov.c:442 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x14 sys/dev/kcov.c:112 intr_handler(ffff800021ed5870,ffff80000004a400) at intr_handler+0x5e sys/arch/amd64/amd64/intr.c:532 Xintr_ioapic_edge17_untramp() at Xintr_ioapic_edge17_untramp+0x19f end of kernel end trace frame: 0x7f7ffffed370, count: 9 ddb{0}> trace x86_ipi_db(ffffffff82785ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x14 kd_curproc sys/dev/kcov.c:442 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x14 sys/dev/kcov.c:112 intr_handler(ffff800021ed5870,ffff80000004a400) at intr_handler+0x5e sys/arch/amd64/amd64/intr.c:532 Xintr_ioapic_edge17_untramp() at Xintr_ioapic_edge17_untramp+0x19f end of kernel end trace frame: 0x7f7ffffed370, count: -6 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x18: addq $0x8,%rsp db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e9a5d) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f66c190,0,ffff800020e1de68,0,0,ffff800020e1dd74) at soreceive+0x1727 soo_read(fffffd806fc304c0,ffff800020e1de68,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020dd69e8,6,ffff800020e1de68,0,ffff800020e1df50) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020dd69e8,ffff800020e1df00,ffff800020e1df50) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1dfd0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1dfd0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc1880, count: 7 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e9a5d) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f66c190,0,ffff800020e1de68,0,0,ffff800020e1dd74) at soreceive+0x1727 soo_read(fffffd806fc304c0,ffff800020e1de68,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020dd69e8,6,ffff800020e1de68,0,ffff800020e1df50) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020dd69e8,ffff800020e1df00,ffff800020e1df50) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1dfd0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1dfd0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc1880, count: -8