panic: m_copydata: null mbuf Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *466574 24856 0 0 0x4000000 0 syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8224a16a) at panic+0x15c sys/kern/subr_prf.c:207 m_copydata(fffffd80581a1400,30,8,fffffd805e4a0120) at m_copydata+0x17e m_getptr sys/kern/uipc_mbuf.c:1031 [inline] m_copydata(fffffd80581a1400,30,8,fffffd805e4a0120) at m_copydata+0x17e sys/kern/uipc_mbuf.c:722 ip6_pullexthdr(fffffd80581a1400,30,0) at ip6_pullexthdr+0x16f sys/netinet6/ip6_input.c:1169 ip6_savecontrol(fffffd805e56b230,fffffd80581a1400,ffff80001e460bf0) at ip6_savecontrol+0x373 sys/netinet6/ip6_input.c:1056 rip6_input(ffff80001e460e48,ffff80001e460e54,0,18) at rip6_input+0x75b sys/netinet6/raw_ip6.c:225 ip_deliver(ffff80001e460e48,ffff80001e460e54,0,18) at ip_deliver+0x2e3 sys/netinet/ip_input.c:668 ip6_input_if(ffff80001e460e48,ffff80001e460e54,29,0,ffff80000017a2a8) at ip6_input_if+0xf26 ipv6_input(ffff80000017a2a8,fffffd80581a1400) at ipv6_input+0x48 sys/netinet6/ip6_input.c:171 if_input_local(ffff80000017a2a8,fffffd80581a1400,18) at if_input_local+0x121 sys/net/if.c:780 ip6_output(fffffd80581a1900,ffff8000009d8c00,fffffd805e56bb60,0,0,fffffd805e56baf0) at ip6_output+0xd02 rip6_output(fffffd80581a1900,fffffd8052c29e28,ffff80001e4611b0,0) at rip6_output+0x4d7 sys/netinet6/raw_ip6.c:481 rip6_usrreq(fffffd8052c29e28,9,fffffd80581a1900,0,0,ffff80001d35d9d8) at rip6_usrreq+0x5e1 sys/netinet6/raw_ip6.c:670 sosend(fffffd8052c29e28,0,ffff80001e4613f8,0,0,0) at sosend+0x669 sys/kern/uipc_socket.c:549 end trace frame: 0xffff80001e4613e0, 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(ffffffff8224a16a) at panic+0x15c sys/kern/subr_prf.c:207 m_copydata(fffffd80581a1400,30,8,fffffd805e4a0120) at m_copydata+0x17e m_getptr sys/kern/uipc_mbuf.c:1031 [inline] m_copydata(fffffd80581a1400,30,8,fffffd805e4a0120) at m_copydata+0x17e sys/kern/uipc_mbuf.c:722 ip6_pullexthdr(fffffd80581a1400,30,0) at ip6_pullexthdr+0x16f sys/netinet6/ip6_input.c:1169 ip6_savecontrol(fffffd805e56b230,fffffd80581a1400,ffff80001e460bf0) at ip6_savecontrol+0x373 sys/netinet6/ip6_input.c:1056 rip6_input(ffff80001e460e48,ffff80001e460e54,0,18) at rip6_input+0x75b sys/netinet6/raw_ip6.c:225 ip_deliver(ffff80001e460e48,ffff80001e460e54,0,18) at ip_deliver+0x2e3 sys/netinet/ip_input.c:668 ip6_input_if(ffff80001e460e48,ffff80001e460e54,29,0,ffff80000017a2a8) at ip6_input_if+0xf26 ipv6_input(ffff80000017a2a8,fffffd80581a1400) at ipv6_input+0x48 sys/netinet6/ip6_input.c:171 if_input_local(ffff80000017a2a8,fffffd80581a1400,18) at if_input_local+0x121 sys/net/if.c:780 ip6_output(fffffd80581a1900,ffff8000009d8c00,fffffd805e56bb60,0,0,fffffd805e56baf0) at ip6_output+0xd02 rip6_output(fffffd80581a1900,fffffd8052c29e28,ffff80001e4611b0,0) at rip6_output+0x4d7 sys/netinet6/raw_ip6.c:481 rip6_usrreq(fffffd8052c29e28,9,fffffd80581a1900,0,0,ffff80001d35d9d8) at rip6_usrreq+0x5e1 sys/netinet6/raw_ip6.c:670 sosend(fffffd8052c29e28,0,ffff80001e4613f8,0,0,0) at sosend+0x669 sys/kern/uipc_socket.c:549 dofilewritev(ffff80001d35d9d8,6,ffff80001e4613f8,0,ffff80001e4614e0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d35d9d8,ffff80001e461498,ffff80001e4614e0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001e461560) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x19b8fd13780, count: -18 ddb> show registers rdi 0xffffffff8208cba7 db_enter+0x17 rsi 0x10ea __ALIGN_SIZE+0xea rbp 0xffff80001e460960 rbx 0xffff80001e460a10 rdx 0x10eb __ALIGN_SIZE+0xeb rcx 0xffff80001f617000 rax 0xffff80001f617000 r8 0xffff80001e460920 r9 0x1 r10 0xffff8000009fb440 r11 0xf119202b978fc525 r12 0x3000000008 r13 0xffff80001e460970 r14 0x100 r15 0x1 rip 0xffffffff8208cba8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001e460950 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=466574 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=75, nice=20 forw=0xffffffffffffffff, list=0xffff80001d35d4f8,0xffffffff8259b5e8 process=0xffff8000ffffae10 user=0xffff80001e45c000, vmspace=0xfffffd806788a998 estcpu=25, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 24856 175704 62993 0 2 0 syz-executor.1 *24856 466574 62993 0 7 0x4000000 syz-executor.1 71200 384039 0 0 3 0x14200 bored sosplice 62993 136812 33184 0 3 0x82 nanosleep syz-executor.1 27089 17398 33184 0 2 0x2 syz-executor.0 33184 269436 49644 0 3 0x82 thrsleep syz-fuzzer 33184 193790 49644 0 3 0x4000082 nanosleep syz-fuzzer 33184 236163 49644 0 3 0x4000082 thrsleep syz-fuzzer 33184 364694 49644 0 3 0x4000082 thrsleep syz-fuzzer 33184 35495 49644 0 3 0x4000082 thrsleep syz-fuzzer 33184 449887 49644 0 3 0x4000082 kqread syz-fuzzer 33184 65324 49644 0 3 0x4000082 thrsleep syz-fuzzer 33184 875 49644 0 3 0x4000082 thrsleep syz-fuzzer 49644 32510 88232 0 3 0x10008a pause ksh 88232 58334 91460 0 3 0x92 select sshd 26205 364776 1 0 3 0x100083 ttyin getty 91460 384548 1 0 3 0x80 select sshd 35213 447942 96835 73 3 0x100090 kqread syslogd 96835 232782 1 0 3 0x100082 netio syslogd 57376 59901 1 77 3 0x100090 poll dhclient 58118 306540 1 0 3 0x80 poll dhclient 44217 288454 0 0 3 0x14200 bored smr 36449 24710 0 0 2 0x14200 zerothread 62665 393197 0 0 3 0x14200 aiodoned aiodoned 64399 196229 0 0 3 0x14200 syncer update 71510 222139 0 0 3 0x14200 cleaner cleaner 51672 168448 0 0 3 0x14200 reaper reaper 28838 278453 0 0 3 0x14200 pgdaemon pagedaemon 31682 377958 0 0 3 0x14200 bored crynlk 69949 408055 0 0 3 0x14200 bored crypto 30191 268397 0 0 3 0x40014200 acpi0 acpi0 59278 52862 0 0 3 0x14200 bored softnet 51805 409312 0 0 3 0x14200 bored systqmp 86417 27814 0 0 3 0x14200 bored systq 70955 257685 0 0 3 0x40014200 bored softclock 51879 337559 0 0 3 0x40014200 idle0 1 132933 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 9483 6335K 6724K 78643K 10858 0 pcb 16 8K 8K 78643K 64 0 rtable 86 3K 3K 78643K 294 0 ifaddr 53 11K 11K 78643K 87 0 counters 21 16K 16K 78643K 25 0 ioctlops 0 0K 2K 78643K 21 0 iov 0 0K 24K 78643K 135 0 mount 1 1K 1K 78643K 1 0 vnodes 1219 77K 77K 78643K 1385 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 4 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 46 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1794 195K 288K 78643K 12646 0 file desc 5 13K 25K 78643K 198 0 sigio 0 0K 0K 78643K 18 0 proc 51 38K 54K 78643K 376 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 28 0 in_multi 21 1K 2K 78643K 73 0 ether_multi 2 0K 0K 78643K 9 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 61 281K 281K 78643K 61 0 exec 0 0K 1K 78643K 206 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 102 37K 37K 78643K 1320 0 UVM aobj 6 2K 2K 78643K 8 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 2 0K 0K 78643K 40 0 NDP 9 0K 0K 78643K 20 0 temp 104 3014K 3078K 78643K 2308 0 kqueue 3 4K 14K 78643K 33 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 7 0 2 1 0 1 1 0 8 0 rtpcb 80 35 0 33 1 0 1 1 0 8 0 rtentry 112 70 0 37 2 0 2 2 0 8 0 unpcb 120 227 0 219 1 0 1 1 0 8 0 syncache 264 6 0 6 3 3 0 1 0 8 0 tcpqe 32 658 0 658 1 1 0 1 0 8 0 tcpcb 544 111 0 105 1 0 1 1 0 8 0 ipq 40 1 0 1 1 1 0 1 0 8 0 ipqe 40 45 0 45 1 1 0 1 0 8 0 inpcb 280 279 0 268 2 0 2 2 0 8 1 nd6 48 9 0 8 1 0 1 1 0 8 0 ppxss 1128 1 0 1 1 1 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 269 0 135 13 0 13 13 0 8 2 art_table 32 270 0 135 2 0 2 2 0 8 0 art_node 16 69 0 40 1 0 1 1 0 8 0 sysvmsgpl 40 26 0 14 1 0 1 1 0 8 0 semapl 112 44 0 34 1 0 1 1 0 8 0 shmpl 112 6 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1746 0 348 46 0 46 46 0 8 0 ffsino 240 1746 0 348 83 0 83 83 0 8 0 nchpl 144 2257 0 649 60 0 60 60 0 8 0 uvmvnodes 72 1854 0 0 34 0 34 34 0 8 0 vnodes 208 1854 0 0 98 0 98 98 0 8 0 namei 1024 6540 0 6539 2 1 1 1 0 8 0 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 528 4 0 2 1 0 1 1 0 8 0 scxspl 192 6425 0 6425 1 0 1 1 0 8 1 plimitpl 152 28 0 21 1 0 1 1 0 8 0 sigapl 424 385 0 356 4 0 4 4 0 8 0 futexpl 56 5807 0 5807 1 0 1 1 0 8 1 knotepl 112 103 0 84 1 0 1 1 0 8 0 kqueuepl 144 112 0 110 1 0 1 1 0 8 0 pipelkpl 16 210 0 200 2 1 1 1 0 8 0 pipepl 120 420 0 401 4 2 2 3 0 8 1 fdescpl 432 370 0 356 2 0 2 2 0 8 0 filepl 120 3326 0 3227 6 1 5 5 0 8 1 lockfpl 104 68 0 67 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 21 0 11 1 0 1 1 0 8 0 ucredpl 96 852 0 845 1 0 1 1 0 8 0 zombiepl 144 356 0 356 2 1 1 1 0 8 1 processpl 896 385 0 356 4 0 4 4 0 8 0 procpl 624 634 0 597 4 0 4 4 0 8 0 sosppl 128 2 0 2 1 1 0 1 0 8 0 sockpl 400 557 0 536 4 1 3 4 0 8 0 mcl64k 65536 17 0 17 1 0 1 1 0 8 1 mcl16k 16384 4 0 4 1 0 1 1 0 8 1 mcl12k 12288 2 0 2 2 1 1 1 0 8 1 mcl9k 9216 5 0 5 2 1 1 1 0 8 1 mcl8k 8192 15 0 15 1 0 1 1 0 8 1 mcl4k 4096 45 0 45 3 2 1 1 0 8 1 mcl2k2 2112 2 0 2 1 1 0 1 0 8 0 mcl2k 2048 64116 0 64063 20 12 8 18 0 8 0 mtagpl 80 18 0 4 2 1 1 1 0 8 0 mbufpl 256 103612 0 103425 23 10 13 22 0 8 1 bufpl 280 4428 0 163 305 0 305 305 0 8 0 anonpl 16 51499 0 34947 85 2 83 83 0 107 15 amapchunkpl 152 1529 0 1397 7 1 6 7 0 158 0 amappl16 192 1985 0 1063 59 4 55 59 0 8 8 amappl15 184 9 0 7 1 0 1 1 0 8 0 amappl14 176 2 0 1 2 1 1 1 0 8 0 amappl13 168 32 0 29 2 1 1 1 0 8 0 amappl12 160 6 0 6 1 1 0 1 0 8 0 amappl11 152 62 0 50 1 0 1 1 0 8 0 amappl10 144 99 0 93 1 0 1 1 0 8 0 amappl9 136 460 0 455 1 0 1 1 0 8 0 amappl8 128 346 0 328 1 0 1 1 0 8 0 amappl7 120 189 0 179 1 0 1 1 0 8 0 amappl6 112 22 0 20 2 1 1 1 0 8 0 amappl5 104 300 0 288 1 0 1 1 0 8 0 amappl4 96 446 0 412 2 1 1 2 0 8 0 amappl3 88 114 0 108 1 0 1 1 0 8 0 amappl2 80 2176 0 2111 4 2 2 3 0 8 0 amappl1 72 16346 0 15929 26 16 10 20 0 8 0 amappl 80 855 0 813 3 1 2 2 0 84 1 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 7 0 2 1 0 1 1 0 8 0 uaddrrnd 24 374 0 358 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 374 0 358 1 0 1 1 0 8 0 vmmpekpl 168 6937 0 6908 2 0 2 2 0 8 0 vmmpepl 168 51269 0 49281 126 22 104 117 0 357 17 vmsppl 272 373 0 358 2 0 2 2 0 8 0 pdppl 4096 754 0 718 6 1 5 6 0 8 0 pvpl 32 164220 0 144714 199 1 198 198 0 265 39 pmappl 200 373 0 358 1 0 1 1 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 170 0 29 5 0 5 5 0 8 0