panic: m_copydata: null mbuf Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *203537 59766 0 0 0x4000000 0 syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8224bddc) at panic+0x15c sys/kern/subr_prf.c:207 m_copydata(fffffd80534ca000,30,8,fffffd805a410220) at m_copydata+0x17e m_getptr sys/kern/uipc_mbuf.c:1031 [inline] m_copydata(fffffd80534ca000,30,8,fffffd805a410220) at m_copydata+0x17e sys/kern/uipc_mbuf.c:722 ip6_pullexthdr(fffffd80534ca000,30,0) at ip6_pullexthdr+0x16f sys/netinet6/ip6_input.c:1169 ip6_savecontrol(fffffd805fdfa000,fffffd80534ca000,ffff800020653e50) at ip6_savecontrol+0x373 sys/netinet6/ip6_input.c:1056 rip6_input(ffff8000206540a8,ffff8000206540b4,0,18) at rip6_input+0x4eb sys/netinet6/raw_ip6.c:206 ip_deliver(ffff8000206540a8,ffff8000206540b4,0,18) at ip_deliver+0x2e3 sys/netinet/ip_input.c:668 ip6_input_if(ffff8000206540a8,ffff8000206540b4,29,0,ffff80000017a2a8) at ip6_input_if+0xf26 ipv6_input(ffff80000017a2a8,fffffd805e350400) at ipv6_input+0x48 sys/netinet6/ip6_input.c:171 if_input_local(ffff80000017a2a8,fffffd805e350400,18) at if_input_local+0x121 sys/net/if.c:780 ip6_output(fffffd805e350500,ffff800000a09b00,fffffd8057416c80,0,0,fffffd8057416c10) at ip6_output+0xd02 rip6_output(fffffd805e350500,fffffd8057418c90,ffff800020654410,0) at rip6_output+0x4d7 sys/netinet6/raw_ip6.c:481 rip6_usrreq(fffffd8057418c90,9,fffffd805e350500,0,0,ffff80001d352128) at rip6_usrreq+0x5e1 sys/netinet6/raw_ip6.c:670 sosend(fffffd8057418c90,0,ffff800020654658,0,0,0) at sosend+0x669 sys/kern/uipc_socket.c:549 end trace frame: 0xffff800020654640, 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(ffffffff8224bddc) at panic+0x15c sys/kern/subr_prf.c:207 m_copydata(fffffd80534ca000,30,8,fffffd805a410220) at m_copydata+0x17e m_getptr sys/kern/uipc_mbuf.c:1031 [inline] m_copydata(fffffd80534ca000,30,8,fffffd805a410220) at m_copydata+0x17e sys/kern/uipc_mbuf.c:722 ip6_pullexthdr(fffffd80534ca000,30,0) at ip6_pullexthdr+0x16f sys/netinet6/ip6_input.c:1169 ip6_savecontrol(fffffd805fdfa000,fffffd80534ca000,ffff800020653e50) at ip6_savecontrol+0x373 sys/netinet6/ip6_input.c:1056 rip6_input(ffff8000206540a8,ffff8000206540b4,0,18) at rip6_input+0x4eb sys/netinet6/raw_ip6.c:206 ip_deliver(ffff8000206540a8,ffff8000206540b4,0,18) at ip_deliver+0x2e3 sys/netinet/ip_input.c:668 ip6_input_if(ffff8000206540a8,ffff8000206540b4,29,0,ffff80000017a2a8) at ip6_input_if+0xf26 ipv6_input(ffff80000017a2a8,fffffd805e350400) at ipv6_input+0x48 sys/netinet6/ip6_input.c:171 if_input_local(ffff80000017a2a8,fffffd805e350400,18) at if_input_local+0x121 sys/net/if.c:780 ip6_output(fffffd805e350500,ffff800000a09b00,fffffd8057416c80,0,0,fffffd8057416c10) at ip6_output+0xd02 rip6_output(fffffd805e350500,fffffd8057418c90,ffff800020654410,0) at rip6_output+0x4d7 sys/netinet6/raw_ip6.c:481 rip6_usrreq(fffffd8057418c90,9,fffffd805e350500,0,0,ffff80001d352128) at rip6_usrreq+0x5e1 sys/netinet6/raw_ip6.c:670 sosend(fffffd8057418c90,0,ffff800020654658,0,0,0) at sosend+0x669 sys/kern/uipc_socket.c:549 dofilewritev(ffff80001d352128,a,ffff800020654658,0,ffff800020654740) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d352128,ffff8000206546f8,ffff800020654740) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff8000206547c0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xe8455783ac0, count: -18 ddb> show registers rdi 0xffffffff81772057 db_enter+0x17 rsi 0x128f __ALIGN_SIZE+0x28f rbp 0xffff800020653bc0 rbx 0xffff800020653c70 rdx 0x1290 __ALIGN_SIZE+0x290 rcx 0xffff80001d435000 rax 0xffff80001d435000 r8 0xffff800020653b80 r9 0x1 r10 0xffff8000009f8480 r11 0x7b6f1de063955234 r12 0x3000000008 r13 0xffff800020653bd0 r14 0x100 r15 0x1 rip 0xffffffff81772058 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020653bb0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=203537 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=61, nice=20 forw=0xffffffffffffffff, list=0xffff80001d351c48,0xffffffff825a9c58 process=0xffff8000ffff9210 user=0xffff80002064f000, vmspace=0xfffffd806bc09dd0 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 59766 74221 20276 0 2 0 syz-executor.0 *59766 203537 20276 0 7 0x4000000 syz-executor.0 41455 90867 70163 0 2 0 syz-executor.1 41455 10525 70163 0 3 0x4000080 fifor syz-executor.1 41177 489762 0 0 3 0x14200 bored sosplice 70163 44285 61128 0 3 0x82 nanosleep syz-executor.1 20276 347087 61128 0 3 0x82 nanosleep syz-executor.0 61128 82520 26816 0 3 0x82 thrsleep syz-fuzzer 61128 107235 26816 0 3 0x4000082 thrsleep syz-fuzzer 61128 137576 26816 0 3 0x4000082 kqread syz-fuzzer 61128 507700 26816 0 3 0x4000082 thrsleep syz-fuzzer 61128 35329 26816 0 3 0x4000082 thrsleep syz-fuzzer 61128 480630 26816 0 3 0x4000082 thrsleep syz-fuzzer 61128 387736 26816 0 3 0x4000082 thrsleep syz-fuzzer 61128 151578 26816 0 3 0x4000082 thrsleep syz-fuzzer 26816 192661 79830 0 3 0x10008a pause ksh 79830 367697 64797 0 3 0x92 select sshd 98243 278386 1 0 3 0x100083 ttyin getty 64797 507404 1 0 3 0x80 select sshd 52075 96090 35496 73 3 0x100090 kqread syslogd 35496 419480 1 0 3 0x100082 netio syslogd 6300 66275 1 77 3 0x100090 poll dhclient 96260 103877 1 0 3 0x80 poll dhclient 29671 121970 0 0 3 0x14200 bored smr 98392 53731 0 0 2 0x14200 zerothread 55743 279781 0 0 3 0x14200 aiodoned aiodoned 67947 19956 0 0 3 0x14200 syncer update 6143 118879 0 0 3 0x14200 cleaner cleaner 51250 190777 0 0 3 0x14200 reaper reaper 65068 398599 0 0 3 0x14200 pgdaemon pagedaemon 64041 379824 0 0 3 0x14200 bored crynlk 99333 192070 0 0 3 0x14200 bored crypto 75571 211145 0 0 3 0x40014200 acpi0 acpi0 30002 337288 0 0 3 0x14200 bored softnet 80000 482902 0 0 3 0x14200 bored systqmp 1616 352829 0 0 3 0x14200 bored systq 3300 214238 0 0 3 0x40014200 bored softclock 79796 185314 0 0 3 0x40014200 idle0 1 309597 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 9496 6477K 6972K 78643K 10930 0 pcb 19 8K 8K 78643K 69 0 rtable 114 4K 4K 78643K 246 0 ifaddr 78 17K 17K 78643K 115 0 counters 21 16K 16K 78643K 27 0 ioctlops 0 0K 2K 78643K 25 0 iov 0 0K 12K 78643K 40 0 mount 1 1K 1K 78643K 1 0 vnodes 1221 77K 77K 78643K 1331 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 26 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1794 195K 288K 78643K 12646 0 file desc 6 17K 25K 78643K 343 0 sigio 0 0K 0K 78643K 9 0 proc 50 38K 63K 78643K 381 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 2 0K 0K 78643K 18 0 in_multi 92 4K 4K 78643K 116 0 ether_multi 2 0K 0K 78643K 12 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 191 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 25K 78643K 1512 0 UVM aobj 15 2K 3K 78643K 17 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 4 0K 0K 78643K 44 0 NDP 10 0K 0K 78643K 20 0 temp 91 3030K 3094K 78643K 12490 0 kqueue 3 4K 12K 78643K 27 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 0 1 0 1 1 0 8 0 rtpcb 80 29 0 27 1 0 1 1 0 8 0 rtentry 112 48 0 1 2 0 2 2 0 8 0 unpcb 120 143 0 133 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 80 0 80 1 1 0 1 0 8 0 tcpcb 544 96 0 89 1 0 1 1 0 8 0 inpcb 280 532 0 515 2 0 2 2 0 8 0 nd6 48 7 0 0 1 0 1 1 0 8 0 ppxss 1128 3 0 3 1 1 0 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 197 0 0 13 0 13 13 0 8 0 art_table 32 199 0 0 2 0 2 2 0 8 0 art_node 16 47 0 4 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 2 1 0 1 1 0 8 0 semupl 112 5 0 5 1 0 1 1 0 8 1 semapl 112 24 0 14 1 0 1 1 0 8 0 shmpl 112 15 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1856 0 456 46 0 46 46 0 8 0 ffsino 240 1856 0 456 83 0 83 83 0 8 0 nchpl 144 2496 0 883 60 0 60 60 0 8 0 uvmvnodes 72 1970 0 0 36 0 36 36 0 8 0 vnodes 208 1970 0 0 104 0 104 104 0 8 0 namei 1024 6183 0 6183 1 0 1 1 0 8 1 scxspl 192 7693 0 7693 1 0 1 1 0 8 1 plimitpl 152 38 0 31 1 0 1 1 0 8 0 sigapl 424 530 0 500 4 0 4 4 0 8 0 futexpl 56 4473 0 4473 1 0 1 1 0 8 1 knotepl 112 86 0 67 1 0 1 1 0 8 0 kqueuepl 144 56 0 54 1 0 1 1 0 8 0 pipelkpl 16 99 0 89 1 0 1 1 0 8 0 pipepl 120 198 0 179 1 0 1 1 0 8 0 fdescpl 432 515 0 500 2 0 2 2 0 8 0 filepl 120 2564 0 2460 4 0 4 4 0 8 0 lockfpl 104 47 0 46 1 0 1 1 0 8 0 lockfspl 48 19 0 18 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 192 0 185 1 0 1 1 0 8 0 zombiepl 144 500 0 500 1 0 1 1 0 8 1 processpl 920 530 0 500 4 0 4 4 0 8 0 procpl 624 831 0 792 4 0 4 4 0 8 0 sosppl 128 5 0 5 1 1 0 1 0 8 0 sockpl 400 704 0 677 3 0 3 3 0 8 0 mcl64k 65536 24 0 22 1 0 1 1 0 8 0 mcl16k 16384 2 0 2 1 1 0 1 0 8 0 mcl12k 12288 1 0 1 1 1 0 1 0 8 0 mcl9k 9216 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 7 0 7 1 0 1 1 0 8 1 mcl4k 4096 16 0 16 2 1 1 1 0 8 1 mcl2k2 2112 3 0 3 1 0 1 1 0 8 1 mcl2k 2048 61455 0 61418 14 8 6 12 0 8 0 mtagpl 80 22 0 2 2 1 1 1 0 8 0 mbufpl 256 99106 0 98796 23 2 21 22 0 8 0 bufpl 280 4852 0 165 335 0 335 335 0 8 0 anonpl 16 53867 0 40332 73 2 71 71 0 107 14 amapchunkpl 152 2516 0 2377 20 5 15 20 0 158 9 amappl16 192 2182 0 1455 49 4 45 49 0 8 8 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 2 0 1 2 1 1 1 0 8 0 amappl13 168 190 0 186 1 0 1 1 0 8 0 amappl12 160 6 0 4 1 0 1 1 0 8 0 amappl11 152 61 0 49 1 0 1 1 0 8 0 amappl10 144 167 0 159 1 0 1 1 0 8 0 amappl9 136 373 0 370 1 0 1 1 0 8 0 amappl8 128 265 0 252 1 0 1 1 0 8 0 amappl7 120 223 0 211 1 0 1 1 0 8 0 amappl6 112 20 0 18 1 0 1 1 0 8 0 amappl5 104 271 0 259 1 0 1 1 0 8 0 amappl4 96 597 0 566 1 0 1 1 0 8 0 amappl3 88 233 0 226 1 0 1 1 0 8 0 amappl2 80 2810 0 2736 3 1 2 3 0 8 0 amappl1 72 17599 0 17178 27 18 9 20 0 8 0 amappl 80 1059 0 1013 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 16 0 2 1 0 1 1 0 8 0 uaddrrnd 24 515 0 500 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 515 0 500 1 0 1 1 0 8 0 vmmpekpl 168 6814 0 6790 2 0 2 2 0 8 0 vmmpepl 168 64527 0 62641 101 7 94 94 0 357 12 vmsppl 272 514 0 500 2 1 1 2 0 8 0 pdppl 4096 1036 0 1000 6 1 5 6 0 8 0 pvpl 32 173704 0 157146 171 0 171 171 0 265 37 pmappl 200 514 0 500 1 0 1 1 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 162 0 16 5 0 5 5 0 8 0