panic: m_copydata: null mbuf Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *105068 62985 0 0 0x4000000 0 syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82242a05) at panic+0x15c sys/kern/subr_prf.c:207 m_copydata(fffffd806bc22100,198,2,ffff80001d40de08) at m_copydata+0x17e m_getptr sys/kern/uipc_mbuf.c:1031 [inline] m_copydata(fffffd806bc22100,198,2,ffff80001d40de08) at m_copydata+0x17e sys/kern/uipc_mbuf.c:722 ip6_pullexthdr(fffffd806bc22100,198,0) at ip6_pullexthdr+0xa2 sys/netinet6/ip6_input.c:1146 ip6_savecontrol(fffffd80527c4010,fffffd806bc22100,ffff80001d40df70) at ip6_savecontrol+0x373 sys/netinet6/ip6_input.c:1056 rip6_input(ffff80001d40e1c8,ffff80001d40e1d4,0,18) at rip6_input+0x4eb sys/netinet6/raw_ip6.c:206 ip_deliver(ffff80001d40e1c8,ffff80001d40e1d4,3c,18) at ip_deliver+0x2e3 sys/netinet/ip_input.c:668 ip6_input_if(ffff80001d40e1c8,ffff80001d40e1d4,29,0,ffff8000009f1800) at ip6_input_if+0xf26 ipv6_input(ffff8000009f1800,fffffd8058ffbd00) at ipv6_input+0x48 sys/netinet6/ip6_input.c:171 if_input_local(ffff8000009f1800,fffffd8058ffbd00,18) at if_input_local+0x121 sys/net/if.c:780 ip6_output(fffffd8058ffb900,ffff800000a04280,fffffd80527c44e0,0,0,fffffd80527c4470) at ip6_output+0xd02 rip6_output(fffffd8058ffb400,fffffd80527c5980,ffff80001d40e530,0) at rip6_output+0x4d7 sys/netinet6/raw_ip6.c:481 rip6_usrreq(fffffd80527c5980,9,fffffd8058ffb400,0,0,ffff80001d339758) at rip6_usrreq+0x5e1 sys/netinet6/raw_ip6.c:670 sosend(fffffd80527c5980,0,ffff80001d40e778,0,0,0) at sosend+0x669 sys/kern/uipc_socket.c:549 end trace frame: 0xffff80001d40e760, 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(ffffffff82242a05) at panic+0x15c sys/kern/subr_prf.c:207 m_copydata(fffffd806bc22100,198,2,ffff80001d40de08) at m_copydata+0x17e m_getptr sys/kern/uipc_mbuf.c:1031 [inline] m_copydata(fffffd806bc22100,198,2,ffff80001d40de08) at m_copydata+0x17e sys/kern/uipc_mbuf.c:722 ip6_pullexthdr(fffffd806bc22100,198,0) at ip6_pullexthdr+0xa2 sys/netinet6/ip6_input.c:1146 ip6_savecontrol(fffffd80527c4010,fffffd806bc22100,ffff80001d40df70) at ip6_savecontrol+0x373 sys/netinet6/ip6_input.c:1056 rip6_input(ffff80001d40e1c8,ffff80001d40e1d4,0,18) at rip6_input+0x4eb sys/netinet6/raw_ip6.c:206 ip_deliver(ffff80001d40e1c8,ffff80001d40e1d4,3c,18) at ip_deliver+0x2e3 sys/netinet/ip_input.c:668 ip6_input_if(ffff80001d40e1c8,ffff80001d40e1d4,29,0,ffff8000009f1800) at ip6_input_if+0xf26 ipv6_input(ffff8000009f1800,fffffd8058ffbd00) at ipv6_input+0x48 sys/netinet6/ip6_input.c:171 if_input_local(ffff8000009f1800,fffffd8058ffbd00,18) at if_input_local+0x121 sys/net/if.c:780 ip6_output(fffffd8058ffb900,ffff800000a04280,fffffd80527c44e0,0,0,fffffd80527c4470) at ip6_output+0xd02 rip6_output(fffffd8058ffb400,fffffd80527c5980,ffff80001d40e530,0) at rip6_output+0x4d7 sys/netinet6/raw_ip6.c:481 rip6_usrreq(fffffd80527c5980,9,fffffd8058ffb400,0,0,ffff80001d339758) at rip6_usrreq+0x5e1 sys/netinet6/raw_ip6.c:670 sosend(fffffd80527c5980,0,ffff80001d40e778,0,0,0) at sosend+0x669 sys/kern/uipc_socket.c:549 dofilewritev(ffff80001d339758,4,ffff80001d40e778,0,ffff80001d40e860) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d339758,ffff80001d40e818,ffff80001d40e860) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d40e8e0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x72764b67510, count: -18 ddb> show registers rdi 0xffffffff8175a307 db_enter+0x17 rsi 0x27cf __ALIGN_SIZE+0x17cf rbp 0xffff80001d40dce0 rbx 0xffff80001d40dd90 rdx 0x27d0 __ALIGN_SIZE+0x17d0 rcx 0xffff80001d417000 rax 0xffff80001d417000 r8 0xffff80001d40dca0 r9 0x1 r10 0xffff8000009f3740 r11 0x6eb7d3608d4892a3 r12 0x3000000008 r13 0xffff80001d40dcf0 r14 0x100 r15 0x1 rip 0xffffffff8175a308 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d40dcd0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=105068 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=60, nice=20 forw=0xffffffffffffffff, list=0xffff80001d33a388,0xffffffff8256c510 process=0xffff8000ffffa010 user=0xffff80001d409000, vmspace=0xfffffd806bc0a550 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 62985 491269 11723 0 2 0 syz-executor.0 *62985 105068 11723 0 7 0x4000000 syz-executor.0 9963 109503 69622 0 3 0x80 nanosleep syz-executor.1 9963 241833 69622 0 3 0x4000080 poll syz-executor.1 89629 262037 0 0 3 0x14200 bored sosplice 69622 206705 24753 0 3 0x82 nanosleep syz-executor.1 11723 383804 24753 0 3 0x82 nanosleep syz-executor.0 24753 348206 97997 0 3 0x82 thrsleep syz-fuzzer 24753 256634 97997 0 3 0x4000082 nanosleep syz-fuzzer 24753 144136 97997 0 3 0x4000082 thrsleep syz-fuzzer 24753 252221 97997 0 3 0x4000082 thrsleep syz-fuzzer 24753 470 97997 0 3 0x4000082 thrsleep syz-fuzzer 24753 409804 97997 0 3 0x4000082 thrsleep syz-fuzzer 24753 498982 97997 0 3 0x4000082 thrsleep syz-fuzzer 24753 376013 97997 0 3 0x4000082 kqread syz-fuzzer 97997 243218 55611 0 3 0x10008a pause ksh 55611 100096 43457 0 3 0x92 select sshd 28416 237091 1 0 3 0x100083 ttyin getty 43457 389286 1 0 3 0x80 select sshd 29485 355149 59133 73 3 0x100090 kqread syslogd 59133 456058 1 0 3 0x100082 netio syslogd 79517 330908 1 77 3 0x100090 poll dhclient 921 169032 1 0 3 0x80 poll dhclient 54874 156773 0 0 2 0x14200 zerothread 95774 333079 0 0 3 0x14200 aiodoned aiodoned 92301 263271 0 0 3 0x14200 syncer update 35793 22526 0 0 3 0x14200 cleaner cleaner 9472 465899 0 0 3 0x14200 reaper reaper 47480 107810 0 0 3 0x14200 pgdaemon pagedaemon 91826 29215 0 0 3 0x14200 bored crynlk 51824 522024 0 0 3 0x14200 bored crypto 84459 465546 0 0 3 0x40014200 acpi0 acpi0 70176 427464 0 0 3 0x14200 bored softnet 13660 118856 0 0 3 0x14200 bored systqmp 75242 52044 0 0 3 0x14200 bored systq 53381 281648 0 0 3 0x40014200 bored softclock 65980 346884 0 0 3 0x40014200 idle0 79300 439926 0 0 3 0x14200 bored smr 1 335479 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 9488 6338K 6721K 78643K 10848 0 pcb 16 8K 8K 78643K 94 0 rtable 109 3K 3K 78643K 222 0 ifaddr 68 14K 14K 78643K 74 0 counters 21 16K 16K 78643K 22 0 ioctlops 0 0K 2K 78643K 17 0 iov 0 0K 12K 78643K 26 0 mount 1 1K 1K 78643K 1 0 vnodes 1218 77K 77K 78643K 1313 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 3 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 20 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1794 195K 288K 78643K 12646 0 file desc 6 17K 25K 78643K 128 0 proc 49 38K 63K 78643K 370 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 29 0 in_multi 59 3K 3K 78643K 75 0 ether_multi 1 0K 0K 78643K 4 0 mrt 0 0K 0K 78643K 7 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 49 228K 228K 78643K 49 0 exec 0 0K 1K 78643K 189 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 21K 22K 78643K 1129 0 UVM aobj 21 2K 2K 78643K 23 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 2 0K 0K 78643K 25 0 NDP 10 0K 0K 78643K 15 0 temp 122 3022K 3086K 78643K 12781 0 kqueue 3 4K 10K 78643K 13 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 27 0 25 1 0 1 1 0 8 0 rtentry 112 50 0 4 2 0 2 2 0 8 0 unpcb 120 123 0 115 1 0 1 1 0 8 0 syncache 264 7 0 7 2 1 1 1 0 8 1 tcpqe 32 84 0 84 1 0 1 1 0 8 1 tcpcb 544 132 0 127 2 0 2 2 0 8 1 ipq 40 2 0 2 1 0 1 1 0 8 1 ipqe 40 47 0 47 1 0 1 1 0 8 1 inpcb 280 306 0 296 3 0 3 3 0 8 1 rttmr 72 3 0 3 1 0 1 1 0 8 1 nd6 48 7 0 0 1 0 1 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 219 0 22 14 0 14 14 0 8 1 art_table 32 221 0 22 2 0 2 2 0 8 0 art_node 16 49 0 7 1 0 1 1 0 8 0 sysvmsgpl 40 18 0 10 1 0 1 1 0 8 0 semapl 112 18 0 8 1 0 1 1 0 8 0 shmpl 112 21 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1562 0 167 46 0 46 46 0 8 0 ffsino 240 1562 0 167 83 0 83 83 0 8 0 nchpl 144 1923 0 313 60 0 60 60 0 8 0 uvmvnodes 72 1675 0 0 31 0 31 31 0 8 0 vnodes 208 1675 0 0 89 0 89 89 0 8 0 namei 1024 4850 0 4850 1 0 1 1 0 8 1 scxspl 192 5786 0 5786 1 0 1 1 0 8 1 plimitpl 152 21 0 13 1 0 1 1 0 8 0 sigapl 424 315 0 285 4 0 4 4 0 8 0 futexpl 56 3166 0 3166 1 0 1 1 0 8 1 knotepl 112 65 0 46 1 0 1 1 0 8 0 kqueuepl 144 29 0 26 1 0 1 1 0 8 0 pipelkpl 16 111 0 101 1 0 1 1 0 8 0 pipepl 120 222 0 203 2 0 2 2 0 8 1 fdescpl 432 300 0 285 2 0 2 2 0 8 0 filepl 120 1913 0 1811 4 0 4 4 0 8 0 lockfpl 104 39 0 38 1 0 1 1 0 8 0 lockfspl 48 18 0 17 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 202 0 195 1 0 1 1 0 8 0 zombiepl 144 285 0 285 1 0 1 1 0 8 1 processpl 896 315 0 285 4 0 4 4 0 8 0 procpl 624 444 0 405 4 0 4 4 0 8 1 sosppl 128 2 0 2 1 0 1 1 0 8 1 sockpl 400 463 0 442 5 0 5 5 0 8 2 mcl64k 65536 42 0 42 1 0 1 1 0 8 1 mcl16k 16384 2 0 2 1 0 1 1 0 8 1 mcl12k 12288 11 0 11 1 0 1 1 0 8 1 mcl9k 9216 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 5 0 5 1 0 1 1 0 8 1 mcl4k 4096 21 0 21 1 0 1 1 0 8 1 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 65508 0 65463 17 3 14 16 0 8 7 mtagpl 80 8 0 2 2 1 1 1 0 8 0 mbufpl 256 104266 0 104154 23 1 22 22 0 8 13 bufpl 280 4295 0 162 296 0 296 296 0 8 0 anonpl 16 42548 0 26394 68 2 66 66 0 107 0 amapchunkpl 152 1468 0 1332 11 0 11 11 0 158 4 amappl16 192 1418 0 526 45 0 45 45 0 8 0 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 50 0 47 2 1 1 1 0 8 0 amappl13 168 23 0 22 1 0 1 1 0 8 0 amappl12 160 56 0 54 2 1 1 1 0 8 0 amappl11 152 67 0 54 1 0 1 1 0 8 0 amappl10 144 13 0 8 1 0 1 1 0 8 0 amappl9 136 370 0 366 1 0 1 1 0 8 0 amappl8 128 277 0 256 1 0 1 1 0 8 0 amappl7 120 109 0 97 1 0 1 1 0 8 0 amappl6 112 23 0 18 1 0 1 1 0 8 0 amappl5 104 311 0 297 1 0 1 1 0 8 0 amappl4 96 444 0 413 1 0 1 1 0 8 0 amappl3 88 159 0 152 1 0 1 1 0 8 0 amappl2 80 1598 0 1525 3 1 2 3 0 8 0 amappl1 72 14981 0 14566 27 13 14 20 0 8 5 amappl 80 673 0 630 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 22 0 2 1 0 1 1 0 8 0 uaddrrnd 24 300 0 285 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 300 0 285 1 0 1 1 0 8 0 vmmpekpl 168 6185 0 6158 2 0 2 2 0 8 0 vmmpepl 168 43044 0 41007 123 7 116 116 0 357 27 vmsppl 272 299 0 285 2 0 2 2 0 8 1 pdppl 4096 606 0 570 6 0 6 6 0 8 1 pvpl 32 143705 0 124204 158 0 158 158 0 265 0 pmappl 200 299 0 285 1 0 1 1 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 168 0 6 5 0 5 5 0 8 0