panic: m_copydata: null mbuf Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 94251 38069 0 0x14000 0x40000200 0 softclock db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8224b408) at panic+0x15c sys/kern/subr_prf.c:207 m_copydata(fffffd8052715400,0,1,fffffd8052c935e4) at m_copydata+0x17e m_getptr sys/kern/uipc_mbuf.c:1031 [inline] m_copydata(fffffd8052715400,0,1,fffffd8052c935e4) at m_copydata+0x17e sys/kern/uipc_mbuf.c:722 tcp_output(ffff8000009f0000) at tcp_output+0x158e sys/netinet/tcp_output.c:671 tcp_timer_persist(ffff8000009f0000) at tcp_timer_persist+0x1a6 sys/netinet/tcp_timer.c:431 softclock_thread(ffff80001d2e2380) at softclock_thread+0x155 timeout_run sys/kern/kern_timeout.c:491 [inline] softclock_thread(ffff80001d2e2380) at softclock_thread+0x155 sys/kern/kern_timeout.c:579 end trace frame: 0x0, count: 9 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic m_copydata: null mbuf ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8224b408) at panic+0x15c sys/kern/subr_prf.c:207 m_copydata(fffffd8052715400,0,1,fffffd8052c935e4) at m_copydata+0x17e m_getptr sys/kern/uipc_mbuf.c:1031 [inline] m_copydata(fffffd8052715400,0,1,fffffd8052c935e4) at m_copydata+0x17e sys/kern/uipc_mbuf.c:722 tcp_output(ffff8000009f0000) at tcp_output+0x158e sys/netinet/tcp_output.c:671 tcp_timer_persist(ffff8000009f0000) at tcp_timer_persist+0x1a6 sys/netinet/tcp_timer.c:431 softclock_thread(ffff80001d2e2380) at softclock_thread+0x155 timeout_run sys/kern/kern_timeout.c:491 [inline] softclock_thread(ffff80001d2e2380) at softclock_thread+0x155 sys/kern/kern_timeout.c:579 end trace frame: 0x0, count: -6 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d2f6310 rbx 0xffff80001d2f63c0 rdx 0x2 rcx 0 rax 0 r8 0xffff80001d2f62d0 r9 0x1 r10 0 r11 0x57f1baade434e00f r12 0x3000000008 r13 0xffff80001d2f6320 r14 0x100 r15 0x1 rip 0xffffffff815a4228 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d2f6300 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (softclock) pid=94251 stat=onproc flags process=14000 proc=40000200 pri=0, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d2e25f0,0xffff80001d2e2120 process=0xffff8000ffffe000 user=0xffff80001d2f1000, vmspace=0xffffffff8256ba60 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 91910 8917 75118 0 3 0x80 nanosleep syz-executor.1 91910 290697 75118 0 3 0x4000080 nanosleep syz-executor.1 91910 188926 75118 0 3 0x4000080 fsleep syz-executor.1 75118 411195 62835 0 3 0x82 nanosleep syz-executor.1 47791 94122 62835 0 3 0x82 piperd syz-executor.0 62835 150727 78938 0 3 0x82 thrsleep syz-fuzzer 62835 129930 78938 0 3 0x4000082 thrsleep syz-fuzzer 62835 79262 78938 0 3 0x4000082 kqread syz-fuzzer 62835 71611 78938 0 3 0x4000082 thrsleep syz-fuzzer 62835 27746 78938 0 3 0x4000082 thrsleep syz-fuzzer 62835 271241 78938 0 3 0x4000082 thrsleep syz-fuzzer 62835 438332 78938 0 3 0x4000082 thrsleep syz-fuzzer 78938 364395 68286 0 3 0x10008a pause ksh 68286 357572 37322 0 3 0x92 select sshd 38886 493209 1 0 3 0x100083 ttyin getty 37322 148594 1 0 3 0x80 select sshd 55780 198422 42906 73 3 0x100090 kqread syslogd 42906 179360 1 0 3 0x100082 netio syslogd 77930 262145 1 77 3 0x100090 poll dhclient 45199 201889 1 0 3 0x80 poll dhclient 26134 464745 0 0 3 0x14200 bored smr 16779 376049 0 0 3 0x14200 pgzero zerothread 84515 489474 0 0 3 0x14200 aiodoned aiodoned 33465 361611 0 0 3 0x14200 syncer update 80409 417213 0 0 3 0x14200 cleaner cleaner 87918 324638 0 0 3 0x14200 reaper reaper 52091 300368 0 0 3 0x14200 pgdaemon pagedaemon 79127 470308 0 0 3 0x14200 bored crynlk 76727 446608 0 0 3 0x14200 bored crypto 35808 344431 0 0 3 0x40014200 acpi0 acpi0 27825 26414 0 0 3 0x14200 bored softnet 12034 110818 0 0 3 0x14200 bored systqmp 33908 194437 0 0 3 0x14200 bored systq *38069 94251 0 0 7 0x40014200 softclock 87065 73877 0 0 3 0x40014200 idle0 1 190354 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9514 6419K 7245K 78643K 11831 0 pcb 13 8K 8K 78643K 74 0 rtable 100 3K 4K 78643K 311 0 ifaddr 77 14K 14K 78643K 131 0 counters 21 16K 17K 78643K 29 0 ioctlops 0 0K 2K 78643K 37 0 iov 0 0K 28K 78643K 280 0 mount 1 1K 1K 78643K 1 0 vnodes 1225 77K 77K 78643K 1547 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 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 38 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1794 195K 288K 78643K 12646 0 file desc 5 13K 25K 78643K 277 0 sigio 0 0K 0K 78643K 8 0 proc 52 38K 63K 78643K 371 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 46 0 in_multi 45 2K 2K 78643K 84 0 ether_multi 1 0K 0K 78643K 9 0 mrt 1 0K 0K 78643K 4 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 208 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 106 54K 54K 78643K 1499 0 UVM aobj 20 2K 2K 78643K 22 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 42 0 NDP 13 0K 0K 78643K 27 0 temp 135 3022K 3095K 78643K 21145 0 kqueue 3 4K 12K 78643K 26 0 SYN cache 2 16K 16K 78643K 2 0 ddb> 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 rtpcb 80 63 0 61 1 0 1 1 0 8 0 rtentry 112 56 0 16 2 0 2 2 0 8 0 unpcb 120 227 0 219 1 0 1 1 0 8 0 syncache 264 6 0 6 2 1 1 1 0 8 1 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 74 0 74 2 1 1 1 0 8 1 tcpcb 544 148 0 142 1 0 1 1 0 8 0 ipq 40 9 0 9 2 1 1 1 0 8 1 ipqe 40 66 0 66 2 1 1 1 0 8 1 inpcb 280 408 0 399 3 2 1 2 0 8 0 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 9 0 6 1 0 1 1 0 8 0 pkpcb 40 4 0 4 1 0 1 1 0 8 1 ppxss 1128 1 0 1 1 1 0 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 257 0 80 13 0 13 13 0 8 0 art_table 32 259 0 80 2 0 2 2 0 8 0 art_node 16 55 0 17 1 0 1 1 0 8 0 sysvmsgpl 40 34 0 16 1 0 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 36 0 26 1 0 1 1 0 8 0 shmpl 112 20 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1817 0 421 46 0 46 46 0 8 0 ffsino 240 1817 0 421 83 0 83 83 0 8 0 nchpl 144 2498 0 888 60 0 60 60 0 8 0 uvmvnodes 72 2125 0 0 39 0 39 39 0 8 0 vnodes 208 2125 0 0 112 0 112 112 0 8 0 namei 1024 6917 0 6917 1 0 1 1 0 8 1 vcpupl 1984 3 0 0 1 0 1 1 0 8 0 vmpool 528 3 0 0 1 0 1 1 0 8 0 scxspl 192 7172 0 7172 1 0 1 1 0 8 1 plimitpl 152 41 0 34 1 0 1 1 0 8 0 sigapl 424 463 0 435 4 0 4 4 0 8 0 futexpl 56 8058 0 8057 1 0 1 1 0 8 0 knotepl 112 79 0 60 1 0 1 1 0 8 0 kqueuepl 144 50 0 48 1 0 1 1 0 8 0 pipelkpl 16 109 0 99 1 0 1 1 0 8 0 pipepl 120 218 0 199 1 0 1 1 0 8 0 fdescpl 432 449 0 435 2 0 2 2 0 8 0 filepl 120 3454 0 3358 4 0 4 4 0 8 1 lockfpl 104 77 0 76 1 0 1 1 0 8 0 lockfspl 48 27 0 26 1 0 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 19 0 9 1 0 1 1 0 8 0 ucredpl 96 355 0 348 1 0 1 1 0 8 0 zombiepl 144 435 0 435 1 0 1 1 0 8 1 processpl 896 463 0 435 4 0 4 4 0 8 0 procpl 624 795 0 759 4 0 4 4 0 8 1 sockpl 400 706 0 687 5 1 4 4 0 8 2 mcl64k 65536 36 0 36 1 0 1 1 0 8 1 mcl16k 16384 4 0 4 1 0 1 1 0 8 1 mcl12k 12288 7 0 7 1 1 0 1 0 8 0 mcl9k 9216 8 0 8 1 0 1 1 0 8 1 mcl8k 8192 7 0 7 1 0 1 1 0 8 1 mcl4k 4096 43 0 43 2 1 1 1 0 8 1 mcl2k2 2112 4 0 4 2 1 1 1 0 8 1 mcl2k 2048 64135 0 64084 17 9 8 14 0 8 0 mtagpl 80 30 0 2 2 1 1 1 0 8 0 mbufpl 256 103999 0 103812 22 7 15 15 0 8 1 bufpl 280 5400 0 167 374 0 374 374 0 8 0 anonpl 16 59640 0 42744 86 3 83 85 0 107 14 amapchunkpl 152 2032 0 1897 8 2 6 8 0 158 0 amappl16 192 2455 0 1525 59 6 53 59 0 8 6 amappl15 184 3 0 1 1 0 1 1 0 8 0 amappl14 176 2 0 1 2 1 1 1 0 8 0 amappl13 168 23 0 22 1 0 1 1 0 8 0 amappl12 160 15 0 13 1 0 1 1 0 8 0 amappl11 152 191 0 177 1 0 1 1 0 8 0 amappl10 144 132 0 127 1 0 1 1 0 8 0 amappl9 136 378 0 375 1 0 1 1 0 8 0 amappl8 128 272 0 252 1 0 1 1 0 8 0 amappl7 120 223 0 212 1 0 1 1 0 8 0 amappl6 112 149 0 142 1 0 1 1 0 8 0 amappl5 104 261 0 250 1 0 1 1 0 8 0 amappl4 96 566 0 534 2 1 1 2 0 8 0 amappl3 88 116 0 111 1 0 1 1 0 8 0 amappl2 80 2746 0 2682 3 1 2 3 0 8 0 amappl1 72 17712 0 17292 26 17 9 20 0 8 0 amappl 80 1038 0 994 1 0 1 1 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 21 0 2 1 0 1 1 0 8 0 uaddrrnd 24 452 0 435 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 452 0 435 1 0 1 1 0 8 0 vmmpekpl 168 6749 0 6723 2 0 2 2 0 8 0 vmmpepl 168 60280 0 58285 120 21 99 114 0 357 11 vmsppl 272 451 0 435 3 1 2 2 0 8 0 pdppl 4096 910 0 873 6 1 5 6 0 8 0 pvpl 32 182640 0 162769 201 2 199 201 0 265 37 pmappl 200 451 0 435 1 0 1 1 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 167 0 22 5 0 5 5 0 8 0