panic: m_copydata: null mbuf Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *359100 62533 0 0 0x4000000 0 syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8224c2a6) at panic+0x15c sys/kern/subr_prf.c:207 m_copydata(fffffd80640f8200,30,8,fffffd80640f8720) at m_copydata+0x17e m_getptr sys/kern/uipc_mbuf.c:1031 [inline] m_copydata(fffffd80640f8200,30,8,fffffd80640f8720) at m_copydata+0x17e sys/kern/uipc_mbuf.c:722 ip6_pullexthdr(fffffd80640f8200,30,0) at ip6_pullexthdr+0x16f sys/netinet6/ip6_input.c:1169 ip6_savecontrol(fffffd805e567d20,fffffd80640f8200,ffff80001d822240) at ip6_savecontrol+0x373 sys/netinet6/ip6_input.c:1056 rip6_input(ffff80001d822498,ffff80001d8224a4,0,18) at rip6_input+0x75b sys/netinet6/raw_ip6.c:225 ip_deliver(ffff80001d822498,ffff80001d8224a4,0,18) at ip_deliver+0x2e3 sys/netinet/ip_input.c:668 ip6_input_if(ffff80001d822498,ffff80001d8224a4,29,0,ffff80000017a2a8) at ip6_input_if+0xf26 ipv6_input(ffff80000017a2a8,fffffd80640f8200) at ipv6_input+0x48 sys/netinet6/ip6_input.c:171 if_input_local(ffff80000017a2a8,fffffd80640f8200,18) at if_input_local+0x121 sys/net/if.c:780 ip6_output(fffffd80640f8600,ffff800000a7fd00,fffffd805e5675e8,0,0,fffffd805e567578) at ip6_output+0xd02 rip6_output(fffffd80640f8600,fffffd80657a5b18,ffff80001d822800,0) at rip6_output+0x4d7 sys/netinet6/raw_ip6.c:481 rip6_usrreq(fffffd80657a5b18,9,fffffd80640f8600,0,0,ffff80001d751c48) at rip6_usrreq+0x5e1 sys/netinet6/raw_ip6.c:670 sosend(fffffd80657a5b18,0,ffff80001d822a48,0,0,0) at sosend+0x669 sys/kern/uipc_socket.c:549 end trace frame: 0xffff80001d822a30, 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(ffffffff8224c2a6) at panic+0x15c sys/kern/subr_prf.c:207 m_copydata(fffffd80640f8200,30,8,fffffd80640f8720) at m_copydata+0x17e m_getptr sys/kern/uipc_mbuf.c:1031 [inline] m_copydata(fffffd80640f8200,30,8,fffffd80640f8720) at m_copydata+0x17e sys/kern/uipc_mbuf.c:722 ip6_pullexthdr(fffffd80640f8200,30,0) at ip6_pullexthdr+0x16f sys/netinet6/ip6_input.c:1169 ip6_savecontrol(fffffd805e567d20,fffffd80640f8200,ffff80001d822240) at ip6_savecontrol+0x373 sys/netinet6/ip6_input.c:1056 rip6_input(ffff80001d822498,ffff80001d8224a4,0,18) at rip6_input+0x75b sys/netinet6/raw_ip6.c:225 ip_deliver(ffff80001d822498,ffff80001d8224a4,0,18) at ip_deliver+0x2e3 sys/netinet/ip_input.c:668 ip6_input_if(ffff80001d822498,ffff80001d8224a4,29,0,ffff80000017a2a8) at ip6_input_if+0xf26 ipv6_input(ffff80000017a2a8,fffffd80640f8200) at ipv6_input+0x48 sys/netinet6/ip6_input.c:171 if_input_local(ffff80000017a2a8,fffffd80640f8200,18) at if_input_local+0x121 sys/net/if.c:780 ip6_output(fffffd80640f8600,ffff800000a7fd00,fffffd805e5675e8,0,0,fffffd805e567578) at ip6_output+0xd02 rip6_output(fffffd80640f8600,fffffd80657a5b18,ffff80001d822800,0) at rip6_output+0x4d7 sys/netinet6/raw_ip6.c:481 rip6_usrreq(fffffd80657a5b18,9,fffffd80640f8600,0,0,ffff80001d751c48) at rip6_usrreq+0x5e1 sys/netinet6/raw_ip6.c:670 sosend(fffffd80657a5b18,0,ffff80001d822a48,0,0,0) at sosend+0x669 sys/kern/uipc_socket.c:549 dofilewritev(ffff80001d751c48,6,ffff80001d822a48,0,ffff80001d822b30) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d751c48,ffff80001d822ae8,ffff80001d822b30) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d822bb0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x1dcde7a39e0, count: -18 ddb> show registers rdi 0xffffffff81fb24b7 db_enter+0x17 rsi 0x10f8 __ALIGN_SIZE+0xf8 rbp 0xffff80001d821fb0 rbx 0xffff80001d822060 rdx 0x10f9 __ALIGN_SIZE+0xf9 rcx 0xffff80001fa31000 rax 0xffff80001fa31000 r8 0xffff80001d821f70 r9 0x1 r10 0xffff800000029b00 r11 0xe13cffc2c6f88594 r12 0x3000000008 r13 0xffff80001d821fc0 r14 0x100 r15 0x1 rip 0xffffffff81fb24b8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d821fa0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=359100 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=66, nice=20 forw=0xffffffffffffffff, list=0xffff80001d752128,0xffffffff8257d900 process=0xffff8000ffffa3a8 user=0xffff80001d81d000, vmspace=0xfffffd80576f1008 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 62533 503938 19480 0 2 0 syz-executor.0 *62533 359100 19480 0 7 0x4000000 syz-executor.0 48274 431850 0 0 3 0x14200 acct acct 19480 291409 15776 0 3 0x82 nanosleep syz-executor.0 65280 439382 0 0 3 0x14200 bored sosplice 94826 220896 15776 0 2 0x2 syz-executor.1 15776 305167 71332 0 3 0x82 thrsleep syz-fuzzer 15776 337103 71332 0 3 0x4000082 nanosleep syz-fuzzer 15776 474742 71332 0 3 0x4000082 thrsleep syz-fuzzer 15776 265937 71332 0 3 0x4000082 thrsleep syz-fuzzer 15776 396631 71332 0 3 0x4000082 thrsleep syz-fuzzer 15776 353528 71332 0 3 0x4000082 kqread syz-fuzzer 15776 137017 71332 0 3 0x4000082 thrsleep syz-fuzzer 15776 173499 71332 0 3 0x4000082 thrsleep syz-fuzzer 71332 277860 22529 0 3 0x10008a pause ksh 22529 122907 91604 0 3 0x92 select sshd 2130 215843 1 0 3 0x100083 ttyin getty 91604 485422 1 0 3 0x80 select sshd 83104 263562 43988 73 3 0x100090 kqread syslogd 43988 155744 1 0 3 0x100082 netio syslogd 3258 221217 1 77 3 0x100090 poll dhclient 83443 31943 1 0 3 0x80 poll dhclient 71731 117809 0 0 3 0x14200 bored smr 41708 246519 0 0 2 0x14200 zerothread 30888 43234 0 0 3 0x14200 aiodoned aiodoned 27891 131619 0 0 3 0x14200 syncer update 74573 209981 0 0 3 0x14200 cleaner cleaner 65331 397980 0 0 3 0x14200 reaper reaper 94358 333546 0 0 3 0x14200 pgdaemon pagedaemon 8243 367243 0 0 3 0x14200 bored crynlk 64736 333378 0 0 3 0x14200 bored crypto 70732 511584 0 0 3 0x40014200 acpi0 acpi0 7751 398053 0 0 3 0x14200 bored softnet 80167 277834 0 0 3 0x14200 bored systqmp 1343 238671 0 0 3 0x14200 bored systq 80771 276129 0 0 2 0x40014200 softclock 8713 288994 0 0 3 0x40014200 idle0 1 46024 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 9537 6380K 6896K 78643K 12119 0 pcb 16 8K 8K 78643K 154 0 rtable 95 3K 4K 78643K 558 0 ifaddr 104 20K 21K 78643K 259 0 counters 21 16K 17K 78643K 48 0 ioctlops 0 0K 2K 78643K 89 0 iov 0 0K 32K 78643K 174 0 mount 1 1K 1K 78643K 1 0 vnodes 1218 77K 77K 78643K 1752 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 11 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 1K 78643K 105 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1794 195K 288K 78643K 12646 0 file desc 5 13K 25K 78643K 856 0 sigio 0 0K 0K 78643K 14 0 proc 51 38K 63K 78643K 464 0 subproc 32 2K 2K 78643K 51 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 1 0K 0K 78643K 68 0 in_multi 104 4K 4K 78643K 223 0 ether_multi 2 0K 0K 78643K 31 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 67 307K 307K 78643K 67 0 exec 0 0K 1K 78643K 296 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 118 151K 153K 78643K 2904 0 UVM aobj 57 3K 3K 78643K 59 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 2 0K 0K 78643K 143 0 NDP 16 0K 0K 78643K 53 0 temp 146 3039K 3114K 78643K 34760 0 kqueue 3 4K 20K 78643K 146 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 12 0 3 1 0 1 1 0 8 0 rtpcb 80 87 0 85 1 0 1 1 0 8 0 rtentry 112 91 0 55 2 0 2 2 0 8 0 unpcb 120 665 0 657 1 0 1 1 0 8 0 syncache 264 15 0 15 4 4 0 1 0 8 0 tcpqe 32 148 0 148 2 2 0 1 0 8 0 tcpcb 544 363 0 356 1 0 1 1 0 8 0 ipq 40 3 0 3 1 1 0 1 0 8 0 ipqe 40 7 0 7 1 1 0 1 0 8 0 inpcb 280 985 0 971 2 0 2 2 0 8 1 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 14 0 12 1 0 1 1 0 8 0 pkpcb 40 5 0 5 3 3 0 1 0 8 0 ppxss 1128 7 0 7 2 2 0 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 494 0 318 13 1 12 13 0 8 0 art_table 32 496 0 318 2 0 2 2 0 8 0 art_node 16 90 0 58 1 0 1 1 0 8 0 sysvmsgpl 40 55 0 37 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 101 0 91 1 0 1 1 0 8 0 shmpl 112 57 0 2 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2695 0 1300 46 0 46 46 0 8 0 ffsino 240 2695 0 1300 83 0 83 83 0 8 0 nchpl 144 4630 0 3038 60 0 60 60 0 8 0 uvmvnodes 72 3086 0 0 57 0 57 57 0 8 0 vnodes 208 3086 0 0 163 0 163 163 0 8 0 namei 1024 12914 0 12913 1 0 1 1 0 8 0 vcpupl 1984 15 0 0 2 0 2 2 0 8 0 vmpool 528 31 0 16 2 1 1 2 0 8 0 scxspl 192 13450 0 13450 1 0 1 1 0 8 1 plimitpl 152 90 0 83 1 0 1 1 0 8 0 sigapl 424 1041 0 1011 4 0 4 4 0 8 0 futexpl 56 19967 0 19967 1 0 1 1 0 8 1 knotepl 112 243 0 224 1 0 1 1 0 8 0 kqueuepl 144 1545 0 1543 1 0 1 1 0 8 0 pipelkpl 16 218 0 208 1 0 1 1 0 8 0 pipepl 120 436 0 417 2 1 1 2 0 8 0 fdescpl 432 1025 0 1011 2 0 2 2 0 8 0 filepl 120 8983 0 8884 5 1 4 5 0 8 1 lockfpl 104 242 0 241 1 0 1 1 0 8 0 lockfspl 48 84 0 83 1 0 1 1 0 8 0 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 32 0 22 1 0 1 1 0 8 0 ucredpl 96 788 0 781 1 0 1 1 0 8 0 zombiepl 144 1011 0 1011 1 0 1 1 0 8 1 processpl 920 1041 0 1011 4 0 4 4 0 8 0 procpl 624 2095 0 2057 4 0 4 4 0 8 0 sosppl 128 27 0 27 1 1 0 1 0 8 0 sockpl 400 1746 0 1724 6 2 4 4 0 8 1 mcl64k 65536 121 0 121 1 0 1 1 0 8 1 mcl16k 16384 8 0 8 3 3 0 1 0 8 0 mcl12k 12288 19 0 19 3 2 1 1 0 8 1 mcl9k 9216 13 0 13 4 4 0 1 0 8 0 mcl8k 8192 12 0 12 3 2 1 1 0 8 1 mcl4k 4096 76 0 76 2 1 1 1 0 8 1 mcl2k2 2112 10 0 10 2 2 0 1 0 8 0 mcl2k 2048 62717 0 62650 18 9 9 15 0 8 0 mtagpl 80 83 0 22 3 1 2 2 0 8 0 mbufpl 256 105216 0 104925 23 3 20 20 0 8 0 bufpl 280 6706 0 1322 385 0 385 385 0 8 0 anonpl 16 108637 0 94433 78 16 62 74 0 107 0 amapchunkpl 152 5572 0 5421 32 18 14 20 0 158 7 amappl16 192 5502 0 4699 61 19 42 51 0 8 0 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 565 0 562 2 1 1 1 0 8 0 amappl13 168 29 0 28 1 0 1 1 0 8 0 amappl12 160 12 0 10 1 0 1 1 0 8 0 amappl11 152 65 0 53 1 0 1 1 0 8 0 amappl10 144 257 0 254 1 0 1 1 0 8 0 amappl9 136 379 0 376 1 0 1 1 0 8 0 amappl8 128 291 0 275 1 0 1 1 0 8 0 amappl7 120 358 0 346 1 0 1 1 0 8 0 amappl6 112 26 0 21 1 0 1 1 0 8 0 amappl5 104 804 0 792 1 0 1 1 0 8 0 amappl4 96 616 0 583 1 0 1 1 0 8 0 amappl3 88 301 0 294 1 0 1 1 0 8 0 amappl2 80 7361 0 7296 3 1 2 3 0 8 0 amappl1 72 27625 0 27220 24 15 9 20 0 8 0 amappl 80 2376 0 2323 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 58 0 2 1 0 1 1 0 8 0 uaddrrnd 24 1056 0 1027 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1056 0 1027 1 0 1 1 0 8 0 vmmpekpl 168 9976 0 9945 2 0 2 2 0 8 0 vmmpepl 168 126772 0 124891 145 51 94 127 0 357 5 vmsppl 272 1055 0 1027 3 1 2 3 0 8 0 pdppl 4096 2118 0 2069 9 2 7 7 0 8 0 pvpl 32 306760 0 290089 179 31 148 177 0 265 8 pmappl 200 1055 0 1027 2 0 2 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 177 0 26 5 0 5 5 0 8 0