panic: receive 1a: so 0xfffffd806f680320, so_type 3, m 0xfffffd806aadd400, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 1334 8826 0 0 0 0 syz-executor.1 *158492 20537 0 0 0 1K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e977b) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f680320,0,ffff800020e1e998,0,0,ffff800020e1e8a4) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd80753f6260,ffff800020e1e998,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcc38,6,ffff800020e1e998,0,ffff800020e1ea80) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcc38,ffff800020e1ea30,ffff800020e1ea80) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1eb00) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1eb00) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc1cc0, 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 0xfffffd806f680320, so_type 3, m 0xfffffd806aadd400, m_type 0 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e977b) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f680320,0,ffff800020e1e998,0,0,ffff800020e1e8a4) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd80753f6260,ffff800020e1e998,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcc38,6,ffff800020e1e998,0,ffff800020e1ea80) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcc38,ffff800020e1ea30,ffff800020e1ea80) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1eb00) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1eb00) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc1cc0, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1e6e0 rbx 0xffff800020e1e790 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff812cad1f kprintf+0x16f r9 0x1 r10 0x2 r11 0x32f16c6b8906b45a r12 0x3000000008 r13 0xffff800020e1e6f0 r14 0x100 r15 0x1 rip 0xffffffff81ae9b98 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1e6d0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (dhclient) pid=158492 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddc008,0xffff800020ddceb8 process=0xffff800020df0010 user=0xffff800020e19000, vmspace=0xfffffd807efff170 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 67740 133906 72585 0 2 0 syz-executor.0 67740 113482 72585 0 3 0x4000080 fsleep syz-executor.0 8826 1334 92968 0 7 0 syz-executor.1 8826 127303 92968 0 3 0x4000080 ttyin syz-executor.1 92968 230174 37674 0 3 0x82 nanosleep syz-executor.1 72585 71760 37674 0 3 0x82 nanosleep syz-executor.0 37674 28892 71508 0 3 0x82 thrsleep syz-fuzzer 37674 125023 71508 0 3 0x4000082 thrsleep syz-fuzzer 37674 354020 71508 0 3 0x4000082 thrsleep syz-fuzzer 37674 270104 71508 0 3 0x4000082 thrsleep syz-fuzzer 37674 234108 71508 0 3 0x4000082 thrsleep syz-fuzzer 37674 477582 71508 0 3 0x4000082 thrsleep syz-fuzzer 37674 383121 71508 0 3 0x4000082 thrsleep syz-fuzzer 37674 266722 71508 0 3 0x4000082 thrsleep syz-fuzzer 37674 17981 71508 0 3 0x4000082 thrsleep syz-fuzzer 37674 395284 71508 0 3 0x4000082 kqread syz-fuzzer 71508 38049 8067 0 3 0x10008a pause ksh 8067 359145 26663 0 3 0x92 select sshd 40616 169672 1 0 3 0x100083 ttyin getty 26663 391186 1 0 3 0x80 select sshd 25120 275121 55006 74 3 0x100092 bpf pflogd 55006 188986 1 0 3 0x80 netio pflogd 48982 178803 25452 73 3 0x100090 kqread syslogd 25452 92529 1 0 3 0x100082 netio syslogd 90176 219903 1 77 3 0x100090 poll dhclient *20537 158492 1 0 7 0 dhclient 14323 316376 0 0 3 0x14200 bored smr 55933 464593 0 0 2 0x14200 zerothread 32158 144016 0 0 3 0x14200 aiodoned aiodoned 78817 158040 0 0 3 0x14200 syncer update 9670 404198 0 0 3 0x14200 cleaner cleaner 66944 487168 0 0 3 0x14200 reaper reaper 89962 212212 0 0 3 0x14200 pgdaemon pagedaemon 10386 486844 0 0 3 0x14200 bored crynlk 85478 314377 0 0 3 0x14200 bored crypto 85751 115116 0 0 3 0x40014200 acpi0 acpi0 87510 453075 0 0 3 0x40014200 idle1 46996 492673 0 0 3 0x14200 bored softnet 41935 131421 0 0 3 0x14200 bored systqmp 423 190111 0 0 3 0x14200 bored systq 28381 470710 0 0 3 0x40014200 bored softclock 34934 339472 0 0 3 0x40014200 idle0 1 31815 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 20537 (dhclient) thread 0xffff800020ddcc38 (158492) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff829062a8) #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 9485 6402K 6528K 78643K 10607 0 pcb 13 8K 8K 78643K 23 0 rtable 105 3K 3K 78643K 202 0 ifaddr 49 11K 11K 78643K 52 0 counters 43 33K 33K 78643K 43 0 ioctlops 0 0K 4K 78643K 1474 0 iov 0 0K 12K 78643K 6 0 mount 1 1K 1K 78643K 1 0 vnodes 1220 77K 77K 78643K 1234 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 3 0 VM map 2 1K 1K 78643K 2 0 sem 2 0K 0K 78643K 2 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 6 17K 25K 78643K 50 0 proc 59 63K 95K 78643K 438 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 2 0 in_multi 33 2K 2K 78643K 36 0 ether_multi 1 0K 0K 78643K 2 0 mrt 0 0K 0K 78643K 2 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 55 254K 254K 78643K 55 0 exec 0 0K 1K 78643K 209 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 111 22K 36K 78643K 1068 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 11 0 temp 73 3860K 3923K 78643K 2053 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 19 0 17 1 0 1 1 0 8 0 rtentry 112 45 0 1 2 0 2 2 0 8 0 unpcb 120 27 0 17 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 499 0 499 1 1 0 1 0 8 0 tcpcb 544 14 0 10 1 0 1 1 0 8 0 inpcb 296 57 0 50 2 0 2 2 0 8 1 nd6 48 6 0 0 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 13 0 3 1 0 1 1 0 8 0 pfstkey 112 13 0 3 1 0 1 1 0 8 0 pfstate 328 13 0 3 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 189 0 0 12 0 12 12 0 8 0 art_table 32 190 0 0 2 0 2 2 0 8 0 art_node 16 44 0 4 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 1452 0 45 89 0 89 89 0 8 1 ffsino 272 1452 0 45 94 0 94 94 0 8 0 nchpl 144 1700 0 88 60 0 60 60 0 8 0 uvmvnodes 72 1502 0 0 28 0 28 28 0 8 0 vnodes 208 1502 0 0 80 0 80 80 0 8 0 namei 1024 4518 0 4518 1 0 1 1 0 8 1 percpumem 16 32 0 0 1 0 1 1 0 8 0 scxspl 192 5256 0 5256 8 5 3 7 0 8 3 plimitpl 152 17 0 9 1 0 1 1 0 8 0 sigapl 424 265 0 233 4 0 4 4 0 8 0 futexpl 56 316 0 315 1 0 1 1 0 8 0 knotepl 112 63 0 44 1 0 1 1 0 8 0 kqueuepl 144 16 0 14 1 0 1 1 0 8 0 pipepl 304 81 0 71 2 0 2 2 0 8 1 fdescpl 496 250 0 233 3 0 3 3 0 8 0 filepl 152 1304 0 1200 5 0 5 5 0 8 0 lockfpl 104 19 0 18 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 113 0 104 1 0 1 1 0 8 0 zombiepl 144 233 0 233 1 0 1 1 0 8 1 processpl 992 265 0 233 5 0 5 5 0 8 1 procpl 624 310 0 267 4 0 4 4 0 8 0 sockpl 400 103 0 84 3 0 3 3 0 8 1 mcl8k 8192 1 0 0 1 0 1 1 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 191 0 0 23 0 23 23 0 8 0 mtagpl 96 4 0 0 1 0 1 1 0 8 0 mbufpl 256 211 0 0 13 0 13 13 0 8 0 bufpl 280 3509 0 133 242 0 242 242 0 8 0 anonpl 16 38776 0 24637 59 1 58 58 0 124 0 amapchunkpl 152 1288 0 1133 14 1 13 13 0 158 5 amappl16 192 962 0 205 39 0 39 39 0 8 0 amappl15 184 12 0 8 1 0 1 1 0 8 0 amappl14 176 31 0 26 1 0 1 1 0 8 0 amappl13 168 30 0 27 1 0 1 1 0 8 0 amappl12 160 9 0 9 1 1 0 1 0 8 0 amappl11 152 57 0 42 1 0 1 1 0 8 0 amappl10 144 28 0 21 1 0 1 1 0 8 0 amappl9 136 393 0 389 1 0 1 1 0 8 0 amappl8 128 376 0 341 2 0 2 2 0 8 0 amappl7 120 119 0 106 1 0 1 1 0 8 0 amappl6 112 22 0 20 1 0 1 1 0 8 0 amappl5 104 148 0 131 1 0 1 1 0 8 0 amappl4 96 481 0 455 1 0 1 1 0 8 0 amappl3 88 98 0 93 1 0 1 1 0 8 0 amappl2 80 1020 0 936 2 0 2 2 0 8 0 amappl1 72 15832 0 15374 23 13 10 18 0 8 0 amappl 80 562 0 516 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 250 0 233 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 250 0 233 1 0 1 1 0 8 0 vmmpekpl 168 6094 0 6062 2 0 2 2 0 8 0 vmmpepl 168 37950 0 35931 113 14 99 108 0 357 11 vmsppl 368 249 0 233 2 0 2 2 0 8 0 pdppl 4096 507 0 466 7 1 6 6 0 8 0 pvpl 32 137106 0 119750 147 0 147 147 0 265 4 pmappl 232 249 0 233 2 1 1 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 259 0 4 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff826f9ff0) 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(ffffffff829060a0) at __mp_lock+0x12e __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff829060a0) 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 pvclock_get_timecount(ffffffff82762bc8) at pvclock_get_timecount+0x8e rdtsc machine/cpufunc.h:291 [inline] pvclock_get_timecount(ffffffff82762bc8) at pvclock_get_timecount+0x8e sys/dev/pv/pvclock.c:227 nanouptime(ffff800020ecd708) at nanouptime+0x67 tc_delta sys/kern/kern_tc.c:138 [inline] nanouptime(ffff800020ecd708) at nanouptime+0x67 binuptime sys/kern/kern_tc.c:192 [inline] nanouptime(ffff800020ecd708) at nanouptime+0x67 sys/kern/kern_tc.c:202 clock_gettime(ffff800020e0a398,3,ffff800020ecd708) at clock_gettime+0x88 sys/kern/kern_time.c:123 sys_clock_gettime(ffff800020e0a398,ffff800020ecd770,ffff800020ecd7c0) at sys_clock_gettime+0x4c sys/kern/kern_time.c:165 syscall(ffff800020ecd840) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020ecd840) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd8dd0, count: 3 ddb{0}> trace x86_ipi_db(ffffffff826f9ff0) 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(ffffffff829060a0) at __mp_lock+0x12e __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff829060a0) 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 pvclock_get_timecount(ffffffff82762bc8) at pvclock_get_timecount+0x8e rdtsc machine/cpufunc.h:291 [inline] pvclock_get_timecount(ffffffff82762bc8) at pvclock_get_timecount+0x8e sys/dev/pv/pvclock.c:227 nanouptime(ffff800020ecd708) at nanouptime+0x67 tc_delta sys/kern/kern_tc.c:138 [inline] nanouptime(ffff800020ecd708) at nanouptime+0x67 binuptime sys/kern/kern_tc.c:192 [inline] nanouptime(ffff800020ecd708) at nanouptime+0x67 sys/kern/kern_tc.c:202 clock_gettime(ffff800020e0a398,3,ffff800020ecd708) at clock_gettime+0x88 sys/kern/kern_time.c:123 sys_clock_gettime(ffff800020e0a398,ffff800020ecd770,ffff800020ecd7c0) at sys_clock_gettime+0x4c sys/kern/kern_time.c:165 syscall(ffff800020ecd840) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020ecd840) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd8dd0, count: -12 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(ffffffff823e977b) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f680320,0,ffff800020e1e998,0,0,ffff800020e1e8a4) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd80753f6260,ffff800020e1e998,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcc38,6,ffff800020e1e998,0,ffff800020e1ea80) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcc38,ffff800020e1ea30,ffff800020e1ea80) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1eb00) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1eb00) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc1cc0, count: 7 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e977b) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f680320,0,ffff800020e1e998,0,0,ffff800020e1e8a4) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd80753f6260,ffff800020e1e998,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcc38,6,ffff800020e1e998,0,ffff800020e1ea80) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcc38,ffff800020e1ea30,ffff800020e1ea80) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1eb00) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1eb00) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc1cc0, count: -8