panic: receive 1: so 0xfffffd806f6f2000, so_type 3, sb_cc 80 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 70641 10715 0 0 0x4000000 1 syz-executor.0 * 7488 20046 0 0 0 0K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821e2cb7) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6f2000,0,ffff800020aadd98,0,0,ffff800020aadca4) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd8079bf0260,ffff800020aadd98,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a6c9c8,6,ffff800020aadd98,0,ffff800020aade80) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a6c9c8,ffff800020aade30,ffff800020aade80) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020aadf00) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020aadf00) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdee40, 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 1: so 0xfffffd806f6f2000, so_type 3, sb_cc 80 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821e2cb7) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6f2000,0,ffff800020aadd98,0,0,ffff800020aadca4) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd8079bf0260,ffff800020aadd98,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a6c9c8,6,ffff800020aadd98,0,ffff800020aade80) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a6c9c8,ffff800020aade30,ffff800020aade80) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020aadf00) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020aadf00) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdee40, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020aadae0 rbx 0xffff800020aadb90 rdx 0xffff800020a6c9c8 rcx 0 rax 0 r8 0xffffffff81a3126f kprintf+0x16f r9 0x1 r10 0x25 r11 0x1d91327360c9522e r12 0x3000000008 r13 0xffff800020aadaf0 r14 0x100 r15 0x1 rip 0xffffffff810426a8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020aadad0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=7488 stat=onproc flags process=0 proc=0 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a6cea8,0xffff800020a6cc48 process=0xffff800020a80790 user=0xffff800020aa8000, vmspace=0xfffffd807efff2e0 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 10715 280927 49352 0 2 0 syz-executor.0 10715 70641 49352 0 7 0x4000000 syz-executor.0 90152 306948 94383 0 2 0 syz-executor.1 90152 326816 94383 0 2 0x4000000 syz-executor.1 14135 180335 0 0 3 0x14200 acct acct 46144 106069 0 0 3 0x14200 bored sosplice 94383 28966 99628 0 3 0x82 nanosleep syz-executor.1 49352 153530 99628 0 3 0x82 nanosleep syz-executor.0 99628 243783 45642 0 3 0x82 thrsleep syz-fuzzer 99628 347364 45642 0 3 0x4000082 nanosleep syz-fuzzer 99628 128082 45642 0 3 0x4000082 thrsleep syz-fuzzer 99628 196942 45642 0 3 0x4000082 thrsleep syz-fuzzer 99628 420913 45642 0 3 0x4000082 thrsleep syz-fuzzer 99628 229308 45642 0 3 0x4000082 thrsleep syz-fuzzer 99628 38149 45642 0 3 0x4000082 thrsleep syz-fuzzer 99628 279188 45642 0 3 0x4000082 kqread syz-fuzzer 99628 8710 45642 0 3 0x4000082 thrsleep syz-fuzzer 99628 361706 45642 0 3 0x4000082 thrsleep syz-fuzzer 45642 98891 96945 0 3 0x10008a pause ksh 96945 466166 77056 0 3 0x92 select sshd 93622 419926 1 0 3 0x100083 ttyin getty 77056 198413 1 0 3 0x80 select sshd 1664 34776 83815 74 3 0x100092 bpf pflogd 83815 236491 1 0 3 0x80 netio pflogd 57838 364811 69474 73 3 0x100090 kqread syslogd 69474 504411 1 0 3 0x100082 netio syslogd 41402 52457 1 77 3 0x100090 poll dhclient *20046 7488 1 0 7 0 dhclient 1864 140176 0 0 3 0x14200 bored smr 49277 437178 0 0 2 0x14200 zerothread 26846 241271 0 0 3 0x14200 aiodoned aiodoned 9624 439238 0 0 3 0x14200 syncer update 3566 402153 0 0 3 0x14200 cleaner cleaner 16956 29431 0 0 3 0x14200 reaper reaper 37262 433883 0 0 3 0x14200 pgdaemon pagedaemon 2752 113675 0 0 3 0x14200 bored crynlk 13646 231207 0 0 3 0x14200 bored crypto 54414 440518 0 0 3 0x40014200 acpi0 acpi0 16754 112307 0 0 3 0x40014200 idle1 63227 227658 0 0 3 0x14200 bored softnet 6019 419953 0 0 3 0x14200 bored systqmp 42312 410919 0 0 3 0x14200 bored systq 1490 462579 0 0 3 0x40014200 bored softclock 85325 380563 0 0 3 0x40014200 idle0 1 523581 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 1: exclusive mutex &newfdp->fd_fd.fd_fplock r = 0 (0xfffffd807a539098) #0 witness_lock+0x52e sys/kern/subr_witness.c:1164 #1 mtx_enter_try+0x102 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 fdrelease+0x60 fd_getfile sys/kern/kern_descrip.c:241 [inline] #3 fdrelease+0x60 sys/kern/kern_descrip.c:753 #4 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #4 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #5 Xsyscall+0x128 Process 10715 (syz-executor.0) thread 0xffff800020ac7398 (70641) exclusive rwlock fdlock r = 0 (0xfffffd807a539068) #0 witness_lock+0x52e sys/kern/subr_witness.c:1164 #1 sys_close+0x91 sys/kern/kern_descrip.c:778 #2 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #2 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #3 Xsyscall+0x128 Process 20046 (dhclient) thread 0xffff800020a6c9c8 (7488) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff826638d8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1164 #1 solock+0x66 sys/kern/uipc_socket2.c:292 #2 soreceive+0x114 sys/kern/uipc_socket.c:731 #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 9571 6748K 7902K 78643K 13143 0 pcb 13 10K 12K 78643K 142 0 rtable 99 4K 4K 78643K 457 0 ifaddr 100 19K 19K 78643K 198 0 counters 45 34K 34K 78643K 77 0 ioctlops 0 0K 4K 78643K 1483 0 iov 0 0K 16K 78643K 102 0 mount 1 1K 1K 78643K 1 0 vnodes 1230 77K 78K 78643K 1849 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 11 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 127 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 6 17K 25K 78643K 488 0 sigio 0 0K 0K 78643K 17 0 proc 62 63K 95K 78643K 479 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 1K 78643K 99 0 in_multi 87 3K 4K 78643K 205 0 ether_multi 1 0K 0K 78643K 26 0 mrt 0 0K 0K 78643K 7 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 73 334K 334K 78643K 73 0 exec 0 0K 1K 78643K 259 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 127 55K 56K 78643K 2619 0 UVM aobj 39 2K 2K 78643K 46 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 116 0 NDP 15 0K 0K 78643K 43 0 temp 144 3027K 3094K 78643K 10465 0 kqueue 3 4K 22K 78643K 53 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 8 0 4 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 49 0 47 1 0 1 1 0 8 0 rtentry 112 91 0 53 2 0 2 2 0 8 0 unpcb 120 704 0 693 4 2 2 2 0 8 1 syncache 264 8 0 8 3 2 1 1 0 8 1 tcpqe 32 423 0 423 2 1 1 1 0 8 1 tcpcb 544 444 0 439 13 12 1 13 0 8 0 inpcb 280 992 0 984 9 7 2 9 0 8 1 rttmr 72 2 0 2 1 1 0 1 0 8 0 nd6 48 15 0 12 1 0 1 1 0 8 0 pkpcb 40 4 0 4 1 1 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 4 0 4 2 2 0 1 0 8 0 pffrag 232 7 0 7 2 1 1 1 0 482 1 pffrnode 88 7 0 7 2 1 1 1 0 8 1 pffrent 40 147 0 147 2 1 1 1 0 8 1 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 70 0 10 1 0 1 1 0 8 0 pfstkey 112 70 0 10 2 0 2 2 0 8 0 pfstate 328 70 0 9 6 0 6 6 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 418 0 236 14 0 14 14 0 8 2 art_table 32 420 0 236 2 0 2 2 0 8 0 art_node 16 90 0 54 1 0 1 1 0 8 0 sysvmsgpl 40 18 0 12 1 0 1 1 0 8 0 semapl 112 125 0 115 1 0 1 1 0 8 0 shmpl 112 44 0 7 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2170 0 761 46 0 46 46 0 8 0 ffsino 272 2170 0 761 95 0 95 95 0 8 0 nchpl 144 3232 0 1624 61 0 61 61 0 8 0 uvmvnodes 72 2731 0 0 50 0 50 50 0 8 0 vnodes 208 2731 0 0 144 0 144 144 0 8 0 namei 1024 9822 0 9822 1 0 1 1 0 8 1 percpumem 16 49 0 16 1 0 1 1 0 8 0 vcpupl 1984 4 0 0 1 0 1 1 0 8 0 vmpool 560 4 0 0 1 0 1 1 0 8 0 scsiplug 64 4 0 4 3 2 1 1 0 8 1 scxspl 192 10109 0 10109 9 7 2 7 0 8 2 plimitpl 152 56 0 48 1 0 1 1 0 8 0 sigapl 424 705 0 671 4 0 4 4 0 8 0 futexpl 56 11393 0 11393 1 0 1 1 0 8 1 knotepl 112 115 0 96 1 0 1 1 0 8 0 kqueuepl 144 384 0 382 5 4 1 5 0 8 0 pipelkpl 48 252 0 242 1 0 1 1 0 8 0 pipepl 120 504 0 485 3 2 1 2 0 8 0 fdescpl 496 688 0 671 3 0 3 3 0 8 0 filepl 152 6265 0 6159 17 10 7 16 0 8 2 lockfpl 104 257 0 256 1 0 1 1 0 8 0 lockfspl 48 70 0 69 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 24 0 13 1 0 1 1 0 8 0 ucredpl 96 797 0 787 1 0 1 1 0 8 0 zombiepl 144 671 0 671 1 0 1 1 0 8 1 processpl 960 705 0 671 5 0 5 5 0 8 0 procpl 624 1825 0 1780 4 0 4 4 0 8 0 sosppl 128 13 0 13 2 1 1 1 0 8 1 sockpl 400 1762 0 1741 20 12 8 17 0 8 5 mcl64k 65536 14 0 0 2 0 2 2 0 8 0 mcl16k 16384 5 0 0 1 0 1 1 0 8 0 mcl12k 12288 8 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 14 0 0 2 0 2 2 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 161 0 0 20 0 20 20 0 8 0 mtagpl 80 58 0 0 2 0 2 2 0 8 0 mbufpl 256 492 0 0 29 0 29 29 0 8 0 bufpl 280 5678 0 174 394 0 394 394 0 8 0 anonpl 16 77238 0 59417 90 4 86 89 0 124 13 amapchunkpl 152 3951 0 3811 10 0 10 10 0 158 2 amappl16 192 3669 0 2687 62 8 54 61 0 8 4 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 6 0 3 2 1 1 1 0 8 0 amappl13 168 25 0 24 1 0 1 1 0 8 0 amappl12 160 4 0 3 1 0 1 1 0 8 0 amappl11 152 75 0 57 1 0 1 1 0 8 0 amappl10 144 237 0 231 1 0 1 1 0 8 0 amappl9 136 390 0 387 1 0 1 1 0 8 0 amappl8 128 337 0 303 2 0 2 2 0 8 0 amappl7 120 348 0 334 1 0 1 1 0 8 0 amappl6 112 27 0 23 1 0 1 1 0 8 0 amappl5 104 589 0 572 1 0 1 1 0 8 0 amappl4 96 510 0 477 2 1 1 2 0 8 0 amappl3 88 130 0 124 1 0 1 1 0 8 0 amappl2 80 4598 0 4517 3 1 2 3 0 8 0 amappl1 72 25164 0 24706 27 17 10 21 0 8 0 amappl 80 2083 0 2034 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 45 0 7 1 0 1 1 0 8 0 uaddrrnd 24 692 0 671 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 692 0 671 1 0 1 1 0 8 0 vmmpekpl 168 9870 0 9837 2 0 2 2 0 8 0 vmmpepl 168 90694 0 88444 131 25 106 122 0 357 8 vmsppl 368 691 0 671 2 0 2 2 0 8 0 pdppl 4096 1392 0 1346 6 0 6 6 0 8 0 pvpl 32 246542 0 225496 211 3 208 211 0 265 35 pmappl 232 691 0 671 3 1 2 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 219 0 27 6 0 6 6 0 8 0