panic: sbdrop Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 483412 85954 0 0x2 0x4000000 1 syz-fuzzer *175383 63403 0 0x14000 0x200 0 softnet db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82432ea8) at panic+0x164 sys/kern/subr_prf.c:218 sbdrop(fffffd806eaebaf8,fffffd806eaebbf0,470) at sbdrop+0x3c6 sys/kern/uipc_socket2.c:953 tcp_input(ffff800020da9868,ffff800020da9874,6,2) at tcp_input+0x3d94 sys/netinet/tcp_input.c:1725 ip_deliver(ffff800020da9868,ffff800020da9874,6,2) at ip_deliver+0x353 sys/netinet/ip_input.c:668 ip_ours(ffff800020da9868,ffff800020da9874,0,0) at ip_ours+0x412 ip_input_if(ffff800020da9868,ffff800020da9874,4,0,ffff80000017c2a8) at ip_input_if+0x6ce ipv4_input(ffff80000017c2a8,fffffd8067839800) at ipv4_input+0x48 sys/netinet/ip_input.c:215 if_input_process(ffff80000017c2a8,ffff800020da9908) at if_input_process+0xda sys/net/if.c:832 ifiq_process(ffff80000017c6a8) at ifiq_process+0x80 sys/net/ifq.c:768 taskq_thread(ffff80000002c000) at taskq_thread+0xec sys/kern/kern_task.c:437 end trace frame: 0x0, count: 4 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 sbdrop ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82432ea8) at panic+0x164 sys/kern/subr_prf.c:218 sbdrop(fffffd806eaebaf8,fffffd806eaebbf0,470) at sbdrop+0x3c6 sys/kern/uipc_socket2.c:953 tcp_input(ffff800020da9868,ffff800020da9874,6,2) at tcp_input+0x3d94 sys/netinet/tcp_input.c:1725 ip_deliver(ffff800020da9868,ffff800020da9874,6,2) at ip_deliver+0x353 sys/netinet/ip_input.c:668 ip_ours(ffff800020da9868,ffff800020da9874,0,0) at ip_ours+0x412 ip_input_if(ffff800020da9868,ffff800020da9874,4,0,ffff80000017c2a8) at ip_input_if+0x6ce ipv4_input(ffff80000017c2a8,fffffd8067839800) at ipv4_input+0x48 sys/netinet/ip_input.c:215 if_input_process(ffff80000017c2a8,ffff800020da9908) at if_input_process+0xda sys/net/if.c:832 ifiq_process(ffff80000017c6a8) at ifiq_process+0x80 sys/net/ifq.c:768 taskq_thread(ffff80000002c000) at taskq_thread+0xec sys/kern/kern_task.c:437 end trace frame: 0x0, count: -11 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020da93f0 rbx 0xffff800020da94a0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffff800020da93b0 r9 0xffffffff81379bbf kprintf+0x16f r10 0x1 r11 0xc912f52591767a9f r12 0x3000000008 r13 0xffff800020da9400 r14 0x100 r15 0x1 rip 0xffffffff81f0e6b8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020da93e0 ss 0 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (softnet) pid=175383 stat=onproc flags process=14000 proc=200 pri=32, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020d89110,0xffff800020d88280 process=0xffff800020d8aba0 user=0xffff800020da4000, vmspace=0xffffffff828fe970 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 97335 107700 0 0 3 0x14280 nfsidl nfsio 91886 110262 0 0 3 0x14280 nfsidl nfsio 77625 237091 0 0 3 0x14280 nfsidl nfsio 22401 214959 0 0 3 0x14280 nfsidl nfsio 38639 114936 0 0 3 0x14280 nfsidl nfsio 34816 490826 0 0 3 0x14280 nfsidl nfsio 28967 99917 0 0 3 0x14280 nfsidl nfsio 36584 426366 0 0 3 0x14280 nfsidl nfsio 79547 502395 0 0 3 0x14280 nfsidl nfsio 11461 312007 0 0 3 0x14280 nfsidl nfsio 6674 309486 0 0 3 0x14280 nfsidl nfsio 71232 315596 0 0 3 0x14280 nfsidl nfsio 25662 68856 0 0 3 0x14280 nfsidl nfsio 9223 473779 0 0 3 0x14280 nfsidl nfsio 48991 33846 0 0 3 0x14280 nfsidl nfsio 87365 248229 0 0 3 0x14280 nfsidl nfsio 53078 408032 0 0 3 0x14280 nfsidl nfsio 31260 188018 0 0 3 0x14280 nfsidl nfsio 71669 182864 0 0 3 0x14280 nfsidl nfsio 16953 384564 0 0 3 0x14280 nfsidl nfsio 15269 245073 0 0 3 0x14200 bored sosplice 96549 521222 85954 0 3 0x82 piperd syz-executor.1 95791 372385 85954 0 3 0x82 nanosleep syz-executor.0 85954 210909 96270 0 3 0x82 thrsleep syz-fuzzer 85954 337580 96270 0 3 0x4000082 nanosleep syz-fuzzer 85954 279744 96270 0 3 0x4000082 thrsleep syz-fuzzer 85954 270273 96270 0 3 0x4000082 kqread syz-fuzzer 85954 321959 96270 0 3 0x4000082 thrsleep syz-fuzzer 85954 449466 96270 0 3 0x4000082 thrsleep syz-fuzzer 85954 483412 96270 0 7 0x4000002 syz-fuzzer 85954 508425 96270 0 3 0x4000082 thrsleep syz-fuzzer 96270 58739 57386 0 3 0x10008a pause ksh 57386 36382 74406 0 3 0x92 select sshd 84916 20248 1 0 3 0x100083 ttyin getty 74406 381116 1 0 3 0x80 select sshd 48797 312265 44138 74 3 0x100092 bpf pflogd 44138 135867 1 0 3 0x80 netio pflogd 68997 385584 53333 73 3 0x100090 kqread syslogd 53333 195414 1 0 3 0x100082 netio syslogd 23676 370546 1 77 3 0x100090 poll dhclient 10651 322709 1 0 3 0x80 poll dhclient 79911 492329 0 0 3 0x14200 bored smr 45009 447087 0 0 3 0x14200 pgzero zerothread 16336 23123 0 0 3 0x14200 aiodoned aiodoned 93402 37289 0 0 3 0x14200 syncer update 39489 116108 0 0 3 0x14200 cleaner cleaner 99446 103613 0 0 3 0x14200 reaper reaper 85935 75991 0 0 3 0x14200 pgdaemon pagedaemon 72391 271633 0 0 3 0x14200 bored crynlk 74043 405852 0 0 3 0x14200 bored crypto 49861 193827 0 0 3 0x40014200 acpi0 acpi0 70103 213602 0 0 3 0x40014200 idle1 *63403 175383 0 0 7 0x14200 softnet 53469 51326 0 0 3 0x14200 bored systqmp 93587 218155 0 0 3 0x14200 bored systq 29126 433445 0 0 3 0x40014200 bored softclock 10397 195820 0 0 3 0x40014200 idle0 1 500569 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 63403 (softnet) thread 0xffff800020d88c30 (175383) exclusive rwlock netlock r = 0 (0xffffffff82716f68) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 if_input_process+0xa1 sys/net/if.c:832 #2 ifiq_process+0x80 sys/net/ifq.c:768 #3 taskq_thread+0xec sys/kern/kern_task.c:437 #4 proc_trampoline+0x1c shared rwlock softnet r = 0 (0xffff80000002c070) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 taskq_thread+0xdf sys/kern/kern_task.c:436 #2 proc_trampoline+0x1c ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9515 6422K 7709K 78643K 12953 0 pcb 13 8K 8K 78643K 53 0 rtable 134 9K 10K 78643K 487 0 ifaddr 82 16K 17K 78643K 182 0 sysctl 2 0K 0K 78643K 2 0 counters 43 33K 34K 78643K 63 0 ioctlops 0 0K 4K 78643K 1593 0 iov 0 0K 16K 78643K 37 0 mount 1 1K 1K 78643K 1 0 vnodes 1227 77K 77K 78643K 1814 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 17 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 45 0 dirhash 9 1K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 4 9K 25K 78643K 612 0 sigio 0 0K 0K 78643K 20 0 proc 63 63K 83K 78643K 532 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 30 0 in_multi 54 2K 3K 78643K 137 0 ether_multi 1 0K 0K 78643K 7 0 mrt 1 0K 0K 78643K 5 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 249 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 165 75K 79K 78643K 2825 0 UVM aobj 24 6K 6K 78643K 45 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 1K 78643K 49 0 NDP 12 0K 0K 78643K 33 0 temp 132 3864K 3928K 78643K 4163 0 kqueue 3 4K 9K 78643K 18 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 0 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 43 0 41 1 0 1 1 0 8 0 rtentry 112 72 0 27 2 0 2 2 0 8 0 unpcb 120 267 0 257 1 0 1 1 0 8 0 syncache 264 7 0 7 3 3 0 1 0 8 0 tcpqe 32 21 0 21 2 2 0 1 0 8 0 tcpcb 544 300 0 295 5 3 2 2 0 8 1 inpcb 296 722 0 714 4 2 2 2 0 8 1 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 24 0 18 1 0 1 1 0 8 0 pkpcb 40 8 0 8 2 1 1 1 0 8 1 ppxss 1136 1 0 1 1 1 0 1 0 8 0 pfstscr 40 4 0 4 1 0 1 1 0 8 1 pffrag 232 2 0 1 1 0 1 1 0 482 0 pffrnode 88 2 0 1 1 0 1 1 0 8 0 pffrent 40 5 0 4 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 pfrktable 1344 58 0 48 3 2 1 2 0 8 0 pfstitem 24 29 0 25 1 0 1 1 0 8 0 pfstkey 112 31 0 27 1 0 1 1 0 8 0 pfstate 328 29 0 25 3 0 3 3 0 8 1 pfrule 1360 43 0 33 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 233 0 40 14 1 13 13 0 8 0 art_table 32 234 0 40 2 0 2 2 0 8 0 art_node 16 71 0 30 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 0 1 0 1 1 0 8 0 semupl 112 5 0 5 1 1 0 1 0 8 0 semapl 112 37 0 27 1 0 1 1 0 8 0 shmpl 112 42 0 21 1 0 1 1 0 8 0 dirhash 1024 17 0 10 3 1 2 3 0 8 0 dino2pl 256 2185 0 786 88 0 88 88 0 8 0 ffsino 272 2185 0 786 94 0 94 94 0 8 0 nchpl 144 3411 0 1805 60 0 60 60 0 8 0 uvmvnodes 72 2743 0 0 50 0 50 50 0 8 0 vnodes 208 2743 0 0 145 0 145 145 0 8 0 namei 1024 9445 0 9445 2 1 1 1 0 8 1 percpumem 16 42 0 10 1 0 1 1 0 8 0 vcpupl 1984 18 0 1 3 0 3 3 0 8 0 vmpool 560 20 0 3 2 0 2 2 0 8 0 pfiaddrpl 120 21 0 14 1 0 1 1 0 8 0 scsiplug 64 2 0 2 1 1 0 1 0 8 0 scxspl 192 9057 0 9057 9 8 1 7 0 8 1 plimitpl 152 57 0 49 1 0 1 1 0 8 0 sigapl 424 848 0 797 6 0 6 6 0 8 0 futexpl 56 9819 0 9819 2 1 1 1 0 8 1 knotepl 112 80 0 60 1 0 1 1 0 8 0 kqueuepl 144 51 0 49 1 0 1 1 0 8 0 pipepl 304 166 0 155 6 4 2 2 0 8 1 fdescpl 496 812 0 797 3 0 3 3 0 8 0 filepl 152 4876 0 4774 6 1 5 5 0 8 1 lockfpl 104 773 0 772 1 0 1 1 0 8 0 lockfspl 48 364 0 363 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 26 0 15 1 0 1 1 0 8 0 ucredpl 96 476 0 467 1 0 1 1 0 8 0 zombiepl 144 797 0 796 2 1 1 1 0 8 0 processpl 992 848 0 796 8 1 7 7 0 8 0 procpl 624 2005 0 1946 5 0 5 5 0 8 0 sosppl 128 4 0 4 1 1 0 1 0 8 0 sockpl 400 1046 0 1026 7 3 4 4 0 8 1 mcl64k 65536 520 0 0 65 0 65 65 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 12 0 0 2 0 2 2 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 233 0 0 29 0 29 29 0 8 0 mtagpl 96 253 0 0 7 0 7 7 0 8 0 mbufpl 256 1113 0 0 68 0 68 68 0 8 0 bufpl 280 4015 0 127 278 0 278 278 0 8 0 anonpl 16 88899 0 70834 100 10 90 90 0 124 17 amapchunkpl 152 4723 0 4428 27 1 26 26 0 158 10 amappl16 192 3607 0 2771 54 0 54 54 0 8 12 amappl15 184 6 0 4 2 1 1 1 0 8 0 amappl14 176 6 0 2 1 0 1 1 0 8 0 amappl13 168 28 0 25 1 0 1 1 0 8 0 amappl12 160 22 0 19 1 0 1 1 0 8 0 amappl11 152 52 0 37 1 0 1 1 0 8 0 amappl10 144 16 0 14 1 0 1 1 0 8 0 amappl9 136 948 0 945 1 0 1 1 0 8 0 amappl8 128 350 0 311 2 0 2 2 0 8 0 amappl7 120 116 0 104 1 0 1 1 0 8 0 amappl6 112 37 0 28 1 0 1 1 0 8 0 amappl5 104 712 0 697 1 0 1 1 0 8 0 amappl4 96 488 0 459 1 0 1 1 0 8 0 amappl3 88 134 0 124 1 0 1 1 0 8 0 amappl2 80 5621 0 5561 2 0 2 2 0 8 0 amappl1 72 32522 0 32095 23 13 10 18 0 8 0 amappl 80 2292 0 2209 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 44 0 21 1 0 1 1 0 8 0 uaddrrnd 24 832 0 800 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 832 0 800 1 0 1 1 0 8 0 vmmpekpl 168 9759 0 9718 2 0 2 2 0 8 0 vmmpepl 168 109064 0 107103 137 35 102 114 0 357 12 vmsppl 368 831 0 800 3 0 3 3 0 8 0 pdppl 4096 1671 0 1617 8 0 8 8 0 8 0 pvpl 32 288960 0 267739 228 18 210 210 0 265 38 pmappl 232 831 0 800 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 400 0 12 12 0 12 12 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(ffffffff82432ea8) at panic+0x164 sys/kern/subr_prf.c:218 sbdrop(fffffd806eaebaf8,fffffd806eaebbf0,470) at sbdrop+0x3c6 sys/kern/uipc_socket2.c:953 tcp_input(ffff800020da9868,ffff800020da9874,6,2) at tcp_input+0x3d94 sys/netinet/tcp_input.c:1725 ip_deliver(ffff800020da9868,ffff800020da9874,6,2) at ip_deliver+0x353 sys/netinet/ip_input.c:668 ip_ours(ffff800020da9868,ffff800020da9874,0,0) at ip_ours+0x412 ip_input_if(ffff800020da9868,ffff800020da9874,4,0,ffff80000017c2a8) at ip_input_if+0x6ce ipv4_input(ffff80000017c2a8,fffffd8067839800) at ipv4_input+0x48 sys/netinet/ip_input.c:215 if_input_process(ffff80000017c2a8,ffff800020da9908) at if_input_process+0xda sys/net/if.c:832 ifiq_process(ffff80000017c6a8) at ifiq_process+0x80 sys/net/ifq.c:768 taskq_thread(ffff80000002c000) at taskq_thread+0xec sys/kern/kern_task.c:437 end trace frame: 0x0, count: -11 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 end of kernel end trace frame: 0xc001152800, count: 12 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 end of kernel end trace frame: 0xc001152800, count: -3