panic: receive 1: so 0xfffffd806f6db4b0, so_type 3, sb_cc 120 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 120633 72787 0 0x2 0x4000000 1 syz-fuzzer *334650 80614 0 0 0 0K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821ec2a7) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6db4b0,0,ffff800020ead7f8,0,0,ffff800020ead704) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd80733f4098,ffff800020ead7f8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020e6cea8,6,ffff800020ead7f8,0,ffff800020ead8e0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020e6cea8,ffff800020ead890,ffff800020ead8e0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020ead960) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020ead960) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffde8d0, 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 0xfffffd806f6db4b0, so_type 3, sb_cc 120 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821ec2a7) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6db4b0,0,ffff800020ead7f8,0,0,ffff800020ead704) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd80733f4098,ffff800020ead7f8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020e6cea8,6,ffff800020ead7f8,0,ffff800020ead8e0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020e6cea8,ffff800020ead890,ffff800020ead8e0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020ead960) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020ead960) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffde8d0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020ead540 rbx 0xffff800020ead5f0 rdx 0xffff800020e6cea8 rcx 0 rax 0 r8 0xffffffff81276dcf kprintf+0x16f r9 0x1 r10 0x25 r11 0x1ad690e5a169ace0 r12 0x3000000008 r13 0xffff800020ead550 r14 0x100 r15 0x1 rip 0xffffffff8198d748 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020ead530 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=334650 stat=onproc flags process=0 proc=0 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020e6c278,0xffff800020e6d128 process=0xffff800020e80010 user=0xffff800020ea8000, vmspace=0xfffffd807f0002e0 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 61713 316232 38166 0 2 0 syz-executor.1 61713 94812 38166 0 3 0x4000080 fsleep syz-executor.1 80790 104788 0 0 3 0x14200 bored sosplice 38166 118026 72787 0 3 0x82 nanosleep syz-executor.1 88074 376508 72787 0 2 0x2 syz-executor.0 72787 120082 92192 0 3 0x82 thrsleep syz-fuzzer 72787 365554 92192 0 3 0x4000082 nanosleep syz-fuzzer 72787 522178 92192 0 3 0x4000082 thrsleep syz-fuzzer 72787 120633 92192 0 7 0x4000002 syz-fuzzer 72787 286177 92192 0 3 0x4000082 thrsleep syz-fuzzer 72787 252927 92192 0 3 0x4000082 thrsleep syz-fuzzer 72787 120915 92192 0 3 0x4000082 thrsleep syz-fuzzer 72787 235499 92192 0 3 0x4000082 kqread syz-fuzzer 72787 168834 92192 0 3 0x4000082 thrsleep syz-fuzzer 72787 65256 92192 0 3 0x4000082 thrsleep syz-fuzzer 92192 273627 37356 0 3 0x10008a pause ksh 37356 219306 21590 0 3 0x92 select sshd 87453 150163 1 0 3 0x100083 ttyin getty 21590 12892 1 0 3 0x80 select sshd 28428 94845 28328 74 3 0x100092 bpf pflogd 28328 260070 1 0 3 0x80 netio pflogd 712 354873 3731 73 3 0x100090 kqread syslogd 3731 256769 1 0 3 0x100082 netio syslogd 36782 153285 1 77 3 0x100090 poll dhclient *80614 334650 1 0 7 0 dhclient 20519 17880 0 0 3 0x14200 bored smr 80565 460415 0 0 2 0x14200 zerothread 56769 64610 0 0 3 0x14200 aiodoned aiodoned 65810 139210 0 0 3 0x14200 syncer update 69492 100353 0 0 3 0x14200 cleaner cleaner 90277 505986 0 0 3 0x14200 reaper reaper 9470 358281 0 0 3 0x14200 pgdaemon pagedaemon 24687 377171 0 0 3 0x14200 bored crynlk 86970 187276 0 0 3 0x14200 bored crypto 58722 492078 0 0 3 0x40014200 acpi0 acpi0 40903 486465 0 0 3 0x40014200 idle1 93903 510971 0 0 3 0x14200 bored softnet 67981 212668 0 0 3 0x14200 bored systqmp 32409 90246 0 0 3 0x14200 bored systq 50821 87394 0 0 3 0x40014200 bored softclock 38841 416101 0 0 3 0x40014200 idle0 1 332341 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 80614 (dhclient) thread 0xffff800020e6cea8 (334650) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8268a7c8) #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: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 9537 6431K 7527K 78643K 11918 0 pcb 13 8K 8K 78643K 62 0 rtable 99 4K 4K 78643K 330 0 ifaddr 87 16K 16K 78643K 124 0 counters 45 34K 34K 78643K 55 0 ioctlops 0 0K 4K 78643K 1487 0 iov 0 0K 32K 78643K 50 0 mount 1 1K 1K 78643K 1 0 vnodes 1224 77K 77K 78643K 1536 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 7 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 63 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1823 197K 290K 78643K 12980 0 file desc 5 13K 25K 78643K 293 0 sigio 0 0K 0K 78643K 15 0 proc 61 63K 83K 78643K 460 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 29 0 in_multi 51 2K 3K 78643K 112 0 ether_multi 1 0K 0K 78643K 13 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 49 228K 228K 78643K 49 0 exec 0 0K 1K 78643K 228 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 138 88K 104K 78643K 1968 0 UVM aobj 12 2K 2K 78643K 13 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 41 0 NDP 15 0K 0K 78643K 30 0 temp 111 3039K 3102K 78643K 6116 0 kqueue 3 4K 10K 78643K 26 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 7 0 1 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 30 0 28 1 0 1 1 0 8 0 rtentry 112 75 0 37 2 0 2 2 0 8 0 unpcb 120 181 0 171 1 0 1 1 0 8 0 syncache 264 12 0 12 3 2 1 1 0 8 1 tcpqe 32 64 0 64 3 2 1 1 0 8 1 tcpcb 544 128 0 121 1 0 1 1 0 8 0 inpcb 280 352 0 342 2 0 2 2 0 8 1 rttmr 72 3 0 3 1 1 0 1 0 8 0 nd6 48 12 0 10 1 0 1 1 0 8 0 pkpcb 40 4 0 4 1 0 1 1 0 8 1 swfcl 56 3 0 0 1 0 1 1 0 8 0 ppxss 1128 1 0 1 1 0 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 34 0 10 1 0 1 1 0 8 0 pfstkey 112 34 0 10 1 0 1 1 0 8 0 pfstate 328 34 0 10 3 0 3 3 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 337 0 178 13 0 13 13 0 8 1 art_table 32 338 0 178 2 0 2 2 0 8 0 art_node 16 74 0 38 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 2 2 1 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 55 0 45 1 0 1 1 0 8 0 shmpl 112 11 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1834 0 426 89 0 89 89 0 8 0 ffsino 272 1834 0 426 95 0 95 95 0 8 1 nchpl 144 2404 0 794 60 0 60 60 0 8 0 uvmvnodes 72 2134 0 0 39 0 39 39 0 8 0 vnodes 208 2134 0 0 113 0 113 113 0 8 0 namei 1024 7183 0 7183 3 2 1 1 0 8 1 percpumem 16 38 0 5 1 0 1 1 0 8 0 vcpupl 1984 7 0 0 1 0 1 1 0 8 0 vmpool 560 7 0 0 1 0 1 1 0 8 0 scsiplug 64 2 0 2 1 1 0 1 0 8 0 scxspl 192 6759 0 6759 10 8 2 7 0 8 2 plimitpl 152 31 0 23 1 0 1 1 0 8 0 sigapl 424 509 0 477 4 0 4 4 0 8 0 futexpl 56 5084 0 5083 3 2 1 1 0 8 0 knotepl 112 92 0 73 1 0 1 1 0 8 0 kqueuepl 144 69 0 67 1 0 1 1 0 8 0 pipelkpl 48 125 0 115 1 0 1 1 0 8 0 pipepl 120 250 0 231 2 0 2 2 0 8 1 fdescpl 496 493 0 477 3 0 3 3 0 8 0 filepl 152 3336 0 3235 6 0 6 6 0 8 2 lockfpl 104 84 0 83 1 0 1 1 0 8 0 lockfspl 48 29 0 28 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 20 0 9 1 0 1 1 0 8 0 ucredpl 96 289 0 280 1 0 1 1 0 8 0 zombiepl 144 477 0 477 1 0 1 1 0 8 1 processpl 984 509 0 477 5 0 5 5 0 8 0 procpl 624 1160 0 1118 4 0 4 4 0 8 0 sosppl 128 3 0 3 2 2 0 1 0 8 0 sockpl 400 567 0 545 6 2 4 4 0 8 1 mcl64k 65536 7 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 4 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 8 0 0 1 0 1 1 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 155 0 0 19 0 19 19 0 8 0 mtagpl 80 141 0 0 3 0 3 3 0 8 0 mbufpl 256 524 0 0 31 0 31 31 0 8 0 bufpl 280 4056 0 133 281 0 281 281 0 8 0 anonpl 16 63543 0 49540 74 1 73 73 0 124 11 amapchunkpl 152 3724 0 3581 23 3 20 20 0 158 12 amappl16 192 2204 0 1420 48 0 48 48 0 8 7 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 35 0 26 1 0 1 1 0 8 0 amappl13 168 25 0 24 1 0 1 1 0 8 0 amappl12 160 18 0 13 1 0 1 1 0 8 0 amappl11 152 56 0 39 1 0 1 1 0 8 0 amappl10 144 145 0 141 1 0 1 1 0 8 0 amappl9 136 514 0 511 1 0 1 1 0 8 0 amappl8 128 494 0 458 2 0 2 2 0 8 0 amappl7 120 247 0 235 1 0 1 1 0 8 0 amappl6 112 32 0 27 1 0 1 1 0 8 0 amappl5 104 397 0 381 1 0 1 1 0 8 0 amappl4 96 489 0 460 1 0 1 1 0 8 0 amappl3 88 108 0 103 1 0 1 1 0 8 0 amappl2 80 3014 0 2945 2 0 2 2 0 8 0 amappl1 72 20891 0 20446 23 13 10 18 0 8 0 amappl 80 1431 0 1378 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 12 0 1 1 0 1 1 0 8 0 uaddrrnd 24 500 0 477 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 500 0 477 1 0 1 1 0 8 0 vmmpekpl 168 7830 0 7795 2 0 2 2 0 8 0 vmmpepl 168 67358 0 65394 119 20 99 104 0 357 5 vmsppl 368 499 0 477 3 0 3 3 0 8 0 pdppl 4096 1008 0 961 7 0 7 7 0 8 0 pvpl 32 198719 0 181590 178 1 177 177 0 265 26 pmappl 232 499 0 477 2 0 2 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 283 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(ffffffff821ec2a7) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6db4b0,0,ffff800020ead7f8,0,0,ffff800020ead704) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd80733f4098,ffff800020ead7f8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020e6cea8,6,ffff800020ead7f8,0,ffff800020ead8e0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020e6cea8,ffff800020ead890,ffff800020ead8e0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020ead960) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020ead960) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffde8d0, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020e00ff0) 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_cmp4(ffffffff8268a5c0,ffffffff8268a5c0) at __sanitizer_cov_trace_cmp4+0x7 sys/dev/kcov.c:169 uvm_map_inentry(ffff800020edf390,ffff800020edf3f0,c000543120,ffffffff82214acb,ffffffff81da0100,71) at uvm_map_inentry+0xbe sys/uvm/uvm_map.c:1890 usertrap(ffff800020f25e10) at usertrap+0xed sys/arch/amd64/amd64/trap.c:346 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0xc000543148, count: 8 ddb{1}> trace x86_ipi_db(ffff800020e00ff0) 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_cmp4(ffffffff8268a5c0,ffffffff8268a5c0) at __sanitizer_cov_trace_cmp4+0x7 sys/dev/kcov.c:169 uvm_map_inentry(ffff800020edf390,ffff800020edf3f0,c000543120,ffffffff82214acb,ffffffff81da0100,71) at uvm_map_inentry+0xbe sys/uvm/uvm_map.c:1890 usertrap(ffff800020f25e10) at usertrap+0xed sys/arch/amd64/amd64/trap.c:346 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0xc000543148, count: -7