Extracting prog: 1m12.47130069s Minimizing prog: 8m10.614289194s Simplifying prog options: 0s Extracting C: 19.96165527s Simplifying C: 8m28.764913089s 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:4 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 CallComments:true 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}, 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=31.595557212s, {Threaded:true Repeat:true RepeatTimes:0 Procs:4 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 CallComments:true 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}, 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=31.595557212s, {Threaded:true Repeat:true RepeatTimes:0 Procs:4 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 CallComments:true 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}, 0x94) ioctl$sock_SIOCGIFINDEX(r0, 0x8933, &(0x7f0000000180)={'syz_tun\x00'}) syz_emit_ethernet(0xfdef, &(0x7f0000000a80)=ANY=[], 0x0) program did not crash testing program (duration=31.595557212s, {Threaded:true Repeat:true RepeatTimes:0 Procs:4 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 CallComments:true 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}, 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=31.595557212s, {Threaded:true Repeat:true RepeatTimes:0 Procs:4 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 CallComments:true 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=31.595557212s, {Threaded:true Repeat:true RepeatTimes:0 Procs:4 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 CallComments:true 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}, 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=31.595557212s, {Threaded:true Repeat:true RepeatTimes:0 Procs:4 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 CallComments:true 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=31.595557212s, {Threaded:true Repeat:true RepeatTimes:0 Procs:4 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 CallComments:true 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}, 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=31.595557212s, {Threaded:true Repeat:true RepeatTimes:0 Procs:4 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 CallComments:true 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}, 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=31.595557212s, {Threaded:true Repeat:true RepeatTimes:0 Procs:4 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 CallComments:true 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}, 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=31.595557212s, {Threaded:true Repeat:true RepeatTimes:0 Procs:4 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 CallComments:true 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}, 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=31.595557212s, {Threaded:true Repeat:true RepeatTimes:0 Procs:4 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 CallComments:true 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}, 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=31.595557212s, {Threaded:true Repeat:true RepeatTimes:0 Procs:4 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 CallComments:true 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}, 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=31.595557212s, {Threaded:true Repeat:true RepeatTimes:0 Procs:4 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 CallComments:true 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=31.595557212s, {Threaded:false Repeat:true RepeatTimes:0 Procs:4 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 CallComments:true 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=31.595557212s, {Threaded:false Repeat:false RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true 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 CallComments:true 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=31.595557212s, {Threaded:false Repeat:false 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 CallComments:true 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=31.595557212s, {Threaded:false Repeat:false RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:false NetDevices:true 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 CallComments:true 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=31.595557212s, {Threaded:false Repeat:false 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 CallComments:true 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=31.595557212s, {Threaded:false Repeat:false 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 CallComments:true 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=31.595557212s, {Threaded:false Repeat:false RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:false NetReset:false Cgroups:false BinfmtMisc:false CloseFDs:false KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false CallComments:true 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=31.595557212s, {Threaded:false Repeat:false RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:false NetReset:false Cgroups:false BinfmtMisc:false CloseFDs:false KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false CallComments:true 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=31.595557212s, {Threaded:false Repeat:false RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:false NetReset:false Cgroups:false BinfmtMisc:false CloseFDs:false KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false CallComments:true 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=31.595557212s, {Threaded:false Repeat:false RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true 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:true UseTmpDir:true HandleSegv:true Trace:false CallComments:true 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=31.595557212s, {Threaded:false Repeat:false RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:false NetReset:false Cgroups:false BinfmtMisc:false CloseFDs:false KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false CallComments:true 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=31.595557212s, {Threaded:false Repeat:false RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:false NetReset:false Cgroups:false BinfmtMisc:false CloseFDs:false KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:true UseTmpDir:false HandleSegv:true Trace:false CallComments:true 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=31.595557212s, {Threaded:false Repeat:false RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:false NetReset:false Cgroups:false BinfmtMisc:false CloseFDs:false KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:true UseTmpDir:false HandleSegv:false Trace:false CallComments:true 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=31.595557212s, {Threaded:false Repeat:false RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:false NetReset:false Cgroups:false BinfmtMisc:false CloseFDs:false KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:false Swap:true UseTmpDir:false HandleSegv:false Trace:false CallComments:true 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=31.595557212s, {Threaded:false Repeat:false RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:false NetReset:false Cgroups:false BinfmtMisc:false CloseFDs:false KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:false Swap:false UseTmpDir:false HandleSegv:false Trace:false CallComments:true 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 program (duration=31.595557212s, {Threaded:false Repeat:false RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:false NetReset:false Cgroups:false BinfmtMisc:false CloseFDs:false KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:false Swap:false UseTmpDir:false HandleSegv:false Trace:false CallComments:true 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}, 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 validation run: crashed=true testing program (duration=31.595557212s, {Threaded:false Repeat:false RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:false NetReset:false Cgroups:false BinfmtMisc:false CloseFDs:false KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:false Swap:false UseTmpDir:false HandleSegv:false Trace:false CallComments:true 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}, 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 validation run: crashed=true testing program (duration=31.595557212s, {Threaded:false Repeat:false RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:false NetReset:false Cgroups:false BinfmtMisc:false CloseFDs:false KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:false Swap:false UseTmpDir:false HandleSegv:false Trace:false CallComments:true 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}, 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 validation run: crashed=true reproducing took 19m59.593183503s repro crashed as (corrupted=false): BUG: Bad page state in process syz.0.17 pfn:31a85 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888031a85f00 pfn:0x31a85 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022300000 0000000000000000 raw: ffff888031a85f00 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 6076, tgid 6076 (syz.0.17), ts 65423264339, free_ts 65244243234 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1af/0x220 mm/page_alloc.c:1845 prep_new_page mm/page_alloc.c:1853 [inline] get_page_from_freelist+0x10a3/0x3a30 mm/page_alloc.c:3879 __alloc_frozen_pages_noprof+0x25f/0x2470 mm/page_alloc.c:5178 __alloc_pages_noprof mm/page_alloc.c:5212 [inline] alloc_pages_bulk_noprof+0x77a/0x1410 mm/page_alloc.c:5132 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c7/0xca0 net/core/page_pool.c:612 page_pool_alloc_netmems net/core/page_pool.c:663 [inline] page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:650 page_pool_alloc_frag_netmem+0x219/0x9c0 net/core/page_pool.c:1072 page_pool_alloc_netmem include/net/page_pool/helpers.h:131 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x584/0xff0 net/core/skbuff.c:952 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:986 netif_skb_check_for_xdp net/core/dev.c:5429 [inline] netif_receive_generic_xdp net/core/dev.c:5470 [inline] do_xdp_generic+0x530/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 6039 tgid 6039 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] __free_frozen_pages+0x7df/0x1160 mm/page_alloc.c:2901 discard_slab mm/slub.c:3330 [inline] __put_partials+0x130/0x170 mm/slub.c:3876 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4d/0x120 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:352 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4978 [inline] slab_alloc_node mm/slub.c:5288 [inline] __kmalloc_cache_noprof+0x274/0x780 mm/slub.c:5766 kmalloc_noprof include/linux/slab.h:957 [inline] kzalloc_noprof include/linux/slab.h:1094 [inline] inet_alloc_ifa+0x43/0x190 net/ipv4/devinet.c:212 inet_rtm_to_ifa net/ipv4/devinet.c:904 [inline] inet_rtm_newaddr+0x3b5/0x1540 net/ipv4/devinet.c:980 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:6951 netlink_rcv_skb+0x158/0x420 net/netlink/af_netlink.c:2552 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x5aa/0x870 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x8c8/0xdd0 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] __sys_sendto+0x4a3/0x520 net/socket.c:2244 __do_sys_sendto net/socket.c:2251 [inline] __se_sys_sendto net/socket.c:2247 [inline] __x64_sys_sendto+0xe0/0x1c0 net/socket.c:2247 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 6076 Comm: syz.0.17 Not tainted syzkaller #0 PREEMPT(full) 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+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xcf/0x220 mm/page_alloc.c:649 free_page_is_bad mm/page_alloc.c:1082 [inline] free_page_is_bad mm/page_alloc.c:1076 [inline] free_pages_prepare mm/page_alloc.c:1386 [inline] __free_frozen_pages+0x845/0x1160 mm/page_alloc.c:2901 page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3ab/0xab0 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4191 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4215 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4237 [inline] bpf_xdp_adjust_tail+0x887/0xcb0 net/core/filter.c:4230 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x61f/0x1570 net/core/dev.c:5360 netif_receive_generic_xdp net/core/dev.c:5476 [inline] do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa53b38e27f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fff3df79630 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa53b5e5fa0 RCX: 00007fa53b38e27f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007fa53b413f91 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 00007fa53b5e5fa0 R14: 00007fa53b5e5fa0 R15: 0000000000000003 BUG: Bad page state in process syz.0.17 pfn:5056f page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88805056f0f0 pfn:0x5056f flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022300000 0000000000000000 raw: ffff88805056f0f0 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 6076, tgid 6076 (syz.0.17), ts 65423257443, free_ts 65244248993 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1af/0x220 mm/page_alloc.c:1845 prep_new_page mm/page_alloc.c:1853 [inline] get_page_from_freelist+0x10a3/0x3a30 mm/page_alloc.c:3879 __alloc_frozen_pages_noprof+0x25f/0x2470 mm/page_alloc.c:5178 __alloc_pages_noprof mm/page_alloc.c:5212 [inline] alloc_pages_bulk_noprof+0x77a/0x1410 mm/page_alloc.c:5132 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c7/0xca0 net/core/page_pool.c:612 page_pool_alloc_netmems net/core/page_pool.c:663 [inline] page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:650 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x7c0/0xff0 net/core/skbuff.c:952 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:986 netif_skb_check_for_xdp net/core/dev.c:5429 [inline] netif_receive_generic_xdp net/core/dev.c:5470 [inline] do_xdp_generic+0x530/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 6039 tgid 6039 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] __free_frozen_pages+0x7df/0x1160 mm/page_alloc.c:2901 discard_slab mm/slub.c:3330 [inline] __put_partials+0x130/0x170 mm/slub.c:3876 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4d/0x120 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:352 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4978 [inline] slab_alloc_node mm/slub.c:5288 [inline] __kmalloc_cache_noprof+0x274/0x780 mm/slub.c:5766 kmalloc_noprof include/linux/slab.h:957 [inline] kzalloc_noprof include/linux/slab.h:1094 [inline] inet_alloc_ifa+0x43/0x190 net/ipv4/devinet.c:212 inet_rtm_to_ifa net/ipv4/devinet.c:904 [inline] inet_rtm_newaddr+0x3b5/0x1540 net/ipv4/devinet.c:980 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:6951 netlink_rcv_skb+0x158/0x420 net/netlink/af_netlink.c:2552 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x5aa/0x870 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x8c8/0xdd0 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] __sys_sendto+0x4a3/0x520 net/socket.c:2244 __do_sys_sendto net/socket.c:2251 [inline] __se_sys_sendto net/socket.c:2247 [inline] __x64_sys_sendto+0xe0/0x1c0 net/socket.c:2247 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 6076 Comm: syz.0.17 Tainted: G B syzkaller #0 PREEMPT(full) 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+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xcf/0x220 mm/page_alloc.c:649 free_page_is_bad mm/page_alloc.c:1082 [inline] free_page_is_bad mm/page_alloc.c:1076 [inline] free_pages_prepare mm/page_alloc.c:1386 [inline] __free_frozen_pages+0x845/0x1160 mm/page_alloc.c:2901 page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3ab/0xab0 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4191 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4215 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4237 [inline] bpf_xdp_adjust_tail+0x887/0xcb0 net/core/filter.c:4230 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x61f/0x1570 net/core/dev.c:5360 netif_receive_generic_xdp net/core/dev.c:5476 [inline] do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa53b38e27f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fff3df79630 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa53b5e5fa0 RCX: 00007fa53b38e27f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007fa53b413f91 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 00007fa53b5e5fa0 R14: 00007fa53b5e5fa0 R15: 0000000000000003 BUG: Bad page state in process syz.0.17 pfn:50575 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888050575b40 pfn:0x50575 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022300000 0000000000000000 raw: ffff888050575b40 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 6076, tgid 6076 (syz.0.17), ts 65423251097, free_ts 65244254982 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1af/0x220 mm/page_alloc.c:1845 prep_new_page mm/page_alloc.c:1853 [inline] get_page_from_freelist+0x10a3/0x3a30 mm/page_alloc.c:3879 __alloc_frozen_pages_noprof+0x25f/0x2470 mm/page_alloc.c:5178 __alloc_pages_noprof mm/page_alloc.c:5212 [inline] alloc_pages_bulk_noprof+0x77a/0x1410 mm/page_alloc.c:5132 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c7/0xca0 net/core/page_pool.c:612 page_pool_alloc_netmems net/core/page_pool.c:663 [inline] page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:650 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x7c0/0xff0 net/core/skbuff.c:952 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:986 netif_skb_check_for_xdp net/core/dev.c:5429 [inline] netif_receive_generic_xdp net/core/dev.c:5470 [inline] do_xdp_generic+0x530/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 6039 tgid 6039 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] __free_frozen_pages+0x7df/0x1160 mm/page_alloc.c:2901 discard_slab mm/slub.c:3330 [inline] __put_partials+0x130/0x170 mm/slub.c:3876 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4d/0x120 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:352 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4978 [inline] slab_alloc_node mm/slub.c:5288 [inline] __kmalloc_cache_noprof+0x274/0x780 mm/slub.c:5766 kmalloc_noprof include/linux/slab.h:957 [inline] kzalloc_noprof include/linux/slab.h:1094 [inline] inet_alloc_ifa+0x43/0x190 net/ipv4/devinet.c:212 inet_rtm_to_ifa net/ipv4/devinet.c:904 [inline] inet_rtm_newaddr+0x3b5/0x1540 net/ipv4/devinet.c:980 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:6951 netlink_rcv_skb+0x158/0x420 net/netlink/af_netlink.c:2552 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x5aa/0x870 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x8c8/0xdd0 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] __sys_sendto+0x4a3/0x520 net/socket.c:2244 __do_sys_sendto net/socket.c:2251 [inline] __se_sys_sendto net/socket.c:2247 [inline] __x64_sys_sendto+0xe0/0x1c0 net/socket.c:2247 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 6076 Comm: syz.0.17 Tainted: G B syzkaller #0 PREEMPT(full) 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+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xcf/0x220 mm/page_alloc.c:649 free_page_is_bad mm/page_alloc.c:1082 [inline] free_page_is_bad mm/page_alloc.c:1076 [inline] free_pages_prepare mm/page_alloc.c:1386 [inline] __free_frozen_pages+0x845/0x1160 mm/page_alloc.c:2901 page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3ab/0xab0 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4191 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4215 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4237 [inline] bpf_xdp_adjust_tail+0x887/0xcb0 net/core/filter.c:4230 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x61f/0x1570 net/core/dev.c:5360 netif_receive_generic_xdp net/core/dev.c:5476 [inline] do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa53b38e27f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fff3df79630 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa53b5e5fa0 RCX: 00007fa53b38e27f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007fa53b413f91 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 00007fa53b5e5fa0 R14: 00007fa53b5e5fa0 R15: 0000000000000003 BUG: Bad page state in process syz.0.17 pfn:50574 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880505743c0 pfn:0x50574 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022300000 0000000000000000 raw: ffff8880505743c0 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 6076, tgid 6076 (syz.0.17), ts 65423244484, free_ts 65244260730 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1af/0x220 mm/page_alloc.c:1845 prep_new_page mm/page_alloc.c:1853 [inline] get_page_from_freelist+0x10a3/0x3a30 mm/page_alloc.c:3879 __alloc_frozen_pages_noprof+0x25f/0x2470 mm/page_alloc.c:5178 __alloc_pages_noprof mm/page_alloc.c:5212 [inline] alloc_pages_bulk_noprof+0x77a/0x1410 mm/page_alloc.c:5132 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c7/0xca0 net/core/page_pool.c:612 page_pool_alloc_netmems net/core/page_pool.c:663 [inline] page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:650 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x7c0/0xff0 net/core/skbuff.c:952 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:986 netif_skb_check_for_xdp net/core/dev.c:5429 [inline] netif_receive_generic_xdp net/core/dev.c:5470 [inline] do_xdp_generic+0x530/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 6039 tgid 6039 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] __free_frozen_pages+0x7df/0x1160 mm/page_alloc.c:2901 discard_slab mm/slub.c:3330 [inline] __put_partials+0x130/0x170 mm/slub.c:3876 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4d/0x120 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:352 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4978 [inline] slab_alloc_node mm/slub.c:5288 [inline] __kmalloc_cache_noprof+0x274/0x780 mm/slub.c:5766 kmalloc_noprof include/linux/slab.h:957 [inline] kzalloc_noprof include/linux/slab.h:1094 [inline] inet_alloc_ifa+0x43/0x190 net/ipv4/devinet.c:212 inet_rtm_to_ifa net/ipv4/devinet.c:904 [inline] inet_rtm_newaddr+0x3b5/0x1540 net/ipv4/devinet.c:980 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:6951 netlink_rcv_skb+0x158/0x420 net/netlink/af_netlink.c:2552 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x5aa/0x870 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x8c8/0xdd0 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] __sys_sendto+0x4a3/0x520 net/socket.c:2244 __do_sys_sendto net/socket.c:2251 [inline] __se_sys_sendto net/socket.c:2247 [inline] __x64_sys_sendto+0xe0/0x1c0 net/socket.c:2247 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 6076 Comm: syz.0.17 Tainted: G B syzkaller #0 PREEMPT(full) 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+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xcf/0x220 mm/page_alloc.c:649 free_page_is_bad mm/page_alloc.c:1082 [inline] free_page_is_bad mm/page_alloc.c:1076 [inline] free_pages_prepare mm/page_alloc.c:1386 [inline] __free_frozen_pages+0x845/0x1160 mm/page_alloc.c:2901 page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3ab/0xab0 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4191 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4215 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4237 [inline] bpf_xdp_adjust_tail+0x887/0xcb0 net/core/filter.c:4230 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x61f/0x1570 net/core/dev.c:5360 netif_receive_generic_xdp net/core/dev.c:5476 [inline] do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa53b38e27f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fff3df79630 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa53b5e5fa0 RCX: 00007fa53b38e27f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007fa53b413f91 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 00007fa53b5e5fa0 R14: 00007fa53b5e5fa0 R15: 0000000000000003 BUG: Bad page state in process syz.0.17 pfn:50573 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888050573f00 pfn:0x50573 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022300000 0000000000000000 raw: ffff888050573f00 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 6076, tgid 6076 (syz.0.17), ts 65423238221, free_ts 65244266379 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1af/0x220 mm/page_alloc.c:1845 prep_new_page mm/page_alloc.c:1853 [inline] get_page_from_freelist+0x10a3/0x3a30 mm/page_alloc.c:3879 __alloc_frozen_pages_noprof+0x25f/0x2470 mm/page_alloc.c:5178 __alloc_pages_noprof mm/page_alloc.c:5212 [inline] alloc_pages_bulk_noprof+0x77a/0x1410 mm/page_alloc.c:5132 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c7/0xca0 net/core/page_pool.c:612 page_pool_alloc_netmems net/core/page_pool.c:663 [inline] page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:650 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x7c0/0xff0 net/core/skbuff.c:952 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:986 netif_skb_check_for_xdp net/core/dev.c:5429 [inline] netif_receive_generic_xdp net/core/dev.c:5470 [inline] do_xdp_generic+0x530/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 6039 tgid 6039 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] __free_frozen_pages+0x7df/0x1160 mm/page_alloc.c:2901 discard_slab mm/slub.c:3330 [inline] __put_partials+0x130/0x170 mm/slub.c:3876 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4d/0x120 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:352 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4978 [inline] slab_alloc_node mm/slub.c:5288 [inline] __kmalloc_cache_noprof+0x274/0x780 mm/slub.c:5766 kmalloc_noprof include/linux/slab.h:957 [inline] kzalloc_noprof include/linux/slab.h:1094 [inline] inet_alloc_ifa+0x43/0x190 net/ipv4/devinet.c:212 inet_rtm_to_ifa net/ipv4/devinet.c:904 [inline] inet_rtm_newaddr+0x3b5/0x1540 net/ipv4/devinet.c:980 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:6951 netlink_rcv_skb+0x158/0x420 net/netlink/af_netlink.c:2552 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x5aa/0x870 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x8c8/0xdd0 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] __sys_sendto+0x4a3/0x520 net/socket.c:2244 __do_sys_sendto net/socket.c:2251 [inline] __se_sys_sendto net/socket.c:2247 [inline] __x64_sys_sendto+0xe0/0x1c0 net/socket.c:2247 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 6076 Comm: syz.0.17 Tainted: G B syzkaller #0 PREEMPT(full) 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+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xcf/0x220 mm/page_alloc.c:649 free_page_is_bad mm/page_alloc.c:1082 [inline] free_page_is_bad mm/page_alloc.c:1076 [inline] free_pages_prepare mm/page_alloc.c:1386 [inline] __free_frozen_pages+0x845/0x1160 mm/page_alloc.c:2901 page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3ab/0xab0 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4191 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4215 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4237 [inline] bpf_xdp_adjust_tail+0x887/0xcb0 net/core/filter.c:4230 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x61f/0x1570 net/core/dev.c:5360 netif_receive_generic_xdp net/core/dev.c:5476 [inline] do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa53b38e27f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fff3df79630 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa53b5e5fa0 RCX: 00007fa53b38e27f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007fa53b413f91 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 00007fa53b5e5fa0 R14: 00007fa53b5e5fa0 R15: 0000000000000003 BUG: Bad page state in process syz.0.17 pfn:4f947 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88804f947000 pfn:0x4f947 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022300000 0000000000000000 raw: ffff88804f947000 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 6076, tgid 6076 (syz.0.17), ts 65423231877, free_ts 65244272151 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1af/0x220 mm/page_alloc.c:1845 prep_new_page mm/page_alloc.c:1853 [inline] get_page_from_freelist+0x10a3/0x3a30 mm/page_alloc.c:3879 __alloc_frozen_pages_noprof+0x25f/0x2470 mm/page_alloc.c:5178 __alloc_pages_noprof mm/page_alloc.c:5212 [inline] alloc_pages_bulk_noprof+0x77a/0x1410 mm/page_alloc.c:5132 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c7/0xca0 net/core/page_pool.c:612 page_pool_alloc_netmems net/core/page_pool.c:663 [inline] page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:650 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x7c0/0xff0 net/core/skbuff.c:952 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:986 netif_skb_check_for_xdp net/core/dev.c:5429 [inline] netif_receive_generic_xdp net/core/dev.c:5470 [inline] do_xdp_generic+0x530/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 6039 tgid 6039 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] __free_frozen_pages+0x7df/0x1160 mm/page_alloc.c:2901 discard_slab mm/slub.c:3330 [inline] __put_partials+0x130/0x170 mm/slub.c:3876 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4d/0x120 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:352 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4978 [inline] slab_alloc_node mm/slub.c:5288 [inline] __kmalloc_cache_noprof+0x274/0x780 mm/slub.c:5766 kmalloc_noprof include/linux/slab.h:957 [inline] kzalloc_noprof include/linux/slab.h:1094 [inline] inet_alloc_ifa+0x43/0x190 net/ipv4/devinet.c:212 inet_rtm_to_ifa net/ipv4/devinet.c:904 [inline] inet_rtm_newaddr+0x3b5/0x1540 net/ipv4/devinet.c:980 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:6951 netlink_rcv_skb+0x158/0x420 net/netlink/af_netlink.c:2552 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x5aa/0x870 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x8c8/0xdd0 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] __sys_sendto+0x4a3/0x520 net/socket.c:2244 __do_sys_sendto net/socket.c:2251 [inline] __se_sys_sendto net/socket.c:2247 [inline] __x64_sys_sendto+0xe0/0x1c0 net/socket.c:2247 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 6076 Comm: syz.0.17 Tainted: G B syzkaller #0 PREEMPT(full) 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+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xcf/0x220 mm/page_alloc.c:649 free_page_is_bad mm/page_alloc.c:1082 [inline] free_page_is_bad mm/page_alloc.c:1076 [inline] free_pages_prepare mm/page_alloc.c:1386 [inline] __free_frozen_pages+0x845/0x1160 mm/page_alloc.c:2901 page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3ab/0xab0 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4191 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4215 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4237 [inline] bpf_xdp_adjust_tail+0x887/0xcb0 net/core/filter.c:4230 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x61f/0x1570 net/core/dev.c:5360 netif_receive_generic_xdp net/core/dev.c:5476 [inline] do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa53b38e27f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fff3df79630 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa53b5e5fa0 RCX: 00007fa53b38e27f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007fa53b413f91 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 00007fa53b5e5fa0 R14: 00007fa53b5e5fa0 R15: 0000000000000003 BUG: Bad page state in process syz.0.17 pfn:4f949 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88804f949f00 pfn:0x4f949 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022300000 0000000000000000 raw: ffff88804f949f00 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 6076, tgid 6076 (syz.0.17), ts 65423225159, free_ts 65244277883 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1af/0x220 mm/page_alloc.c:1845 prep_new_page mm/page_alloc.c:1853 [inline] get_page_from_freelist+0x10a3/0x3a30 mm/page_alloc.c:3879 __alloc_frozen_pages_noprof+0x25f/0x2470 mm/page_alloc.c:5178 __alloc_pages_noprof mm/page_alloc.c:5212 [inline] alloc_pages_bulk_noprof+0x77a/0x1410 mm/page_alloc.c:5132 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c7/0xca0 net/core/page_pool.c:612 page_pool_alloc_netmems net/core/page_pool.c:663 [inline] page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:650 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x7c0/0xff0 net/core/skbuff.c:952 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:986 netif_skb_check_for_xdp net/core/dev.c:5429 [inline] netif_receive_generic_xdp net/core/dev.c:5470 [inline] do_xdp_generic+0x530/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 6039 tgid 6039 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] __free_frozen_pages+0x7df/0x1160 mm/page_alloc.c:2901 discard_slab mm/slub.c:3330 [inline] __put_partials+0x130/0x170 mm/slub.c:3876 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4d/0x120 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:352 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4978 [inline] slab_alloc_node mm/slub.c:5288 [inline] __kmalloc_cache_noprof+0x274/0x780 mm/slub.c:5766 kmalloc_noprof include/linux/slab.h:957 [inline] kzalloc_noprof include/linux/slab.h:1094 [inline] inet_alloc_ifa+0x43/0x190 net/ipv4/devinet.c:212 inet_rtm_to_ifa net/ipv4/devinet.c:904 [inline] inet_rtm_newaddr+0x3b5/0x1540 net/ipv4/devinet.c:980 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:6951 netlink_rcv_skb+0x158/0x420 net/netlink/af_netlink.c:2552 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x5aa/0x870 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x8c8/0xdd0 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] __sys_sendto+0x4a3/0x520 net/socket.c:2244 __do_sys_sendto net/socket.c:2251 [inline] __se_sys_sendto net/socket.c:2247 [inline] __x64_sys_sendto+0xe0/0x1c0 net/socket.c:2247 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 6076 Comm: syz.0.17 Tainted: G B syzkaller #0 PREEMPT(full) 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+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xcf/0x220 mm/page_alloc.c:649 free_page_is_bad mm/page_alloc.c:1082 [inline] free_page_is_bad mm/page_alloc.c:1076 [inline] free_pages_prepare mm/page_alloc.c:1386 [inline] __free_frozen_pages+0x845/0x1160 mm/page_alloc.c:2901 page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3ab/0xab0 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4191 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4215 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4237 [inline] bpf_xdp_adjust_tail+0x887/0xcb0 net/core/filter.c:4230 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x61f/0x1570 net/core/dev.c:5360 netif_receive_generic_xdp net/core/dev.c:5476 [inline] do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa53b38e27f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fff3df79630 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa53b5e5fa0 RCX: 00007fa53b38e27f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007fa53b413f91 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 00007fa53b5e5fa0 R14: 00007fa53b5e5fa0 R15: 0000000000000003 BUG: Bad page state in process syz.0.17 pfn:33544 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888033544870 pfn:0x33544 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022300000 0000000000000000 raw: ffff888033544870 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 6076, tgid 6076 (syz.0.17), ts 65423218598, free_ts 65244286640 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1af/0x220 mm/page_alloc.c:1845 prep_new_page mm/page_alloc.c:1853 [inline] get_page_from_freelist+0x10a3/0x3a30 mm/page_alloc.c:3879 __alloc_frozen_pages_noprof+0x25f/0x2470 mm/page_alloc.c:5178 __alloc_pages_noprof mm/page_alloc.c:5212 [inline] alloc_pages_bulk_noprof+0x77a/0x1410 mm/page_alloc.c:5132 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c7/0xca0 net/core/page_pool.c:612 page_pool_alloc_netmems net/core/page_pool.c:663 [inline] page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:650 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x7c0/0xff0 net/core/skbuff.c:952 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:986 netif_skb_check_for_xdp net/core/dev.c:5429 [inline] netif_receive_generic_xdp net/core/dev.c:5470 [inline] do_xdp_generic+0x530/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 6039 tgid 6039 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] __free_frozen_pages+0x7df/0x1160 mm/page_alloc.c:2901 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4d/0x120 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:352 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4978 [inline] slab_alloc_node mm/slub.c:5288 [inline] __kmalloc_cache_noprof+0x274/0x780 mm/slub.c:5766 kmalloc_noprof include/linux/slab.h:957 [inline] kzalloc_noprof include/linux/slab.h:1094 [inline] inet_alloc_ifa+0x43/0x190 net/ipv4/devinet.c:212 inet_rtm_to_ifa net/ipv4/devinet.c:904 [inline] inet_rtm_newaddr+0x3b5/0x1540 net/ipv4/devinet.c:980 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:6951 netlink_rcv_skb+0x158/0x420 net/netlink/af_netlink.c:2552 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x5aa/0x870 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x8c8/0xdd0 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] __sys_sendto+0x4a3/0x520 net/socket.c:2244 __do_sys_sendto net/socket.c:2251 [inline] __se_sys_sendto net/socket.c:2247 [inline] __x64_sys_sendto+0xe0/0x1c0 net/socket.c:2247 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 6076 Comm: syz.0.17 Tainted: G B syzkaller #0 PREEMPT(full) 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+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xcf/0x220 mm/page_alloc.c:649 free_page_is_bad mm/page_alloc.c:1082 [inline] free_page_is_bad mm/page_alloc.c:1076 [inline] free_pages_prepare mm/page_alloc.c:1386 [inline] __free_frozen_pages+0x845/0x1160 mm/page_alloc.c:2901 page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3ab/0xab0 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4191 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4215 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4237 [inline] bpf_xdp_adjust_tail+0x887/0xcb0 net/core/filter.c:4230 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x61f/0x1570 net/core/dev.c:5360 netif_receive_generic_xdp net/core/dev.c:5476 [inline] do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa53b38e27f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fff3df79630 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa53b5e5fa0 RCX: 00007fa53b38e27f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007fa53b413f91 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 00007fa53b5e5fa0 R14: 00007fa53b5e5fa0 R15: 0000000000000003 BUG: Bad page state in process syz.0.17 pfn:50578 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888050578000 pfn:0x50578 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022300000 0000000000000000 raw: ffff888050578000 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 6076, tgid 6076 (syz.0.17), ts 65423212377, free_ts 65244296856 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1af/0x220 mm/page_alloc.c:1845 prep_new_page mm/page_alloc.c:1853 [inline] get_page_from_freelist+0x10a3/0x3a30 mm/page_alloc.c:3879 __alloc_frozen_pages_noprof+0x25f/0x2470 mm/page_alloc.c:5178 __alloc_pages_noprof mm/page_alloc.c:5212 [inline] alloc_pages_bulk_noprof+0x77a/0x1410 mm/page_alloc.c:5132 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c7/0xca0 net/core/page_pool.c:612 page_pool_alloc_netmems net/core/page_pool.c:663 [inline] page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:650 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x7c0/0xff0 net/core/skbuff.c:952 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:986 netif_skb_check_for_xdp net/core/dev.c:5429 [inline] netif_receive_generic_xdp net/core/dev.c:5470 [inline] do_xdp_generic+0x530/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 6039 tgid 6039 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] __free_frozen_pages+0x7df/0x1160 mm/page_alloc.c:2901 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4d/0x120 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:352 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4978 [inline] slab_alloc_node mm/slub.c:5288 [inline] __kmalloc_cache_noprof+0x274/0x780 mm/slub.c:5766 kmalloc_noprof include/linux/slab.h:957 [inline] kzalloc_noprof include/linux/slab.h:1094 [inline] inet_alloc_ifa+0x43/0x190 net/ipv4/devinet.c:212 inet_rtm_to_ifa net/ipv4/devinet.c:904 [inline] inet_rtm_newaddr+0x3b5/0x1540 net/ipv4/devinet.c:980 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:6951 netlink_rcv_skb+0x158/0x420 net/netlink/af_netlink.c:2552 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x5aa/0x870 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x8c8/0xdd0 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] __sys_sendto+0x4a3/0x520 net/socket.c:2244 __do_sys_sendto net/socket.c:2251 [inline] __se_sys_sendto net/socket.c:2247 [inline] __x64_sys_sendto+0xe0/0x1c0 net/socket.c:2247 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 6076 Comm: syz.0.17 Tainted: G B syzkaller #0 PREEMPT(full) 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+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xcf/0x220 mm/page_alloc.c:649 free_page_is_bad mm/page_alloc.c:1082 [inline] free_page_is_bad mm/page_alloc.c:1076 [inline] free_pages_prepare mm/page_alloc.c:1386 [inline] __free_frozen_pages+0x845/0x1160 mm/page_alloc.c:2901 page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3ab/0xab0 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4191 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4215 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4237 [inline] bpf_xdp_adjust_tail+0x887/0xcb0 net/core/filter.c:4230 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x61f/0x1570 net/core/dev.c:5360 netif_receive_generic_xdp net/core/dev.c:5476 [inline] do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa53b38e27f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fff3df79630 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa53b5e5fa0 RCX: 00007fa53b38e27f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007fa53b413f91 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 00007fa53b5e5fa0 R14: 00007fa53b5e5fa0 R15: 0000000000000003 BUG: Bad page state in process syz.0.17 pfn:336f7 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880336f7f00 pfn:0x336f7 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022300000 0000000000000000 raw: ffff8880336f7f00 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 6076, tgid 6076 (syz.0.17), ts 65423205983, free_ts 65244331645 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1af/0x220 mm/page_alloc.c:1845 prep_new_page mm/page_alloc.c:1853 [inline] get_page_from_freelist+0x10a3/0x3a30 mm/page_alloc.c:3879 __alloc_frozen_pages_noprof+0x25f/0x2470 mm/page_alloc.c:5178 __alloc_pages_noprof mm/page_alloc.c:5212 [inline] alloc_pages_bulk_noprof+0x77a/0x1410 mm/page_alloc.c:5132 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c7/0xca0 net/core/page_pool.c:612 page_pool_alloc_netmems net/core/page_pool.c:663 [inline] page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:650 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x7c0/0xff0 net/core/skbuff.c:952 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:986 netif_skb_check_for_xdp net/core/dev.c:5429 [inline] netif_receive_generic_xdp net/core/dev.c:5470 [inline] do_xdp_generic+0x530/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 6039 tgid 6039 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] __free_frozen_pages+0x7df/0x1160 mm/page_alloc.c:2901 discard_slab mm/slub.c:3330 [inline] __put_partials+0x130/0x170 mm/slub.c:3876 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4d/0x120 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:352 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4978 [inline] slab_alloc_node mm/slub.c:5288 [inline] __kmalloc_cache_noprof+0x274/0x780 mm/slub.c:5766 kmalloc_noprof include/linux/slab.h:957 [inline] kzalloc_noprof include/linux/slab.h:1094 [inline] inet_alloc_ifa+0x43/0x190 net/ipv4/devinet.c:212 inet_rtm_to_ifa net/ipv4/devinet.c:904 [inline] inet_rtm_newaddr+0x3b5/0x1540 net/ipv4/devinet.c:980 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:6951 netlink_rcv_skb+0x158/0x420 net/netlink/af_netlink.c:2552 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x5aa/0x870 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x8c8/0xdd0 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] __sys_sendto+0x4a3/0x520 net/socket.c:2244 __do_sys_sendto net/socket.c:2251 [inline] __se_sys_sendto net/socket.c:2247 [inline] __x64_sys_sendto+0xe0/0x1c0 net/socket.c:2247 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 6076 Comm: syz.0.17 Tainted: G B syzkaller #0 PREEMPT(full) 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+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xcf/0x220 mm/page_alloc.c:649 free_page_is_bad mm/page_alloc.c:1082 [inline] free_page_is_bad mm/page_alloc.c:1076 [inline] free_pages_prepare mm/page_alloc.c:1386 [inline] __free_frozen_pages+0x845/0x1160 mm/page_alloc.c:2901 page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3ab/0xab0 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4191 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4215 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4237 [inline] bpf_xdp_adjust_tail+0x887/0xcb0 net/core/filter.c:4230 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x61f/0x1570 net/core/dev.c:5360 netif_receive_generic_xdp net/core/dev.c:5476 [inline] do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa53b38e27f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fff3df79630 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa53b5e5fa0 RCX: 00007fa53b38e27f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007fa53b413f91 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 00007fa53b5e5fa0 R14: 00007fa53b5e5fa0 R15: 0000000000000003 BUG: Bad page state in process syz.0.17 pfn:50577 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888050577a50 pfn:0x50577 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022300000 0000000000000000 raw: ffff888050577a50 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 6076, tgid 6076 (syz.0.17), ts 65423199521, free_ts 65244337416 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1af/0x220 mm/page_alloc.c:1845 prep_new_page mm/page_alloc.c:1853 [inline] get_page_from_freelist+0x10a3/0x3a30 mm/page_alloc.c:3879 __alloc_frozen_pages_noprof+0x25f/0x2470 mm/page_alloc.c:5178 __alloc_pages_noprof mm/page_alloc.c:5212 [inline] alloc_pages_bulk_noprof+0x77a/0x1410 mm/page_alloc.c:5132 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c7/0xca0 net/core/page_pool.c:612 page_pool_alloc_netmems net/core/page_pool.c:663 [inline] page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:650 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x7c0/0xff0 net/core/skbuff.c:952 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:986 netif_skb_check_for_xdp net/core/dev.c:5429 [inline] netif_receive_generic_xdp net/core/dev.c:5470 [inline] do_xdp_generic+0x530/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 6039 tgid 6039 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] __free_frozen_pages+0x7df/0x1160 mm/page_alloc.c:2901 discard_slab mm/slub.c:3330 [inline] __put_partials+0x130/0x170 mm/slub.c:3876 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4d/0x120 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:352 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4978 [inline] slab_alloc_node mm/slub.c:5288 [inline] __kmalloc_cache_noprof+0x274/0x780 mm/slub.c:5766 kmalloc_noprof include/linux/slab.h:957 [inline] kzalloc_noprof include/linux/slab.h:1094 [inline] inet_alloc_ifa+0x43/0x190 net/ipv4/devinet.c:212 inet_rtm_to_ifa net/ipv4/devinet.c:904 [inline] inet_rtm_newaddr+0x3b5/0x1540 net/ipv4/devinet.c:980 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:6951 netlink_rcv_skb+0x158/0x420 net/netlink/af_netlink.c:2552 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x5aa/0x870 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x8c8/0xdd0 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] __sys_sendto+0x4a3/0x520 net/socket.c:2244 __do_sys_sendto net/socket.c:2251 [inline] __se_sys_sendto net/socket.c:2247 [inline] __x64_sys_sendto+0xe0/0x1c0 net/socket.c:2247 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 6076 Comm: syz.0.17 Tainted: G B syzkaller #0 PREEMPT(full) 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+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xcf/0x220 mm/page_alloc.c:649 free_page_is_bad mm/page_alloc.c:1082 [inline] free_page_is_bad mm/page_alloc.c:1076 [inline] free_pages_prepare mm/page_alloc.c:1386 [inline] __free_frozen_pages+0x845/0x1160 mm/page_alloc.c:2901 page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3ab/0xab0 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4191 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4215 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4237 [inline] bpf_xdp_adjust_tail+0x887/0xcb0 net/core/filter.c:4230 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x61f/0x1570 net/core/dev.c:5360 netif_receive_generic_xdp net/core/dev.c:5476 [inline] do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa53b38e27f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fff3df79630 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa53b5e5fa0 RCX: 00007fa53b38e27f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007fa53b413f91 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 00007fa53b5e5fa0 R14: 00007fa53b5e5fa0 R15: 0000000000000003 BUG: Bad page state in process syz.0.17 pfn:42023 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880420233c0 pfn:0x42023 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022300000 0000000000000000 raw: ffff8880420233c0 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 6076, tgid 6076 (syz.0.17), ts 65423192456, free_ts 65244342928 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1af/0x220 mm/page_alloc.c:1845 prep_new_page mm/page_alloc.c:1853 [inline] get_page_from_freelist+0x10a3/0x3a30 mm/page_alloc.c:3879 __alloc_frozen_pages_noprof+0x25f/0x2470 mm/page_alloc.c:5178 __alloc_pages_noprof mm/page_alloc.c:5212 [inline] alloc_pages_bulk_noprof+0x77a/0x1410 mm/page_alloc.c:5132 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c7/0xca0 net/core/page_pool.c:612 page_pool_alloc_netmems net/core/page_pool.c:663 [inline] page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:650 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x7c0/0xff0 net/core/skbuff.c:952 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:986 netif_skb_check_for_xdp net/core/dev.c:5429 [inline] netif_receive_generic_xdp net/core/dev.c:5470 [inline] do_xdp_generic+0x530/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 6039 tgid 6039 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] __free_frozen_pages+0x7df/0x1160 mm/page_alloc.c:2901 discard_slab mm/slub.c:3330 [inline] __put_partials+0x130/0x170 mm/slub.c:3876 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4d/0x120 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:352 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4978 [inline] slab_alloc_node mm/slub.c:5288 [inline] __kmalloc_cache_noprof+0x274/0x780 mm/slub.c:5766 kmalloc_noprof include/linux/slab.h:957 [inline] kzalloc_noprof include/linux/slab.h:1094 [inline] inet_alloc_ifa+0x43/0x190 net/ipv4/devinet.c:212 inet_rtm_to_ifa net/ipv4/devinet.c:904 [inline] inet_rtm_newaddr+0x3b5/0x1540 net/ipv4/devinet.c:980 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:6951 netlink_rcv_skb+0x158/0x420 net/netlink/af_netlink.c:2552 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x5aa/0x870 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x8c8/0xdd0 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] __sys_sendto+0x4a3/0x520 net/socket.c:2244 __do_sys_sendto net/socket.c:2251 [inline] __se_sys_sendto net/socket.c:2247 [inline] __x64_sys_sendto+0xe0/0x1c0 net/socket.c:2247 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 6076 Comm: syz.0.17 Tainted: G B syzkaller #0 PREEMPT(full) 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+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xcf/0x220 mm/page_alloc.c:649 free_page_is_bad mm/page_alloc.c:1082 [inline] free_page_is_bad mm/page_alloc.c:1076 [inline] free_pages_prepare mm/page_alloc.c:1386 [inline] __free_frozen_pages+0x845/0x1160 mm/page_alloc.c:2901 page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3ab/0xab0 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4191 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4215 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4237 [inline] bpf_xdp_adjust_tail+0x887/0xcb0 net/core/filter.c:4230 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x61f/0x1570 net/core/dev.c:5360 netif_receive_generic_xdp net/core/dev.c:5476 [inline] do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa53b38e27f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fff3df79630 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa53b5e5fa0 RCX: 00007fa53b38e27f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007fa53b413f91 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 00007fa53b5e5fa0 R14: 00007fa53b5e5fa0 R15: 0000000000000003 final repro crashed as (corrupted=false): BUG: Bad page state in process syz.0.17 pfn:31a85 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888031a85f00 pfn:0x31a85 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022300000 0000000000000000 raw: ffff888031a85f00 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 6076, tgid 6076 (syz.0.17), ts 65423264339, free_ts 65244243234 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1af/0x220 mm/page_alloc.c:1845 prep_new_page mm/page_alloc.c:1853 [inline] get_page_from_freelist+0x10a3/0x3a30 mm/page_alloc.c:3879 __alloc_frozen_pages_noprof+0x25f/0x2470 mm/page_alloc.c:5178 __alloc_pages_noprof mm/page_alloc.c:5212 [inline] alloc_pages_bulk_noprof+0x77a/0x1410 mm/page_alloc.c:5132 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c7/0xca0 net/core/page_pool.c:612 page_pool_alloc_netmems net/core/page_pool.c:663 [inline] page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:650 page_pool_alloc_frag_netmem+0x219/0x9c0 net/core/page_pool.c:1072 page_pool_alloc_netmem include/net/page_pool/helpers.h:131 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x584/0xff0 net/core/skbuff.c:952 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:986 netif_skb_check_for_xdp net/core/dev.c:5429 [inline] netif_receive_generic_xdp net/core/dev.c:5470 [inline] do_xdp_generic+0x530/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 6039 tgid 6039 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] __free_frozen_pages+0x7df/0x1160 mm/page_alloc.c:2901 discard_slab mm/slub.c:3330 [inline] __put_partials+0x130/0x170 mm/slub.c:3876 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4d/0x120 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:352 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4978 [inline] slab_alloc_node mm/slub.c:5288 [inline] __kmalloc_cache_noprof+0x274/0x780 mm/slub.c:5766 kmalloc_noprof include/linux/slab.h:957 [inline] kzalloc_noprof include/linux/slab.h:1094 [inline] inet_alloc_ifa+0x43/0x190 net/ipv4/devinet.c:212 inet_rtm_to_ifa net/ipv4/devinet.c:904 [inline] inet_rtm_newaddr+0x3b5/0x1540 net/ipv4/devinet.c:980 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:6951 netlink_rcv_skb+0x158/0x420 net/netlink/af_netlink.c:2552 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x5aa/0x870 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x8c8/0xdd0 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] __sys_sendto+0x4a3/0x520 net/socket.c:2244 __do_sys_sendto net/socket.c:2251 [inline] __se_sys_sendto net/socket.c:2247 [inline] __x64_sys_sendto+0xe0/0x1c0 net/socket.c:2247 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 6076 Comm: syz.0.17 Not tainted syzkaller #0 PREEMPT(full) 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+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xcf/0x220 mm/page_alloc.c:649 free_page_is_bad mm/page_alloc.c:1082 [inline] free_page_is_bad mm/page_alloc.c:1076 [inline] free_pages_prepare mm/page_alloc.c:1386 [inline] __free_frozen_pages+0x845/0x1160 mm/page_alloc.c:2901 page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3ab/0xab0 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4191 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4215 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4237 [inline] bpf_xdp_adjust_tail+0x887/0xcb0 net/core/filter.c:4230 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x61f/0x1570 net/core/dev.c:5360 netif_receive_generic_xdp net/core/dev.c:5476 [inline] do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa53b38e27f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fff3df79630 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa53b5e5fa0 RCX: 00007fa53b38e27f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007fa53b413f91 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 00007fa53b5e5fa0 R14: 00007fa53b5e5fa0 R15: 0000000000000003 BUG: Bad page state in process syz.0.17 pfn:5056f page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88805056f0f0 pfn:0x5056f flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022300000 0000000000000000 raw: ffff88805056f0f0 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 6076, tgid 6076 (syz.0.17), ts 65423257443, free_ts 65244248993 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1af/0x220 mm/page_alloc.c:1845 prep_new_page mm/page_alloc.c:1853 [inline] get_page_from_freelist+0x10a3/0x3a30 mm/page_alloc.c:3879 __alloc_frozen_pages_noprof+0x25f/0x2470 mm/page_alloc.c:5178 __alloc_pages_noprof mm/page_alloc.c:5212 [inline] alloc_pages_bulk_noprof+0x77a/0x1410 mm/page_alloc.c:5132 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c7/0xca0 net/core/page_pool.c:612 page_pool_alloc_netmems net/core/page_pool.c:663 [inline] page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:650 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x7c0/0xff0 net/core/skbuff.c:952 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:986 netif_skb_check_for_xdp net/core/dev.c:5429 [inline] netif_receive_generic_xdp net/core/dev.c:5470 [inline] do_xdp_generic+0x530/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 6039 tgid 6039 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] __free_frozen_pages+0x7df/0x1160 mm/page_alloc.c:2901 discard_slab mm/slub.c:3330 [inline] __put_partials+0x130/0x170 mm/slub.c:3876 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4d/0x120 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:352 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4978 [inline] slab_alloc_node mm/slub.c:5288 [inline] __kmalloc_cache_noprof+0x274/0x780 mm/slub.c:5766 kmalloc_noprof include/linux/slab.h:957 [inline] kzalloc_noprof include/linux/slab.h:1094 [inline] inet_alloc_ifa+0x43/0x190 net/ipv4/devinet.c:212 inet_rtm_to_ifa net/ipv4/devinet.c:904 [inline] inet_rtm_newaddr+0x3b5/0x1540 net/ipv4/devinet.c:980 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:6951 netlink_rcv_skb+0x158/0x420 net/netlink/af_netlink.c:2552 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x5aa/0x870 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x8c8/0xdd0 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] __sys_sendto+0x4a3/0x520 net/socket.c:2244 __do_sys_sendto net/socket.c:2251 [inline] __se_sys_sendto net/socket.c:2247 [inline] __x64_sys_sendto+0xe0/0x1c0 net/socket.c:2247 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 6076 Comm: syz.0.17 Tainted: G B syzkaller #0 PREEMPT(full) 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+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xcf/0x220 mm/page_alloc.c:649 free_page_is_bad mm/page_alloc.c:1082 [inline] free_page_is_bad mm/page_alloc.c:1076 [inline] free_pages_prepare mm/page_alloc.c:1386 [inline] __free_frozen_pages+0x845/0x1160 mm/page_alloc.c:2901 page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3ab/0xab0 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4191 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4215 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4237 [inline] bpf_xdp_adjust_tail+0x887/0xcb0 net/core/filter.c:4230 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x61f/0x1570 net/core/dev.c:5360 netif_receive_generic_xdp net/core/dev.c:5476 [inline] do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa53b38e27f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fff3df79630 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa53b5e5fa0 RCX: 00007fa53b38e27f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007fa53b413f91 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 00007fa53b5e5fa0 R14: 00007fa53b5e5fa0 R15: 0000000000000003 BUG: Bad page state in process syz.0.17 pfn:50575 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888050575b40 pfn:0x50575 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022300000 0000000000000000 raw: ffff888050575b40 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 6076, tgid 6076 (syz.0.17), ts 65423251097, free_ts 65244254982 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1af/0x220 mm/page_alloc.c:1845 prep_new_page mm/page_alloc.c:1853 [inline] get_page_from_freelist+0x10a3/0x3a30 mm/page_alloc.c:3879 __alloc_frozen_pages_noprof+0x25f/0x2470 mm/page_alloc.c:5178 __alloc_pages_noprof mm/page_alloc.c:5212 [inline] alloc_pages_bulk_noprof+0x77a/0x1410 mm/page_alloc.c:5132 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c7/0xca0 net/core/page_pool.c:612 page_pool_alloc_netmems net/core/page_pool.c:663 [inline] page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:650 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x7c0/0xff0 net/core/skbuff.c:952 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:986 netif_skb_check_for_xdp net/core/dev.c:5429 [inline] netif_receive_generic_xdp net/core/dev.c:5470 [inline] do_xdp_generic+0x530/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 6039 tgid 6039 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] __free_frozen_pages+0x7df/0x1160 mm/page_alloc.c:2901 discard_slab mm/slub.c:3330 [inline] __put_partials+0x130/0x170 mm/slub.c:3876 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4d/0x120 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:352 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4978 [inline] slab_alloc_node mm/slub.c:5288 [inline] __kmalloc_cache_noprof+0x274/0x780 mm/slub.c:5766 kmalloc_noprof include/linux/slab.h:957 [inline] kzalloc_noprof include/linux/slab.h:1094 [inline] inet_alloc_ifa+0x43/0x190 net/ipv4/devinet.c:212 inet_rtm_to_ifa net/ipv4/devinet.c:904 [inline] inet_rtm_newaddr+0x3b5/0x1540 net/ipv4/devinet.c:980 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:6951 netlink_rcv_skb+0x158/0x420 net/netlink/af_netlink.c:2552 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x5aa/0x870 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x8c8/0xdd0 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] __sys_sendto+0x4a3/0x520 net/socket.c:2244 __do_sys_sendto net/socket.c:2251 [inline] __se_sys_sendto net/socket.c:2247 [inline] __x64_sys_sendto+0xe0/0x1c0 net/socket.c:2247 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 6076 Comm: syz.0.17 Tainted: G B syzkaller #0 PREEMPT(full) 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+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xcf/0x220 mm/page_alloc.c:649 free_page_is_bad mm/page_alloc.c:1082 [inline] free_page_is_bad mm/page_alloc.c:1076 [inline] free_pages_prepare mm/page_alloc.c:1386 [inline] __free_frozen_pages+0x845/0x1160 mm/page_alloc.c:2901 page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3ab/0xab0 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4191 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4215 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4237 [inline] bpf_xdp_adjust_tail+0x887/0xcb0 net/core/filter.c:4230 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x61f/0x1570 net/core/dev.c:5360 netif_receive_generic_xdp net/core/dev.c:5476 [inline] do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa53b38e27f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fff3df79630 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa53b5e5fa0 RCX: 00007fa53b38e27f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007fa53b413f91 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 00007fa53b5e5fa0 R14: 00007fa53b5e5fa0 R15: 0000000000000003 BUG: Bad page state in process syz.0.17 pfn:50574 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880505743c0 pfn:0x50574 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022300000 0000000000000000 raw: ffff8880505743c0 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 6076, tgid 6076 (syz.0.17), ts 65423244484, free_ts 65244260730 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1af/0x220 mm/page_alloc.c:1845 prep_new_page mm/page_alloc.c:1853 [inline] get_page_from_freelist+0x10a3/0x3a30 mm/page_alloc.c:3879 __alloc_frozen_pages_noprof+0x25f/0x2470 mm/page_alloc.c:5178 __alloc_pages_noprof mm/page_alloc.c:5212 [inline] alloc_pages_bulk_noprof+0x77a/0x1410 mm/page_alloc.c:5132 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c7/0xca0 net/core/page_pool.c:612 page_pool_alloc_netmems net/core/page_pool.c:663 [inline] page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:650 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x7c0/0xff0 net/core/skbuff.c:952 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:986 netif_skb_check_for_xdp net/core/dev.c:5429 [inline] netif_receive_generic_xdp net/core/dev.c:5470 [inline] do_xdp_generic+0x530/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 6039 tgid 6039 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] __free_frozen_pages+0x7df/0x1160 mm/page_alloc.c:2901 discard_slab mm/slub.c:3330 [inline] __put_partials+0x130/0x170 mm/slub.c:3876 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4d/0x120 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:352 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4978 [inline] slab_alloc_node mm/slub.c:5288 [inline] __kmalloc_cache_noprof+0x274/0x780 mm/slub.c:5766 kmalloc_noprof include/linux/slab.h:957 [inline] kzalloc_noprof include/linux/slab.h:1094 [inline] inet_alloc_ifa+0x43/0x190 net/ipv4/devinet.c:212 inet_rtm_to_ifa net/ipv4/devinet.c:904 [inline] inet_rtm_newaddr+0x3b5/0x1540 net/ipv4/devinet.c:980 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:6951 netlink_rcv_skb+0x158/0x420 net/netlink/af_netlink.c:2552 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x5aa/0x870 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x8c8/0xdd0 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] __sys_sendto+0x4a3/0x520 net/socket.c:2244 __do_sys_sendto net/socket.c:2251 [inline] __se_sys_sendto net/socket.c:2247 [inline] __x64_sys_sendto+0xe0/0x1c0 net/socket.c:2247 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 6076 Comm: syz.0.17 Tainted: G B syzkaller #0 PREEMPT(full) 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+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xcf/0x220 mm/page_alloc.c:649 free_page_is_bad mm/page_alloc.c:1082 [inline] free_page_is_bad mm/page_alloc.c:1076 [inline] free_pages_prepare mm/page_alloc.c:1386 [inline] __free_frozen_pages+0x845/0x1160 mm/page_alloc.c:2901 page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3ab/0xab0 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4191 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4215 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4237 [inline] bpf_xdp_adjust_tail+0x887/0xcb0 net/core/filter.c:4230 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x61f/0x1570 net/core/dev.c:5360 netif_receive_generic_xdp net/core/dev.c:5476 [inline] do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa53b38e27f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fff3df79630 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa53b5e5fa0 RCX: 00007fa53b38e27f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007fa53b413f91 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 00007fa53b5e5fa0 R14: 00007fa53b5e5fa0 R15: 0000000000000003 BUG: Bad page state in process syz.0.17 pfn:50573 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888050573f00 pfn:0x50573 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022300000 0000000000000000 raw: ffff888050573f00 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 6076, tgid 6076 (syz.0.17), ts 65423238221, free_ts 65244266379 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1af/0x220 mm/page_alloc.c:1845 prep_new_page mm/page_alloc.c:1853 [inline] get_page_from_freelist+0x10a3/0x3a30 mm/page_alloc.c:3879 __alloc_frozen_pages_noprof+0x25f/0x2470 mm/page_alloc.c:5178 __alloc_pages_noprof mm/page_alloc.c:5212 [inline] alloc_pages_bulk_noprof+0x77a/0x1410 mm/page_alloc.c:5132 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c7/0xca0 net/core/page_pool.c:612 page_pool_alloc_netmems net/core/page_pool.c:663 [inline] page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:650 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x7c0/0xff0 net/core/skbuff.c:952 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:986 netif_skb_check_for_xdp net/core/dev.c:5429 [inline] netif_receive_generic_xdp net/core/dev.c:5470 [inline] do_xdp_generic+0x530/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 6039 tgid 6039 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] __free_frozen_pages+0x7df/0x1160 mm/page_alloc.c:2901 discard_slab mm/slub.c:3330 [inline] __put_partials+0x130/0x170 mm/slub.c:3876 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4d/0x120 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:352 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4978 [inline] slab_alloc_node mm/slub.c:5288 [inline] __kmalloc_cache_noprof+0x274/0x780 mm/slub.c:5766 kmalloc_noprof include/linux/slab.h:957 [inline] kzalloc_noprof include/linux/slab.h:1094 [inline] inet_alloc_ifa+0x43/0x190 net/ipv4/devinet.c:212 inet_rtm_to_ifa net/ipv4/devinet.c:904 [inline] inet_rtm_newaddr+0x3b5/0x1540 net/ipv4/devinet.c:980 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:6951 netlink_rcv_skb+0x158/0x420 net/netlink/af_netlink.c:2552 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x5aa/0x870 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x8c8/0xdd0 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] __sys_sendto+0x4a3/0x520 net/socket.c:2244 __do_sys_sendto net/socket.c:2251 [inline] __se_sys_sendto net/socket.c:2247 [inline] __x64_sys_sendto+0xe0/0x1c0 net/socket.c:2247 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 6076 Comm: syz.0.17 Tainted: G B syzkaller #0 PREEMPT(full) 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+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xcf/0x220 mm/page_alloc.c:649 free_page_is_bad mm/page_alloc.c:1082 [inline] free_page_is_bad mm/page_alloc.c:1076 [inline] free_pages_prepare mm/page_alloc.c:1386 [inline] __free_frozen_pages+0x845/0x1160 mm/page_alloc.c:2901 page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3ab/0xab0 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4191 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4215 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4237 [inline] bpf_xdp_adjust_tail+0x887/0xcb0 net/core/filter.c:4230 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x61f/0x1570 net/core/dev.c:5360 netif_receive_generic_xdp net/core/dev.c:5476 [inline] do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa53b38e27f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fff3df79630 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa53b5e5fa0 RCX: 00007fa53b38e27f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007fa53b413f91 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 00007fa53b5e5fa0 R14: 00007fa53b5e5fa0 R15: 0000000000000003 BUG: Bad page state in process syz.0.17 pfn:4f947 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88804f947000 pfn:0x4f947 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022300000 0000000000000000 raw: ffff88804f947000 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 6076, tgid 6076 (syz.0.17), ts 65423231877, free_ts 65244272151 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1af/0x220 mm/page_alloc.c:1845 prep_new_page mm/page_alloc.c:1853 [inline] get_page_from_freelist+0x10a3/0x3a30 mm/page_alloc.c:3879 __alloc_frozen_pages_noprof+0x25f/0x2470 mm/page_alloc.c:5178 __alloc_pages_noprof mm/page_alloc.c:5212 [inline] alloc_pages_bulk_noprof+0x77a/0x1410 mm/page_alloc.c:5132 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c7/0xca0 net/core/page_pool.c:612 page_pool_alloc_netmems net/core/page_pool.c:663 [inline] page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:650 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x7c0/0xff0 net/core/skbuff.c:952 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:986 netif_skb_check_for_xdp net/core/dev.c:5429 [inline] netif_receive_generic_xdp net/core/dev.c:5470 [inline] do_xdp_generic+0x530/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 6039 tgid 6039 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] __free_frozen_pages+0x7df/0x1160 mm/page_alloc.c:2901 discard_slab mm/slub.c:3330 [inline] __put_partials+0x130/0x170 mm/slub.c:3876 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4d/0x120 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:352 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4978 [inline] slab_alloc_node mm/slub.c:5288 [inline] __kmalloc_cache_noprof+0x274/0x780 mm/slub.c:5766 kmalloc_noprof include/linux/slab.h:957 [inline] kzalloc_noprof include/linux/slab.h:1094 [inline] inet_alloc_ifa+0x43/0x190 net/ipv4/devinet.c:212 inet_rtm_to_ifa net/ipv4/devinet.c:904 [inline] inet_rtm_newaddr+0x3b5/0x1540 net/ipv4/devinet.c:980 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:6951 netlink_rcv_skb+0x158/0x420 net/netlink/af_netlink.c:2552 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x5aa/0x870 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x8c8/0xdd0 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] __sys_sendto+0x4a3/0x520 net/socket.c:2244 __do_sys_sendto net/socket.c:2251 [inline] __se_sys_sendto net/socket.c:2247 [inline] __x64_sys_sendto+0xe0/0x1c0 net/socket.c:2247 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 6076 Comm: syz.0.17 Tainted: G B syzkaller #0 PREEMPT(full) 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+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xcf/0x220 mm/page_alloc.c:649 free_page_is_bad mm/page_alloc.c:1082 [inline] free_page_is_bad mm/page_alloc.c:1076 [inline] free_pages_prepare mm/page_alloc.c:1386 [inline] __free_frozen_pages+0x845/0x1160 mm/page_alloc.c:2901 page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3ab/0xab0 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4191 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4215 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4237 [inline] bpf_xdp_adjust_tail+0x887/0xcb0 net/core/filter.c:4230 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x61f/0x1570 net/core/dev.c:5360 netif_receive_generic_xdp net/core/dev.c:5476 [inline] do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa53b38e27f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fff3df79630 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa53b5e5fa0 RCX: 00007fa53b38e27f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007fa53b413f91 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 00007fa53b5e5fa0 R14: 00007fa53b5e5fa0 R15: 0000000000000003 BUG: Bad page state in process syz.0.17 pfn:4f949 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88804f949f00 pfn:0x4f949 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022300000 0000000000000000 raw: ffff88804f949f00 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 6076, tgid 6076 (syz.0.17), ts 65423225159, free_ts 65244277883 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1af/0x220 mm/page_alloc.c:1845 prep_new_page mm/page_alloc.c:1853 [inline] get_page_from_freelist+0x10a3/0x3a30 mm/page_alloc.c:3879 __alloc_frozen_pages_noprof+0x25f/0x2470 mm/page_alloc.c:5178 __alloc_pages_noprof mm/page_alloc.c:5212 [inline] alloc_pages_bulk_noprof+0x77a/0x1410 mm/page_alloc.c:5132 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c7/0xca0 net/core/page_pool.c:612 page_pool_alloc_netmems net/core/page_pool.c:663 [inline] page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:650 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x7c0/0xff0 net/core/skbuff.c:952 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:986 netif_skb_check_for_xdp net/core/dev.c:5429 [inline] netif_receive_generic_xdp net/core/dev.c:5470 [inline] do_xdp_generic+0x530/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 6039 tgid 6039 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] __free_frozen_pages+0x7df/0x1160 mm/page_alloc.c:2901 discard_slab mm/slub.c:3330 [inline] __put_partials+0x130/0x170 mm/slub.c:3876 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4d/0x120 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:352 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4978 [inline] slab_alloc_node mm/slub.c:5288 [inline] __kmalloc_cache_noprof+0x274/0x780 mm/slub.c:5766 kmalloc_noprof include/linux/slab.h:957 [inline] kzalloc_noprof include/linux/slab.h:1094 [inline] inet_alloc_ifa+0x43/0x190 net/ipv4/devinet.c:212 inet_rtm_to_ifa net/ipv4/devinet.c:904 [inline] inet_rtm_newaddr+0x3b5/0x1540 net/ipv4/devinet.c:980 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:6951 netlink_rcv_skb+0x158/0x420 net/netlink/af_netlink.c:2552 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x5aa/0x870 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x8c8/0xdd0 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] __sys_sendto+0x4a3/0x520 net/socket.c:2244 __do_sys_sendto net/socket.c:2251 [inline] __se_sys_sendto net/socket.c:2247 [inline] __x64_sys_sendto+0xe0/0x1c0 net/socket.c:2247 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 6076 Comm: syz.0.17 Tainted: G B syzkaller #0 PREEMPT(full) 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+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xcf/0x220 mm/page_alloc.c:649 free_page_is_bad mm/page_alloc.c:1082 [inline] free_page_is_bad mm/page_alloc.c:1076 [inline] free_pages_prepare mm/page_alloc.c:1386 [inline] __free_frozen_pages+0x845/0x1160 mm/page_alloc.c:2901 page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3ab/0xab0 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4191 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4215 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4237 [inline] bpf_xdp_adjust_tail+0x887/0xcb0 net/core/filter.c:4230 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x61f/0x1570 net/core/dev.c:5360 netif_receive_generic_xdp net/core/dev.c:5476 [inline] do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa53b38e27f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fff3df79630 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa53b5e5fa0 RCX: 00007fa53b38e27f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007fa53b413f91 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 00007fa53b5e5fa0 R14: 00007fa53b5e5fa0 R15: 0000000000000003 BUG: Bad page state in process syz.0.17 pfn:33544 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888033544870 pfn:0x33544 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022300000 0000000000000000 raw: ffff888033544870 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 6076, tgid 6076 (syz.0.17), ts 65423218598, free_ts 65244286640 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1af/0x220 mm/page_alloc.c:1845 prep_new_page mm/page_alloc.c:1853 [inline] get_page_from_freelist+0x10a3/0x3a30 mm/page_alloc.c:3879 __alloc_frozen_pages_noprof+0x25f/0x2470 mm/page_alloc.c:5178 __alloc_pages_noprof mm/page_alloc.c:5212 [inline] alloc_pages_bulk_noprof+0x77a/0x1410 mm/page_alloc.c:5132 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c7/0xca0 net/core/page_pool.c:612 page_pool_alloc_netmems net/core/page_pool.c:663 [inline] page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:650 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x7c0/0xff0 net/core/skbuff.c:952 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:986 netif_skb_check_for_xdp net/core/dev.c:5429 [inline] netif_receive_generic_xdp net/core/dev.c:5470 [inline] do_xdp_generic+0x530/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 6039 tgid 6039 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] __free_frozen_pages+0x7df/0x1160 mm/page_alloc.c:2901 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4d/0x120 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:352 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4978 [inline] slab_alloc_node mm/slub.c:5288 [inline] __kmalloc_cache_noprof+0x274/0x780 mm/slub.c:5766 kmalloc_noprof include/linux/slab.h:957 [inline] kzalloc_noprof include/linux/slab.h:1094 [inline] inet_alloc_ifa+0x43/0x190 net/ipv4/devinet.c:212 inet_rtm_to_ifa net/ipv4/devinet.c:904 [inline] inet_rtm_newaddr+0x3b5/0x1540 net/ipv4/devinet.c:980 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:6951 netlink_rcv_skb+0x158/0x420 net/netlink/af_netlink.c:2552 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x5aa/0x870 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x8c8/0xdd0 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] __sys_sendto+0x4a3/0x520 net/socket.c:2244 __do_sys_sendto net/socket.c:2251 [inline] __se_sys_sendto net/socket.c:2247 [inline] __x64_sys_sendto+0xe0/0x1c0 net/socket.c:2247 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 6076 Comm: syz.0.17 Tainted: G B syzkaller #0 PREEMPT(full) 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+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xcf/0x220 mm/page_alloc.c:649 free_page_is_bad mm/page_alloc.c:1082 [inline] free_page_is_bad mm/page_alloc.c:1076 [inline] free_pages_prepare mm/page_alloc.c:1386 [inline] __free_frozen_pages+0x845/0x1160 mm/page_alloc.c:2901 page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3ab/0xab0 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4191 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4215 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4237 [inline] bpf_xdp_adjust_tail+0x887/0xcb0 net/core/filter.c:4230 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x61f/0x1570 net/core/dev.c:5360 netif_receive_generic_xdp net/core/dev.c:5476 [inline] do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa53b38e27f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fff3df79630 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa53b5e5fa0 RCX: 00007fa53b38e27f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007fa53b413f91 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 00007fa53b5e5fa0 R14: 00007fa53b5e5fa0 R15: 0000000000000003 BUG: Bad page state in process syz.0.17 pfn:50578 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888050578000 pfn:0x50578 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022300000 0000000000000000 raw: ffff888050578000 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 6076, tgid 6076 (syz.0.17), ts 65423212377, free_ts 65244296856 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1af/0x220 mm/page_alloc.c:1845 prep_new_page mm/page_alloc.c:1853 [inline] get_page_from_freelist+0x10a3/0x3a30 mm/page_alloc.c:3879 __alloc_frozen_pages_noprof+0x25f/0x2470 mm/page_alloc.c:5178 __alloc_pages_noprof mm/page_alloc.c:5212 [inline] alloc_pages_bulk_noprof+0x77a/0x1410 mm/page_alloc.c:5132 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c7/0xca0 net/core/page_pool.c:612 page_pool_alloc_netmems net/core/page_pool.c:663 [inline] page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:650 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x7c0/0xff0 net/core/skbuff.c:952 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:986 netif_skb_check_for_xdp net/core/dev.c:5429 [inline] netif_receive_generic_xdp net/core/dev.c:5470 [inline] do_xdp_generic+0x530/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 6039 tgid 6039 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] __free_frozen_pages+0x7df/0x1160 mm/page_alloc.c:2901 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4d/0x120 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:352 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4978 [inline] slab_alloc_node mm/slub.c:5288 [inline] __kmalloc_cache_noprof+0x274/0x780 mm/slub.c:5766 kmalloc_noprof include/linux/slab.h:957 [inline] kzalloc_noprof include/linux/slab.h:1094 [inline] inet_alloc_ifa+0x43/0x190 net/ipv4/devinet.c:212 inet_rtm_to_ifa net/ipv4/devinet.c:904 [inline] inet_rtm_newaddr+0x3b5/0x1540 net/ipv4/devinet.c:980 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:6951 netlink_rcv_skb+0x158/0x420 net/netlink/af_netlink.c:2552 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x5aa/0x870 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x8c8/0xdd0 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] __sys_sendto+0x4a3/0x520 net/socket.c:2244 __do_sys_sendto net/socket.c:2251 [inline] __se_sys_sendto net/socket.c:2247 [inline] __x64_sys_sendto+0xe0/0x1c0 net/socket.c:2247 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 6076 Comm: syz.0.17 Tainted: G B syzkaller #0 PREEMPT(full) 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+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xcf/0x220 mm/page_alloc.c:649 free_page_is_bad mm/page_alloc.c:1082 [inline] free_page_is_bad mm/page_alloc.c:1076 [inline] free_pages_prepare mm/page_alloc.c:1386 [inline] __free_frozen_pages+0x845/0x1160 mm/page_alloc.c:2901 page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3ab/0xab0 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4191 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4215 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4237 [inline] bpf_xdp_adjust_tail+0x887/0xcb0 net/core/filter.c:4230 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x61f/0x1570 net/core/dev.c:5360 netif_receive_generic_xdp net/core/dev.c:5476 [inline] do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa53b38e27f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fff3df79630 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa53b5e5fa0 RCX: 00007fa53b38e27f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007fa53b413f91 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 00007fa53b5e5fa0 R14: 00007fa53b5e5fa0 R15: 0000000000000003 BUG: Bad page state in process syz.0.17 pfn:336f7 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880336f7f00 pfn:0x336f7 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022300000 0000000000000000 raw: ffff8880336f7f00 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 6076, tgid 6076 (syz.0.17), ts 65423205983, free_ts 65244331645 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1af/0x220 mm/page_alloc.c:1845 prep_new_page mm/page_alloc.c:1853 [inline] get_page_from_freelist+0x10a3/0x3a30 mm/page_alloc.c:3879 __alloc_frozen_pages_noprof+0x25f/0x2470 mm/page_alloc.c:5178 __alloc_pages_noprof mm/page_alloc.c:5212 [inline] alloc_pages_bulk_noprof+0x77a/0x1410 mm/page_alloc.c:5132 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c7/0xca0 net/core/page_pool.c:612 page_pool_alloc_netmems net/core/page_pool.c:663 [inline] page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:650 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x7c0/0xff0 net/core/skbuff.c:952 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:986 netif_skb_check_for_xdp net/core/dev.c:5429 [inline] netif_receive_generic_xdp net/core/dev.c:5470 [inline] do_xdp_generic+0x530/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 6039 tgid 6039 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] __free_frozen_pages+0x7df/0x1160 mm/page_alloc.c:2901 discard_slab mm/slub.c:3330 [inline] __put_partials+0x130/0x170 mm/slub.c:3876 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4d/0x120 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:352 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4978 [inline] slab_alloc_node mm/slub.c:5288 [inline] __kmalloc_cache_noprof+0x274/0x780 mm/slub.c:5766 kmalloc_noprof include/linux/slab.h:957 [inline] kzalloc_noprof include/linux/slab.h:1094 [inline] inet_alloc_ifa+0x43/0x190 net/ipv4/devinet.c:212 inet_rtm_to_ifa net/ipv4/devinet.c:904 [inline] inet_rtm_newaddr+0x3b5/0x1540 net/ipv4/devinet.c:980 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:6951 netlink_rcv_skb+0x158/0x420 net/netlink/af_netlink.c:2552 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x5aa/0x870 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x8c8/0xdd0 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] __sys_sendto+0x4a3/0x520 net/socket.c:2244 __do_sys_sendto net/socket.c:2251 [inline] __se_sys_sendto net/socket.c:2247 [inline] __x64_sys_sendto+0xe0/0x1c0 net/socket.c:2247 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 6076 Comm: syz.0.17 Tainted: G B syzkaller #0 PREEMPT(full) 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+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xcf/0x220 mm/page_alloc.c:649 free_page_is_bad mm/page_alloc.c:1082 [inline] free_page_is_bad mm/page_alloc.c:1076 [inline] free_pages_prepare mm/page_alloc.c:1386 [inline] __free_frozen_pages+0x845/0x1160 mm/page_alloc.c:2901 page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3ab/0xab0 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4191 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4215 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4237 [inline] bpf_xdp_adjust_tail+0x887/0xcb0 net/core/filter.c:4230 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x61f/0x1570 net/core/dev.c:5360 netif_receive_generic_xdp net/core/dev.c:5476 [inline] do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa53b38e27f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fff3df79630 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa53b5e5fa0 RCX: 00007fa53b38e27f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007fa53b413f91 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 00007fa53b5e5fa0 R14: 00007fa53b5e5fa0 R15: 0000000000000003 BUG: Bad page state in process syz.0.17 pfn:50577 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888050577a50 pfn:0x50577 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022300000 0000000000000000 raw: ffff888050577a50 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 6076, tgid 6076 (syz.0.17), ts 65423199521, free_ts 65244337416 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1af/0x220 mm/page_alloc.c:1845 prep_new_page mm/page_alloc.c:1853 [inline] get_page_from_freelist+0x10a3/0x3a30 mm/page_alloc.c:3879 __alloc_frozen_pages_noprof+0x25f/0x2470 mm/page_alloc.c:5178 __alloc_pages_noprof mm/page_alloc.c:5212 [inline] alloc_pages_bulk_noprof+0x77a/0x1410 mm/page_alloc.c:5132 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c7/0xca0 net/core/page_pool.c:612 page_pool_alloc_netmems net/core/page_pool.c:663 [inline] page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:650 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x7c0/0xff0 net/core/skbuff.c:952 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:986 netif_skb_check_for_xdp net/core/dev.c:5429 [inline] netif_receive_generic_xdp net/core/dev.c:5470 [inline] do_xdp_generic+0x530/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 6039 tgid 6039 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] __free_frozen_pages+0x7df/0x1160 mm/page_alloc.c:2901 discard_slab mm/slub.c:3330 [inline] __put_partials+0x130/0x170 mm/slub.c:3876 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4d/0x120 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:352 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4978 [inline] slab_alloc_node mm/slub.c:5288 [inline] __kmalloc_cache_noprof+0x274/0x780 mm/slub.c:5766 kmalloc_noprof include/linux/slab.h:957 [inline] kzalloc_noprof include/linux/slab.h:1094 [inline] inet_alloc_ifa+0x43/0x190 net/ipv4/devinet.c:212 inet_rtm_to_ifa net/ipv4/devinet.c:904 [inline] inet_rtm_newaddr+0x3b5/0x1540 net/ipv4/devinet.c:980 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:6951 netlink_rcv_skb+0x158/0x420 net/netlink/af_netlink.c:2552 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x5aa/0x870 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x8c8/0xdd0 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] __sys_sendto+0x4a3/0x520 net/socket.c:2244 __do_sys_sendto net/socket.c:2251 [inline] __se_sys_sendto net/socket.c:2247 [inline] __x64_sys_sendto+0xe0/0x1c0 net/socket.c:2247 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 6076 Comm: syz.0.17 Tainted: G B syzkaller #0 PREEMPT(full) 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+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xcf/0x220 mm/page_alloc.c:649 free_page_is_bad mm/page_alloc.c:1082 [inline] free_page_is_bad mm/page_alloc.c:1076 [inline] free_pages_prepare mm/page_alloc.c:1386 [inline] __free_frozen_pages+0x845/0x1160 mm/page_alloc.c:2901 page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3ab/0xab0 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4191 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4215 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4237 [inline] bpf_xdp_adjust_tail+0x887/0xcb0 net/core/filter.c:4230 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x61f/0x1570 net/core/dev.c:5360 netif_receive_generic_xdp net/core/dev.c:5476 [inline] do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa53b38e27f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fff3df79630 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa53b5e5fa0 RCX: 00007fa53b38e27f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007fa53b413f91 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 00007fa53b5e5fa0 R14: 00007fa53b5e5fa0 R15: 0000000000000003 BUG: Bad page state in process syz.0.17 pfn:42023 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880420233c0 pfn:0x42023 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888022300000 0000000000000000 raw: ffff8880420233c0 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 6076, tgid 6076 (syz.0.17), ts 65423192456, free_ts 65244342928 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1af/0x220 mm/page_alloc.c:1845 prep_new_page mm/page_alloc.c:1853 [inline] get_page_from_freelist+0x10a3/0x3a30 mm/page_alloc.c:3879 __alloc_frozen_pages_noprof+0x25f/0x2470 mm/page_alloc.c:5178 __alloc_pages_noprof mm/page_alloc.c:5212 [inline] alloc_pages_bulk_noprof+0x77a/0x1410 mm/page_alloc.c:5132 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c7/0xca0 net/core/page_pool.c:612 page_pool_alloc_netmems net/core/page_pool.c:663 [inline] page_pool_alloc_netmems+0xc4/0x190 net/core/page_pool.c:650 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x7c0/0xff0 net/core/skbuff.c:952 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:986 netif_skb_check_for_xdp net/core/dev.c:5429 [inline] netif_receive_generic_xdp net/core/dev.c:5470 [inline] do_xdp_generic+0x530/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 6039 tgid 6039 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] __free_frozen_pages+0x7df/0x1160 mm/page_alloc.c:2901 discard_slab mm/slub.c:3330 [inline] __put_partials+0x130/0x170 mm/slub.c:3876 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4d/0x120 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:352 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4978 [inline] slab_alloc_node mm/slub.c:5288 [inline] __kmalloc_cache_noprof+0x274/0x780 mm/slub.c:5766 kmalloc_noprof include/linux/slab.h:957 [inline] kzalloc_noprof include/linux/slab.h:1094 [inline] inet_alloc_ifa+0x43/0x190 net/ipv4/devinet.c:212 inet_rtm_to_ifa net/ipv4/devinet.c:904 [inline] inet_rtm_newaddr+0x3b5/0x1540 net/ipv4/devinet.c:980 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:6951 netlink_rcv_skb+0x158/0x420 net/netlink/af_netlink.c:2552 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x5aa/0x870 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x8c8/0xdd0 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] __sys_sendto+0x4a3/0x520 net/socket.c:2244 __do_sys_sendto net/socket.c:2251 [inline] __se_sys_sendto net/socket.c:2247 [inline] __x64_sys_sendto+0xe0/0x1c0 net/socket.c:2247 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 6076 Comm: syz.0.17 Tainted: G B syzkaller #0 PREEMPT(full) 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+0x16c/0x1f0 lib/dump_stack.c:120 bad_page+0xcf/0x220 mm/page_alloc.c:649 free_page_is_bad mm/page_alloc.c:1082 [inline] free_page_is_bad mm/page_alloc.c:1076 [inline] free_pages_prepare mm/page_alloc.c:1386 [inline] __free_frozen_pages+0x845/0x1160 mm/page_alloc.c:2901 page_frag_free+0x27f/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3ab/0xab0 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4191 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4215 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4237 [inline] bpf_xdp_adjust_tail+0x887/0xcb0 net/core/filter.c:4230 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x61f/0x1570 net/core/dev.c:5360 netif_receive_generic_xdp net/core/dev.c:5476 [inline] do_xdp_generic+0x8e6/0x1320 net/core/dev.c:5538 tun_get_user+0x1d41/0x3cc0 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa53b38e27f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fff3df79630 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa53b5e5fa0 RCX: 00007fa53b38e27f RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007fa53b413f91 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 00007fa53b5e5fa0 R14: 00007fa53b5e5fa0 R15: 0000000000000003