R13: 00007f9a22b0b128 R14: 00007f9a22b0b090 R15: 00007ffc5bcf07c8
---[ end trace 12c4bbfdf9dd362e ]---
==================================================================
BUG: KASAN: use-after-free in fast_dput+0x1e9/0x290 fs/dcache.c:753
Read of size 4 at addr ffff888112900660 by task syz.3.2904/11499
CPU: 0 PID: 11499 Comm: syz.3.2904 Tainted: G W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
Call Trace:
__dump_stack+0x21/0x30 lib/dump_stack.c:88
dump_stack_lvl+0xee/0x150 lib/dump_stack.c:106
print_address_description+0x7f/0x2c0 mm/kasan/report.c:248
__kasan_report mm/kasan/report.c:427 [inline]
kasan_report+0xf1/0x140 mm/kasan/report.c:444
__asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308
fast_dput+0x1e9/0x290 fs/dcache.c:753
dput+0x26/0x90 fs/dcache.c:880
incfs_free_mount_info+0x60/0x200 fs/incfs/data_mgmt.c:166
incfs_kill_sb+0x1b8/0x220 fs/incfs/vfs.c:1997
deactivate_locked_super+0xa0/0x100 fs/super.c:335
deactivate_super+0xaf/0xe0 fs/super.c:366
cleanup_mnt+0x446/0x500 fs/namespace.c:1148
__cleanup_mnt+0x19/0x20 fs/namespace.c:1155
task_work_run+0x127/0x190 kernel/task_work.c:188
exit_task_work include/linux/task_work.h:33 [inline]
do_exit+0xa7e/0x27a0 kernel/exit.c:889
do_group_exit+0x141/0x310 kernel/exit.c:1003
get_signal+0x66a/0x1480 kernel/signal.c:2907
arch_do_signal_or_restart+0xc1/0x10f0 arch/x86/kernel/signal.c:867
handle_signal_work kernel/entry/common.c:154 [inline]
exit_to_user_mode_loop+0xa7/0xe0 kernel/entry/common.c:178
exit_to_user_mode_prepare+0x87/0xd0 kernel/entry/common.c:214
__syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline]
syscall_exit_to_user_mode+0x1a/0x30 kernel/entry/common.c:307
do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f9a228e7005
Code: Unable to access opcode bytes at RIP 0x7f9a228e6fdb.
RSP: 002b:00007f9a212faf80 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6
RAX: fffffffffffffdfc RBX: 00007f9a22b0b090 RCX: 00007f9a228e7005
RDX: 00007f9a212fafc0 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007f9a22938f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
R13: 00007f9a22b0b128 R14: 00007f9a22b0b090 R15: 00007ffc5bcf07c8
Allocated by task 11771:
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track mm/kasan/common.c:45 [inline]
set_alloc_info mm/kasan/common.c:433 [inline]
__kasan_slab_alloc+0xbd/0xf0 mm/kasan/common.c:466
kasan_slab_alloc include/linux/kasan.h:217 [inline]
slab_post_alloc_hook+0x4f/0x2b0 mm/slab.h:550
slab_alloc_node mm/slub.c:3245 [inline]
slab_alloc mm/slub.c:3255 [inline]
kmem_cache_alloc+0xf7/0x260 mm/slub.c:3260
__d_alloc+0x2d/0x6a0 fs/dcache.c:1749
d_alloc fs/dcache.c:1828 [inline]
d_alloc_parallel+0xe1/0x1380 fs/dcache.c:2584
__lookup_slow+0x13e/0x3e0 fs/namei.c:1656
lookup_one_len+0x195/0x2c0 fs/namei.c:2726
incfs_lookup_dentry+0x60/0xb0 fs/incfs/data_mgmt.c:210
open_or_create_special_dir+0x4f/0x1d0 fs/incfs/vfs.c:475
incfs_mount_fs+0x42f/0x880 fs/incfs/vfs.c:1884
legacy_get_tree+0xed/0x190 fs/fs_context.c:611
vfs_get_tree+0x89/0x260 fs/super.c:1530
do_new_mount+0x25a/0xa20 fs/namespace.c:3034
path_mount+0x675/0x1020 fs/namespace.c:3364
do_mount fs/namespace.c:3377 [inline]
__do_sys_mount fs/namespace.c:3585 [inline]
__se_sys_mount+0x318/0x380 fs/namespace.c:3562
__x64_sys_mount+0xbf/0xd0 fs/namespace.c:3562
x64_sys_call+0x6bf/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:166
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
Freed by task 0:
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track+0x4a/0x70 mm/kasan/common.c:45
kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:370
____kasan_slab_free+0x125/0x160 mm/kasan/common.c:365
__kasan_slab_free+0x11/0x20 mm/kasan/common.c:373
kasan_slab_free include/linux/kasan.h:193 [inline]
slab_free_hook mm/slub.c:1728 [inline]
slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1754
slab_free mm/slub.c:3526 [inline]
kmem_cache_free+0x100/0x320 mm/slub.c:3544
__d_free+0x23/0x30 fs/dcache.c:273
rcu_do_batch+0x51d/0xba0 kernel/rcu/tree.c:2523
rcu_core+0x5e4/0xf80 kernel/rcu/tree.c:2763
rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2776
handle_softirqs+0x250/0x560 kernel/softirq.c:583
__do_softirq kernel/softirq.c:621 [inline]
invoke_softirq kernel/softirq.c:443 [inline]
__irq_exit_rcu+0x52/0xf0 kernel/softirq.c:670
irq_exit_rcu+0x9/0x10 kernel/softirq.c:682
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1108
asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:676
Last potentially related work creation:
kasan_save_stack+0x3a/0x60 mm/kasan/common.c:38
__kasan_record_aux_stack+0xd2/0x100 mm/kasan/generic.c:348
kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358
__call_rcu_common kernel/rcu/tree.c:3011 [inline]
call_rcu+0x105/0xfe0 kernel/rcu/tree.c:3129
dentry_free+0xbd/0x150 fs/dcache.c:-1
__dentry_kill+0x50a/0x650 fs/dcache.c:600
dentry_kill+0xc0/0x2a0 fs/dcache.c:-1
dput+0x47/0x90 fs/dcache.c:893
incfs_free_mount_info+0x60/0x200 fs/incfs/data_mgmt.c:166
incfs_kill_sb+0x1b8/0x220 fs/incfs/vfs.c:1997
deactivate_locked_super+0xa0/0x100 fs/super.c:335
deactivate_super+0xaf/0xe0 fs/super.c:366
cleanup_mnt+0x446/0x500 fs/namespace.c:1148
__cleanup_mnt+0x19/0x20 fs/namespace.c:1155
task_work_run+0x127/0x190 kernel/task_work.c:188
exit_task_work include/linux/task_work.h:33 [inline]
do_exit+0xa7e/0x27a0 kernel/exit.c:889
do_group_exit+0x141/0x310 kernel/exit.c:1003
get_signal+0x66a/0x1480 kernel/signal.c:2907
arch_do_signal_or_restart+0xc1/0x10f0 arch/x86/kernel/signal.c:867
handle_signal_work kernel/entry/common.c:154 [inline]
exit_to_user_mode_loop+0xa7/0xe0 kernel/entry/common.c:178
exit_to_user_mode_prepare+0x87/0xd0 kernel/entry/common.c:214
__syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline]
syscall_exit_to_user_mode+0x1a/0x30 kernel/entry/common.c:307
do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x66/0xd0
Second to last potentially related work creation:
kasan_save_stack+0x3a/0x60 mm/kasan/common.c:38
__kasan_record_aux_stack+0xd2/0x100 mm/kasan/generic.c:348
kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358
__call_rcu_common kernel/rcu/tree.c:3011 [inline]
call_rcu+0x105/0xfe0 kernel/rcu/tree.c:3129
dentry_free+0xbd/0x150 fs/dcache.c:-1
__dentry_kill+0x50a/0x650 fs/dcache.c:600
dentry_kill+0xc0/0x2a0 fs/dcache.c:-1
dput+0x47/0x90 fs/dcache.c:893
path_put fs/namei.c:559 [inline]
terminate_walk+0x1b3/0x4e0 fs/namei.c:674
path_openat+0x27eb/0x2f10 fs/namei.c:3751
do_filp_open+0x1b3/0x3e0 fs/namei.c:3777
do_sys_openat2+0x14c/0x7b0 fs/open.c:1236
do_sys_open fs/open.c:1252 [inline]
__do_sys_openat fs/open.c:1268 [inline]
__se_sys_openat fs/open.c:1263 [inline]
__x64_sys_openat+0x136/0x160 fs/open.c:1263
x64_sys_call+0x219/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:258
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
The buggy address belongs to the object at ffff888112900660
which belongs to the cache dentry of size 208
The buggy address is located 0 bytes inside of
208-byte region [ffff888112900660, ffff888112900730)
The buggy address belongs to the page:
page:ffffea00044a4000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x112900
flags: 0x4000000000000200(slab|zone=1)
raw: 4000000000000200 0000000000000000 0000000400000001 ffff8881001c4f00
raw: 0000000000000000 00000000000f000f 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Reclaimable, gfp_mask 0x12cd0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_RECLAIMABLE), pid 108, ts 4596176884, free_ts 0
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0x192/0x1b0 mm/page_alloc.c:2605
prep_new_page+0x1c/0x110 mm/page_alloc.c:2611
get_page_from_freelist+0x2cc5/0x2d50 mm/page_alloc.c:4485
__alloc_pages+0x18f/0x440 mm/page_alloc.c:5808
alloc_slab_page mm/slub.c:-1 [inline]
allocate_slab mm/slub.c:1937 [inline]
new_slab+0xa1/0x4d0 mm/slub.c:2000
___slab_alloc+0x381/0x810 mm/slub.c:3033
__slab_alloc+0x49/0x90 mm/slub.c:3120
slab_alloc_node mm/slub.c:3211 [inline]
slab_alloc mm/slub.c:3255 [inline]
kmem_cache_alloc+0x138/0x260 mm/slub.c:3260
__d_alloc+0x2d/0x6a0 fs/dcache.c:1749
d_alloc fs/dcache.c:1828 [inline]
d_alloc_parallel+0xe1/0x1380 fs/dcache.c:2584
lookup_open fs/namei.c:3395 [inline]
open_last_lookups fs/namei.c:3540 [inline]
path_openat+0x958/0x2f10 fs/namei.c:3747
do_filp_open+0x1b3/0x3e0 fs/namei.c:3777
do_sys_openat2+0x14c/0x7b0 fs/open.c:1236
do_sys_open fs/open.c:1252 [inline]
__do_sys_openat fs/open.c:1268 [inline]
__se_sys_openat fs/open.c:1263 [inline]
__x64_sys_openat+0x136/0x160 fs/open.c:1263
x64_sys_call+0x219/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:258
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
page_owner free stack trace missing
Memory state around the buggy address:
ffff888112900500: 00 00 fc fc fc fc fc fc fc fc 00 00 00 00 00 00
ffff888112900580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff888112900600: 00 00 00 00 fc fc fc fc fc fc fc fc fa fb fb fb
^
ffff888112900680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888112900700: fb fb fb fb fb fb fc fc fc fc fc fc fc fc 00 00
==================================================================
------------[ cut here ]------------
WARNING: CPU: 0 PID: 11499 at fs/dcache.c:769 fast_dput+0x210/0x290 fs/dcache.c:769
Modules linked in:
CPU: 0 PID: 11499 Comm: syz.3.2904 Tainted: G B W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
RIP: 0010:fast_dput+0x210/0x290 fs/dcache.c:769
Code: 15 f3 ff e9 46 fe ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 99 fe ff ff 48 89 df e8 ba 15 f3 ff e9 8c fe ff ff e8 20 93 b4 ff <0f> 0b e9 0b ff ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c e4 fe ff
RSP: 0018:ffffc90005f07800 EFLAGS: 00010293
RAX: ffffffff81b42c30 RBX: ffff888112900660 RCX: ffff88814b230000
RDX: 0000000000000000 RSI: 00000000ffffff80 RDI: 0000000000000001
RBP: ffffc90005f07830 R08: 0000000000000004 R09: 0000000000000003
R10: fffff52000be0ef0 R11: 1ffff92000be0ef0 R12: 00000000ffffff80
R13: dffffc0000000000 R14: ffff8881129006b8 R15: 1ffff110225200d7
FS: 0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd3239eddac CR3: 000000000660f000 CR4: 00000000003506b0
Call Trace:
dput+0x26/0x90 fs/dcache.c:880
incfs_free_mount_info+0x60/0x200 fs/incfs/data_mgmt.c:166
incfs_kill_sb+0x1b8/0x220 fs/incfs/vfs.c:1997
deactivate_locked_super+0xa0/0x100 fs/super.c:335
deactivate_super+0xaf/0xe0 fs/super.c:366
cleanup_mnt+0x446/0x500 fs/namespace.c:1148
__cleanup_mnt+0x19/0x20 fs/namespace.c:1155
task_work_run+0x127/0x190 kernel/task_work.c:188
exit_task_work include/linux/task_work.h:33 [inline]
do_exit+0xa7e/0x27a0 kernel/exit.c:889
do_group_exit+0x141/0x310 kernel/exit.c:1003
get_signal+0x66a/0x1480 kernel/signal.c:2907
arch_do_signal_or_restart+0xc1/0x10f0 arch/x86/kernel/signal.c:867
handle_signal_work kernel/entry/common.c:154 [inline]
exit_to_user_mode_loop+0xa7/0xe0 kernel/entry/common.c:178
exit_to_user_mode_prepare+0x87/0xd0 kernel/entry/common.c:214
__syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline]
syscall_exit_to_user_mode+0x1a/0x30 kernel/entry/common.c:307
do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f9a228e7005
Code: Unable to access opcode bytes at RIP 0x7f9a228e6fdb.
RSP: 002b:00007f9a212faf80 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6
RAX: fffffffffffffdfc RBX: 00007f9a22b0b090 RCX: 00007f9a228e7005
RDX: 00007f9a212fafc0 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007f9a22938f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
R13: 00007f9a22b0b128 R14: 00007f9a22b0b090 R15: 00007ffc5bcf07c8
---[ end trace 12c4bbfdf9dd362f ]---