==================================================================
BUG: KASAN: use-after-free in fast_dput+0x1e9/0x290 fs/dcache.c:753
Read of size 4 at addr ffff888111ef0660 by task syz.3.204/1101
CPU: 0 PID: 1101 Comm: syz.3.204 Tainted: G W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026
Call Trace:
__dump_stack+0x21/0x30 lib/dump_stack.c:88
dump_stack_lvl+0x110/0x170 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+0x45b/0x510 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+0xa9e/0x27e0 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+0xdf/0x11c0 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:0x7f98a774404e
Code: Unable to access opcode bytes at RIP 0x7f98a7744024.
RSP: 002b:00007f98a61ddf58 EFLAGS: 00000246 ORIG_RAX: 00000000000000e6
RAX: fffffffffffffdfc RBX: 00007f98a61de6c0 RCX: 00007f98a774404e
RDX: 00007f98a61ddfb0 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007f98a7819c91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f98a79fd038 R14: 00007f98a79fcfa0 R15: 00007ffe30efb358
Allocated by task 1123:
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+0xe2/0x1370 fs/dcache.c:2584
__lookup_slow+0x14c/0x410 fs/namei.c:1656
lookup_one_len+0x19d/0x2d0 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/0x890 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+0x659/0xff0 fs/namespace.c:3364
do_mount fs/namespace.c:3377 [inline]
__do_sys_mount fs/namespace.c:3585 [inline]
__se_sys_mount+0x320/0x390 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 13:
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+0x532/0xbe0 kernel/rcu/tree.c:2523
rcu_core+0x5ee/0xf80 kernel/rcu/tree.c:2763
rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2776
handle_softirqs+0x250/0x560 kernel/softirq.c:583
run_ksoftirqd+0x28/0x40 kernel/softirq.c:959
smpboot_thread_fn+0x45a/0x8c0 kernel/smpboot.c:164
kthread+0x411/0x500 kernel/kthread.c:337
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
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+0x10b/0xf80 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+0x45b/0x510 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+0xa9e/0x27e0 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+0xdf/0x11c0 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+0x10b/0xf80 kernel/rcu/tree.c:3129
dentry_free+0xbd/0x150 fs/dcache.c:-1
__dentry_kill+0x50a/0x650 fs/dcache.c:600
shrink_dentry_list+0x38e/0x500 fs/dcache.c:1181
shrink_dcache_parent+0xa9/0x270 fs/dcache.c:-1
d_invalidate+0x113/0x260 fs/dcache.c:1717
lookup_fast+0x5e1/0x720 fs/namei.c:1636
walk_component+0x80/0x460 fs/namei.c:1980
lookup_last fs/namei.c:2439 [inline]
path_lookupat+0x180/0x490 fs/namei.c:2463
filename_lookup+0x214/0x540 fs/namei.c:2492
user_path_at_empty+0x47/0x1c0 fs/namei.c:2891
do_readlinkat+0xd9/0x490 fs/stat.c:442
__do_sys_readlink fs/stat.c:475 [inline]
__se_sys_readlink fs/stat.c:472 [inline]
__x64_sys_readlink+0x7f/0x90 fs/stat.c:472
x64_sys_call+0x93c/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:90
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 ffff888111ef0660
which belongs to the cache dentry of size 208
The buggy address is located 0 bytes inside of
208-byte region [ffff888111ef0660, ffff888111ef0730)
The buggy address belongs to the page:
page:ffffea000447bc00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x111ef0
flags: 0x4000000000000200(slab|zone=1)
raw: 4000000000000200 ffffea000447bf80 0000000300000002 ffff8881001c5200
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 288, ts 25337443471, 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+0x2d3a/0x2dc0 mm/page_alloc.c:4485
__alloc_pages+0x1a2/0x460 mm/page_alloc.c:5822
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_pseudo+0x1d/0x70 fs/dcache.c:1880
alloc_file_pseudo+0xe0/0x200 fs/file_table.c:256
sock_alloc_file+0xba/0x260 net/socket.c:462
sock_map_fd net/socket.c:486 [inline]
__sys_socket+0x12b/0x190 net/socket.c:1587
__do_sys_socket net/socket.c:1592 [inline]
__se_sys_socket net/socket.c:1590 [inline]
__x64_sys_socket+0x7a/0x90 net/socket.c:1590
x64_sys_call+0x8c5/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:42
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:
ffff888111ef0500: fb fb fc fc fc fc fc fc fc fc fa fb fb fb fb fb
ffff888111ef0580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff888111ef0600: fb fb fb fb fc fc fc fc fc fc fc fc fa fb fb fb
^
ffff888111ef0680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888111ef0700: fb fb fb fb fb fb fc fc fc fc fc fc fc fc fa fb
==================================================================
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1101 at fs/dcache.c:769 fast_dput+0x210/0x290 fs/dcache.c:769
Modules linked in:
CPU: 0 PID: 1101 Comm: syz.3.204 Tainted: G B W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026
RIP: 0010:fast_dput+0x210/0x290 fs/dcache.c:769
Code: e5 f2 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 ea e4 f2 ff e9 8c fe ff ff e8 50 b6 b3 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:ffffc900015bf800 EFLAGS: 00010293
RAX: ffffffff81b61090 RBX: ffff888111ef0660 RCX: ffff88810b2d8000
RDX: 0000000000000000 RSI: 00000000ffffff80 RDI: 0000000000000001
RBP: ffffc900015bf830 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff520002b7ef0 R12: 00000000ffffff80
R13: dffffc0000000000 R14: ffff888111ef06b8 R15: 1ffff110223de0d7
FS: 0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe3ecfe1f00 CR3: 000000012a423000 CR4: 00000000003526b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
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+0x45b/0x510 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+0xa9e/0x27e0 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+0xdf/0x11c0 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:0x7f98a774404e
Code: Unable to access opcode bytes at RIP 0x7f98a7744024.
RSP: 002b:00007f98a61ddf58 EFLAGS: 00000246 ORIG_RAX: 00000000000000e6
RAX: fffffffffffffdfc RBX: 00007f98a61de6c0 RCX: 00007f98a774404e
RDX: 00007f98a61ddfb0 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007f98a7819c91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f98a79fd038 R14: 00007f98a79fcfa0 R15: 00007ffe30efb358
---[ end trace 2f9151440de9c0ee ]---