panic: receive 1a: so 0xfffffd806f68b000, so_type 3, m 0xfffffd80720c2700, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 10132 826 0 0 0 1 syz-executor.1 *298932 17610 0 0 0 0K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f3359) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f68b000,0,ffff800020e1eca8,0,0,ffff800020e1ebb4) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd80717f75f0,ffff800020e1eca8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc278,6,ffff800020e1eca8,0,ffff800020e1ed90) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc278,ffff800020e1ed40,ffff800020e1ed90) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1ee10) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1ee10) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc40b0, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic receive 1a: so 0xfffffd806f68b000, so_type 3, m 0xfffffd80720c2700, m_type 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f3359) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f68b000,0,ffff800020e1eca8,0,0,ffff800020e1ebb4) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd80717f75f0,ffff800020e1eca8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc278,6,ffff800020e1eca8,0,ffff800020e1ed90) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc278,ffff800020e1ed40,ffff800020e1ed90) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1ee10) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1ee10) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc40b0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1e9f0 rbx 0xffff800020e1eaa0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff8202f34f kprintf+0x16f r9 0x1 r10 0x2 r11 0x2d03cc63979f7e94 r12 0x3000000008 r13 0xffff800020e1ea00 r14 0x100 r15 0x1 rip 0xffffffff81106bf8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1e9e0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=298932 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddd118,0xffff800020ddc018 process=0xffff800020df0bb0 user=0xffff800020e19000, vmspace=0xfffffd807effe730 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 826 10132 91021 0 7 0 syz-executor.1 826 179435 91021 0 2 0x4000000 syz-executor.1 7095 237214 93137 0 2 0 syz-executor.0 7095 163310 93137 0 3 0x4000080 fsleep syz-executor.0 80511 506199 0 0 3 0x14280 nfsidl nfsio 75782 95767 0 0 3 0x14280 nfsidl nfsio 42264 399110 0 0 3 0x14280 nfsidl nfsio 24233 308377 0 0 3 0x14280 nfsidl nfsio 2735 291343 0 0 3 0x14280 nfsidl nfsio 15199 28598 0 0 3 0x14280 nfsidl nfsio 97887 88391 0 0 3 0x14280 nfsidl nfsio 43520 371735 0 0 3 0x14280 nfsidl nfsio 40374 60153 0 0 3 0x14280 nfsidl nfsio 1061 169280 0 0 3 0x14280 nfsidl nfsio 15265 322664 0 0 3 0x14280 nfsidl nfsio 32898 480158 0 0 3 0x14280 nfsidl nfsio 23740 370774 0 0 3 0x14280 nfsidl nfsio 41363 499608 0 0 3 0x14280 nfsidl nfsio 95974 79081 0 0 3 0x14280 nfsidl nfsio 8673 495061 0 0 3 0x14280 nfsidl nfsio 37090 490217 0 0 3 0x14280 nfsidl nfsio 28467 55781 0 0 3 0x14280 nfsidl nfsio 94526 74579 0 0 3 0x14280 nfsidl nfsio 31185 323750 0 0 3 0x14280 nfsidl nfsio 91021 327551 83527 0 3 0x82 nanosleep syz-executor.1 93137 75852 83527 0 3 0x82 nanosleep syz-executor.0 83527 368068 31282 0 3 0x82 thrsleep syz-fuzzer 83527 366215 31282 0 3 0x4000082 nanosleep syz-fuzzer 83527 164848 31282 0 3 0x4000082 kqread syz-fuzzer 83527 289627 31282 0 3 0x4000082 thrsleep syz-fuzzer 83527 165999 31282 0 3 0x4000082 thrsleep syz-fuzzer 83527 454556 31282 0 3 0x4000082 thrsleep syz-fuzzer 83527 389209 31282 0 3 0x4000082 thrsleep syz-fuzzer 83527 254049 31282 0 3 0x4000082 thrsleep syz-fuzzer 83527 424492 31282 0 3 0x4000082 thrsleep syz-fuzzer 83527 204174 31282 0 3 0x4000082 thrsleep syz-fuzzer 31282 478400 92285 0 3 0x10008a pause ksh 92285 279256 18486 0 3 0x92 select sshd 32338 274269 1 0 3 0x100083 ttyin getty 18486 419028 1 0 3 0x80 select sshd 32837 151282 22330 74 3 0x100092 bpf pflogd 22330 56639 1 0 3 0x80 netio pflogd 42843 171847 86404 73 3 0x100090 kqread syslogd 86404 292056 1 0 3 0x100082 netio syslogd 65360 459470 1 77 3 0x100090 poll dhclient *17610 298932 1 0 7 0 dhclient 10306 405072 0 0 3 0x14200 bored smr 28119 274511 0 0 2 0x14200 zerothread 87990 391755 0 0 3 0x14200 aiodoned aiodoned 84759 473041 0 0 3 0x14200 syncer update 25831 302216 0 0 3 0x14200 cleaner cleaner 29252 452637 0 0 3 0x14200 reaper reaper 11445 431500 0 0 3 0x14200 pgdaemon pagedaemon 52346 504292 0 0 3 0x14200 bored crynlk 26703 481720 0 0 3 0x14200 bored crypto 50608 388278 0 0 3 0x40014200 acpi0 acpi0 20455 355841 0 0 3 0x40014200 idle1 51727 412097 0 0 3 0x14200 bored softnet 30349 284192 0 0 3 0x14200 bored systqmp 31550 421463 0 0 3 0x14200 bored systq 55456 30096 0 0 3 0x40014200 bored softclock 26864 441552 0 0 3 0x40014200 idle0 1 8922 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 17610 (dhclient) thread 0xffff800020ddc278 (298932) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff828dfa20) #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+0x114 sys/kern/uipc_socket.c:737 #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{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9523 7045K 7051K 78643K 10685 0 pcb 13 8K 8K 78643K 19 0 rtable 105 3K 3K 78643K 205 0 ifaddr 49 11K 11K 78643K 56 0 counters 43 33K 33K 78643K 43 0 ioctlops 0 0K 4K 78643K 1477 0 iov 0 0K 16K 78643K 6 0 mount 1 1K 1K 78643K 1 0 vnodes 1228 77K 77K 78643K 1250 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 4 0K 0K 78643K 6 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 6 17K 25K 78643K 58 0 proc 61 63K 95K 78643K 443 0 subproc 32 2K 2K 78643K 34 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 33 2K 2K 78643K 41 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 31 148K 148K 78643K 31 0 exec 0 0K 1K 78643K 219 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 112 22K 23K 78643K 1095 0 UVM aobj 3 2K 2K 78643K 3 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 7 0K 0K 78643K 11 0 temp 72 3852K 3915K 78643K 2098 0 kqueue 3 4K 4K 78643K 3 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 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 80 19 0 17 1 0 1 1 0 8 0 rtentry 112 47 0 3 2 0 2 2 0 8 0 unpcb 120 33 0 23 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 1032 0 1032 1 0 1 1 0 8 1 tcpcb 544 14 0 10 1 0 1 1 0 8 0 inpcb 296 65 0 58 2 0 2 2 0 8 1 nd6 48 8 0 2 1 0 1 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 12 0 1 1 0 1 1 0 8 0 pfstkey 112 12 0 1 1 0 1 1 0 8 0 pfstate 328 12 0 1 1 0 1 1 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 188 0 0 12 0 12 12 0 8 0 art_table 32 189 0 0 2 0 2 2 0 8 0 art_node 16 46 0 6 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 4 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1459 0 52 89 0 89 89 0 8 0 ffsino 272 1459 0 52 95 1 94 94 0 8 0 nchpl 144 1710 0 98 60 0 60 60 0 8 0 uvmvnodes 72 1530 0 0 28 0 28 28 0 8 0 vnodes 208 1530 0 0 81 0 81 81 0 8 0 namei 1024 4541 0 4541 2 1 1 1 0 8 1 percpumem 16 32 0 0 1 0 1 1 0 8 0 scxspl 192 5290 0 5290 8 1 7 7 0 8 7 plimitpl 152 15 0 7 1 0 1 1 0 8 0 sigapl 424 293 0 241 6 0 6 6 0 8 0 futexpl 56 435 0 434 1 0 1 1 0 8 0 knotepl 112 61 0 42 1 0 1 1 0 8 0 kqueuepl 144 2 0 0 1 0 1 1 0 8 0 pipepl 304 85 0 75 2 0 2 2 0 8 1 fdescpl 496 258 0 241 3 0 3 3 0 8 0 filepl 152 1306 0 1205 6 1 5 5 0 8 1 lockfpl 104 14 0 13 1 0 1 1 0 8 0 lockfspl 48 7 0 6 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 18 0 7 1 0 1 1 0 8 0 ucredpl 96 72 0 63 1 0 1 1 0 8 0 zombiepl 144 241 0 241 2 1 1 1 0 8 1 processpl 992 293 0 241 8 1 7 7 0 8 0 procpl 624 354 0 291 6 0 6 6 0 8 1 sockpl 400 117 0 98 4 1 3 3 0 8 1 mcl64k 65536 1 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 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 2 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 273 0 0 34 0 34 34 0 8 0 mtagpl 96 1 0 0 1 0 1 1 0 8 0 mbufpl 256 321 0 0 20 0 20 20 0 8 0 bufpl 280 3589 0 133 247 0 247 247 0 8 0 anonpl 16 41017 0 25287 65 1 64 64 0 124 0 amapchunkpl 152 1462 0 1311 10 0 10 10 0 158 3 amappl16 192 1058 0 220 42 0 42 42 0 8 0 amappl15 184 9 0 7 1 0 1 1 0 8 0 amappl14 176 26 0 20 1 0 1 1 0 8 0 amappl13 168 44 0 38 1 0 1 1 0 8 0 amappl12 160 8 0 4 2 1 1 1 0 8 0 amappl11 152 56 0 41 1 0 1 1 0 8 0 amappl10 144 31 0 25 1 0 1 1 0 8 0 amappl9 136 400 0 397 1 0 1 1 0 8 0 amappl8 128 354 0 325 2 0 2 2 0 8 0 amappl7 120 116 0 105 1 0 1 1 0 8 0 amappl6 112 29 0 24 1 0 1 1 0 8 0 amappl5 104 156 0 139 1 0 1 1 0 8 0 amappl4 96 507 0 474 1 0 1 1 0 8 0 amappl3 88 104 0 99 1 0 1 1 0 8 0 amappl2 80 1094 0 1015 2 0 2 2 0 8 0 amappl1 72 15846 0 15387 23 12 11 18 0 8 1 amappl 80 587 0 541 2 0 2 2 0 84 1 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 258 0 241 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 258 0 241 1 0 1 1 0 8 0 vmmpekpl 168 6219 0 6181 2 0 2 2 0 8 0 vmmpepl 168 39546 0 37433 122 8 114 114 0 357 22 vmsppl 368 257 0 241 2 0 2 2 0 8 0 pdppl 4096 523 0 482 7 1 6 6 0 8 0 pvpl 32 143207 0 124128 157 0 157 157 0 265 2 pmappl 232 257 0 241 2 0 2 2 0 8 1 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 284 0 7 8 0 8 8 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:398 panic(ffffffff823f3359) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f68b000,0,ffff800020e1eca8,0,0,ffff800020e1ebb4) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd80717f75f0,ffff800020e1eca8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc278,6,ffff800020e1eca8,0,ffff800020e1ed90) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc278,ffff800020e1ed40,ffff800020e1ed90) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1ee10) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1ee10) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc40b0, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020d70ff0) 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 syscall(ffff800022981cc0) at syscall+0xb1 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff6240, count: 10 ddb{1}> trace x86_ipi_db(ffff800020d70ff0) 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 syscall(ffff800022981cc0) at syscall+0xb1 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff6240, count: -5