panic: receive 1a: so 0xfffffd806f661190, so_type 3, m 0xfffffd806db54800, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 498822 44663 0 0 0 0 syz-executor.1 *150229 47271 0 0 0 1K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f7a6d) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f661190,0,ffff800020e1eb88,0,0,ffff800020e1ea94) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd8077bf32f8,ffff800020e1eb88,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcc38,6,ffff800020e1eb88,0,ffff800020e1ec70) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcc38,ffff800020e1ec20,ffff800020e1ec70) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1ecf0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1ecf0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcb6b0, 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 1a: so 0xfffffd806f661190, so_type 3, m 0xfffffd806db54800, m_type 0 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f7a6d) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f661190,0,ffff800020e1eb88,0,0,ffff800020e1ea94) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd8077bf32f8,ffff800020e1eb88,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcc38,6,ffff800020e1eb88,0,ffff800020e1ec70) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcc38,ffff800020e1ec20,ffff800020e1ec70) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1ecf0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1ecf0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcb6b0, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1e8d0 rbx 0xffff800020e1e980 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffff800020e1e890 r9 0xffffffff817bd10f kprintf+0x16f r10 0x1 r11 0x6db2be3e715a8704 r12 0x3000000008 r13 0xffff800020e1e8e0 r14 0x100 r15 0x1 rip 0xffffffff821dd518 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1e8c0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (dhclient) pid=150229 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddc4e8,0xffff800020ddceb8 process=0xffff800020df03f0 user=0xffff800020e19000, vmspace=0xfffffd807efff170 estcpu=0, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 44663 498822 38973 0 7 0 syz-executor.1 20671 73616 94562 0 2 0 syz-executor.0 20671 488725 94562 0 2 0x4000000 syz-executor.0 87584 51844 0 0 3 0x14200 bored sosplice 38973 24523 58939 0 3 0x82 nanosleep syz-executor.1 94562 251101 58939 0 3 0x82 nanosleep syz-executor.0 58939 32335 67858 0 3 0x82 thrsleep syz-fuzzer 58939 12191 67858 0 3 0x4000082 nanosleep syz-fuzzer 58939 499509 67858 0 3 0x4000082 thrsleep syz-fuzzer 58939 119189 67858 0 3 0x4000082 thrsleep syz-fuzzer 58939 341217 67858 0 3 0x4000082 thrsleep syz-fuzzer 58939 22071 67858 0 3 0x4000082 thrsleep syz-fuzzer 58939 219464 67858 0 3 0x4000082 thrsleep syz-fuzzer 58939 149953 67858 0 3 0x4000082 kqread syz-fuzzer 67858 57158 33688 0 3 0x10008a pause ksh 33688 389758 7134 0 3 0x92 select sshd 47679 35258 1 0 3 0x100083 ttyin getty 7134 508193 1 0 3 0x80 select sshd 79829 253963 2325 74 3 0x100092 bpf pflogd 2325 100221 1 0 3 0x80 netio pflogd 67502 60296 29452 73 3 0x100090 kqread syslogd 29452 437814 1 0 3 0x100082 netio syslogd 85424 147774 1 77 3 0x100090 poll dhclient *47271 150229 1 0 7 0 dhclient 60705 80987 0 0 3 0x14200 bored smr 74687 464218 0 0 2 0x14200 zerothread 48933 341935 0 0 3 0x14200 aiodoned aiodoned 79123 174594 0 0 3 0x14200 syncer update 42372 244239 0 0 3 0x14200 cleaner cleaner 60072 27094 0 0 3 0x14200 reaper reaper 10409 301525 0 0 3 0x14200 pgdaemon pagedaemon 44686 343107 0 0 3 0x14200 bored crynlk 18344 506719 0 0 3 0x14200 bored crypto 82369 149210 0 0 3 0x40014200 acpi0 acpi0 87115 488974 0 0 3 0x40014200 idle1 95470 499587 0 0 3 0x14200 bored softnet 27603 325001 0 0 3 0x14200 bored systqmp 66880 282957 0 0 3 0x14200 bored systq 78001 307762 0 0 3 0x40014200 bored softclock 12973 504552 0 0 3 0x40014200 idle0 1 512390 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 47271 (dhclient) thread 0xffff800020ddcc38 (150229) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff828ecbf8) #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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9475 6399K 6728K 78643K 10621 0 pcb 13 8K 8K 78643K 27 0 rtable 99 3K 3K 78643K 211 0 ifaddr 47 10K 10K 78643K 58 0 counters 45 34K 34K 78643K 45 0 ioctlops 0 0K 4K 78643K 1475 0 iov 0 0K 12K 78643K 1 0 mount 1 1K 1K 78643K 1 0 vnodes 1223 77K 77K 78643K 1236 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 10 0K 0K 78643K 10 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 6 17K 25K 78643K 106 0 proc 60 63K 95K 78643K 439 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 29 1K 2K 78643K 39 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 43 201K 201K 78643K 43 0 exec 0 0K 1K 78643K 207 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 180 29K 29K 78643K 1236 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 4 0 NDP 7 0K 0K 78643K 12 0 temp 73 3852K 3916K 78643K 2174 0 kqueue 3 4K 4K 78643K 3 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 80 21 0 19 1 0 1 1 0 8 0 rtentry 112 49 0 8 2 0 2 2 0 8 0 unpcb 120 37 0 27 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 1021 0 1021 1 1 0 1 0 8 0 tcpcb 544 14 0 10 1 0 1 1 0 8 0 inpcb 296 81 0 74 2 0 2 2 0 8 1 nd6 48 7 0 3 1 0 1 1 0 8 0 pfosfp 40 847 0 423 5 0 5 5 0 8 0 pfosfpen 112 1429 0 714 21 0 21 21 0 8 0 pfstitem 24 14 0 2 1 0 1 1 0 8 0 pfstkey 112 14 0 2 1 0 1 1 0 8 0 pfstate 328 14 0 2 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 212 0 40 12 0 12 12 0 8 0 art_table 32 213 0 40 2 0 2 2 0 8 0 art_node 16 48 0 10 1 0 1 1 0 8 0 semapl 112 8 0 0 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 1503 0 97 88 0 88 88 0 8 0 ffsino 272 1503 0 97 95 1 94 94 0 8 0 nchpl 144 1813 0 204 60 0 60 60 0 8 0 uvmvnodes 72 1558 0 0 29 0 29 29 0 8 0 vnodes 208 1558 0 0 82 0 82 82 0 8 0 namei 1024 4768 0 4768 2 1 1 1 0 8 1 percpumem 16 33 0 0 1 0 1 1 0 8 0 vmpool 560 2 0 2 1 0 1 1 0 8 1 scxspl 192 5380 0 5380 8 7 1 7 0 8 1 plimitpl 152 15 0 7 1 0 1 1 0 8 0 sigapl 424 322 0 289 4 0 4 4 0 8 0 futexpl 56 544 0 544 1 0 1 1 0 8 1 knotepl 112 64 0 44 1 0 1 1 0 8 0 kqueuepl 144 12 0 10 1 0 1 1 0 8 0 pipepl 304 76 0 65 1 0 1 1 0 8 0 fdescpl 496 306 0 289 3 0 3 3 0 8 0 filepl 152 1402 0 1299 6 1 5 5 0 8 1 lockfpl 104 53 0 52 1 0 1 1 0 8 0 lockfspl 48 16 0 15 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 127 0 118 1 0 1 1 0 8 0 zombiepl 144 289 0 289 2 1 1 1 0 8 1 processpl 992 322 0 289 6 1 5 5 0 8 0 procpl 624 408 0 367 4 0 4 4 0 8 0 sosppl 128 1 0 1 1 0 1 1 0 8 1 sockpl 400 139 0 120 4 1 3 3 0 8 1 mcl64k 65536 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 220 0 0 27 0 27 27 0 8 0 mtagpl 96 5 0 0 1 0 1 1 0 8 0 mbufpl 256 245 0 0 15 0 15 15 0 8 0 bufpl 280 3388 0 126 233 0 233 233 0 8 0 anonpl 16 42671 0 25262 72 1 71 71 0 124 1 amapchunkpl 152 1520 0 1190 15 0 15 15 0 158 1 amappl16 192 1088 0 318 39 0 39 39 0 8 0 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 39 0 34 1 0 1 1 0 8 0 amappl13 168 34 0 29 1 0 1 1 0 8 0 amappl12 160 22 0 20 1 0 1 1 0 8 0 amappl11 152 90 0 73 1 0 1 1 0 8 0 amappl10 144 17 0 13 1 0 1 1 0 8 0 amappl9 136 362 0 361 1 0 1 1 0 8 0 amappl8 128 385 0 325 3 0 3 3 0 8 0 amappl7 120 124 0 111 1 0 1 1 0 8 0 amappl6 112 61 0 56 1 0 1 1 0 8 0 amappl5 104 156 0 140 1 0 1 1 0 8 0 amappl4 96 511 0 480 1 0 1 1 0 8 0 amappl3 88 122 0 113 1 0 1 1 0 8 0 amappl2 80 1217 0 1141 2 0 2 2 0 8 0 amappl1 72 16549 0 16098 23 12 11 18 0 8 1 amappl 80 706 0 619 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 308 0 291 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 308 0 291 1 0 1 1 0 8 0 vmmpekpl 168 6193 0 6156 2 0 2 2 0 8 0 vmmpepl 168 43516 0 41423 124 12 112 112 0 357 21 vmsppl 368 307 0 291 2 0 2 2 0 8 0 pdppl 4096 623 0 582 7 1 6 6 0 8 0 pvpl 32 146818 0 126183 170 0 170 170 0 265 3 pmappl 232 307 0 291 2 0 2 2 0 8 1 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 267 0 7 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff82713ff0) 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 __mp_lock(ffffffff828ec9f0) at __mp_lock+0x12e __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828ec9f0) at __mp_lock+0x12e sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:89 Xsoftclock() at Xsoftclock+0x1f __mp_lock(ffffffff828ec9f0) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828ec9f0) at __mp_lock+0x127 sys/kern/kern_lock.c:147 uvm_map_inentry(ffff800020e04128,ffff800020e041a0,a8cf2e1371a,ffffffff824258d0,ffffffff81ea68b0,d) at uvm_map_inentry+0xbe sys/uvm/uvm_map.c:1890 syscall(ffff8000230f11a0) at syscall+0x3dc mi_syscall sys/sys/syscall_mi.h:87 [inline] syscall(ffff8000230f11a0) at syscall+0x3dc sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff7400, count: 5 ddb{0}> trace x86_ipi_db(ffffffff82713ff0) 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 __mp_lock(ffffffff828ec9f0) at __mp_lock+0x12e __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828ec9f0) at __mp_lock+0x12e sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:89 Xsoftclock() at Xsoftclock+0x1f __mp_lock(ffffffff828ec9f0) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828ec9f0) at __mp_lock+0x127 sys/kern/kern_lock.c:147 uvm_map_inentry(ffff800020e04128,ffff800020e041a0,a8cf2e1371a,ffffffff824258d0,ffffffff81ea68b0,d) at uvm_map_inentry+0xbe sys/uvm/uvm_map.c:1890 syscall(ffff8000230f11a0) at syscall+0x3dc mi_syscall sys/sys/syscall_mi.h:87 [inline] syscall(ffff8000230f11a0) at syscall+0x3dc sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff7400, count: -10 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(ffffffff823f7a6d) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f661190,0,ffff800020e1eb88,0,0,ffff800020e1ea94) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd8077bf32f8,ffff800020e1eb88,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcc38,6,ffff800020e1eb88,0,ffff800020e1ec70) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcc38,ffff800020e1ec20,ffff800020e1ec70) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1ecf0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1ecf0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcb6b0, count: 7 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f7a6d) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f661190,0,ffff800020e1eb88,0,0,ffff800020e1ea94) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd8077bf32f8,ffff800020e1eb88,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcc38,6,ffff800020e1eb88,0,ffff800020e1ec70) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcc38,ffff800020e1ec20,ffff800020e1ec70) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1ecf0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1ecf0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcb6b0, count: -8