Extracting prog: 1m9.843474091s Minimizing prog: 4m32.760715649s Simplifying prog options: 0s Extracting C: 1m23.440662844s Simplifying C: 3m16.684232905s 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}}): openat$dm_control-ioctl$DM_DEV_CREATE-ioctl$DM_TABLE_LOAD detailed listing: executing program 0: r0 = openat$dm_control(0xffffffffffffff9c, &(0x7f0000000240), 0x2, 0x0) ioctl$DM_DEV_CREATE(r0, 0xc138fd03, &(0x7f00000003c0)={0x4, 0x0, 0x0, 0x138, 0x138, 0x0, 0x0, 0x0, 0x0, 0x0, {0x0, {'syz', 0x0, '2\x00'}}}) ioctl$DM_TABLE_LOAD(r0, 0xc138fd09, &(0x7f0000000500)={0x4, 0x0, 0x0, 0x1b8, 0x138, 0x1, 0x0, 0x80000, 0x0, 0x0, @by_dev={r1}, [@snapshot={0x0, 0x440, 0x0, 0x80, 'snapshot\x00', {@ram_num={'1:', 0x0}, 0x20, @ram={'/dev/ram', 0x0}, 0x20, 'N', 0x20, '32', ' 2 discard_zeroes_cow discard_passdown_origin'}}]}) program crashed: KASAN: slab-use-after-free Read in snapshot_ctr single: successfully extracted reproducer found reproducer with 3 syscalls minimizing guilty program 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}}): openat$dm_control-ioctl$DM_DEV_CREATE detailed listing: executing program 0: r0 = openat$dm_control(0xffffffffffffff9c, &(0x7f0000000240), 0x2, 0x0) ioctl$DM_DEV_CREATE(r0, 0xc138fd03, &(0x7f00000003c0)={0x4, 0x0, 0x0, 0x138, 0x138, 0x0, 0x0, 0x0, 0x0, 0x0, {0x0, {'syz', 0x0, '2\x00'}}}) program did not crash 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}}): openat$dm_control-ioctl$DM_TABLE_LOAD detailed listing: executing program 0: r0 = openat$dm_control(0xffffffffffffff9c, &(0x7f0000000240), 0x2, 0x0) ioctl$DM_TABLE_LOAD(r0, 0xc138fd09, &(0x7f0000000500)={0x4, 0x0, 0x0, 0x1b8, 0x138, 0x1, 0x0, 0x80000, 0x0, 0x0, @by_dev, [@snapshot={0x0, 0x440, 0x0, 0x80, 'snapshot\x00', {@ram_num={'1:', 0x0}, 0x20, @ram={'/dev/ram', 0x0}, 0x20, 'N', 0x20, '32', ' 2 discard_zeroes_cow discard_passdown_origin'}}]}) program did not crash 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}}): ioctl$DM_DEV_CREATE-ioctl$DM_TABLE_LOAD detailed listing: executing program 0: ioctl$DM_DEV_CREATE(0xffffffffffffffff, 0xc138fd03, &(0x7f00000003c0)={0x4, 0x0, 0x0, 0x138, 0x138, 0x0, 0x0, 0x0, 0x0, 0x0, {0x0, {'syz', 0x0, '2\x00'}}}) ioctl$DM_TABLE_LOAD(0xffffffffffffffff, 0xc138fd09, &(0x7f0000000500)={0x4, 0x0, 0x0, 0x1b8, 0x138, 0x1, 0x0, 0x80000, 0x0, 0x0, @by_dev={r0}, [@snapshot={0x0, 0x440, 0x0, 0x80, 'snapshot\x00', {@ram_num={'1:', 0x0}, 0x20, @ram={'/dev/ram', 0x0}, 0x20, 'N', 0x20, '32', ' 2 discard_zeroes_cow discard_passdown_origin'}}]}) program did not crash 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}}): openat$dm_control-ioctl$DM_DEV_CREATE-ioctl$DM_TABLE_LOAD detailed listing: executing program 0: r0 = openat$dm_control(0xffffffffffffff9c, 0x0, 0x2, 0x0) ioctl$DM_DEV_CREATE(r0, 0xc138fd03, &(0x7f00000003c0)={0x4, 0x0, 0x0, 0x138, 0x138, 0x0, 0x0, 0x0, 0x0, 0x0, {0x0, {'syz', 0x0, '2\x00'}}}) ioctl$DM_TABLE_LOAD(r0, 0xc138fd09, &(0x7f0000000500)={0x4, 0x0, 0x0, 0x1b8, 0x138, 0x1, 0x0, 0x80000, 0x0, 0x0, @by_dev={r1}, [@snapshot={0x0, 0x440, 0x0, 0x80, 'snapshot\x00', {@ram_num={'1:', 0x0}, 0x20, @ram={'/dev/ram', 0x0}, 0x20, 'N', 0x20, '32', ' 2 discard_zeroes_cow discard_passdown_origin'}}]}) program did not crash 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}}): openat$dm_control-ioctl$DM_DEV_CREATE-ioctl$DM_TABLE_LOAD detailed listing: executing program 0: r0 = openat$dm_control(0xffffffffffffff9c, &(0x7f0000000240), 0x2, 0x0) ioctl$DM_DEV_CREATE(r0, 0xc138fd03, 0x0) ioctl$DM_TABLE_LOAD(r0, 0xc138fd09, &(0x7f0000000500)={0x4, 0x0, 0x0, 0x1b8, 0x138, 0x1, 0x0, 0x80000, 0x0, 0x0, @by_dev, [@snapshot={0x0, 0x440, 0x0, 0x80, 'snapshot\x00', {@ram_num={'1:', 0x0}, 0x20, @ram={'/dev/ram', 0x0}, 0x20, 'N', 0x20, '32', ' 2 discard_zeroes_cow discard_passdown_origin'}}]}) program did not crash 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}}): openat$dm_control-ioctl$DM_DEV_CREATE-ioctl$DM_TABLE_LOAD detailed listing: executing program 0: r0 = openat$dm_control(0xffffffffffffff9c, &(0x7f0000000240), 0x2, 0x0) ioctl$DM_DEV_CREATE(r0, 0xc138fd03, &(0x7f00000003c0)={0x4, 0x0, 0x0, 0x138, 0x138, 0x0, 0x0, 0x0, 0x0, 0x0, {0x0, {'syz', 0x0, '2\x00'}}}) ioctl$DM_TABLE_LOAD(r0, 0xc138fd09, 0x0) program did not crash extracting C reproducer testing compiled C 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}}): openat$dm_control-ioctl$DM_DEV_CREATE-ioctl$DM_TABLE_LOAD program crashed: KASAN: slab-use-after-free Read in snapshot_ctr simplifying C reproducer testing compiled C program (duration=30s, {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}}): openat$dm_control-ioctl$DM_DEV_CREATE-ioctl$DM_TABLE_LOAD program crashed: KASAN: slab-use-after-free Read in snapshot_ctr testing compiled C program (duration=30s, {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: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}}): openat$dm_control-ioctl$DM_DEV_CREATE-ioctl$DM_TABLE_LOAD program crashed: KASAN: slab-use-after-free Read in snapshot_ctr testing compiled C program (duration=30s, {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:false Sysctl:true Swap:false UseTmpDir:true HandleSegv:true Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): openat$dm_control-ioctl$DM_DEV_CREATE-ioctl$DM_TABLE_LOAD program crashed: KASAN: slab-use-after-free Read in snapshot_ctr testing compiled C program (duration=30s, {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:false Sysctl:true Swap:false UseTmpDir:false HandleSegv:true Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): openat$dm_control-ioctl$DM_DEV_CREATE-ioctl$DM_TABLE_LOAD program crashed: KASAN: slab-use-after-free Read in snapshot_ctr testing compiled C program (duration=30s, {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:false Sysctl:true Swap:false UseTmpDir:false HandleSegv:false Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): openat$dm_control-ioctl$DM_DEV_CREATE-ioctl$DM_TABLE_LOAD program crashed: KASAN: slab-use-after-free Read in snapshot_ctr testing compiled C program (duration=30s, {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:false Sysctl:false Swap:false UseTmpDir:false HandleSegv:false Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): openat$dm_control-ioctl$DM_DEV_CREATE-ioctl$DM_TABLE_LOAD program crashed: KASAN: slab-use-after-free Read in snapshot_ctr testing program (duration=30s, {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:false Sysctl:false Swap:false UseTmpDir:false HandleSegv:false Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): openat$dm_control-ioctl$DM_DEV_CREATE-ioctl$DM_TABLE_LOAD detailed listing: executing program 0: r0 = openat$dm_control(0xffffffffffffff9c, &(0x7f0000000240), 0x2, 0x0) ioctl$DM_DEV_CREATE(r0, 0xc138fd03, &(0x7f00000003c0)={0x4, 0x0, 0x0, 0x138, 0x138, 0x0, 0x0, 0x0, 0x0, 0x0, {0x0, {'syz', 0x0, '2\x00'}}}) ioctl$DM_TABLE_LOAD(r0, 0xc138fd09, &(0x7f0000000500)={0x4, 0x0, 0x0, 0x1b8, 0x138, 0x1, 0x0, 0x80000, 0x0, 0x0, @by_dev={r1}, [@snapshot={0x0, 0x440, 0x0, 0x80, 'snapshot\x00', {@ram_num={'1:', 0x0}, 0x20, @ram={'/dev/ram', 0x0}, 0x20, 'N', 0x20, '32', ' 2 discard_zeroes_cow discard_passdown_origin'}}]}) program crashed: KASAN: slab-use-after-free Read in snapshot_ctr validation run: crashed=true testing program (duration=30s, {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:false Sysctl:false Swap:false UseTmpDir:false HandleSegv:false Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): openat$dm_control-ioctl$DM_DEV_CREATE-ioctl$DM_TABLE_LOAD detailed listing: executing program 0: r0 = openat$dm_control(0xffffffffffffff9c, &(0x7f0000000240), 0x2, 0x0) ioctl$DM_DEV_CREATE(r0, 0xc138fd03, &(0x7f00000003c0)={0x4, 0x0, 0x0, 0x138, 0x138, 0x0, 0x0, 0x0, 0x0, 0x0, {0x0, {'syz', 0x0, '2\x00'}}}) ioctl$DM_TABLE_LOAD(r0, 0xc138fd09, &(0x7f0000000500)={0x4, 0x0, 0x0, 0x1b8, 0x138, 0x1, 0x0, 0x80000, 0x0, 0x0, @by_dev={r1}, [@snapshot={0x0, 0x440, 0x0, 0x80, 'snapshot\x00', {@ram_num={'1:', 0x0}, 0x20, @ram={'/dev/ram', 0x0}, 0x20, 'N', 0x20, '32', ' 2 discard_zeroes_cow discard_passdown_origin'}}]}) program crashed: KASAN: slab-use-after-free Read in snapshot_ctr validation run: crashed=true testing program (duration=30s, {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:false Sysctl:false Swap:false UseTmpDir:false HandleSegv:false Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): openat$dm_control-ioctl$DM_DEV_CREATE-ioctl$DM_TABLE_LOAD detailed listing: executing program 0: r0 = openat$dm_control(0xffffffffffffff9c, &(0x7f0000000240), 0x2, 0x0) ioctl$DM_DEV_CREATE(r0, 0xc138fd03, &(0x7f00000003c0)={0x4, 0x0, 0x0, 0x138, 0x138, 0x0, 0x0, 0x0, 0x0, 0x0, {0x0, {'syz', 0x0, '2\x00'}}}) ioctl$DM_TABLE_LOAD(r0, 0xc138fd09, &(0x7f0000000500)={0x4, 0x0, 0x0, 0x1b8, 0x138, 0x1, 0x0, 0x80000, 0x0, 0x0, @by_dev={r1}, [@snapshot={0x0, 0x440, 0x0, 0x80, 'snapshot\x00', {@ram_num={'1:', 0x0}, 0x20, @ram={'/dev/ram', 0x0}, 0x20, 'N', 0x20, '32', ' 2 discard_zeroes_cow discard_passdown_origin'}}]}) program crashed: KASAN: slab-use-after-free Read in snapshot_ctr validation run: crashed=true reproducing took 11m47.639703453s repro crashed as (corrupted=false): ================================================================== BUG: KASAN: slab-use-after-free in snapshot_ctr+0x586/0x1350 drivers/md/dm-snap.c:1288 Read of size 8 at addr ffff888109e76618 by task syz.2.17/381 CPU: 0 UID: 0 PID: 381 Comm: syz.2.17 Not tainted syzkaller #0 89738cdce93e33c1079eaf7360b55d01ca9e3330 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/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 __asan_report_load8_noabort+0x18/0x20 mm/kasan/report_generic.c:381 snapshot_ctr+0x586/0x1350 drivers/md/dm-snap.c:1288 dm_table_add_target+0x59f/0xcb0 drivers/md/dm-table.c:760 populate_table drivers/md/dm-ioctl.c:1494 [inline] table_load+0x2eb/0x7d0 drivers/md/dm-ioctl.c:1536 ctl_ioctl drivers/md/dm-ioctl.c:2107 [inline] dm_ctl_ioctl+0x8f0/0xde0 drivers/md/dm-ioctl.c:2129 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl+0x126/0x1b0 fs/ioctl.c:892 __x64_sys_ioctl+0x7f/0xa0 fs/ioctl.c:892 x64_sys_call+0x1878/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:17 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 RIP: 0033:0x7f8d6959f559 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:00007ffe454841c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f8d69825fa0 RCX: 00007f8d6959f559 RDX: 0000200000000500 RSI: 00000000c138fd09 RDI: 0000000000000003 RBP: 00007f8d69636b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f8d69825fac R14: 00007f8d69825fa0 R15: 00007f8d69825fa0 Allocated by task 381: 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_node_noprof+0x225/0x430 mm/slub.c:4440 kmalloc_node_noprof include/linux/slab.h:1004 [inline] open_table_device drivers/md/dm.c:758 [inline] dm_get_table_device+0x1e3/0x6c0 drivers/md/dm.c:837 dm_get_device+0x32b/0x7f0 drivers/md/dm-table.c:394 snapshot_ctr+0x292/0x1350 drivers/md/dm-snap.c:1273 dm_table_add_target+0x59f/0xcb0 drivers/md/dm-table.c:760 populate_table drivers/md/dm-ioctl.c:1494 [inline] table_load+0x2eb/0x7d0 drivers/md/dm-ioctl.c:1536 ctl_ioctl drivers/md/dm-ioctl.c:2107 [inline] dm_ctl_ioctl+0x8f0/0xde0 drivers/md/dm-ioctl.c:2129 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl+0x126/0x1b0 fs/ioctl.c:892 __x64_sys_ioctl+0x7f/0xa0 fs/ioctl.c:892 x64_sys_call+0x1878/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:17 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 381: 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:4716 [inline] kfree+0x158/0x440 mm/slub.c:4877 close_table_device drivers/md/dm.c:814 [inline] dm_put_table_device+0x298/0x2e0 drivers/md/dm.c:857 upgrade_mode drivers/md/dm-table.c:328 [inline] dm_get_device+0x571/0x7f0 drivers/md/dm-table.c:405 snapshot_ctr+0x435/0x1350 drivers/md/dm-snap.c:1283 dm_table_add_target+0x59f/0xcb0 drivers/md/dm-table.c:760 populate_table drivers/md/dm-ioctl.c:1494 [inline] table_load+0x2eb/0x7d0 drivers/md/dm-ioctl.c:1536 ctl_ioctl drivers/md/dm-ioctl.c:2107 [inline] dm_ctl_ioctl+0x8f0/0xde0 drivers/md/dm-ioctl.c:2129 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl+0x126/0x1b0 fs/ioctl.c:892 __x64_sys_ioctl+0x7f/0xa0 fs/ioctl.c:892 x64_sys_call+0x1878/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:17 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 ffff888109e76600 which belongs to the cache kmalloc-96 of size 96 The buggy address is located 24 bytes inside of freed 96-byte region [ffff888109e76600, ffff888109e76660) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109e76 anon flags: 0x4000000000000000(zone=1) page_type: f5(slab) raw: 4000000000000000 ffff888100041280 0000000000000000 dead000000000001 raw: 0000000000000000 0000000080200020 00000001f5000000 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x52cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 1, tgid 1 (swapper/0), ts 1906287385, free_ts 1905999453 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook+0x37d/0x3b0 mm/page_alloc.c:1864 prep_new_page+0x2d/0x180 mm/page_alloc.c:1872 get_page_from_freelist+0x4aea/0x4ba0 mm/page_alloc.c:3949 __alloc_pages_noprof+0x35a/0x7e0 mm/page_alloc.c:5316 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:4241 [inline] __kmalloc_cache_noprof+0x2cd/0x470 mm/slub.c:4423 kmalloc_noprof include/linux/slab.h:882 [inline] kzalloc_noprof include/linux/slab.h:1117 [inline] kobject_create lib/kobject.c:768 [inline] kobject_create_and_add+0x68/0x2e0 lib/kobject.c:794 acpi_sysfs_init+0x619/0x6d0 drivers/acpi/sysfs.c:1034 acpi_bus_init+0x5ad/0x700 drivers/acpi/bus.c:1386 acpi_init+0xc5/0x23b drivers/acpi/bus.c:1454 do_one_initcall+0x1e8/0x6a0 init/main.c:1406 do_initcall_level+0x174/0x2e5 init/main.c:1468 do_initcalls+0x7e/0x160 init/main.c:1484 do_basic_setup+0x95/0xb0 init/main.c:1503 page last free pid 1 tgid 1 stack trace: reset_page_owner include/linux/page_owner.h:28 [inline] free_pages_prepare mm/page_alloc.c:1391 [inline] free_unref_page+0xb99/0xf50 mm/page_alloc.c:2877 __free_pages+0x6b/0x3b0 mm/page_alloc.c:5403 __free_slab+0xb2/0x110 mm/slub.c:2758 free_slab+0x18/0xe0 mm/slub.c:2781 __kmem_cache_do_shrink+0x269/0x2c0 mm/slub.c:5871 __kmem_cache_shrink+0x26/0x40 mm/slub.c:5883 kmem_cache_shrink+0x19/0x30 mm/slab_common.c:558 acpi_os_purge_cache+0x19/0x30 drivers/acpi/osl.c:1573 acpi_purge_cached_objects+0xbc/0xd0 drivers/acpi/acpica/utxface.c:240 acpi_initialize_objects+0x32/0xb0 drivers/acpi/acpica/utxfinit.c:250 acpi_bus_init+0xca/0x700 drivers/acpi/bus.c:1367 acpi_init+0xc5/0x23b drivers/acpi/bus.c:1454 do_one_initcall+0x1e8/0x6a0 init/main.c:1406 do_initcall_level+0x174/0x2e5 init/main.c:1468 do_initcalls+0x7e/0x160 init/main.c:1484 do_basic_setup+0x95/0xb0 init/main.c:1503 Memory state around the buggy address: ffff888109e76500: 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc ffff888109e76580: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc >ffff888109e76600: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ^ ffff888109e76680: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff888109e76700: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ================================================================== device-mapper: table: 252:0: device 1:4 not in table devices list device-mapper: table: 252:0: snapshot: COW device cannot be the same as origin device (-EINVAL) device-mapper: ioctl: error adding target to table device-mapper: table: 252:0: dm_table_destroy: dm_put_device call missing for 1:4 final repro crashed as (corrupted=false): ================================================================== BUG: KASAN: slab-use-after-free in snapshot_ctr+0x586/0x1350 drivers/md/dm-snap.c:1288 Read of size 8 at addr ffff888109e76618 by task syz.2.17/381 CPU: 0 UID: 0 PID: 381 Comm: syz.2.17 Not tainted syzkaller #0 89738cdce93e33c1079eaf7360b55d01ca9e3330 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/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 __asan_report_load8_noabort+0x18/0x20 mm/kasan/report_generic.c:381 snapshot_ctr+0x586/0x1350 drivers/md/dm-snap.c:1288 dm_table_add_target+0x59f/0xcb0 drivers/md/dm-table.c:760 populate_table drivers/md/dm-ioctl.c:1494 [inline] table_load+0x2eb/0x7d0 drivers/md/dm-ioctl.c:1536 ctl_ioctl drivers/md/dm-ioctl.c:2107 [inline] dm_ctl_ioctl+0x8f0/0xde0 drivers/md/dm-ioctl.c:2129 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl+0x126/0x1b0 fs/ioctl.c:892 __x64_sys_ioctl+0x7f/0xa0 fs/ioctl.c:892 x64_sys_call+0x1878/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:17 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 RIP: 0033:0x7f8d6959f559 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:00007ffe454841c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f8d69825fa0 RCX: 00007f8d6959f559 RDX: 0000200000000500 RSI: 00000000c138fd09 RDI: 0000000000000003 RBP: 00007f8d69636b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f8d69825fac R14: 00007f8d69825fa0 R15: 00007f8d69825fa0 Allocated by task 381: 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_node_noprof+0x225/0x430 mm/slub.c:4440 kmalloc_node_noprof include/linux/slab.h:1004 [inline] open_table_device drivers/md/dm.c:758 [inline] dm_get_table_device+0x1e3/0x6c0 drivers/md/dm.c:837 dm_get_device+0x32b/0x7f0 drivers/md/dm-table.c:394 snapshot_ctr+0x292/0x1350 drivers/md/dm-snap.c:1273 dm_table_add_target+0x59f/0xcb0 drivers/md/dm-table.c:760 populate_table drivers/md/dm-ioctl.c:1494 [inline] table_load+0x2eb/0x7d0 drivers/md/dm-ioctl.c:1536 ctl_ioctl drivers/md/dm-ioctl.c:2107 [inline] dm_ctl_ioctl+0x8f0/0xde0 drivers/md/dm-ioctl.c:2129 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl+0x126/0x1b0 fs/ioctl.c:892 __x64_sys_ioctl+0x7f/0xa0 fs/ioctl.c:892 x64_sys_call+0x1878/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:17 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 381: 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:4716 [inline] kfree+0x158/0x440 mm/slub.c:4877 close_table_device drivers/md/dm.c:814 [inline] dm_put_table_device+0x298/0x2e0 drivers/md/dm.c:857 upgrade_mode drivers/md/dm-table.c:328 [inline] dm_get_device+0x571/0x7f0 drivers/md/dm-table.c:405 snapshot_ctr+0x435/0x1350 drivers/md/dm-snap.c:1283 dm_table_add_target+0x59f/0xcb0 drivers/md/dm-table.c:760 populate_table drivers/md/dm-ioctl.c:1494 [inline] table_load+0x2eb/0x7d0 drivers/md/dm-ioctl.c:1536 ctl_ioctl drivers/md/dm-ioctl.c:2107 [inline] dm_ctl_ioctl+0x8f0/0xde0 drivers/md/dm-ioctl.c:2129 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl+0x126/0x1b0 fs/ioctl.c:892 __x64_sys_ioctl+0x7f/0xa0 fs/ioctl.c:892 x64_sys_call+0x1878/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:17 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 ffff888109e76600 which belongs to the cache kmalloc-96 of size 96 The buggy address is located 24 bytes inside of freed 96-byte region [ffff888109e76600, ffff888109e76660) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109e76 anon flags: 0x4000000000000000(zone=1) page_type: f5(slab) raw: 4000000000000000 ffff888100041280 0000000000000000 dead000000000001 raw: 0000000000000000 0000000080200020 00000001f5000000 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x52cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 1, tgid 1 (swapper/0), ts 1906287385, free_ts 1905999453 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook+0x37d/0x3b0 mm/page_alloc.c:1864 prep_new_page+0x2d/0x180 mm/page_alloc.c:1872 get_page_from_freelist+0x4aea/0x4ba0 mm/page_alloc.c:3949 __alloc_pages_noprof+0x35a/0x7e0 mm/page_alloc.c:5316 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:4241 [inline] __kmalloc_cache_noprof+0x2cd/0x470 mm/slub.c:4423 kmalloc_noprof include/linux/slab.h:882 [inline] kzalloc_noprof include/linux/slab.h:1117 [inline] kobject_create lib/kobject.c:768 [inline] kobject_create_and_add+0x68/0x2e0 lib/kobject.c:794 acpi_sysfs_init+0x619/0x6d0 drivers/acpi/sysfs.c:1034 acpi_bus_init+0x5ad/0x700 drivers/acpi/bus.c:1386 acpi_init+0xc5/0x23b drivers/acpi/bus.c:1454 do_one_initcall+0x1e8/0x6a0 init/main.c:1406 do_initcall_level+0x174/0x2e5 init/main.c:1468 do_initcalls+0x7e/0x160 init/main.c:1484 do_basic_setup+0x95/0xb0 init/main.c:1503 page last free pid 1 tgid 1 stack trace: reset_page_owner include/linux/page_owner.h:28 [inline] free_pages_prepare mm/page_alloc.c:1391 [inline] free_unref_page+0xb99/0xf50 mm/page_alloc.c:2877 __free_pages+0x6b/0x3b0 mm/page_alloc.c:5403 __free_slab+0xb2/0x110 mm/slub.c:2758 free_slab+0x18/0xe0 mm/slub.c:2781 __kmem_cache_do_shrink+0x269/0x2c0 mm/slub.c:5871 __kmem_cache_shrink+0x26/0x40 mm/slub.c:5883 kmem_cache_shrink+0x19/0x30 mm/slab_common.c:558 acpi_os_purge_cache+0x19/0x30 drivers/acpi/osl.c:1573 acpi_purge_cached_objects+0xbc/0xd0 drivers/acpi/acpica/utxface.c:240 acpi_initialize_objects+0x32/0xb0 drivers/acpi/acpica/utxfinit.c:250 acpi_bus_init+0xca/0x700 drivers/acpi/bus.c:1367 acpi_init+0xc5/0x23b drivers/acpi/bus.c:1454 do_one_initcall+0x1e8/0x6a0 init/main.c:1406 do_initcall_level+0x174/0x2e5 init/main.c:1468 do_initcalls+0x7e/0x160 init/main.c:1484 do_basic_setup+0x95/0xb0 init/main.c:1503 Memory state around the buggy address: ffff888109e76500: 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc ffff888109e76580: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc >ffff888109e76600: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ^ ffff888109e76680: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff888109e76700: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ================================================================== device-mapper: table: 252:0: device 1:4 not in table devices list device-mapper: table: 252:0: snapshot: COW device cannot be the same as origin device (-EINVAL) device-mapper: ioctl: error adding target to table device-mapper: table: 252:0: dm_table_destroy: dm_put_device call missing for 1:4