Extracting prog: 1m15.79353107s Minimizing prog: 14m50.783888154s Simplifying prog options: 0s Extracting C: 23.245111363s Simplifying C: 6m6.316836081s 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: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}}): mkdirat-mount-mkdirat-mkdirat-mkdirat-mount-openat-rmdir detailed listing: executing program 0: mkdirat(0xffffffffffffff9c, &(0x7f0000000040)='./my_configfs\x00', 0x1ff) mount(0x0, &(0x7f0000000080)='./my_configfs\x00', &(0x7f00000000c0)='configfs\x00', 0x0, 0x0) mkdirat(0xffffffffffffff9c, &(0x7f0000000100)='./my_configfs/usb_gadget/g1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000001c0)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000000a0)='./dev\x00', 0x1ff) mount(0x0, &(0x7f00000000a0)='./dev\x00', &(0x7f00000000c0)='devtmpfs\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000800)='./dev/ttyGS0\x00', 0x2, 0x0) rmdir(&(0x7f0000000440)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00') program crashed: KASAN: slab-use-after-free Read in tty_open program crashed: KASAN: slab-use-after-free Read in check_tty_count single: successfully extracted reproducer found reproducer with 8 syscalls minimizing guilty program testing program (duration=38.365093929s, {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: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}}): mkdirat-mount-mkdirat-mkdirat-mkdirat-mount-openat detailed listing: executing program 0: mkdirat(0xffffffffffffff9c, &(0x7f0000000040)='./my_configfs\x00', 0x1ff) mount(0x0, &(0x7f0000000080)='./my_configfs\x00', &(0x7f00000000c0)='configfs\x00', 0x0, 0x0) mkdirat(0xffffffffffffff9c, &(0x7f0000000100)='./my_configfs/usb_gadget/g1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000001c0)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000000a0)='./dev\x00', 0x1ff) mount(0x0, &(0x7f00000000a0)='./dev\x00', &(0x7f00000000c0)='devtmpfs\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000800)='./dev/ttyGS0\x00', 0x2, 0x0) program did not crash testing program (duration=38.365093929s, {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: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}}): mkdirat-mount-mkdirat-mkdirat-mkdirat-mount-rmdir detailed listing: executing program 0: mkdirat(0xffffffffffffff9c, &(0x7f0000000040)='./my_configfs\x00', 0x1ff) mount(0x0, &(0x7f0000000080)='./my_configfs\x00', &(0x7f00000000c0)='configfs\x00', 0x0, 0x0) mkdirat(0xffffffffffffff9c, &(0x7f0000000100)='./my_configfs/usb_gadget/g1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000001c0)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000000a0)='./dev\x00', 0x1ff) mount(0x0, &(0x7f00000000a0)='./dev\x00', &(0x7f00000000c0)='devtmpfs\x00', 0x0, 0x0) rmdir(&(0x7f0000000440)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00') program did not crash testing program (duration=38.365093929s, {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: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}}): mkdirat-mount-mkdirat-mkdirat-mkdirat-openat-rmdir detailed listing: executing program 0: mkdirat(0xffffffffffffff9c, &(0x7f0000000040)='./my_configfs\x00', 0x1ff) mount(0x0, &(0x7f0000000080)='./my_configfs\x00', &(0x7f00000000c0)='configfs\x00', 0x0, 0x0) mkdirat(0xffffffffffffff9c, &(0x7f0000000100)='./my_configfs/usb_gadget/g1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000001c0)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000000a0)='./dev\x00', 0x1ff) openat(0xffffffffffffff9c, &(0x7f0000000800)='./dev/ttyGS0\x00', 0x2, 0x0) rmdir(&(0x7f0000000440)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00') program did not crash testing program (duration=38.365093929s, {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: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}}): mkdirat-mount-mkdirat-mkdirat-mount-openat-rmdir detailed listing: executing program 0: mkdirat(0xffffffffffffff9c, &(0x7f0000000040)='./my_configfs\x00', 0x1ff) mount(0x0, &(0x7f0000000080)='./my_configfs\x00', &(0x7f00000000c0)='configfs\x00', 0x0, 0x0) mkdirat(0xffffffffffffff9c, &(0x7f0000000100)='./my_configfs/usb_gadget/g1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000001c0)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00', 0x1ff) mount(0x0, &(0x7f00000000a0)='./dev\x00', &(0x7f00000000c0)='devtmpfs\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000800)='./dev/ttyGS0\x00', 0x2, 0x0) rmdir(&(0x7f0000000440)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00') program did not crash testing program (duration=38.365093929s, {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: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}}): mkdirat-mount-mkdirat-mkdirat-mount-openat-rmdir detailed listing: executing program 0: mkdirat(0xffffffffffffff9c, &(0x7f0000000040)='./my_configfs\x00', 0x1ff) mount(0x0, &(0x7f0000000080)='./my_configfs\x00', &(0x7f00000000c0)='configfs\x00', 0x0, 0x0) mkdirat(0xffffffffffffff9c, &(0x7f0000000100)='./my_configfs/usb_gadget/g1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000000a0)='./dev\x00', 0x1ff) mount(0x0, &(0x7f00000000a0)='./dev\x00', &(0x7f00000000c0)='devtmpfs\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000800)='./dev/ttyGS0\x00', 0x2, 0x0) rmdir(&(0x7f0000000440)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00') program did not crash testing program (duration=38.365093929s, {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: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}}): mkdirat-mount-mkdirat-mkdirat-mount-openat-rmdir detailed listing: executing program 0: mkdirat(0xffffffffffffff9c, &(0x7f0000000040)='./my_configfs\x00', 0x1ff) mount(0x0, &(0x7f0000000080)='./my_configfs\x00', &(0x7f00000000c0)='configfs\x00', 0x0, 0x0) mkdirat(0xffffffffffffff9c, &(0x7f00000001c0)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000000a0)='./dev\x00', 0x1ff) mount(0x0, &(0x7f00000000a0)='./dev\x00', &(0x7f00000000c0)='devtmpfs\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000800)='./dev/ttyGS0\x00', 0x2, 0x0) rmdir(&(0x7f0000000440)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00') program did not crash testing program (duration=38.365093929s, {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: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}}): mkdirat-mkdirat-mkdirat-mkdirat-mount-openat-rmdir detailed listing: executing program 0: mkdirat(0xffffffffffffff9c, &(0x7f0000000040)='./my_configfs\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f0000000100)='./my_configfs/usb_gadget/g1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000001c0)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000000a0)='./dev\x00', 0x1ff) mount(0x0, &(0x7f00000000a0)='./dev\x00', &(0x7f00000000c0)='devtmpfs\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000800)='./dev/ttyGS0\x00', 0x2, 0x0) rmdir(&(0x7f0000000440)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00') program did not crash testing program (duration=38.365093929s, {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: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}}): mount-mkdirat-mkdirat-mkdirat-mount-openat-rmdir detailed listing: executing program 0: mount(0x0, &(0x7f0000000080)='./my_configfs\x00', &(0x7f00000000c0)='configfs\x00', 0x0, 0x0) mkdirat(0xffffffffffffff9c, &(0x7f0000000100)='./my_configfs/usb_gadget/g1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000001c0)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000000a0)='./dev\x00', 0x1ff) mount(0x0, &(0x7f00000000a0)='./dev\x00', &(0x7f00000000c0)='devtmpfs\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000800)='./dev/ttyGS0\x00', 0x2, 0x0) rmdir(&(0x7f0000000440)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00') program did not crash testing program (duration=38.365093929s, {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: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}}): mkdirat-mount-mkdirat-mkdirat-mkdirat-mount-openat-rmdir detailed listing: executing program 0: mkdirat(0xffffffffffffff9c, 0x0, 0x1ff) mount(0x0, &(0x7f0000000080)='./my_configfs\x00', &(0x7f00000000c0)='configfs\x00', 0x0, 0x0) mkdirat(0xffffffffffffff9c, &(0x7f0000000100)='./my_configfs/usb_gadget/g1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000001c0)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000000a0)='./dev\x00', 0x1ff) mount(0x0, &(0x7f00000000a0)='./dev\x00', &(0x7f00000000c0)='devtmpfs\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000800)='./dev/ttyGS0\x00', 0x2, 0x0) rmdir(&(0x7f0000000440)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00') program did not crash testing program (duration=38.365093929s, {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: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}}): mkdirat-mount-mkdirat-mkdirat-mkdirat-mount-openat-rmdir detailed listing: executing program 0: mkdirat(0xffffffffffffff9c, &(0x7f0000000040)='./my_configfs\x00', 0x1ff) mount(0x0, 0x0, &(0x7f00000000c0)='configfs\x00', 0x0, 0x0) mkdirat(0xffffffffffffff9c, &(0x7f0000000100)='./my_configfs/usb_gadget/g1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000001c0)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000000a0)='./dev\x00', 0x1ff) mount(0x0, &(0x7f00000000a0)='./dev\x00', &(0x7f00000000c0)='devtmpfs\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000800)='./dev/ttyGS0\x00', 0x2, 0x0) rmdir(&(0x7f0000000440)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00') program did not crash testing program (duration=38.365093929s, {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: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}}): mkdirat-mount-mkdirat-mkdirat-mkdirat-mount-openat-rmdir detailed listing: executing program 0: mkdirat(0xffffffffffffff9c, &(0x7f0000000040)='./my_configfs\x00', 0x1ff) mount(0x0, &(0x7f0000000080)='./my_configfs\x00', 0x0, 0x0, 0x0) mkdirat(0xffffffffffffff9c, &(0x7f0000000100)='./my_configfs/usb_gadget/g1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000001c0)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000000a0)='./dev\x00', 0x1ff) mount(0x0, &(0x7f00000000a0)='./dev\x00', &(0x7f00000000c0)='devtmpfs\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000800)='./dev/ttyGS0\x00', 0x2, 0x0) rmdir(&(0x7f0000000440)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00') program did not crash testing program (duration=38.365093929s, {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: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}}): mkdirat-mount-mkdirat-mkdirat-mkdirat-mount-openat-rmdir detailed listing: executing program 0: mkdirat(0xffffffffffffff9c, &(0x7f0000000040)='./my_configfs\x00', 0x1ff) mount(0x0, &(0x7f0000000080)='./my_configfs\x00', &(0x7f00000000c0)='configfs\x00', 0x0, 0x0) mkdirat(0xffffffffffffff9c, 0x0, 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000001c0)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000000a0)='./dev\x00', 0x1ff) mount(0x0, &(0x7f00000000a0)='./dev\x00', &(0x7f00000000c0)='devtmpfs\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000800)='./dev/ttyGS0\x00', 0x2, 0x0) rmdir(&(0x7f0000000440)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00') program did not crash testing program (duration=38.365093929s, {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: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}}): mkdirat-mount-mkdirat-mkdirat-mkdirat-mount-openat-rmdir detailed listing: executing program 0: mkdirat(0xffffffffffffff9c, &(0x7f0000000040)='./my_configfs\x00', 0x1ff) mount(0x0, &(0x7f0000000080)='./my_configfs\x00', &(0x7f00000000c0)='configfs\x00', 0x0, 0x0) mkdirat(0xffffffffffffff9c, &(0x7f0000000100)='./my_configfs/usb_gadget/g1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, 0x0, 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000000a0)='./dev\x00', 0x1ff) mount(0x0, &(0x7f00000000a0)='./dev\x00', &(0x7f00000000c0)='devtmpfs\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000800)='./dev/ttyGS0\x00', 0x2, 0x0) rmdir(&(0x7f0000000440)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00') program did not crash testing program (duration=38.365093929s, {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: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}}): mkdirat-mount-mkdirat-mkdirat-mkdirat-mount-openat-rmdir detailed listing: executing program 0: mkdirat(0xffffffffffffff9c, &(0x7f0000000040)='./my_configfs\x00', 0x1ff) mount(0x0, &(0x7f0000000080)='./my_configfs\x00', &(0x7f00000000c0)='configfs\x00', 0x0, 0x0) mkdirat(0xffffffffffffff9c, &(0x7f0000000100)='./my_configfs/usb_gadget/g1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000001c0)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, 0x0, 0x1ff) mount(0x0, &(0x7f00000000a0)='./dev\x00', &(0x7f00000000c0)='devtmpfs\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000800)='./dev/ttyGS0\x00', 0x2, 0x0) rmdir(&(0x7f0000000440)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00') program did not crash testing program (duration=38.365093929s, {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: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}}): mkdirat-mount-mkdirat-mkdirat-mkdirat-mount-openat-rmdir detailed listing: executing program 0: mkdirat(0xffffffffffffff9c, &(0x7f0000000040)='./my_configfs\x00', 0x1ff) mount(0x0, &(0x7f0000000080)='./my_configfs\x00', &(0x7f00000000c0)='configfs\x00', 0x0, 0x0) mkdirat(0xffffffffffffff9c, &(0x7f0000000100)='./my_configfs/usb_gadget/g1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000001c0)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000000a0)='./dev\x00', 0x1ff) mount(0x0, 0x0, &(0x7f00000000c0)='devtmpfs\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000800)='./dev/ttyGS0\x00', 0x2, 0x0) rmdir(&(0x7f0000000440)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00') program did not crash testing program (duration=38.365093929s, {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: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}}): mkdirat-mount-mkdirat-mkdirat-mkdirat-mount-openat-rmdir detailed listing: executing program 0: mkdirat(0xffffffffffffff9c, &(0x7f0000000040)='./my_configfs\x00', 0x1ff) mount(0x0, &(0x7f0000000080)='./my_configfs\x00', &(0x7f00000000c0)='configfs\x00', 0x0, 0x0) mkdirat(0xffffffffffffff9c, &(0x7f0000000100)='./my_configfs/usb_gadget/g1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000001c0)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000000a0)='./dev\x00', 0x1ff) mount(0x0, &(0x7f00000000a0)='./dev\x00', 0x0, 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000800)='./dev/ttyGS0\x00', 0x2, 0x0) rmdir(&(0x7f0000000440)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00') program did not crash testing program (duration=38.365093929s, {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: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}}): mkdirat-mount-mkdirat-mkdirat-mkdirat-mount-openat-rmdir detailed listing: executing program 0: mkdirat(0xffffffffffffff9c, &(0x7f0000000040)='./my_configfs\x00', 0x1ff) mount(0x0, &(0x7f0000000080)='./my_configfs\x00', &(0x7f00000000c0)='configfs\x00', 0x0, 0x0) mkdirat(0xffffffffffffff9c, &(0x7f0000000100)='./my_configfs/usb_gadget/g1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000001c0)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000000a0)='./dev\x00', 0x1ff) mount(0x0, &(0x7f00000000a0)='./dev\x00', &(0x7f00000000c0)='devtmpfs\x00', 0x0, 0x0) openat(0xffffffffffffff9c, 0x0, 0x2, 0x0) rmdir(&(0x7f0000000440)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00') program did not crash testing program (duration=38.365093929s, {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: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}}): mkdirat-mount-mkdirat-mkdirat-mkdirat-mount-openat-rmdir detailed listing: executing program 0: mkdirat(0xffffffffffffff9c, &(0x7f0000000040)='./my_configfs\x00', 0x1ff) mount(0x0, &(0x7f0000000080)='./my_configfs\x00', &(0x7f00000000c0)='configfs\x00', 0x0, 0x0) mkdirat(0xffffffffffffff9c, &(0x7f0000000100)='./my_configfs/usb_gadget/g1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000001c0)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000000a0)='./dev\x00', 0x1ff) mount(0x0, &(0x7f00000000a0)='./dev\x00', &(0x7f00000000c0)='devtmpfs\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000800)='./dev/ttyGS0\x00', 0x2, 0x0) rmdir(0x0) program did not crash extracting C reproducer testing compiled C program (duration=38.365093929s, {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: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}}): mkdirat-mount-mkdirat-mkdirat-mkdirat-mount-openat-rmdir program crashed: KASAN: slab-use-after-free Read in check_tty_count simplifying C reproducer testing compiled C program (duration=38.365093929s, {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: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}}): mkdirat-mount-mkdirat-mkdirat-mkdirat-mount-openat-rmdir program did not crash testing compiled C program (duration=38.365093929s, {Threaded:true 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: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}}): mkdirat-mount-mkdirat-mkdirat-mkdirat-mount-openat-rmdir program crashed: KASAN: slab-use-after-free Write in release_tty a never seen crash title: KASAN: slab-use-after-free Write in release_tty, ignore testing compiled C program (duration=38.365093929s, {Threaded:true Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection: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}}): mkdirat-mount-mkdirat-mkdirat-mkdirat-mount-openat-rmdir program crashed: KASAN: slab-use-after-free Write in release_tty a never seen crash title: KASAN: slab-use-after-free Write in release_tty, ignore testing compiled C program (duration=38.365093929s, {Threaded:true Repeat:true RepeatTimes:0 Procs:4 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:false Sysctl:true Swap:false UseTmpDir:true HandleSegv:true Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): mkdirat-mount-mkdirat-mkdirat-mkdirat-mount-openat-rmdir program crashed: KASAN: slab-use-after-free Read in check_tty_count testing compiled C program (duration=38.365093929s, {Threaded:true Repeat:true RepeatTimes:0 Procs:4 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:false Sysctl:true Swap:false UseTmpDir:false HandleSegv:true Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): mkdirat-mount-mkdirat-mkdirat-mkdirat-mount-openat-rmdir program crashed: WARNING in gs_close a never seen crash title: WARNING in gs_close, ignore testing compiled C program (duration=38.365093929s, {Threaded:true Repeat:true RepeatTimes:0 Procs:4 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:false Sysctl:true Swap:false UseTmpDir:true HandleSegv:false Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): mkdirat-mount-mkdirat-mkdirat-mkdirat-mount-openat-rmdir program crashed: KASAN: slab-use-after-free Read in check_tty_count testing compiled C program (duration=38.365093929s, {Threaded:true Repeat:true RepeatTimes:0 Procs:4 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:false Sysctl:false Swap:false UseTmpDir:true HandleSegv:false Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): mkdirat-mount-mkdirat-mkdirat-mkdirat-mount-openat-rmdir program crashed: KASAN: slab-use-after-free Read in tty_open a never seen crash title: KASAN: slab-use-after-free Read in tty_open, ignore testing program (duration=38.365093929s, {Threaded:true Repeat:true RepeatTimes:0 Procs:4 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:false Sysctl:true Swap:false UseTmpDir:true HandleSegv:false Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): mkdirat-mount-mkdirat-mkdirat-mkdirat-mount-openat-rmdir detailed listing: executing program 0: mkdirat(0xffffffffffffff9c, &(0x7f0000000040)='./my_configfs\x00', 0x1ff) mount(0x0, &(0x7f0000000080)='./my_configfs\x00', &(0x7f00000000c0)='configfs\x00', 0x0, 0x0) mkdirat(0xffffffffffffff9c, &(0x7f0000000100)='./my_configfs/usb_gadget/g1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000001c0)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000000a0)='./dev\x00', 0x1ff) mount(0x0, &(0x7f00000000a0)='./dev\x00', &(0x7f00000000c0)='devtmpfs\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000800)='./dev/ttyGS0\x00', 0x2, 0x0) rmdir(&(0x7f0000000440)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00') program crashed: KASAN: slab-use-after-free Read in check_tty_count validation run: crashed=true testing program (duration=38.365093929s, {Threaded:true Repeat:true RepeatTimes:0 Procs:4 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:false Sysctl:true Swap:false UseTmpDir:true HandleSegv:false Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): mkdirat-mount-mkdirat-mkdirat-mkdirat-mount-openat-rmdir detailed listing: executing program 0: mkdirat(0xffffffffffffff9c, &(0x7f0000000040)='./my_configfs\x00', 0x1ff) mount(0x0, &(0x7f0000000080)='./my_configfs\x00', &(0x7f00000000c0)='configfs\x00', 0x0, 0x0) mkdirat(0xffffffffffffff9c, &(0x7f0000000100)='./my_configfs/usb_gadget/g1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000001c0)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000000a0)='./dev\x00', 0x1ff) mount(0x0, &(0x7f00000000a0)='./dev\x00', &(0x7f00000000c0)='devtmpfs\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000800)='./dev/ttyGS0\x00', 0x2, 0x0) rmdir(&(0x7f0000000440)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00') program crashed: KASAN: slab-use-after-free Read in check_tty_count validation run: crashed=true testing program (duration=38.365093929s, {Threaded:true Repeat:true RepeatTimes:0 Procs:4 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:false Sysctl:true Swap:false UseTmpDir:true HandleSegv:false Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): mkdirat-mount-mkdirat-mkdirat-mkdirat-mount-openat-rmdir detailed listing: executing program 0: mkdirat(0xffffffffffffff9c, &(0x7f0000000040)='./my_configfs\x00', 0x1ff) mount(0x0, &(0x7f0000000080)='./my_configfs\x00', &(0x7f00000000c0)='configfs\x00', 0x0, 0x0) mkdirat(0xffffffffffffff9c, &(0x7f0000000100)='./my_configfs/usb_gadget/g1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000001c0)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000000a0)='./dev\x00', 0x1ff) mount(0x0, &(0x7f00000000a0)='./dev\x00', &(0x7f00000000c0)='devtmpfs\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000800)='./dev/ttyGS0\x00', 0x2, 0x0) rmdir(&(0x7f0000000440)='./my_configfs/usb_gadget/g1/functions/obex.usb1\x00') program crashed: KASAN: slab-use-after-free Read in check_tty_count validation run: crashed=true reproducing took 24m55.984795176s repro crashed as (corrupted=false): ================================================================== BUG: KASAN: slab-use-after-free in instrument_atomic_read include/linux/instrumented.h:68 [inline] BUG: KASAN: slab-use-after-free in _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] BUG: KASAN: slab-use-after-free in tty_port_kopened include/linux/tty_port.h:229 [inline] BUG: KASAN: slab-use-after-free in check_tty_count+0x1a5/0x330 drivers/tty/tty_io.c:288 Read of size 8 at addr ffff888116719100 by task syz.1.18/398 CPU: 1 UID: 0 PID: 398 Comm: syz.1.18 Not tainted syzkaller #0 1b627ac51616646c2b03e03cc27ccf1d06a70c9d Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: __dump_stack+0x21/0x30 lib/dump_stack.c:94 dump_stack_lvl+0x140/0x1c0 lib/dump_stack.c:120 print_address_description+0x71/0x210 mm/kasan/report.c:377 print_report+0x4a/0x70 mm/kasan/report.c:481 kasan_report+0x162/0x1a0 mm/kasan/report.c:594 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x25a/0x2b0 mm/kasan/generic.c:189 __kasan_check_read+0x15/0x20 mm/kasan/shadow.c:31 instrument_atomic_read include/linux/instrumented.h:68 [inline] _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] tty_port_kopened include/linux/tty_port.h:229 [inline] check_tty_count+0x1a5/0x330 drivers/tty/tty_io.c:288 tty_release+0x89/0x11e0 drivers/tty/tty_io.c:1737 __fput+0x20b/0xa30 fs/file_table.c:447 ____fput+0x20/0x30 fs/file_table.c:475 task_work_run+0x1e8/0x260 kernel/task_work.c:246 resume_user_mode_work+0x35/0x50 include/linux/resume_user_mode.h:50 exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x63/0xb0 kernel/entry/common.c:218 do_syscall_64+0x63/0xf0 arch/x86/entry/common.c:84 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7f92a839e0d9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fff67132388 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007f92a8627da0 RCX: 00007f92a839e0d9 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 00007f92a8627da0 R08: 00007f92a8626038 R09: 0000000000000000 R10: 000000000003fda0 R11: 0000000000000246 R12: 0000000000006cef R13: 00007f92a8625fac R14: 00000000000069f0 R15: 00007fff67132490 Allocated by task 399: kasan_save_stack mm/kasan/common.c:49 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:70 kasan_save_alloc_info+0x3a/0x50 mm/kasan/generic.c:565 poison_kmalloc_redzone mm/kasan/common.c:379 [inline] __kasan_kmalloc+0x96/0xb0 mm/kasan/common.c:396 kasan_kmalloc include/linux/kasan.h:261 [inline] __kmalloc_cache_noprof+0x23c/0x470 mm/slub.c:4426 kmalloc_noprof include/linux/slab.h:881 [inline] kzalloc_noprof include/linux/slab.h:1017 [inline] gs_port_alloc drivers/usb/gadget/function/u_serial.c:1181 [inline] gserial_alloc_line_no_console+0x245/0x770 drivers/usb/gadget/function/u_serial.c:1261 obex_alloc_inst+0x9b/0x190 drivers/usb/gadget/function/f_obex.c:434 try_get_usb_function_instance drivers/usb/gadget/functions.c:28 [inline] usb_get_function_instance+0xfa/0x320 drivers/usb/gadget/functions.c:44 function_make+0x125/0x370 drivers/usb/gadget/configfs.c:631 configfs_mkdir+0x526/0xb70 fs/configfs/dir.c:1339 vfs_mkdir+0x591/0x810 fs/namei.c:4265 do_mkdirat+0x240/0x530 fs/namei.c:4288 __do_sys_mkdirat fs/namei.c:4303 [inline] __se_sys_mkdirat fs/namei.c:4301 [inline] __x64_sys_mkdirat+0x8b/0xa0 fs/namei.c:4301 x64_sys_call+0x2ba8/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:259 do_syscall_x64 arch/x86/entry/common.c:47 [inline] do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78 entry_SYSCALL_64_after_hwframe+0x76/0x7e Freed by task 399: kasan_save_stack mm/kasan/common.c:49 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:70 kasan_save_free_info+0x44/0x50 mm/kasan/generic.c:579 poison_slab_object mm/kasan/common.c:249 [inline] __kasan_slab_free+0x5f/0x80 mm/kasan/common.c:266 kasan_slab_free include/linux/kasan.h:234 [inline] slab_free_hook mm/slub.c:2445 [inline] slab_free mm/slub.c:4714 [inline] kfree+0x158/0x440 mm/slub.c:4875 gserial_free_port+0x244/0x2e0 drivers/usb/gadget/function/u_serial.c:1225 gserial_free_line+0x9f/0x1b0 drivers/usb/gadget/function/u_serial.c:1242 obex_free_inst+0x3d/0x60 drivers/usb/gadget/function/f_obex.c:420 usb_put_function_instance+0x9f/0xc0 drivers/usb/gadget/functions.c:77 obex_attr_release+0x19/0x30 drivers/usb/gadget/function/f_obex.c:390 config_item_cleanup fs/configfs/item.c:128 [inline] config_item_release fs/configfs/item.c:137 [inline] kref_put include/linux/kref.h:65 [inline] config_item_put+0x175/0x240 fs/configfs/item.c:149 configfs_rmdir+0x8e8/0x9b0 fs/configfs/dir.c:1550 vfs_rmdir+0x3db/0x560 fs/namei.c:4348 do_rmdir+0x29a/0x590 fs/namei.c:4407 __do_sys_rmdir fs/namei.c:4426 [inline] __se_sys_rmdir fs/namei.c:4424 [inline] __x64_sys_rmdir+0x4b/0x60 fs/namei.c:4424 x64_sys_call+0xaf7/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:85 do_syscall_x64 arch/x86/entry/common.c:47 [inline] do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78 entry_SYSCALL_64_after_hwframe+0x76/0x7e The buggy address belongs to the object at ffff888116719000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 256 bytes inside of freed 1024-byte region [ffff888116719000, ffff888116719400) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x116718 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x4000000000000040(head|zone=1) page_type: f5(slab) raw: 4000000000000040 ffff888100041dc0 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000100010 00000001f5000000 0000000000000000 head: 4000000000000040 ffff888100041dc0 dead000000000122 0000000000000000 head: 0000000000000000 0000000000100010 00000001f5000000 0000000000000000 head: 4000000000000003 ffffea000459c601 ffffffffffffffff 0000000000000000 head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0x1d2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 372, tgid 372 (kworker/u8:5), ts 26825068560, free_ts 26567906477 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook+0x37d/0x3b0 mm/page_alloc.c:1863 prep_new_page+0x2d/0x180 mm/page_alloc.c:1871 get_page_from_freelist+0x4aea/0x4ba0 mm/page_alloc.c:3948 __alloc_pages_noprof+0x35a/0x7e0 mm/page_alloc.c:5315 alloc_slab_page+0x6b/0x1e0 mm/slub.c:-1 allocate_slab+0x69/0x430 mm/slub.c:2687 new_slab mm/slub.c:2741 [inline] ___slab_alloc+0x591/0x8c0 mm/slub.c:3934 __slab_alloc mm/slub.c:4025 [inline] __slab_alloc_node mm/slub.c:4078 [inline] slab_alloc_node mm/slub.c:4239 [inline] __do_kmalloc_node mm/slub.c:4394 [inline] __kmalloc_node_track_caller_noprof+0x2e3/0x4f0 mm/slub.c:4414 kmalloc_reserve+0x144/0x4f0 net/core/skbuff.c:618 __alloc_skb+0x13f/0x360 net/core/skbuff.c:687 alloc_skb include/linux/skbuff.h:1363 [inline] nlmsg_new include/net/netlink.h:1015 [inline] br_info_notify+0xb2/0x180 net/bridge/br_netlink.c:647 br_ifinfo_notify+0x2e/0x40 net/bridge/br_netlink.c:670 br_stp_enable_port+0x184/0x250 net/bridge/br_stp_if.c:95 br_port_carrier_check+0x343/0x450 net/bridge/br_if.c:89 br_device_event+0x4e1/0x840 net/bridge/br.c:94 notifier_call_chain+0x106/0x2b0 kernel/notifier.c:93 page last free pid 385 tgid 385 stack trace: reset_page_owner include/linux/page_owner.h:28 [inline] free_pages_prepare mm/page_alloc.c:1390 [inline] free_unref_page+0xbb8/0xf70 mm/page_alloc.c:2876 __free_pages+0x6b/0x3b0 mm/page_alloc.c:5402 __free_slab+0xb2/0x110 mm/slub.c:2758 free_slab+0x18/0xe0 mm/slub.c:2781 discard_slab mm/slub.c:2787 [inline] __put_partials+0x115/0x150 mm/slub.c:3256 put_cpu_partial+0x91/0xc0 mm/slub.c:3331 __slab_free+0x1cf/0x2a0 mm/slub.c:4584 do_slab_free mm/slub.c:4666 [inline] ___cache_free+0xc9/0xe0 mm/slub.c:4781 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0xb5/0x130 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x180 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x28/0x90 mm/kasan/common.c:331 kasan_slab_alloc include/linux/kasan.h:251 [inline] slab_post_alloc_hook mm/slub.c:4202 [inline] slab_alloc_node mm/slub.c:4251 [inline] kmem_cache_alloc_noprof+0x1bf/0x410 mm/slub.c:4260 __kernfs_new_node+0xf1/0x740 fs/kernfs/dir.c:628 kernfs_new_node+0x154/0x280 fs/kernfs/dir.c:704 __kernfs_create_file+0x52/0x280 fs/kernfs/file.c:1053 sysfs_add_file_mode_ns+0x1d2/0x280 fs/sysfs/file.c:307 Memory state around the buggy address: ffff888116719000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888116719080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888116719100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888116719180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888116719200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ------------[ cut here ]------------ WARNING: CPU: 1 PID: 398 at drivers/usb/gadget/function/u_serial.c:691 gs_close+0x181/0x9c0 drivers/usb/gadget/function/u_serial.c:691 Modules linked in: CPU: 1 UID: 0 PID: 398 Comm: syz.1.18 Tainted: G B syzkaller #0 1b627ac51616646c2b03e03cc27ccf1d06a70c9d Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 RIP: 0010:gs_close+0x181/0x9c0 drivers/usb/gadget/function/u_serial.c:691 Code: 26 cc fd 41 ff cc 42 0f b6 04 2b 84 c0 0f 85 da 06 00 00 48 8b 44 24 20 44 89 20 48 8b 5c 24 38 e9 d1 02 00 00 e8 7f 26 cc fd <0f> 0b 48 8b 5c 24 38 e9 c0 02 00 00 e8 6e 26 cc fd 49 8d bf 78 02 RSP: 0018:ffffc900063d7ba0 EFLAGS: 00010093 RAX: ffffffff83bb4b41 RBX: 1ffff11022ce3218 RCX: ffff8881161b2600 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc900063d7cc0 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffff52000c7af64 R12: 0000000000000000 R13: dffffc0000000000 R14: 1ffff92000c7af7c R15: ffff888116719000 FS: 00005555875b1500(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3314476ff8 CR3: 0000000117178000 CR4: 00000000003526b0 Call Trace: tty_release+0x32f/0x11e0 drivers/tty/tty_io.c:1754 __fput+0x20b/0xa30 fs/file_table.c:447 ____fput+0x20/0x30 fs/file_table.c:475 task_work_run+0x1e8/0x260 kernel/task_work.c:246 resume_user_mode_work+0x35/0x50 include/linux/resume_user_mode.h:50 exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x63/0xb0 kernel/entry/common.c:218 do_syscall_64+0x63/0xf0 arch/x86/entry/common.c:84 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7f92a839e0d9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fff67132388 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007f92a8627da0 RCX: 00007f92a839e0d9 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 00007f92a8627da0 R08: 00007f92a8626038 R09: 0000000000000000 R10: 000000000003fda0 R11: 0000000000000246 R12: 0000000000006cef R13: 00007f92a8625fac R14: 00000000000069f0 R15: 00007fff67132490 ---[ end trace 0000000000000000 ]--- Oops: general protection fault, probably for non-canonical address 0xe0cffc39c0000020: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: maybe wild-memory-access in range [0x068001ce00000100-0x068001ce00000107] CPU: 0 UID: 0 PID: 398 Comm: syz.1.18 Tainted: G B W syzkaller #0 1b627ac51616646c2b03e03cc27ccf1d06a70c9d Tainted: [B]=BAD_PAGE, [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 RIP: 0010:get_work_pool kernel/workqueue.c:902 [inline] RIP: 0010:try_to_grab_pending kernel/workqueue.c:2120 [inline] RIP: 0010:work_grab_pending+0x1cc/0x830 kernel/workqueue.c:2200 Code: 41 81 fe ff ff ff 7f 0f 85 cc 00 00 00 e8 2c bf 31 00 e9 02 01 00 00 e8 22 bf 31 00 49 81 e6 00 ff ff ff 4c 89 f0 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 f7 e8 45 9b 8a 00 49 8b 3e 48 85 ff 0f RSP: 0018:ffffc900063d7aa0 EFLAGS: 00010002 RAX: 00d00039c0000020 RBX: ffff888116719008 RCX: ffff8881161b2600 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000000 RBP: ffffc900063d7b98 R08: 0000000000000007 R09: 00000000fffffffb R10: dffffc0000000000 R11: ffffed1022ce3201 R12: dffffc0000000000 R13: ffffc900063d7bb0 R14: 068001ce00000100 R15: 1ffff92000c7af76 FS: 00005555875b1500(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555561d34958 CR3: 0000000117178000 CR4: 00000000003526b0 Call Trace: __cancel_work+0x42/0x1f0 kernel/workqueue.c:4382 __cancel_work_sync kernel/workqueue.c:4399 [inline] cancel_work_sync+0x22/0xe0 kernel/workqueue.c:4448 tty_buffer_cancel_work+0x1d/0x30 drivers/tty/tty_buffer.c:622 release_tty+0x49f/0x900 drivers/tty/tty_io.c:1597 tty_release_struct+0xc3/0xe0 drivers/tty/tty_io.c:1701 tty_release+0xbc3/0x11e0 drivers/tty/tty_io.c:1861 __fput+0x20b/0xa30 fs/file_table.c:447 ____fput+0x20/0x30 fs/file_table.c:475 task_work_run+0x1e8/0x260 kernel/task_work.c:246 resume_user_mode_work+0x35/0x50 include/linux/resume_user_mode.h:50 exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x63/0xb0 kernel/entry/common.c:218 do_syscall_64+0x63/0xf0 arch/x86/entry/common.c:84 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7f92a839e0d9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fff67132388 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007f92a8627da0 RCX: 00007f92a839e0d9 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 00007f92a8627da0 R08: 00007f92a8626038 R09: 0000000000000000 R10: 000000000003fda0 R11: 0000000000000246 R12: 0000000000006cef R13: 00007f92a8625fac R14: 00000000000069f0 R15: 00007fff67132490 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:get_work_pool kernel/workqueue.c:902 [inline] RIP: 0010:try_to_grab_pending kernel/workqueue.c:2120 [inline] RIP: 0010:work_grab_pending+0x1cc/0x830 kernel/workqueue.c:2200 Code: 41 81 fe ff ff ff 7f 0f 85 cc 00 00 00 e8 2c bf 31 00 e9 02 01 00 00 e8 22 bf 31 00 49 81 e6 00 ff ff ff 4c 89 f0 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 f7 e8 45 9b 8a 00 49 8b 3e 48 85 ff 0f RSP: 0018:ffffc900063d7aa0 EFLAGS: 00010002 RAX: 00d00039c0000020 RBX: ffff888116719008 RCX: ffff8881161b2600 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000000 RBP: ffffc900063d7b98 R08: 0000000000000007 R09: 00000000fffffffb R10: dffffc0000000000 R11: ffffed1022ce3201 R12: dffffc0000000000 R13: ffffc900063d7bb0 R14: 068001ce00000100 R15: 1ffff92000c7af76 FS: 00005555875b1500(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555561d34958 CR3: 0000000117178000 CR4: 00000000003526b0 ---------------- Code disassembly (best guess): 0: 41 81 fe ff ff ff 7f cmp $0x7fffffff,%r14d 7: 0f 85 cc 00 00 00 jne 0xd9 d: e8 2c bf 31 00 call 0x31bf3e 12: e9 02 01 00 00 jmp 0x119 17: e8 22 bf 31 00 call 0x31bf3e 1c: 49 81 e6 00 ff ff ff and $0xffffffffffffff00,%r14 23: 4c 89 f0 mov %r14,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 4c 89 f7 mov %r14,%rdi 34: e8 45 9b 8a 00 call 0x8a9b7e 39: 49 8b 3e mov (%r14),%rdi 3c: 48 85 ff test %rdi,%rdi 3f: 0f .byte 0xf final repro crashed as (corrupted=false): ================================================================== BUG: KASAN: slab-use-after-free in instrument_atomic_read include/linux/instrumented.h:68 [inline] BUG: KASAN: slab-use-after-free in _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] BUG: KASAN: slab-use-after-free in tty_port_kopened include/linux/tty_port.h:229 [inline] BUG: KASAN: slab-use-after-free in check_tty_count+0x1a5/0x330 drivers/tty/tty_io.c:288 Read of size 8 at addr ffff888116719100 by task syz.1.18/398 CPU: 1 UID: 0 PID: 398 Comm: syz.1.18 Not tainted syzkaller #0 1b627ac51616646c2b03e03cc27ccf1d06a70c9d Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: __dump_stack+0x21/0x30 lib/dump_stack.c:94 dump_stack_lvl+0x140/0x1c0 lib/dump_stack.c:120 print_address_description+0x71/0x210 mm/kasan/report.c:377 print_report+0x4a/0x70 mm/kasan/report.c:481 kasan_report+0x162/0x1a0 mm/kasan/report.c:594 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x25a/0x2b0 mm/kasan/generic.c:189 __kasan_check_read+0x15/0x20 mm/kasan/shadow.c:31 instrument_atomic_read include/linux/instrumented.h:68 [inline] _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] tty_port_kopened include/linux/tty_port.h:229 [inline] check_tty_count+0x1a5/0x330 drivers/tty/tty_io.c:288 tty_release+0x89/0x11e0 drivers/tty/tty_io.c:1737 __fput+0x20b/0xa30 fs/file_table.c:447 ____fput+0x20/0x30 fs/file_table.c:475 task_work_run+0x1e8/0x260 kernel/task_work.c:246 resume_user_mode_work+0x35/0x50 include/linux/resume_user_mode.h:50 exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x63/0xb0 kernel/entry/common.c:218 do_syscall_64+0x63/0xf0 arch/x86/entry/common.c:84 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7f92a839e0d9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fff67132388 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007f92a8627da0 RCX: 00007f92a839e0d9 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 00007f92a8627da0 R08: 00007f92a8626038 R09: 0000000000000000 R10: 000000000003fda0 R11: 0000000000000246 R12: 0000000000006cef R13: 00007f92a8625fac R14: 00000000000069f0 R15: 00007fff67132490 Allocated by task 399: kasan_save_stack mm/kasan/common.c:49 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:70 kasan_save_alloc_info+0x3a/0x50 mm/kasan/generic.c:565 poison_kmalloc_redzone mm/kasan/common.c:379 [inline] __kasan_kmalloc+0x96/0xb0 mm/kasan/common.c:396 kasan_kmalloc include/linux/kasan.h:261 [inline] __kmalloc_cache_noprof+0x23c/0x470 mm/slub.c:4426 kmalloc_noprof include/linux/slab.h:881 [inline] kzalloc_noprof include/linux/slab.h:1017 [inline] gs_port_alloc drivers/usb/gadget/function/u_serial.c:1181 [inline] gserial_alloc_line_no_console+0x245/0x770 drivers/usb/gadget/function/u_serial.c:1261 obex_alloc_inst+0x9b/0x190 drivers/usb/gadget/function/f_obex.c:434 try_get_usb_function_instance drivers/usb/gadget/functions.c:28 [inline] usb_get_function_instance+0xfa/0x320 drivers/usb/gadget/functions.c:44 function_make+0x125/0x370 drivers/usb/gadget/configfs.c:631 configfs_mkdir+0x526/0xb70 fs/configfs/dir.c:1339 vfs_mkdir+0x591/0x810 fs/namei.c:4265 do_mkdirat+0x240/0x530 fs/namei.c:4288 __do_sys_mkdirat fs/namei.c:4303 [inline] __se_sys_mkdirat fs/namei.c:4301 [inline] __x64_sys_mkdirat+0x8b/0xa0 fs/namei.c:4301 x64_sys_call+0x2ba8/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:259 do_syscall_x64 arch/x86/entry/common.c:47 [inline] do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78 entry_SYSCALL_64_after_hwframe+0x76/0x7e Freed by task 399: kasan_save_stack mm/kasan/common.c:49 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:70 kasan_save_free_info+0x44/0x50 mm/kasan/generic.c:579 poison_slab_object mm/kasan/common.c:249 [inline] __kasan_slab_free+0x5f/0x80 mm/kasan/common.c:266 kasan_slab_free include/linux/kasan.h:234 [inline] slab_free_hook mm/slub.c:2445 [inline] slab_free mm/slub.c:4714 [inline] kfree+0x158/0x440 mm/slub.c:4875 gserial_free_port+0x244/0x2e0 drivers/usb/gadget/function/u_serial.c:1225 gserial_free_line+0x9f/0x1b0 drivers/usb/gadget/function/u_serial.c:1242 obex_free_inst+0x3d/0x60 drivers/usb/gadget/function/f_obex.c:420 usb_put_function_instance+0x9f/0xc0 drivers/usb/gadget/functions.c:77 obex_attr_release+0x19/0x30 drivers/usb/gadget/function/f_obex.c:390 config_item_cleanup fs/configfs/item.c:128 [inline] config_item_release fs/configfs/item.c:137 [inline] kref_put include/linux/kref.h:65 [inline] config_item_put+0x175/0x240 fs/configfs/item.c:149 configfs_rmdir+0x8e8/0x9b0 fs/configfs/dir.c:1550 vfs_rmdir+0x3db/0x560 fs/namei.c:4348 do_rmdir+0x29a/0x590 fs/namei.c:4407 __do_sys_rmdir fs/namei.c:4426 [inline] __se_sys_rmdir fs/namei.c:4424 [inline] __x64_sys_rmdir+0x4b/0x60 fs/namei.c:4424 x64_sys_call+0xaf7/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:85 do_syscall_x64 arch/x86/entry/common.c:47 [inline] do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78 entry_SYSCALL_64_after_hwframe+0x76/0x7e The buggy address belongs to the object at ffff888116719000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 256 bytes inside of freed 1024-byte region [ffff888116719000, ffff888116719400) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x116718 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x4000000000000040(head|zone=1) page_type: f5(slab) raw: 4000000000000040 ffff888100041dc0 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000100010 00000001f5000000 0000000000000000 head: 4000000000000040 ffff888100041dc0 dead000000000122 0000000000000000 head: 0000000000000000 0000000000100010 00000001f5000000 0000000000000000 head: 4000000000000003 ffffea000459c601 ffffffffffffffff 0000000000000000 head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0x1d2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 372, tgid 372 (kworker/u8:5), ts 26825068560, free_ts 26567906477 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook+0x37d/0x3b0 mm/page_alloc.c:1863 prep_new_page+0x2d/0x180 mm/page_alloc.c:1871 get_page_from_freelist+0x4aea/0x4ba0 mm/page_alloc.c:3948 __alloc_pages_noprof+0x35a/0x7e0 mm/page_alloc.c:5315 alloc_slab_page+0x6b/0x1e0 mm/slub.c:-1 allocate_slab+0x69/0x430 mm/slub.c:2687 new_slab mm/slub.c:2741 [inline] ___slab_alloc+0x591/0x8c0 mm/slub.c:3934 __slab_alloc mm/slub.c:4025 [inline] __slab_alloc_node mm/slub.c:4078 [inline] slab_alloc_node mm/slub.c:4239 [inline] __do_kmalloc_node mm/slub.c:4394 [inline] __kmalloc_node_track_caller_noprof+0x2e3/0x4f0 mm/slub.c:4414 kmalloc_reserve+0x144/0x4f0 net/core/skbuff.c:618 __alloc_skb+0x13f/0x360 net/core/skbuff.c:687 alloc_skb include/linux/skbuff.h:1363 [inline] nlmsg_new include/net/netlink.h:1015 [inline] br_info_notify+0xb2/0x180 net/bridge/br_netlink.c:647 br_ifinfo_notify+0x2e/0x40 net/bridge/br_netlink.c:670 br_stp_enable_port+0x184/0x250 net/bridge/br_stp_if.c:95 br_port_carrier_check+0x343/0x450 net/bridge/br_if.c:89 br_device_event+0x4e1/0x840 net/bridge/br.c:94 notifier_call_chain+0x106/0x2b0 kernel/notifier.c:93 page last free pid 385 tgid 385 stack trace: reset_page_owner include/linux/page_owner.h:28 [inline] free_pages_prepare mm/page_alloc.c:1390 [inline] free_unref_page+0xbb8/0xf70 mm/page_alloc.c:2876 __free_pages+0x6b/0x3b0 mm/page_alloc.c:5402 __free_slab+0xb2/0x110 mm/slub.c:2758 free_slab+0x18/0xe0 mm/slub.c:2781 discard_slab mm/slub.c:2787 [inline] __put_partials+0x115/0x150 mm/slub.c:3256 put_cpu_partial+0x91/0xc0 mm/slub.c:3331 __slab_free+0x1cf/0x2a0 mm/slub.c:4584 do_slab_free mm/slub.c:4666 [inline] ___cache_free+0xc9/0xe0 mm/slub.c:4781 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0xb5/0x130 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x180 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x28/0x90 mm/kasan/common.c:331 kasan_slab_alloc include/linux/kasan.h:251 [inline] slab_post_alloc_hook mm/slub.c:4202 [inline] slab_alloc_node mm/slub.c:4251 [inline] kmem_cache_alloc_noprof+0x1bf/0x410 mm/slub.c:4260 __kernfs_new_node+0xf1/0x740 fs/kernfs/dir.c:628 kernfs_new_node+0x154/0x280 fs/kernfs/dir.c:704 __kernfs_create_file+0x52/0x280 fs/kernfs/file.c:1053 sysfs_add_file_mode_ns+0x1d2/0x280 fs/sysfs/file.c:307 Memory state around the buggy address: ffff888116719000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888116719080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888116719100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888116719180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888116719200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ------------[ cut here ]------------ WARNING: CPU: 1 PID: 398 at drivers/usb/gadget/function/u_serial.c:691 gs_close+0x181/0x9c0 drivers/usb/gadget/function/u_serial.c:691 Modules linked in: CPU: 1 UID: 0 PID: 398 Comm: syz.1.18 Tainted: G B syzkaller #0 1b627ac51616646c2b03e03cc27ccf1d06a70c9d Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 RIP: 0010:gs_close+0x181/0x9c0 drivers/usb/gadget/function/u_serial.c:691 Code: 26 cc fd 41 ff cc 42 0f b6 04 2b 84 c0 0f 85 da 06 00 00 48 8b 44 24 20 44 89 20 48 8b 5c 24 38 e9 d1 02 00 00 e8 7f 26 cc fd <0f> 0b 48 8b 5c 24 38 e9 c0 02 00 00 e8 6e 26 cc fd 49 8d bf 78 02 RSP: 0018:ffffc900063d7ba0 EFLAGS: 00010093 RAX: ffffffff83bb4b41 RBX: 1ffff11022ce3218 RCX: ffff8881161b2600 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc900063d7cc0 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffff52000c7af64 R12: 0000000000000000 R13: dffffc0000000000 R14: 1ffff92000c7af7c R15: ffff888116719000 FS: 00005555875b1500(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3314476ff8 CR3: 0000000117178000 CR4: 00000000003526b0 Call Trace: tty_release+0x32f/0x11e0 drivers/tty/tty_io.c:1754 __fput+0x20b/0xa30 fs/file_table.c:447 ____fput+0x20/0x30 fs/file_table.c:475 task_work_run+0x1e8/0x260 kernel/task_work.c:246 resume_user_mode_work+0x35/0x50 include/linux/resume_user_mode.h:50 exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x63/0xb0 kernel/entry/common.c:218 do_syscall_64+0x63/0xf0 arch/x86/entry/common.c:84 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7f92a839e0d9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fff67132388 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007f92a8627da0 RCX: 00007f92a839e0d9 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 00007f92a8627da0 R08: 00007f92a8626038 R09: 0000000000000000 R10: 000000000003fda0 R11: 0000000000000246 R12: 0000000000006cef R13: 00007f92a8625fac R14: 00000000000069f0 R15: 00007fff67132490 ---[ end trace 0000000000000000 ]--- Oops: general protection fault, probably for non-canonical address 0xe0cffc39c0000020: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: maybe wild-memory-access in range [0x068001ce00000100-0x068001ce00000107] CPU: 0 UID: 0 PID: 398 Comm: syz.1.18 Tainted: G B W syzkaller #0 1b627ac51616646c2b03e03cc27ccf1d06a70c9d Tainted: [B]=BAD_PAGE, [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 RIP: 0010:get_work_pool kernel/workqueue.c:902 [inline] RIP: 0010:try_to_grab_pending kernel/workqueue.c:2120 [inline] RIP: 0010:work_grab_pending+0x1cc/0x830 kernel/workqueue.c:2200 Code: 41 81 fe ff ff ff 7f 0f 85 cc 00 00 00 e8 2c bf 31 00 e9 02 01 00 00 e8 22 bf 31 00 49 81 e6 00 ff ff ff 4c 89 f0 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 f7 e8 45 9b 8a 00 49 8b 3e 48 85 ff 0f RSP: 0018:ffffc900063d7aa0 EFLAGS: 00010002 RAX: 00d00039c0000020 RBX: ffff888116719008 RCX: ffff8881161b2600 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000000 RBP: ffffc900063d7b98 R08: 0000000000000007 R09: 00000000fffffffb R10: dffffc0000000000 R11: ffffed1022ce3201 R12: dffffc0000000000 R13: ffffc900063d7bb0 R14: 068001ce00000100 R15: 1ffff92000c7af76 FS: 00005555875b1500(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555561d34958 CR3: 0000000117178000 CR4: 00000000003526b0 Call Trace: __cancel_work+0x42/0x1f0 kernel/workqueue.c:4382 __cancel_work_sync kernel/workqueue.c:4399 [inline] cancel_work_sync+0x22/0xe0 kernel/workqueue.c:4448 tty_buffer_cancel_work+0x1d/0x30 drivers/tty/tty_buffer.c:622 release_tty+0x49f/0x900 drivers/tty/tty_io.c:1597 tty_release_struct+0xc3/0xe0 drivers/tty/tty_io.c:1701 tty_release+0xbc3/0x11e0 drivers/tty/tty_io.c:1861 __fput+0x20b/0xa30 fs/file_table.c:447 ____fput+0x20/0x30 fs/file_table.c:475 task_work_run+0x1e8/0x260 kernel/task_work.c:246 resume_user_mode_work+0x35/0x50 include/linux/resume_user_mode.h:50 exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x63/0xb0 kernel/entry/common.c:218 do_syscall_64+0x63/0xf0 arch/x86/entry/common.c:84 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7f92a839e0d9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fff67132388 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007f92a8627da0 RCX: 00007f92a839e0d9 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 00007f92a8627da0 R08: 00007f92a8626038 R09: 0000000000000000 R10: 000000000003fda0 R11: 0000000000000246 R12: 0000000000006cef R13: 00007f92a8625fac R14: 00000000000069f0 R15: 00007fff67132490 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:get_work_pool kernel/workqueue.c:902 [inline] RIP: 0010:try_to_grab_pending kernel/workqueue.c:2120 [inline] RIP: 0010:work_grab_pending+0x1cc/0x830 kernel/workqueue.c:2200 Code: 41 81 fe ff ff ff 7f 0f 85 cc 00 00 00 e8 2c bf 31 00 e9 02 01 00 00 e8 22 bf 31 00 49 81 e6 00 ff ff ff 4c 89 f0 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 f7 e8 45 9b 8a 00 49 8b 3e 48 85 ff 0f RSP: 0018:ffffc900063d7aa0 EFLAGS: 00010002 RAX: 00d00039c0000020 RBX: ffff888116719008 RCX: ffff8881161b2600 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000000 RBP: ffffc900063d7b98 R08: 0000000000000007 R09: 00000000fffffffb R10: dffffc0000000000 R11: ffffed1022ce3201 R12: dffffc0000000000 R13: ffffc900063d7bb0 R14: 068001ce00000100 R15: 1ffff92000c7af76 FS: 00005555875b1500(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555561d34958 CR3: 0000000117178000 CR4: 00000000003526b0 ---------------- Code disassembly (best guess): 0: 41 81 fe ff ff ff 7f cmp $0x7fffffff,%r14d 7: 0f 85 cc 00 00 00 jne 0xd9 d: e8 2c bf 31 00 call 0x31bf3e 12: e9 02 01 00 00 jmp 0x119 17: e8 22 bf 31 00 call 0x31bf3e 1c: 49 81 e6 00 ff ff ff and $0xffffffffffffff00,%r14 23: 4c 89 f0 mov %r14,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 4c 89 f7 mov %r14,%rdi 34: e8 45 9b 8a 00 call 0x8a9b7e 39: 49 8b 3e mov (%r14),%rdi 3c: 48 85 ff test %rdi,%rdi 3f: 0f .byte 0xf