panic: m_copydata: null mbuf Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *278039 20907 0 0 0x4000000 0 syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8224d535) at panic+0x15c sys/kern/subr_prf.c:207 m_copydata(fffffd805759d500,6f8,8,fffffd805759d720) at m_copydata+0x17e m_getptr sys/kern/uipc_mbuf.c:1031 [inline] m_copydata(fffffd805759d500,6f8,8,fffffd805759d720) at m_copydata+0x17e sys/kern/uipc_mbuf.c:722 ip6_pullexthdr(fffffd805759d500,6f8,0) at ip6_pullexthdr+0x16f sys/netinet6/ip6_input.c:1169 ip6_savecontrol(fffffd805e562af0,fffffd805759d500,ffff80001e4557a0) at ip6_savecontrol+0x373 sys/netinet6/ip6_input.c:1056 rip6_input(ffff80001e4559f8,ffff80001e455a04,0,18) at rip6_input+0x75b sys/netinet6/raw_ip6.c:225 ip_deliver(ffff80001e4559f8,ffff80001e455a04,0,18) at ip_deliver+0x2e3 sys/netinet/ip_input.c:668 ip6_input_if(ffff80001e4559f8,ffff80001e455a04,29,0,ffff80000017a2a8) at ip6_input_if+0xf26 ipv6_input(ffff80000017a2a8,fffffd805759d500) at ipv6_input+0x48 sys/netinet6/ip6_input.c:171 if_input_local(ffff80000017a2a8,fffffd805759d500,18) at if_input_local+0x121 sys/net/if.c:780 ip6_output(fffffd805759d100,ffff800000a02d00,fffffd805e562c78,0,0,fffffd805e562c08) at ip6_output+0xd02 rip6_output(fffffd805759d100,fffffd80568ce658,ffff80001e455d60,0) at rip6_output+0x4d7 sys/netinet6/raw_ip6.c:481 rip6_usrreq(fffffd80568ce658,9,fffffd805759d100,0,0,ffff80001d3a8870) at rip6_usrreq+0x5e1 sys/netinet6/raw_ip6.c:670 sosend(fffffd80568ce658,0,ffff80001e455fa8,0,0,0) at sosend+0x669 sys/kern/uipc_socket.c:549 end trace frame: 0xffff80001e455f90, count: 0 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(ffffffff8224d535) at panic+0x15c sys/kern/subr_prf.c:207 m_copydata(fffffd805759d500,6f8,8,fffffd805759d720) at m_copydata+0x17e m_getptr sys/kern/uipc_mbuf.c:1031 [inline] m_copydata(fffffd805759d500,6f8,8,fffffd805759d720) at m_copydata+0x17e sys/kern/uipc_mbuf.c:722 ip6_pullexthdr(fffffd805759d500,6f8,0) at ip6_pullexthdr+0x16f sys/netinet6/ip6_input.c:1169 ip6_savecontrol(fffffd805e562af0,fffffd805759d500,ffff80001e4557a0) at ip6_savecontrol+0x373 sys/netinet6/ip6_input.c:1056 rip6_input(ffff80001e4559f8,ffff80001e455a04,0,18) at rip6_input+0x75b sys/netinet6/raw_ip6.c:225 ip_deliver(ffff80001e4559f8,ffff80001e455a04,0,18) at ip_deliver+0x2e3 sys/netinet/ip_input.c:668 ip6_input_if(ffff80001e4559f8,ffff80001e455a04,29,0,ffff80000017a2a8) at ip6_input_if+0xf26 ipv6_input(ffff80000017a2a8,fffffd805759d500) at ipv6_input+0x48 sys/netinet6/ip6_input.c:171 if_input_local(ffff80000017a2a8,fffffd805759d500,18) at if_input_local+0x121 sys/net/if.c:780 ip6_output(fffffd805759d100,ffff800000a02d00,fffffd805e562c78,0,0,fffffd805e562c08) at ip6_output+0xd02 rip6_output(fffffd805759d100,fffffd80568ce658,ffff80001e455d60,0) at rip6_output+0x4d7 sys/netinet6/raw_ip6.c:481 rip6_usrreq(fffffd80568ce658,9,fffffd805759d100,0,0,ffff80001d3a8870) at rip6_usrreq+0x5e1 sys/netinet6/raw_ip6.c:670 sosend(fffffd80568ce658,0,ffff80001e455fa8,0,0,0) at sosend+0x669 sys/kern/uipc_socket.c:549 dofilewritev(ffff80001d3a8870,5,ffff80001e455fa8,0,ffff80001e456090) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d3a8870,ffff80001e456048,ffff80001e456090) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001e456110) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xe43039baaa0, count: -18 ddb> show registers rdi 0xffffffff8135c0b7 db_enter+0x17 rsi 0x2bff __ALIGN_SIZE+0x1bff rbp 0xffff80001e455510 rbx 0xffff80001e4555c0 rdx 0x2c00 __ALIGN_SIZE+0x1c00 rcx 0xffff80001d40f000 rax 0xffff80001d40f000 r8 0xffff80001e4554d0 r9 0x1 r10 0xffff8000009f3380 r11 0x356f4a8c0a914acb r12 0x3000000008 r13 0xffff80001e455520 r14 0x100 r15 0x1 rip 0xffffffff8135c0b8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001e455500 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=278039 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=54, nice=20 forw=0xffffffffffffffff, list=0xffff80001d3a7eb0,0xffffffff8256d440 process=0xffff8000ffffbc10 user=0xffff80001e451000, vmspace=0xfffffd806bc0a330 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 20907 19618 82000 0 2 0 syz-executor.0 *20907 278039 82000 0 7 0x4000000 syz-executor.0 7862 286993 180 0 2 0 syz-executor.1 7862 151238 180 0 3 0x4000080 fsleep syz-executor.1 180 482713 50116 0 3 0x82 nanosleep syz-executor.1 82000 396369 50116 0 3 0x82 nanosleep syz-executor.0 50116 9875 49247 0 3 0x82 thrsleep syz-fuzzer 50116 294828 49247 0 3 0x4000082 nanosleep syz-fuzzer 50116 296463 49247 0 3 0x4000082 thrsleep syz-fuzzer 50116 263986 49247 0 3 0x4000082 thrsleep syz-fuzzer 50116 81036 49247 0 3 0x4000082 kqread syz-fuzzer 50116 130740 49247 0 3 0x4000082 thrsleep syz-fuzzer 50116 300382 49247 0 3 0x4000082 thrsleep syz-fuzzer 49247 521675 97296 0 3 0x10008a pause ksh 97296 260781 25193 0 3 0x92 select sshd 78889 250552 1 0 3 0x100083 ttyin getty 25193 458706 1 0 3 0x80 select sshd 59357 360092 79542 73 3 0x100090 kqread syslogd 79542 64147 1 0 3 0x100082 netio syslogd 67921 64822 1 77 3 0x100090 poll dhclient 32249 378958 1 0 3 0x80 poll dhclient 33160 314369 0 0 3 0x14200 bored smr 23620 39672 0 0 2 0x14200 zerothread 69712 280225 0 0 3 0x14200 aiodoned aiodoned 22400 345292 0 0 3 0x14200 syncer update 43789 71477 0 0 3 0x14200 cleaner cleaner 28793 36336 0 0 3 0x14200 reaper reaper 45949 427800 0 0 3 0x14200 pgdaemon pagedaemon 97005 516259 0 0 3 0x14200 bored crynlk 70720 451547 0 0 3 0x14200 bored crypto 61301 184847 0 0 3 0x40014200 acpi0 acpi0 68617 415158 0 0 3 0x14200 bored softnet 2802 324443 0 0 3 0x14200 bored systqmp 75433 347007 0 0 3 0x14200 bored systq 40243 280023 0 0 3 0x40014200 bored softclock 81630 148463 0 0 3 0x40014200 idle0 1 135869 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 9500 6724K 6853K 78643K 10698 0 pcb 16 8K 8K 78643K 38 0 rtable 105 3K 3K 78643K 200 0 ifaddr 56 11K 11K 78643K 57 0 counters 21 16K 16K 78643K 21 0 ioctlops 0 0K 2K 78643K 17 0 iov 0 0K 4K 78643K 14 0 mount 1 1K 1K 78643K 1 0 vnodes 1221 77K 77K 78643K 1260 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 0K 0K 78643K 2 0 sem 12 1K 1K 78643K 12 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1794 195K 288K 78643K 12646 0 file desc 6 17K 25K 78643K 84 0 proc 47 38K 54K 78643K 358 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 1 0K 0K 78643K 72 0 in_multi 35 2K 2K 78643K 43 0 ether_multi 2 0K 0K 78643K 4 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 37 175K 175K 78643K 37 0 exec 0 0K 1K 78643K 185 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 100 21K 37K 78643K 1026 0 UVM aobj 4 2K 2K 78643K 4 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 2 0K 0K 78643K 14 0 NDP 9 0K 0K 78643K 13 0 temp 85 3010K 3074K 78643K 1955 0 kqueue 3 4K 8K 78643K 10 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 23 0 21 1 0 1 1 0 8 0 rtentry 112 46 0 2 2 0 2 2 0 8 0 unpcb 120 55 0 43 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 96 0 96 1 0 1 1 0 8 1 tcpcb 544 92 0 86 1 0 1 1 0 8 0 ipq 40 2 0 2 1 0 1 1 0 8 1 ipqe 40 90 0 90 1 0 1 1 0 8 1 inpcb 280 194 0 182 3 0 3 3 0 8 2 rttmr 72 1 0 1 1 0 1 1 0 8 1 nd6 48 6 0 0 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 188 0 0 12 0 12 12 0 8 0 art_table 32 189 0 0 2 0 2 2 0 8 0 art_node 16 45 0 5 1 0 1 1 0 8 0 semupl 112 5 0 5 1 0 1 1 0 8 1 semapl 112 10 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 dino1pl 128 1486 0 87 46 0 46 46 0 8 0 ffsino 240 1486 0 87 83 0 83 83 0 8 0 nchpl 144 1784 0 172 60 0 60 60 0 8 0 uvmvnodes 72 1559 0 0 29 0 29 29 0 8 0 vnodes 208 1559 0 0 83 0 83 83 0 8 0 namei 1024 4970 0 4970 1 0 1 1 0 8 1 vmpool 528 2 0 2 1 0 1 1 0 8 1 scxspl 192 5027 0 5027 1 0 1 1 0 8 1 plimitpl 152 18 0 11 1 0 1 1 0 8 0 sigapl 424 270 0 241 4 0 4 4 0 8 0 futexpl 56 1680 0 1679 1 0 1 1 0 8 0 knotepl 112 64 0 45 1 0 1 1 0 8 0 kqueuepl 144 14 0 12 1 0 1 1 0 8 0 pipelkpl 16 81 0 71 1 0 1 1 0 8 0 pipepl 120 162 0 143 1 0 1 1 0 8 0 fdescpl 432 256 0 241 2 0 2 2 0 8 0 filepl 120 1462 0 1348 5 0 5 5 0 8 1 lockfpl 104 13 0 12 1 0 1 1 0 8 0 lockfspl 48 7 0 6 1 0 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 17 0 7 1 0 1 1 0 8 0 ucredpl 96 71 0 64 1 0 1 1 0 8 0 zombiepl 144 241 0 241 1 0 1 1 0 8 1 processpl 896 270 0 241 4 0 4 4 0 8 0 procpl 624 339 0 302 4 0 4 4 0 8 1 sockpl 400 274 0 248 5 0 5 5 0 8 2 mcl64k 65536 12 0 12 1 0 1 1 0 8 1 mcl12k 12288 2 0 2 1 0 1 1 0 8 1 mcl9k 9216 3 0 3 1 0 1 1 0 8 1 mcl8k 8192 4 0 4 1 0 1 1 0 8 1 mcl4k 4096 15 0 15 2 1 1 1 0 8 1 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 65612 0 65566 18 4 14 14 0 8 8 mtagpl 80 8 0 2 2 1 1 1 0 8 0 mbufpl 256 104563 0 104474 18 3 15 16 0 8 8 bufpl 280 4019 0 161 276 0 276 276 0 8 0 anonpl 16 40583 0 23787 69 1 68 68 0 107 0 amapchunkpl 152 1179 0 1041 7 0 7 7 0 158 0 amappl16 192 1240 0 309 47 0 47 47 0 8 0 amappl15 184 2 0 1 1 0 1 1 0 8 0 amappl14 176 3 0 2 2 1 1 1 0 8 0 amappl13 168 24 0 23 1 0 1 1 0 8 0 amappl12 160 39 0 36 2 1 1 1 0 8 0 amappl11 152 86 0 71 1 0 1 1 0 8 0 amappl10 144 14 0 9 1 0 1 1 0 8 0 amappl9 136 378 0 374 1 0 1 1 0 8 0 amappl8 128 271 0 255 1 0 1 1 0 8 0 amappl7 120 107 0 96 1 0 1 1 0 8 0 amappl6 112 39 0 34 1 0 1 1 0 8 0 amappl5 104 203 0 190 1 0 1 1 0 8 0 amappl4 96 450 0 420 1 0 1 1 0 8 0 amappl3 88 110 0 104 1 0 1 1 0 8 0 amappl2 80 1244 0 1172 3 1 2 3 0 8 0 amappl1 72 14419 0 13994 26 11 15 20 0 8 6 amappl 80 572 0 529 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 3 0 0 1 0 1 1 0 8 0 uaddrrnd 24 258 0 243 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 258 0 243 1 0 1 1 0 8 0 vmmpekpl 168 5884 0 5858 2 0 2 2 0 8 0 vmmpepl 168 38294 0 36203 125 5 120 120 0 357 29 vmsppl 272 257 0 243 2 0 2 2 0 8 1 pdppl 4096 522 0 486 6 0 6 6 0 8 1 pvpl 32 134384 0 114562 161 0 161 161 0 265 0 pmappl 200 257 0 243 1 0 1 1 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 160 0 10 5 0 5 5 0 8 0