Extracting prog: 1m54.198082652s Minimizing prog: 16m29.683960677s Simplifying prog options: 0s Extracting C: 36.315746871s Simplifying C: 15m34.190438161s extracting reproducer from 1 programs testing a last program of every proc single: executing 1 programs separately with timeout 30s testing program (duration=30s, {Threaded:true Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet_tcp-bpf$BPF_PROG_RAW_TRACEPOINT_LOAD-ioctl$sock_SIOCGIFINDEX-bpf$BPF_LINK_CREATE_XDP-syz_emit_ethernet detailed listing: executing program 0: r0 = socket$inet_tcp(0x2, 0x1, 0x0) r1 = bpf$BPF_PROG_RAW_TRACEPOINT_LOAD(0x5, &(0x7f0000000040)={0x6, 0x4, &(0x7f00000002c0)=ANY=[@ANYBLOB="180200002343ffff0000000000000000850000004100000095"], &(0x7f00000000c0)='GPL\x00', 0x0, 0x0, 0x0, 0x41100, 0x20, '\x00', 0x0, 0x0, 0xffffffffffffffff, 0x8, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x10, 0x0, @void, @value}, 0x94) ioctl$sock_SIOCGIFINDEX(r0, 0x8933, &(0x7f0000000180)={'syz_tun\x00', 0x0}) bpf$BPF_LINK_CREATE_XDP(0x1c, &(0x7f0000000000)={r1, r2, 0x25, 0x0, @void}, 0x10) syz_emit_ethernet(0xfdef, &(0x7f0000000a80)=ANY=[], 0x0) program crashed: BUG: Bad page state in skb_pp_cow_data single: successfully extracted reproducer found reproducer with 5 syscalls minimizing guilty program testing program (duration=1m5.938231677s, {Threaded:true Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet_tcp-bpf$BPF_PROG_RAW_TRACEPOINT_LOAD-ioctl$sock_SIOCGIFINDEX-bpf$BPF_LINK_CREATE_XDP detailed listing: executing program 0: r0 = socket$inet_tcp(0x2, 0x1, 0x0) r1 = bpf$BPF_PROG_RAW_TRACEPOINT_LOAD(0x5, &(0x7f0000000040)={0x6, 0x4, &(0x7f00000002c0)=ANY=[@ANYBLOB="180200002343ffff0000000000000000850000004100000095"], &(0x7f00000000c0)='GPL\x00', 0x0, 0x0, 0x0, 0x41100, 0x20, '\x00', 0x0, 0x0, 0xffffffffffffffff, 0x8, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x10, 0x0, @void, @value}, 0x94) ioctl$sock_SIOCGIFINDEX(r0, 0x8933, &(0x7f0000000180)={'syz_tun\x00', 0x0}) bpf$BPF_LINK_CREATE_XDP(0x1c, &(0x7f0000000000)={r1, r2, 0x25, 0x0, @void}, 0x10) program did not crash testing program (duration=1m5.938231677s, {Threaded:true Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet_tcp-bpf$BPF_PROG_RAW_TRACEPOINT_LOAD-ioctl$sock_SIOCGIFINDEX-syz_emit_ethernet detailed listing: executing program 0: r0 = socket$inet_tcp(0x2, 0x1, 0x0) bpf$BPF_PROG_RAW_TRACEPOINT_LOAD(0x5, &(0x7f0000000040)={0x6, 0x4, &(0x7f00000002c0)=ANY=[@ANYBLOB="180200002343ffff0000000000000000850000004100000095"], &(0x7f00000000c0)='GPL\x00', 0x0, 0x0, 0x0, 0x41100, 0x20, '\x00', 0x0, 0x0, 0xffffffffffffffff, 0x8, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x10, 0x0, @void, @value}, 0x94) ioctl$sock_SIOCGIFINDEX(r0, 0x8933, &(0x7f0000000180)={'syz_tun\x00'}) syz_emit_ethernet(0xfdef, &(0x7f0000000a80)=ANY=[], 0x0) program did not crash testing program (duration=1m5.938231677s, {Threaded:true Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet_tcp-bpf$BPF_PROG_RAW_TRACEPOINT_LOAD-bpf$BPF_LINK_CREATE_XDP-syz_emit_ethernet detailed listing: executing program 0: socket$inet_tcp(0x2, 0x1, 0x0) r0 = bpf$BPF_PROG_RAW_TRACEPOINT_LOAD(0x5, &(0x7f0000000040)={0x6, 0x4, &(0x7f00000002c0)=ANY=[@ANYBLOB="180200002343ffff0000000000000000850000004100000095"], &(0x7f00000000c0)='GPL\x00', 0x0, 0x0, 0x0, 0x41100, 0x20, '\x00', 0x0, 0x0, 0xffffffffffffffff, 0x8, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x10, 0x0, @void, @value}, 0x94) bpf$BPF_LINK_CREATE_XDP(0x1c, &(0x7f0000000000)={r0, 0x0, 0x25, 0x0, @void}, 0x10) syz_emit_ethernet(0xfdef, &(0x7f0000000a80)=ANY=[], 0x0) program did not crash testing program (duration=1m5.938231677s, {Threaded:true Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet_tcp-ioctl$sock_SIOCGIFINDEX-bpf$BPF_LINK_CREATE_XDP-syz_emit_ethernet detailed listing: executing program 0: r0 = socket$inet_tcp(0x2, 0x1, 0x0) ioctl$sock_SIOCGIFINDEX(r0, 0x8933, &(0x7f0000000180)={'syz_tun\x00', 0x0}) bpf$BPF_LINK_CREATE_XDP(0x1c, &(0x7f0000000000)={0xffffffffffffffff, r1, 0x25, 0x0, @void}, 0x10) syz_emit_ethernet(0xfdef, &(0x7f0000000a80)=ANY=[], 0x0) program did not crash testing program (duration=1m5.938231677s, {Threaded:true Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): bpf$BPF_PROG_RAW_TRACEPOINT_LOAD-ioctl$sock_SIOCGIFINDEX-bpf$BPF_LINK_CREATE_XDP-syz_emit_ethernet detailed listing: executing program 0: r0 = bpf$BPF_PROG_RAW_TRACEPOINT_LOAD(0x5, &(0x7f0000000040)={0x6, 0x4, &(0x7f00000002c0)=ANY=[@ANYBLOB="180200002343ffff0000000000000000850000004100000095"], &(0x7f00000000c0)='GPL\x00', 0x0, 0x0, 0x0, 0x41100, 0x20, '\x00', 0x0, 0x0, 0xffffffffffffffff, 0x8, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x10, 0x0, @void, @value}, 0x94) ioctl$sock_SIOCGIFINDEX(0xffffffffffffffff, 0x8933, &(0x7f0000000180)={'syz_tun\x00', 0x0}) bpf$BPF_LINK_CREATE_XDP(0x1c, &(0x7f0000000000)={r0, r1, 0x25, 0x0, @void}, 0x10) syz_emit_ethernet(0xfdef, &(0x7f0000000a80)=ANY=[], 0x0) program did not crash testing program (duration=1m5.938231677s, {Threaded:true Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet_tcp-bpf$BPF_PROG_RAW_TRACEPOINT_LOAD-ioctl$sock_SIOCGIFINDEX-bpf$BPF_LINK_CREATE_XDP-syz_emit_ethernet detailed listing: executing program 0: r0 = socket$inet_tcp(0x2, 0x1, 0x0) r1 = bpf$BPF_PROG_RAW_TRACEPOINT_LOAD(0x5, 0x0, 0x0) ioctl$sock_SIOCGIFINDEX(r0, 0x8933, &(0x7f0000000180)={'syz_tun\x00', 0x0}) bpf$BPF_LINK_CREATE_XDP(0x1c, &(0x7f0000000000)={r1, r2, 0x25, 0x0, @void}, 0x10) syz_emit_ethernet(0xfdef, &(0x7f0000000a80)=ANY=[], 0x0) program did not crash testing program (duration=1m5.938231677s, {Threaded:true Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet_tcp-bpf$BPF_PROG_RAW_TRACEPOINT_LOAD-ioctl$sock_SIOCGIFINDEX-bpf$BPF_LINK_CREATE_XDP-syz_emit_ethernet detailed listing: executing program 0: r0 = socket$inet_tcp(0x2, 0x1, 0x0) r1 = bpf$BPF_PROG_RAW_TRACEPOINT_LOAD(0x5, &(0x7f0000000040)={0x6, 0x4, 0x0, &(0x7f00000000c0)='GPL\x00', 0x0, 0x0, 0x0, 0x41100, 0x20, '\x00', 0x0, 0x0, 0xffffffffffffffff, 0x8, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x10, 0x0, @void, @value}, 0x94) ioctl$sock_SIOCGIFINDEX(r0, 0x8933, &(0x7f0000000180)={'syz_tun\x00', 0x0}) bpf$BPF_LINK_CREATE_XDP(0x1c, &(0x7f0000000000)={r1, r2, 0x25, 0x0, @void}, 0x10) syz_emit_ethernet(0xfdef, &(0x7f0000000a80)=ANY=[], 0x0) program did not crash testing program (duration=1m5.938231677s, {Threaded:true Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet_tcp-bpf$BPF_PROG_RAW_TRACEPOINT_LOAD-ioctl$sock_SIOCGIFINDEX-bpf$BPF_LINK_CREATE_XDP-syz_emit_ethernet detailed listing: executing program 0: r0 = socket$inet_tcp(0x2, 0x1, 0x0) r1 = bpf$BPF_PROG_RAW_TRACEPOINT_LOAD(0x5, &(0x7f0000000040)={0x6, 0x4, &(0x7f00000002c0)=ANY=[@ANYBLOB], &(0x7f00000000c0)='GPL\x00', 0x0, 0x0, 0x0, 0x41100, 0x20, '\x00', 0x0, 0x0, 0xffffffffffffffff, 0x8, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x10, 0x0, @void, @value}, 0x94) ioctl$sock_SIOCGIFINDEX(r0, 0x8933, &(0x7f0000000180)={'syz_tun\x00', 0x0}) bpf$BPF_LINK_CREATE_XDP(0x1c, &(0x7f0000000000)={r1, r2, 0x25, 0x0, @void}, 0x10) syz_emit_ethernet(0xfdef, &(0x7f0000000a80)=ANY=[], 0x0) program did not crash testing program (duration=1m5.938231677s, {Threaded:true Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet_tcp-bpf$BPF_PROG_RAW_TRACEPOINT_LOAD-ioctl$sock_SIOCGIFINDEX-bpf$BPF_LINK_CREATE_XDP-syz_emit_ethernet detailed listing: executing program 0: r0 = socket$inet_tcp(0x2, 0x1, 0x0) r1 = bpf$BPF_PROG_RAW_TRACEPOINT_LOAD(0x5, &(0x7f0000000040)={0x6, 0x4, &(0x7f00000002c0)=ANY=[@ANYBLOB="180200002343ffff0000000000000000850000004100000095"], 0x0, 0x0, 0x0, 0x0, 0x41100, 0x20, '\x00', 0x0, 0x0, 0xffffffffffffffff, 0x8, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x10, 0x0, @void, @value}, 0x94) ioctl$sock_SIOCGIFINDEX(r0, 0x8933, &(0x7f0000000180)={'syz_tun\x00', 0x0}) bpf$BPF_LINK_CREATE_XDP(0x1c, &(0x7f0000000000)={r1, r2, 0x25, 0x0, @void}, 0x10) syz_emit_ethernet(0xfdef, &(0x7f0000000a80)=ANY=[], 0x0) program did not crash testing program (duration=1m5.938231677s, {Threaded:true Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet_tcp-bpf$BPF_PROG_RAW_TRACEPOINT_LOAD-ioctl$sock_SIOCGIFINDEX-bpf$BPF_LINK_CREATE_XDP-syz_emit_ethernet detailed listing: executing program 0: r0 = socket$inet_tcp(0x2, 0x1, 0x0) r1 = bpf$BPF_PROG_RAW_TRACEPOINT_LOAD(0x5, &(0x7f0000000040)={0x6, 0x4, &(0x7f00000002c0)=ANY=[@ANYBLOB="180200002343ffff0000000000000000850000004100000095"], &(0x7f00000000c0)='GPL\x00', 0x0, 0x0, 0x0, 0x41100, 0x20, '\x00', 0x0, 0x0, 0xffffffffffffffff, 0x8, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x10, 0x0, @void, @value}, 0x94) ioctl$sock_SIOCGIFINDEX(r0, 0x8933, 0x0) bpf$BPF_LINK_CREATE_XDP(0x1c, &(0x7f0000000000)={r1, 0x0, 0x25, 0x0, @void}, 0x10) syz_emit_ethernet(0xfdef, &(0x7f0000000a80)=ANY=[], 0x0) program did not crash testing program (duration=1m5.938231677s, {Threaded:true Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet_tcp-bpf$BPF_PROG_RAW_TRACEPOINT_LOAD-ioctl$sock_SIOCGIFINDEX-bpf$BPF_LINK_CREATE_XDP-syz_emit_ethernet detailed listing: executing program 0: r0 = socket$inet_tcp(0x2, 0x1, 0x0) bpf$BPF_PROG_RAW_TRACEPOINT_LOAD(0x5, &(0x7f0000000040)={0x6, 0x4, &(0x7f00000002c0)=ANY=[@ANYBLOB="180200002343ffff0000000000000000850000004100000095"], &(0x7f00000000c0)='GPL\x00', 0x0, 0x0, 0x0, 0x41100, 0x20, '\x00', 0x0, 0x0, 0xffffffffffffffff, 0x8, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x10, 0x0, @void, @value}, 0x94) ioctl$sock_SIOCGIFINDEX(r0, 0x8933, &(0x7f0000000180)={'syz_tun\x00'}) bpf$BPF_LINK_CREATE_XDP(0x1c, 0x0, 0x0) syz_emit_ethernet(0xfdef, &(0x7f0000000a80)=ANY=[], 0x0) program did not crash testing program (duration=1m5.938231677s, {Threaded:true Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet_tcp-bpf$BPF_PROG_RAW_TRACEPOINT_LOAD-ioctl$sock_SIOCGIFINDEX-bpf$BPF_LINK_CREATE_XDP-syz_emit_ethernet detailed listing: executing program 0: r0 = socket$inet_tcp(0x2, 0x1, 0x0) r1 = bpf$BPF_PROG_RAW_TRACEPOINT_LOAD(0x5, &(0x7f0000000040)={0x6, 0x4, &(0x7f00000002c0)=ANY=[@ANYBLOB="180200002343ffff0000000000000000850000004100000095"], &(0x7f00000000c0)='GPL\x00', 0x0, 0x0, 0x0, 0x41100, 0x20, '\x00', 0x0, 0x0, 0xffffffffffffffff, 0x8, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x10, 0x0, @void, @value}, 0x94) ioctl$sock_SIOCGIFINDEX(r0, 0x8933, &(0x7f0000000180)={'syz_tun\x00', 0x0}) bpf$BPF_LINK_CREATE_XDP(0x1c, &(0x7f0000000000)={r1, r2, 0x25, 0x0, @void}, 0x10) syz_emit_ethernet(0xfdef, 0x0, 0x0) program did not crash extracting C reproducer testing compiled C program (duration=1m5.938231677s, {Threaded:true Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet_tcp-bpf$BPF_PROG_RAW_TRACEPOINT_LOAD-ioctl$sock_SIOCGIFINDEX-bpf$BPF_LINK_CREATE_XDP-syz_emit_ethernet program crashed: BUG: Bad page state in skb_pp_cow_data simplifying C reproducer testing compiled C program (duration=1m5.938231677s, {Threaded:false Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet_tcp-bpf$BPF_PROG_RAW_TRACEPOINT_LOAD-ioctl$sock_SIOCGIFINDEX-bpf$BPF_LINK_CREATE_XDP-syz_emit_ethernet program crashed: BUG: Bad page state in skb_pp_cow_data testing compiled C program (duration=1m5.938231677s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet_tcp-bpf$BPF_PROG_RAW_TRACEPOINT_LOAD-ioctl$sock_SIOCGIFINDEX-bpf$BPF_LINK_CREATE_XDP-syz_emit_ethernet program crashed: BUG: Bad page state in skb_pp_cow_data testing compiled C program (duration=1m5.938231677s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox: SandboxArg:0 Leak:false NetInjection:false NetDevices:false NetReset:false Cgroups:false BinfmtMisc:false CloseFDs:false KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:true Sysctl:true Swap:false UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet_tcp-bpf$BPF_PROG_RAW_TRACEPOINT_LOAD-ioctl$sock_SIOCGIFINDEX-bpf$BPF_LINK_CREATE_XDP-syz_emit_ethernet program did not crash testing compiled C program (duration=1m5.938231677s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:false NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet_tcp-bpf$BPF_PROG_RAW_TRACEPOINT_LOAD-ioctl$sock_SIOCGIFINDEX-bpf$BPF_LINK_CREATE_XDP-syz_emit_ethernet program did not crash testing compiled C program (duration=1m5.938231677s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:false NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet_tcp-bpf$BPF_PROG_RAW_TRACEPOINT_LOAD-ioctl$sock_SIOCGIFINDEX-bpf$BPF_LINK_CREATE_XDP-syz_emit_ethernet program crashed: BUG: Bad page state in skb_pp_cow_data testing compiled C program (duration=1m5.938231677s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:false NetReset:false Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet_tcp-bpf$BPF_PROG_RAW_TRACEPOINT_LOAD-ioctl$sock_SIOCGIFINDEX-bpf$BPF_LINK_CREATE_XDP-syz_emit_ethernet program crashed: BUG: Bad page state in skb_pp_cow_data testing compiled C program (duration=1m5.938231677s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:false NetReset:false Cgroups:false BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet_tcp-bpf$BPF_PROG_RAW_TRACEPOINT_LOAD-ioctl$sock_SIOCGIFINDEX-bpf$BPF_LINK_CREATE_XDP-syz_emit_ethernet program crashed: BUG: Bad page state in skb_pp_cow_data testing compiled C program (duration=1m5.938231677s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:false NetReset:false Cgroups:false BinfmtMisc:false CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet_tcp-bpf$BPF_PROG_RAW_TRACEPOINT_LOAD-ioctl$sock_SIOCGIFINDEX-bpf$BPF_LINK_CREATE_XDP-syz_emit_ethernet program crashed: BUG: Bad page state in skb_pp_cow_data testing compiled C program (duration=1m5.938231677s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:false NetReset:false Cgroups:false BinfmtMisc:false CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet_tcp-bpf$BPF_PROG_RAW_TRACEPOINT_LOAD-ioctl$sock_SIOCGIFINDEX-bpf$BPF_LINK_CREATE_XDP-syz_emit_ethernet program crashed: BUG: Bad page state in skb_pp_cow_data testing compiled C program (duration=1m5.938231677s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:false NetReset:false Cgroups:false BinfmtMisc:false CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet_tcp-bpf$BPF_PROG_RAW_TRACEPOINT_LOAD-ioctl$sock_SIOCGIFINDEX-bpf$BPF_LINK_CREATE_XDP-syz_emit_ethernet program crashed: BUG: Bad page state in skb_pp_cow_data testing compiled C program (duration=1m5.938231677s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:false NetReset:false Cgroups:false BinfmtMisc:false CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet_tcp-bpf$BPF_PROG_RAW_TRACEPOINT_LOAD-ioctl$sock_SIOCGIFINDEX-bpf$BPF_LINK_CREATE_XDP-syz_emit_ethernet program crashed: BUG: Bad page state in skb_pp_cow_data testing compiled C program (duration=1m5.938231677s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:false NetReset:false Cgroups:false BinfmtMisc:false CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet_tcp-bpf$BPF_PROG_RAW_TRACEPOINT_LOAD-ioctl$sock_SIOCGIFINDEX-bpf$BPF_LINK_CREATE_XDP-syz_emit_ethernet program crashed: BUG: Bad page state in skb_pp_cow_data testing compiled C program (duration=1m5.938231677s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:false NetReset:false Cgroups:false BinfmtMisc:false CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:true UseTmpDir:false HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet_tcp-bpf$BPF_PROG_RAW_TRACEPOINT_LOAD-ioctl$sock_SIOCGIFINDEX-bpf$BPF_LINK_CREATE_XDP-syz_emit_ethernet program crashed: BUG: Bad page state in skb_pp_cow_data testing compiled C program (duration=1m5.938231677s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:false NetReset:false Cgroups:false BinfmtMisc:false CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:true UseTmpDir:false HandleSegv:false Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet_tcp-bpf$BPF_PROG_RAW_TRACEPOINT_LOAD-ioctl$sock_SIOCGIFINDEX-bpf$BPF_LINK_CREATE_XDP-syz_emit_ethernet program crashed: BUG: Bad page state in skb_pp_cow_data testing compiled C program (duration=1m5.938231677s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:false NetReset:false Cgroups:false BinfmtMisc:false CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:false Swap:true UseTmpDir:false HandleSegv:false Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet_tcp-bpf$BPF_PROG_RAW_TRACEPOINT_LOAD-ioctl$sock_SIOCGIFINDEX-bpf$BPF_LINK_CREATE_XDP-syz_emit_ethernet program crashed: BUG: Bad page state in skb_pp_cow_data testing compiled C program (duration=1m5.938231677s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:false NetReset:false Cgroups:false BinfmtMisc:false CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:false Swap:false UseTmpDir:false HandleSegv:false Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet_tcp-bpf$BPF_PROG_RAW_TRACEPOINT_LOAD-ioctl$sock_SIOCGIFINDEX-bpf$BPF_LINK_CREATE_XDP-syz_emit_ethernet program crashed: BUG: Bad page state in skb_pp_cow_data reproducing took 34m34.388254225s repro crashed as (corrupted=false): BUG: Bad page state in process syz-executor193 pfn:44326 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x44326 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e572000 0000000000000000 raw: 0000000000000000 3fffffffffffffff 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5318, tgid 5318 (syz-executor193), ts 67658077797, free_ts 67542162652 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmems net/core/page_pool.c:593 [inline] page_pool_alloc_frag_netmem+0x59c/0x940 net/core/page_pool.c:998 page_pool_alloc_netmem include/net/page_pool/helpers.h:131 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xcea/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5313 tgid 5313 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2660 discard_slab mm/slub.c:2707 [inline] __put_partials+0x160/0x1c0 mm/slub.c:3176 put_cpu_partial+0x17c/0x250 mm/slub.c:3251 __slab_free+0x290/0x380 mm/slub.c:4503 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4138 [inline] slab_alloc_node mm/slub.c:4187 [inline] kmem_cache_alloc_noprof+0x1d9/0x380 mm/slub.c:4194 proc_reg_open+0x201/0x530 fs/proc/inode.c:502 do_dentry_open+0xdec/0x1960 fs/open.c:956 vfs_open+0x3b/0x370 fs/open.c:1086 do_open fs/namei.c:3845 [inline] path_openat+0x2c9f/0x35b0 fs/namei.c:4004 do_filp_open+0x282/0x4e0 fs/namei.c:4031 do_sys_openat2+0x122/0x1c0 fs/open.c:1429 do_sys_open fs/open.c:1444 [inline] __do_sys_openat fs/open.c:1460 [inline] __se_sys_openat fs/open.c:1455 [inline] __x64_sys_openat+0x247/0x2a0 fs/open.c:1455 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 Modules linked in: CPU: 0 UID: 0 PID: 5318 Comm: syz-executor193 Not tainted 6.14.0-syzkaller-00624-g2f2d52945852 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1082/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3ff23dadf0 Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d b1 e2 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89 RSP: 002b:00007ffe2ecb8d28 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f3ff23dadf0 RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 0000000000000000 R08: 00007ffe2ecb8e58 R09: 00007ffe2ecb8e58 R10: 00007ffe2ecb8e58 R11: 0000000000000202 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ffe2ecb8d60 R15: 00007ffe2ecb8d50 BUG: Bad page state in process syz-executor193 pfn:44325 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x44325 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e572000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5318, tgid 5318 (syz-executor193), ts 67658066743, free_ts 67542162652 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5313 tgid 5313 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2660 discard_slab mm/slub.c:2707 [inline] __put_partials+0x160/0x1c0 mm/slub.c:3176 put_cpu_partial+0x17c/0x250 mm/slub.c:3251 __slab_free+0x290/0x380 mm/slub.c:4503 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4138 [inline] slab_alloc_node mm/slub.c:4187 [inline] kmem_cache_alloc_noprof+0x1d9/0x380 mm/slub.c:4194 proc_reg_open+0x201/0x530 fs/proc/inode.c:502 do_dentry_open+0xdec/0x1960 fs/open.c:956 vfs_open+0x3b/0x370 fs/open.c:1086 do_open fs/namei.c:3845 [inline] path_openat+0x2c9f/0x35b0 fs/namei.c:4004 do_filp_open+0x282/0x4e0 fs/namei.c:4031 do_sys_openat2+0x122/0x1c0 fs/open.c:1429 do_sys_open fs/open.c:1444 [inline] __do_sys_openat fs/open.c:1460 [inline] __se_sys_openat fs/open.c:1455 [inline] __x64_sys_openat+0x247/0x2a0 fs/open.c:1455 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 Modules linked in: CPU: 0 UID: 0 PID: 5318 Comm: syz-executor193 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1082/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3ff23dadf0 Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d b1 e2 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89 RSP: 002b:00007ffe2ecb8d28 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f3ff23dadf0 RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 0000000000000000 R08: 00007ffe2ecb8e58 R09: 00007ffe2ecb8e58 R10: 00007ffe2ecb8e58 R11: 0000000000000202 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ffe2ecb8d60 R15: 00007ffe2ecb8d50 BUG: Bad page state in process syz-executor193 pfn:44324 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x44324 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e572000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5318, tgid 5318 (syz-executor193), ts 67658058700, free_ts 67542162652 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5313 tgid 5313 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2660 discard_slab mm/slub.c:2707 [inline] __put_partials+0x160/0x1c0 mm/slub.c:3176 put_cpu_partial+0x17c/0x250 mm/slub.c:3251 __slab_free+0x290/0x380 mm/slub.c:4503 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4138 [inline] slab_alloc_node mm/slub.c:4187 [inline] kmem_cache_alloc_noprof+0x1d9/0x380 mm/slub.c:4194 proc_reg_open+0x201/0x530 fs/proc/inode.c:502 do_dentry_open+0xdec/0x1960 fs/open.c:956 vfs_open+0x3b/0x370 fs/open.c:1086 do_open fs/namei.c:3845 [inline] path_openat+0x2c9f/0x35b0 fs/namei.c:4004 do_filp_open+0x282/0x4e0 fs/namei.c:4031 do_sys_openat2+0x122/0x1c0 fs/open.c:1429 do_sys_open fs/open.c:1444 [inline] __do_sys_openat fs/open.c:1460 [inline] __se_sys_openat fs/open.c:1455 [inline] __x64_sys_openat+0x247/0x2a0 fs/open.c:1455 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 Modules linked in: CPU: 0 UID: 0 PID: 5318 Comm: syz-executor193 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1082/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3ff23dadf0 Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d b1 e2 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89 RSP: 002b:00007ffe2ecb8d28 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f3ff23dadf0 RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 0000000000000000 R08: 00007ffe2ecb8e58 R09: 00007ffe2ecb8e58 R10: 00007ffe2ecb8e58 R11: 0000000000000202 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ffe2ecb8d60 R15: 00007ffe2ecb8d50 BUG: Bad page state in process syz-executor193 pfn:44323 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x44323 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e572000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5318, tgid 5318 (syz-executor193), ts 67658048846, free_ts 67542162652 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5313 tgid 5313 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2660 discard_slab mm/slub.c:2707 [inline] __put_partials+0x160/0x1c0 mm/slub.c:3176 put_cpu_partial+0x17c/0x250 mm/slub.c:3251 __slab_free+0x290/0x380 mm/slub.c:4503 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4138 [inline] slab_alloc_node mm/slub.c:4187 [inline] kmem_cache_alloc_noprof+0x1d9/0x380 mm/slub.c:4194 proc_reg_open+0x201/0x530 fs/proc/inode.c:502 do_dentry_open+0xdec/0x1960 fs/open.c:956 vfs_open+0x3b/0x370 fs/open.c:1086 do_open fs/namei.c:3845 [inline] path_openat+0x2c9f/0x35b0 fs/namei.c:4004 do_filp_open+0x282/0x4e0 fs/namei.c:4031 do_sys_openat2+0x122/0x1c0 fs/open.c:1429 do_sys_open fs/open.c:1444 [inline] __do_sys_openat fs/open.c:1460 [inline] __se_sys_openat fs/open.c:1455 [inline] __x64_sys_openat+0x247/0x2a0 fs/open.c:1455 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 Modules linked in: CPU: 0 UID: 0 PID: 5318 Comm: syz-executor193 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1082/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3ff23dadf0 Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d b1 e2 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89 RSP: 002b:00007ffe2ecb8d28 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f3ff23dadf0 RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 0000000000000000 R08: 00007ffe2ecb8e58 R09: 00007ffe2ecb8e58 R10: 00007ffe2ecb8e58 R11: 0000000000000202 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ffe2ecb8d60 R15: 00007ffe2ecb8d50 BUG: Bad page state in process syz-executor193 pfn:44322 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x44322 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e572000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5318, tgid 5318 (syz-executor193), ts 67658039064, free_ts 67542162652 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5313 tgid 5313 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2660 discard_slab mm/slub.c:2707 [inline] __put_partials+0x160/0x1c0 mm/slub.c:3176 put_cpu_partial+0x17c/0x250 mm/slub.c:3251 __slab_free+0x290/0x380 mm/slub.c:4503 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4138 [inline] slab_alloc_node mm/slub.c:4187 [inline] kmem_cache_alloc_noprof+0x1d9/0x380 mm/slub.c:4194 proc_reg_open+0x201/0x530 fs/proc/inode.c:502 do_dentry_open+0xdec/0x1960 fs/open.c:956 vfs_open+0x3b/0x370 fs/open.c:1086 do_open fs/namei.c:3845 [inline] path_openat+0x2c9f/0x35b0 fs/namei.c:4004 do_filp_open+0x282/0x4e0 fs/namei.c:4031 do_sys_openat2+0x122/0x1c0 fs/open.c:1429 do_sys_open fs/open.c:1444 [inline] __do_sys_openat fs/open.c:1460 [inline] __se_sys_openat fs/open.c:1455 [inline] __x64_sys_openat+0x247/0x2a0 fs/open.c:1455 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 Modules linked in: CPU: 0 UID: 0 PID: 5318 Comm: syz-executor193 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1082/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3ff23dadf0 Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d b1 e2 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89 RSP: 002b:00007ffe2ecb8d28 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f3ff23dadf0 RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 0000000000000000 R08: 00007ffe2ecb8e58 R09: 00007ffe2ecb8e58 R10: 00007ffe2ecb8e58 R11: 0000000000000202 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ffe2ecb8d60 R15: 00007ffe2ecb8d50 BUG: Bad page state in process syz-executor193 pfn:44321 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x8 pfn:0x44321 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e572000 0000000000000000 raw: 0000000000000008 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5318, tgid 5318 (syz-executor193), ts 67658029396, free_ts 67542162652 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5313 tgid 5313 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2660 discard_slab mm/slub.c:2707 [inline] __put_partials+0x160/0x1c0 mm/slub.c:3176 put_cpu_partial+0x17c/0x250 mm/slub.c:3251 __slab_free+0x290/0x380 mm/slub.c:4503 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4138 [inline] slab_alloc_node mm/slub.c:4187 [inline] kmem_cache_alloc_noprof+0x1d9/0x380 mm/slub.c:4194 proc_reg_open+0x201/0x530 fs/proc/inode.c:502 do_dentry_open+0xdec/0x1960 fs/open.c:956 vfs_open+0x3b/0x370 fs/open.c:1086 do_open fs/namei.c:3845 [inline] path_openat+0x2c9f/0x35b0 fs/namei.c:4004 do_filp_open+0x282/0x4e0 fs/namei.c:4031 do_sys_openat2+0x122/0x1c0 fs/open.c:1429 do_sys_open fs/open.c:1444 [inline] __do_sys_openat fs/open.c:1460 [inline] __se_sys_openat fs/open.c:1455 [inline] __x64_sys_openat+0x247/0x2a0 fs/open.c:1455 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 Modules linked in: CPU: 0 UID: 0 PID: 5318 Comm: syz-executor193 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1082/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3ff23dadf0 Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d b1 e2 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89 RSP: 002b:00007ffe2ecb8d28 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f3ff23dadf0 RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 0000000000000000 R08: 00007ffe2ecb8e58 R09: 00007ffe2ecb8e58 R10: 00007ffe2ecb8e58 R11: 0000000000000202 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ffe2ecb8d60 R15: 00007ffe2ecb8d50 BUG: Bad page state in process syz-executor193 pfn:44320 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888044322000 pfn:0x44320 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e572000 0000000000000000 raw: ffff888044322000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5318, tgid 5318 (syz-executor193), ts 67658019999, free_ts 67542162652 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5313 tgid 5313 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2660 discard_slab mm/slub.c:2707 [inline] __put_partials+0x160/0x1c0 mm/slub.c:3176 put_cpu_partial+0x17c/0x250 mm/slub.c:3251 __slab_free+0x290/0x380 mm/slub.c:4503 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4138 [inline] slab_alloc_node mm/slub.c:4187 [inline] kmem_cache_alloc_noprof+0x1d9/0x380 mm/slub.c:4194 proc_reg_open+0x201/0x530 fs/proc/inode.c:502 do_dentry_open+0xdec/0x1960 fs/open.c:956 vfs_open+0x3b/0x370 fs/open.c:1086 do_open fs/namei.c:3845 [inline] path_openat+0x2c9f/0x35b0 fs/namei.c:4004 do_filp_open+0x282/0x4e0 fs/namei.c:4031 do_sys_openat2+0x122/0x1c0 fs/open.c:1429 do_sys_open fs/open.c:1444 [inline] __do_sys_openat fs/open.c:1460 [inline] __se_sys_openat fs/open.c:1455 [inline] __x64_sys_openat+0x247/0x2a0 fs/open.c:1455 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 Modules linked in: CPU: 0 UID: 0 PID: 5318 Comm: syz-executor193 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1082/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3ff23dadf0 Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d b1 e2 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89 RSP: 002b:00007ffe2ecb8d28 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f3ff23dadf0 RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 0000000000000000 R08: 00007ffe2ecb8e58 R09: 00007ffe2ecb8e58 R10: 00007ffe2ecb8e58 R11: 0000000000000202 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ffe2ecb8d60 R15: 00007ffe2ecb8d50 BUG: Bad page state in process syz-executor193 pfn:44857 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x44857 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e572000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5318, tgid 5318 (syz-executor193), ts 67657991941, free_ts 63760645561 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5251 tgid 5251 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2660 skb_free_frag include/linux/skbuff.h:3445 [inline] skb_free_head net/core/skbuff.c:1006 [inline] skb_release_data+0x6dc/0x8a0 net/core/skbuff.c:1035 skb_release_all net/core/skbuff.c:1100 [inline] kfree_skb_add_bulk net/core/skbuff.c:1173 [inline] kfree_skb_list_reason+0x2ee/0x750 net/core/skbuff.c:1195 skb_release_data+0x5cc/0x8a0 net/core/skbuff.c:1033 skb_release_all net/core/skbuff.c:1100 [inline] __napi_kfree_skb net/core/skbuff.c:1390 [inline] kfree_skb_napi_cache net/core/skbuff.c:7025 [inline] skb_attempt_defer_free+0x42f/0x5c0 net/core/skbuff.c:7047 tcp_eat_recv_skb net/ipv4/tcp.c:1527 [inline] tcp_recvmsg_locked+0x2800/0x3a90 net/ipv4/tcp.c:2819 tcp_recvmsg+0x25d/0x920 net/ipv4/tcp.c:2865 inet_recvmsg+0x150/0x2d0 net/ipv4/af_inet.c:883 sock_recvmsg_nosec net/socket.c:1023 [inline] sock_recvmsg+0x1ae/0x280 net/socket.c:1045 sock_read_iter+0x2c4/0x3d0 net/socket.c:1115 new_sync_read fs/read_write.c:489 [inline] vfs_read+0x975/0xb40 fs/read_write.c:570 ksys_read+0x18f/0x2b0 fs/read_write.c:713 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 5318 Comm: syz-executor193 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1082/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3ff23dadf0 Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d b1 e2 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89 RSP: 002b:00007ffe2ecb8d28 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f3ff23dadf0 RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 0000000000000000 R08: 00007ffe2ecb8e58 R09: 00007ffe2ecb8e58 R10: 00007ffe2ecb8e58 R11: 0000000000000202 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ffe2ecb8d60 R15: 00007ffe2ecb8d50 BUG: Bad page state in process syz-executor193 pfn:44856 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x44856 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e572000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5318, tgid 5318 (syz-executor193), ts 67657982342, free_ts 63760645561 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5251 tgid 5251 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2660 skb_free_frag include/linux/skbuff.h:3445 [inline] skb_free_head net/core/skbuff.c:1006 [inline] skb_release_data+0x6dc/0x8a0 net/core/skbuff.c:1035 skb_release_all net/core/skbuff.c:1100 [inline] kfree_skb_add_bulk net/core/skbuff.c:1173 [inline] kfree_skb_list_reason+0x2ee/0x750 net/core/skbuff.c:1195 skb_release_data+0x5cc/0x8a0 net/core/skbuff.c:1033 skb_release_all net/core/skbuff.c:1100 [inline] __napi_kfree_skb net/core/skbuff.c:1390 [inline] kfree_skb_napi_cache net/core/skbuff.c:7025 [inline] skb_attempt_defer_free+0x42f/0x5c0 net/core/skbuff.c:7047 tcp_eat_recv_skb net/ipv4/tcp.c:1527 [inline] tcp_recvmsg_locked+0x2800/0x3a90 net/ipv4/tcp.c:2819 tcp_recvmsg+0x25d/0x920 net/ipv4/tcp.c:2865 inet_recvmsg+0x150/0x2d0 net/ipv4/af_inet.c:883 sock_recvmsg_nosec net/socket.c:1023 [inline] sock_recvmsg+0x1ae/0x280 net/socket.c:1045 sock_read_iter+0x2c4/0x3d0 net/socket.c:1115 new_sync_read fs/read_write.c:489 [inline] vfs_read+0x975/0xb40 fs/read_write.c:570 ksys_read+0x18f/0x2b0 fs/read_write.c:713 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 5318 Comm: syz-executor193 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1082/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3ff23dadf0 Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d b1 e2 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89 RSP: 002b:00007ffe2ecb8d28 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f3ff23dadf0 RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 0000000000000000 R08: 00007ffe2ecb8e58 R09: 00007ffe2ecb8e58 R10: 00007ffe2ecb8e58 R11: 0000000000000202 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ffe2ecb8d60 R15: 00007ffe2ecb8d50 BUG: Bad page state in process syz-executor193 pfn:44855 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x44855 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e572000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5318, tgid 5318 (syz-executor193), ts 67657972939, free_ts 63760645561 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5251 tgid 5251 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2660 skb_free_frag include/linux/skbuff.h:3445 [inline] skb_free_head net/core/skbuff.c:1006 [inline] skb_release_data+0x6dc/0x8a0 net/core/skbuff.c:1035 skb_release_all net/core/skbuff.c:1100 [inline] kfree_skb_add_bulk net/core/skbuff.c:1173 [inline] kfree_skb_list_reason+0x2ee/0x750 net/core/skbuff.c:1195 skb_release_data+0x5cc/0x8a0 net/core/skbuff.c:1033 skb_release_all net/core/skbuff.c:1100 [inline] __napi_kfree_skb net/core/skbuff.c:1390 [inline] kfree_skb_napi_cache net/core/skbuff.c:7025 [inline] skb_attempt_defer_free+0x42f/0x5c0 net/core/skbuff.c:7047 tcp_eat_recv_skb net/ipv4/tcp.c:1527 [inline] tcp_recvmsg_locked+0x2800/0x3a90 net/ipv4/tcp.c:2819 tcp_recvmsg+0x25d/0x920 net/ipv4/tcp.c:2865 inet_recvmsg+0x150/0x2d0 net/ipv4/af_inet.c:883 sock_recvmsg_nosec net/socket.c:1023 [inline] sock_recvmsg+0x1ae/0x280 net/socket.c:1045 sock_read_iter+0x2c4/0x3d0 net/socket.c:1115 new_sync_read fs/read_write.c:489 [inline] vfs_read+0x975/0xb40 fs/read_write.c:570 ksys_read+0x18f/0x2b0 fs/read_write.c:713 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 5318 Comm: syz-executor193 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1082/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3ff23dadf0 Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d b1 e2 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89 RSP: 002b:00007ffe2ecb8d28 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f3ff23dadf0 RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 0000000000000000 R08: 00007ffe2ecb8e58 R09: 00007ffe2ecb8e58 R10: 00007ffe2ecb8e58 R11: 0000000000000202 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ffe2ecb8d60 R15: 00007ffe2ecb8d50 BUG: Bad page state in process syz-executor193 pfn:44854 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x44854 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e572000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5318, tgid 5318 (syz-executor193), ts 67657952044, free_ts 63760645561 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5251 tgid 5251 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2660 skb_free_frag include/linux/skbuff.h:3445 [inline] skb_free_head net/core/skbuff.c:1006 [inline] skb_release_data+0x6dc/0x8a0 net/core/skbuff.c:1035 skb_release_all net/core/skbuff.c:1100 [inline] kfree_skb_add_bulk net/core/skbuff.c:1173 [inline] kfree_skb_list_reason+0x2ee/0x750 net/core/skbuff.c:1195 skb_release_data+0x5cc/0x8a0 net/core/skbuff.c:1033 skb_release_all net/core/skbuff.c:1100 [inline] __napi_kfree_skb net/core/skbuff.c:1390 [inline] kfree_skb_napi_cache net/core/skbuff.c:7025 [inline] skb_attempt_defer_free+0x42f/0x5c0 net/core/skbuff.c:7047 tcp_eat_recv_skb net/ipv4/tcp.c:1527 [inline] tcp_recvmsg_locked+0x2800/0x3a90 net/ipv4/tcp.c:2819 tcp_recvmsg+0x25d/0x920 net/ipv4/tcp.c:2865 inet_recvmsg+0x150/0x2d0 net/ipv4/af_inet.c:883 sock_recvmsg_nosec net/socket.c:1023 [inline] sock_recvmsg+0x1ae/0x280 net/socket.c:1045 sock_read_iter+0x2c4/0x3d0 net/socket.c:1115 new_sync_read fs/read_write.c:489 [inline] vfs_read+0x975/0xb40 fs/read_write.c:570 ksys_read+0x18f/0x2b0 fs/read_write.c:713 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 5318 Comm: syz-executor193 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1082/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3ff23dadf0 Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d b1 e2 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89 RSP: 002b:00007ffe2ecb8d28 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f3ff23dadf0 RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 0000000000000000 R08: 00007ffe2ecb8e58 R09: 00007ffe2ecb8e58 R10: 00007ffe2ecb8e58 R11: 0000000000000202 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ffe2ecb8d60 R15: 00007ffe2ecb8d50 BUG: Bad page state in process syz-executor193 pfn:44853 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x44853 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e572000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5318, tgid 5318 (syz-executor193), ts 67657942907, free_ts 63760645561 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5251 tgid 5251 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2660 skb_free_frag include/linux/skbuff.h:3445 [inline] skb_free_head net/core/skbuff.c:1006 [inline] skb_release_data+0x6dc/0x8a0 net/core/skbuff.c:1035 skb_release_all net/core/skbuff.c:1100 [inline] kfree_skb_add_bulk net/core/skbuff.c:1173 [inline] kfree_skb_list_reason+0x2ee/0x750 net/core/skbuff.c:1195 skb_release_data+0x5cc/0x8a0 net/core/skbuff.c:1033 skb_release_all net/core/skbuff.c:1100 [inline] __napi_kfree_skb net/core/skbuff.c:1390 [inline] kfree_skb_napi_cache net/core/skbuff.c:7025 [inline] skb_attempt_defer_free+0x42f/0x5c0 net/core/skbuff.c:7047 tcp_eat_recv_skb net/ipv4/tcp.c:1527 [inline] tcp_recvmsg_locked+0x2800/0x3a90 net/ipv4/tcp.c:2819 tcp_recvmsg+0x25d/0x920 net/ipv4/tcp.c:2865 inet_recvmsg+0x150/0x2d0 net/ipv4/af_inet.c:883 sock_recvmsg_nosec net/socket.c:1023 [inline] sock_recvmsg+0x1ae/0x280 net/socket.c:1045 sock_read_iter+0x2c4/0x3d0 net/socket.c:1115 new_sync_read fs/read_write.c:489 [inline] vfs_read+0x975/0xb40 fs/read_write.c:570 ksys_read+0x18f/0x2b0 fs/read_write.c:713 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 5318 Comm: syz-executor193 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1082/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3ff23dadf0 Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d b1 e2 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89 RSP: 002b:00007ffe2ecb8d28 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f3ff23dadf0 RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 0000000000000000 R08: 00007ffe2ecb8e58 R09: 00007ffe2ecb8e58 R10: 00007ffe2ecb8e58 R11: 0000000000000202 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ffe2ecb8d60 R15: 00007ffe2ecb8d50 final repro crashed as (corrupted=false): BUG: Bad page state in process syz-executor193 pfn:44326 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x44326 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e572000 0000000000000000 raw: 0000000000000000 3fffffffffffffff 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5318, tgid 5318 (syz-executor193), ts 67658077797, free_ts 67542162652 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmems net/core/page_pool.c:593 [inline] page_pool_alloc_frag_netmem+0x59c/0x940 net/core/page_pool.c:998 page_pool_alloc_netmem include/net/page_pool/helpers.h:131 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xcea/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5313 tgid 5313 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2660 discard_slab mm/slub.c:2707 [inline] __put_partials+0x160/0x1c0 mm/slub.c:3176 put_cpu_partial+0x17c/0x250 mm/slub.c:3251 __slab_free+0x290/0x380 mm/slub.c:4503 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4138 [inline] slab_alloc_node mm/slub.c:4187 [inline] kmem_cache_alloc_noprof+0x1d9/0x380 mm/slub.c:4194 proc_reg_open+0x201/0x530 fs/proc/inode.c:502 do_dentry_open+0xdec/0x1960 fs/open.c:956 vfs_open+0x3b/0x370 fs/open.c:1086 do_open fs/namei.c:3845 [inline] path_openat+0x2c9f/0x35b0 fs/namei.c:4004 do_filp_open+0x282/0x4e0 fs/namei.c:4031 do_sys_openat2+0x122/0x1c0 fs/open.c:1429 do_sys_open fs/open.c:1444 [inline] __do_sys_openat fs/open.c:1460 [inline] __se_sys_openat fs/open.c:1455 [inline] __x64_sys_openat+0x247/0x2a0 fs/open.c:1455 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 Modules linked in: CPU: 0 UID: 0 PID: 5318 Comm: syz-executor193 Not tainted 6.14.0-syzkaller-00624-g2f2d52945852 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1082/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3ff23dadf0 Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d b1 e2 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89 RSP: 002b:00007ffe2ecb8d28 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f3ff23dadf0 RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 0000000000000000 R08: 00007ffe2ecb8e58 R09: 00007ffe2ecb8e58 R10: 00007ffe2ecb8e58 R11: 0000000000000202 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ffe2ecb8d60 R15: 00007ffe2ecb8d50 BUG: Bad page state in process syz-executor193 pfn:44325 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x44325 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e572000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5318, tgid 5318 (syz-executor193), ts 67658066743, free_ts 67542162652 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5313 tgid 5313 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2660 discard_slab mm/slub.c:2707 [inline] __put_partials+0x160/0x1c0 mm/slub.c:3176 put_cpu_partial+0x17c/0x250 mm/slub.c:3251 __slab_free+0x290/0x380 mm/slub.c:4503 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4138 [inline] slab_alloc_node mm/slub.c:4187 [inline] kmem_cache_alloc_noprof+0x1d9/0x380 mm/slub.c:4194 proc_reg_open+0x201/0x530 fs/proc/inode.c:502 do_dentry_open+0xdec/0x1960 fs/open.c:956 vfs_open+0x3b/0x370 fs/open.c:1086 do_open fs/namei.c:3845 [inline] path_openat+0x2c9f/0x35b0 fs/namei.c:4004 do_filp_open+0x282/0x4e0 fs/namei.c:4031 do_sys_openat2+0x122/0x1c0 fs/open.c:1429 do_sys_open fs/open.c:1444 [inline] __do_sys_openat fs/open.c:1460 [inline] __se_sys_openat fs/open.c:1455 [inline] __x64_sys_openat+0x247/0x2a0 fs/open.c:1455 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 Modules linked in: CPU: 0 UID: 0 PID: 5318 Comm: syz-executor193 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1082/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3ff23dadf0 Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d b1 e2 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89 RSP: 002b:00007ffe2ecb8d28 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f3ff23dadf0 RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 0000000000000000 R08: 00007ffe2ecb8e58 R09: 00007ffe2ecb8e58 R10: 00007ffe2ecb8e58 R11: 0000000000000202 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ffe2ecb8d60 R15: 00007ffe2ecb8d50 BUG: Bad page state in process syz-executor193 pfn:44324 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x44324 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e572000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5318, tgid 5318 (syz-executor193), ts 67658058700, free_ts 67542162652 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5313 tgid 5313 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2660 discard_slab mm/slub.c:2707 [inline] __put_partials+0x160/0x1c0 mm/slub.c:3176 put_cpu_partial+0x17c/0x250 mm/slub.c:3251 __slab_free+0x290/0x380 mm/slub.c:4503 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4138 [inline] slab_alloc_node mm/slub.c:4187 [inline] kmem_cache_alloc_noprof+0x1d9/0x380 mm/slub.c:4194 proc_reg_open+0x201/0x530 fs/proc/inode.c:502 do_dentry_open+0xdec/0x1960 fs/open.c:956 vfs_open+0x3b/0x370 fs/open.c:1086 do_open fs/namei.c:3845 [inline] path_openat+0x2c9f/0x35b0 fs/namei.c:4004 do_filp_open+0x282/0x4e0 fs/namei.c:4031 do_sys_openat2+0x122/0x1c0 fs/open.c:1429 do_sys_open fs/open.c:1444 [inline] __do_sys_openat fs/open.c:1460 [inline] __se_sys_openat fs/open.c:1455 [inline] __x64_sys_openat+0x247/0x2a0 fs/open.c:1455 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 Modules linked in: CPU: 0 UID: 0 PID: 5318 Comm: syz-executor193 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1082/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3ff23dadf0 Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d b1 e2 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89 RSP: 002b:00007ffe2ecb8d28 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f3ff23dadf0 RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 0000000000000000 R08: 00007ffe2ecb8e58 R09: 00007ffe2ecb8e58 R10: 00007ffe2ecb8e58 R11: 0000000000000202 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ffe2ecb8d60 R15: 00007ffe2ecb8d50 BUG: Bad page state in process syz-executor193 pfn:44323 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x44323 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e572000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5318, tgid 5318 (syz-executor193), ts 67658048846, free_ts 67542162652 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5313 tgid 5313 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2660 discard_slab mm/slub.c:2707 [inline] __put_partials+0x160/0x1c0 mm/slub.c:3176 put_cpu_partial+0x17c/0x250 mm/slub.c:3251 __slab_free+0x290/0x380 mm/slub.c:4503 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4138 [inline] slab_alloc_node mm/slub.c:4187 [inline] kmem_cache_alloc_noprof+0x1d9/0x380 mm/slub.c:4194 proc_reg_open+0x201/0x530 fs/proc/inode.c:502 do_dentry_open+0xdec/0x1960 fs/open.c:956 vfs_open+0x3b/0x370 fs/open.c:1086 do_open fs/namei.c:3845 [inline] path_openat+0x2c9f/0x35b0 fs/namei.c:4004 do_filp_open+0x282/0x4e0 fs/namei.c:4031 do_sys_openat2+0x122/0x1c0 fs/open.c:1429 do_sys_open fs/open.c:1444 [inline] __do_sys_openat fs/open.c:1460 [inline] __se_sys_openat fs/open.c:1455 [inline] __x64_sys_openat+0x247/0x2a0 fs/open.c:1455 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 Modules linked in: CPU: 0 UID: 0 PID: 5318 Comm: syz-executor193 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1082/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3ff23dadf0 Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d b1 e2 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89 RSP: 002b:00007ffe2ecb8d28 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f3ff23dadf0 RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 0000000000000000 R08: 00007ffe2ecb8e58 R09: 00007ffe2ecb8e58 R10: 00007ffe2ecb8e58 R11: 0000000000000202 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ffe2ecb8d60 R15: 00007ffe2ecb8d50 BUG: Bad page state in process syz-executor193 pfn:44322 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x44322 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e572000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5318, tgid 5318 (syz-executor193), ts 67658039064, free_ts 67542162652 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5313 tgid 5313 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2660 discard_slab mm/slub.c:2707 [inline] __put_partials+0x160/0x1c0 mm/slub.c:3176 put_cpu_partial+0x17c/0x250 mm/slub.c:3251 __slab_free+0x290/0x380 mm/slub.c:4503 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4138 [inline] slab_alloc_node mm/slub.c:4187 [inline] kmem_cache_alloc_noprof+0x1d9/0x380 mm/slub.c:4194 proc_reg_open+0x201/0x530 fs/proc/inode.c:502 do_dentry_open+0xdec/0x1960 fs/open.c:956 vfs_open+0x3b/0x370 fs/open.c:1086 do_open fs/namei.c:3845 [inline] path_openat+0x2c9f/0x35b0 fs/namei.c:4004 do_filp_open+0x282/0x4e0 fs/namei.c:4031 do_sys_openat2+0x122/0x1c0 fs/open.c:1429 do_sys_open fs/open.c:1444 [inline] __do_sys_openat fs/open.c:1460 [inline] __se_sys_openat fs/open.c:1455 [inline] __x64_sys_openat+0x247/0x2a0 fs/open.c:1455 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 Modules linked in: CPU: 0 UID: 0 PID: 5318 Comm: syz-executor193 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1082/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3ff23dadf0 Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d b1 e2 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89 RSP: 002b:00007ffe2ecb8d28 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f3ff23dadf0 RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 0000000000000000 R08: 00007ffe2ecb8e58 R09: 00007ffe2ecb8e58 R10: 00007ffe2ecb8e58 R11: 0000000000000202 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ffe2ecb8d60 R15: 00007ffe2ecb8d50 BUG: Bad page state in process syz-executor193 pfn:44321 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x8 pfn:0x44321 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e572000 0000000000000000 raw: 0000000000000008 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5318, tgid 5318 (syz-executor193), ts 67658029396, free_ts 67542162652 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5313 tgid 5313 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2660 discard_slab mm/slub.c:2707 [inline] __put_partials+0x160/0x1c0 mm/slub.c:3176 put_cpu_partial+0x17c/0x250 mm/slub.c:3251 __slab_free+0x290/0x380 mm/slub.c:4503 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4138 [inline] slab_alloc_node mm/slub.c:4187 [inline] kmem_cache_alloc_noprof+0x1d9/0x380 mm/slub.c:4194 proc_reg_open+0x201/0x530 fs/proc/inode.c:502 do_dentry_open+0xdec/0x1960 fs/open.c:956 vfs_open+0x3b/0x370 fs/open.c:1086 do_open fs/namei.c:3845 [inline] path_openat+0x2c9f/0x35b0 fs/namei.c:4004 do_filp_open+0x282/0x4e0 fs/namei.c:4031 do_sys_openat2+0x122/0x1c0 fs/open.c:1429 do_sys_open fs/open.c:1444 [inline] __do_sys_openat fs/open.c:1460 [inline] __se_sys_openat fs/open.c:1455 [inline] __x64_sys_openat+0x247/0x2a0 fs/open.c:1455 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 Modules linked in: CPU: 0 UID: 0 PID: 5318 Comm: syz-executor193 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1082/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3ff23dadf0 Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d b1 e2 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89 RSP: 002b:00007ffe2ecb8d28 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f3ff23dadf0 RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 0000000000000000 R08: 00007ffe2ecb8e58 R09: 00007ffe2ecb8e58 R10: 00007ffe2ecb8e58 R11: 0000000000000202 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ffe2ecb8d60 R15: 00007ffe2ecb8d50 BUG: Bad page state in process syz-executor193 pfn:44320 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888044322000 pfn:0x44320 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e572000 0000000000000000 raw: ffff888044322000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5318, tgid 5318 (syz-executor193), ts 67658019999, free_ts 67542162652 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5313 tgid 5313 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2660 discard_slab mm/slub.c:2707 [inline] __put_partials+0x160/0x1c0 mm/slub.c:3176 put_cpu_partial+0x17c/0x250 mm/slub.c:3251 __slab_free+0x290/0x380 mm/slub.c:4503 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4138 [inline] slab_alloc_node mm/slub.c:4187 [inline] kmem_cache_alloc_noprof+0x1d9/0x380 mm/slub.c:4194 proc_reg_open+0x201/0x530 fs/proc/inode.c:502 do_dentry_open+0xdec/0x1960 fs/open.c:956 vfs_open+0x3b/0x370 fs/open.c:1086 do_open fs/namei.c:3845 [inline] path_openat+0x2c9f/0x35b0 fs/namei.c:4004 do_filp_open+0x282/0x4e0 fs/namei.c:4031 do_sys_openat2+0x122/0x1c0 fs/open.c:1429 do_sys_open fs/open.c:1444 [inline] __do_sys_openat fs/open.c:1460 [inline] __se_sys_openat fs/open.c:1455 [inline] __x64_sys_openat+0x247/0x2a0 fs/open.c:1455 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 Modules linked in: CPU: 0 UID: 0 PID: 5318 Comm: syz-executor193 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1082/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3ff23dadf0 Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d b1 e2 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89 RSP: 002b:00007ffe2ecb8d28 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f3ff23dadf0 RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 0000000000000000 R08: 00007ffe2ecb8e58 R09: 00007ffe2ecb8e58 R10: 00007ffe2ecb8e58 R11: 0000000000000202 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ffe2ecb8d60 R15: 00007ffe2ecb8d50 BUG: Bad page state in process syz-executor193 pfn:44857 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x44857 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e572000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5318, tgid 5318 (syz-executor193), ts 67657991941, free_ts 63760645561 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5251 tgid 5251 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2660 skb_free_frag include/linux/skbuff.h:3445 [inline] skb_free_head net/core/skbuff.c:1006 [inline] skb_release_data+0x6dc/0x8a0 net/core/skbuff.c:1035 skb_release_all net/core/skbuff.c:1100 [inline] kfree_skb_add_bulk net/core/skbuff.c:1173 [inline] kfree_skb_list_reason+0x2ee/0x750 net/core/skbuff.c:1195 skb_release_data+0x5cc/0x8a0 net/core/skbuff.c:1033 skb_release_all net/core/skbuff.c:1100 [inline] __napi_kfree_skb net/core/skbuff.c:1390 [inline] kfree_skb_napi_cache net/core/skbuff.c:7025 [inline] skb_attempt_defer_free+0x42f/0x5c0 net/core/skbuff.c:7047 tcp_eat_recv_skb net/ipv4/tcp.c:1527 [inline] tcp_recvmsg_locked+0x2800/0x3a90 net/ipv4/tcp.c:2819 tcp_recvmsg+0x25d/0x920 net/ipv4/tcp.c:2865 inet_recvmsg+0x150/0x2d0 net/ipv4/af_inet.c:883 sock_recvmsg_nosec net/socket.c:1023 [inline] sock_recvmsg+0x1ae/0x280 net/socket.c:1045 sock_read_iter+0x2c4/0x3d0 net/socket.c:1115 new_sync_read fs/read_write.c:489 [inline] vfs_read+0x975/0xb40 fs/read_write.c:570 ksys_read+0x18f/0x2b0 fs/read_write.c:713 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 5318 Comm: syz-executor193 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1082/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3ff23dadf0 Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d b1 e2 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89 RSP: 002b:00007ffe2ecb8d28 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f3ff23dadf0 RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 0000000000000000 R08: 00007ffe2ecb8e58 R09: 00007ffe2ecb8e58 R10: 00007ffe2ecb8e58 R11: 0000000000000202 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ffe2ecb8d60 R15: 00007ffe2ecb8d50 BUG: Bad page state in process syz-executor193 pfn:44856 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x44856 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e572000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5318, tgid 5318 (syz-executor193), ts 67657982342, free_ts 63760645561 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5251 tgid 5251 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2660 skb_free_frag include/linux/skbuff.h:3445 [inline] skb_free_head net/core/skbuff.c:1006 [inline] skb_release_data+0x6dc/0x8a0 net/core/skbuff.c:1035 skb_release_all net/core/skbuff.c:1100 [inline] kfree_skb_add_bulk net/core/skbuff.c:1173 [inline] kfree_skb_list_reason+0x2ee/0x750 net/core/skbuff.c:1195 skb_release_data+0x5cc/0x8a0 net/core/skbuff.c:1033 skb_release_all net/core/skbuff.c:1100 [inline] __napi_kfree_skb net/core/skbuff.c:1390 [inline] kfree_skb_napi_cache net/core/skbuff.c:7025 [inline] skb_attempt_defer_free+0x42f/0x5c0 net/core/skbuff.c:7047 tcp_eat_recv_skb net/ipv4/tcp.c:1527 [inline] tcp_recvmsg_locked+0x2800/0x3a90 net/ipv4/tcp.c:2819 tcp_recvmsg+0x25d/0x920 net/ipv4/tcp.c:2865 inet_recvmsg+0x150/0x2d0 net/ipv4/af_inet.c:883 sock_recvmsg_nosec net/socket.c:1023 [inline] sock_recvmsg+0x1ae/0x280 net/socket.c:1045 sock_read_iter+0x2c4/0x3d0 net/socket.c:1115 new_sync_read fs/read_write.c:489 [inline] vfs_read+0x975/0xb40 fs/read_write.c:570 ksys_read+0x18f/0x2b0 fs/read_write.c:713 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 5318 Comm: syz-executor193 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1082/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3ff23dadf0 Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d b1 e2 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89 RSP: 002b:00007ffe2ecb8d28 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f3ff23dadf0 RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 0000000000000000 R08: 00007ffe2ecb8e58 R09: 00007ffe2ecb8e58 R10: 00007ffe2ecb8e58 R11: 0000000000000202 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ffe2ecb8d60 R15: 00007ffe2ecb8d50 BUG: Bad page state in process syz-executor193 pfn:44855 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x44855 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e572000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5318, tgid 5318 (syz-executor193), ts 67657972939, free_ts 63760645561 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5251 tgid 5251 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2660 skb_free_frag include/linux/skbuff.h:3445 [inline] skb_free_head net/core/skbuff.c:1006 [inline] skb_release_data+0x6dc/0x8a0 net/core/skbuff.c:1035 skb_release_all net/core/skbuff.c:1100 [inline] kfree_skb_add_bulk net/core/skbuff.c:1173 [inline] kfree_skb_list_reason+0x2ee/0x750 net/core/skbuff.c:1195 skb_release_data+0x5cc/0x8a0 net/core/skbuff.c:1033 skb_release_all net/core/skbuff.c:1100 [inline] __napi_kfree_skb net/core/skbuff.c:1390 [inline] kfree_skb_napi_cache net/core/skbuff.c:7025 [inline] skb_attempt_defer_free+0x42f/0x5c0 net/core/skbuff.c:7047 tcp_eat_recv_skb net/ipv4/tcp.c:1527 [inline] tcp_recvmsg_locked+0x2800/0x3a90 net/ipv4/tcp.c:2819 tcp_recvmsg+0x25d/0x920 net/ipv4/tcp.c:2865 inet_recvmsg+0x150/0x2d0 net/ipv4/af_inet.c:883 sock_recvmsg_nosec net/socket.c:1023 [inline] sock_recvmsg+0x1ae/0x280 net/socket.c:1045 sock_read_iter+0x2c4/0x3d0 net/socket.c:1115 new_sync_read fs/read_write.c:489 [inline] vfs_read+0x975/0xb40 fs/read_write.c:570 ksys_read+0x18f/0x2b0 fs/read_write.c:713 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 5318 Comm: syz-executor193 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1082/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3ff23dadf0 Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d b1 e2 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89 RSP: 002b:00007ffe2ecb8d28 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f3ff23dadf0 RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 0000000000000000 R08: 00007ffe2ecb8e58 R09: 00007ffe2ecb8e58 R10: 00007ffe2ecb8e58 R11: 0000000000000202 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ffe2ecb8d60 R15: 00007ffe2ecb8d50 BUG: Bad page state in process syz-executor193 pfn:44854 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x44854 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e572000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5318, tgid 5318 (syz-executor193), ts 67657952044, free_ts 63760645561 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5251 tgid 5251 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2660 skb_free_frag include/linux/skbuff.h:3445 [inline] skb_free_head net/core/skbuff.c:1006 [inline] skb_release_data+0x6dc/0x8a0 net/core/skbuff.c:1035 skb_release_all net/core/skbuff.c:1100 [inline] kfree_skb_add_bulk net/core/skbuff.c:1173 [inline] kfree_skb_list_reason+0x2ee/0x750 net/core/skbuff.c:1195 skb_release_data+0x5cc/0x8a0 net/core/skbuff.c:1033 skb_release_all net/core/skbuff.c:1100 [inline] __napi_kfree_skb net/core/skbuff.c:1390 [inline] kfree_skb_napi_cache net/core/skbuff.c:7025 [inline] skb_attempt_defer_free+0x42f/0x5c0 net/core/skbuff.c:7047 tcp_eat_recv_skb net/ipv4/tcp.c:1527 [inline] tcp_recvmsg_locked+0x2800/0x3a90 net/ipv4/tcp.c:2819 tcp_recvmsg+0x25d/0x920 net/ipv4/tcp.c:2865 inet_recvmsg+0x150/0x2d0 net/ipv4/af_inet.c:883 sock_recvmsg_nosec net/socket.c:1023 [inline] sock_recvmsg+0x1ae/0x280 net/socket.c:1045 sock_read_iter+0x2c4/0x3d0 net/socket.c:1115 new_sync_read fs/read_write.c:489 [inline] vfs_read+0x975/0xb40 fs/read_write.c:570 ksys_read+0x18f/0x2b0 fs/read_write.c:713 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 5318 Comm: syz-executor193 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1082/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3ff23dadf0 Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d b1 e2 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89 RSP: 002b:00007ffe2ecb8d28 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f3ff23dadf0 RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 0000000000000000 R08: 00007ffe2ecb8e58 R09: 00007ffe2ecb8e58 R10: 00007ffe2ecb8e58 R11: 0000000000000202 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ffe2ecb8d60 R15: 00007ffe2ecb8d50 BUG: Bad page state in process syz-executor193 pfn:44853 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x44853 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e572000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 5318, tgid 5318 (syz-executor193), ts 67657942907, free_ts 63760645561 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 __alloc_pages_noprof mm/page_alloc.c:4774 [inline] alloc_pages_bulk_noprof+0x847/0xae0 mm/page_alloc.c:4694 alloc_pages_bulk_node_noprof include/linux/gfp.h:235 [inline] __page_pool_alloc_pages_slow+0x11f/0x690 net/core/page_pool.c:542 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:160 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:181 [inline] skb_pp_cow_data+0xcc8/0x1720 net/core/skbuff.c:893 netif_skb_check_for_xdp net/core/dev.c:5259 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x505/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5251 tgid 5251 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2660 skb_free_frag include/linux/skbuff.h:3445 [inline] skb_free_head net/core/skbuff.c:1006 [inline] skb_release_data+0x6dc/0x8a0 net/core/skbuff.c:1035 skb_release_all net/core/skbuff.c:1100 [inline] kfree_skb_add_bulk net/core/skbuff.c:1173 [inline] kfree_skb_list_reason+0x2ee/0x750 net/core/skbuff.c:1195 skb_release_data+0x5cc/0x8a0 net/core/skbuff.c:1033 skb_release_all net/core/skbuff.c:1100 [inline] __napi_kfree_skb net/core/skbuff.c:1390 [inline] kfree_skb_napi_cache net/core/skbuff.c:7025 [inline] skb_attempt_defer_free+0x42f/0x5c0 net/core/skbuff.c:7047 tcp_eat_recv_skb net/ipv4/tcp.c:1527 [inline] tcp_recvmsg_locked+0x2800/0x3a90 net/ipv4/tcp.c:2819 tcp_recvmsg+0x25d/0x920 net/ipv4/tcp.c:2865 inet_recvmsg+0x150/0x2d0 net/ipv4/af_inet.c:883 sock_recvmsg_nosec net/socket.c:1023 [inline] sock_recvmsg+0x1ae/0x280 net/socket.c:1045 sock_read_iter+0x2c4/0x3d0 net/socket.c:1115 new_sync_read fs/read_write.c:489 [inline] vfs_read+0x975/0xb40 fs/read_write.c:570 ksys_read+0x18f/0x2b0 fs/read_write.c:713 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 5318 Comm: syz-executor193 Tainted: G B 6.14.0-syzkaller-00624-g2f2d52945852 #0 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_frozen_pages+0x1082/0x10e0 mm/page_alloc.c:2660 bpf_xdp_shrink_data net/core/filter.c:4155 [inline] bpf_xdp_frags_shrink_tail+0x3b3/0x780 net/core/filter.c:4175 ____bpf_xdp_adjust_tail net/core/filter.c:4200 [inline] bpf_xdp_adjust_tail+0x1c6/0x210 net/core/filter.c:4193 bpf_prog_f476d5219b92964a+0x1e/0x20 __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run_xdp include/net/xdp.h:654 [inline] bpf_prog_run_generic_xdp+0x686/0x1510 net/core/dev.c:5191 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0x757/0xd30 net/core/dev.c:5366 tun_get_user+0x2a4b/0x4860 drivers/net/tun.c:1929 tun_chr_write_iter+0x10d/0x1f0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xacf/0xd10 fs/read_write.c:684 ksys_write+0x18f/0x2b0 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3ff23dadf0 Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d b1 e2 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89 RSP: 002b:00007ffe2ecb8d28 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f3ff23dadf0 RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 0000000000000000 R08: 00007ffe2ecb8e58 R09: 00007ffe2ecb8e58 R10: 00007ffe2ecb8e58 R11: 0000000000000202 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ffe2ecb8d60 R15: 00007ffe2ecb8d50