RBP: 0000000000000009 R08: 00007ffee1983627 R09: 00007ffee1986b40
R10: 0000000000000009 R11: 0000000000000246 R12: 00007ffee1986b40
R13: 00007fd0e60c5c05 R14: 000055555e3514a8 R15: 00007ffee1987c10
---[ end trace ea6fe2cb9db505d4 ]---
==================================================================
BUG: KASAN: use-after-free in fast_dput+0x1e9/0x290 fs/dcache.c:750
Read of size 4 at addr ffff88811b9bfbb0 by task syz-executor/2516
CPU: 0 PID: 2516 Comm: syz-executor Tainted: G W 5.10.240-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/14/2025
Call Trace:
__dump_stack+0x21/0x24 lib/dump_stack.c:77
dump_stack_lvl+0x169/0x1d8 lib/dump_stack.c:118
print_address_description+0x7f/0x2c0 mm/kasan/report.c:248
__kasan_report mm/kasan/report.c:435 [inline]
kasan_report+0xe2/0x130 mm/kasan/report.c:452
__asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308
fast_dput+0x1e9/0x290 fs/dcache.c:750
dput+0x21/0x80 fs/dcache.c:870
incfs_free_mount_info+0x60/0x200 fs/incfs/data_mgmt.c:166
incfs_kill_sb+0x1aa/0x210 fs/incfs/vfs.c:1979
deactivate_locked_super+0xa0/0x100 fs/super.c:335
deactivate_super+0xaf/0xe0 fs/super.c:366
cleanup_mnt+0x446/0x500 fs/namespace.c:1114
__cleanup_mnt+0x19/0x20 fs/namespace.c:1121
task_work_run+0x127/0x190 kernel/task_work.c:189
exit_task_work include/linux/task_work.h:33 [inline]
do_exit+0xa4f/0x2480 kernel/exit.c:872
do_group_exit+0x141/0x310 kernel/exit.c:986
__do_sys_exit_group kernel/exit.c:997 [inline]
__se_sys_exit_group kernel/exit.c:995 [inline]
__x64_sys_exit_group+0x3f/0x40 kernel/exit.c:995
do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fd0e6042be9
Code: Unable to access opcode bytes at RIP 0x7fd0e6042bbf.
RSP: 002b:00007ffee1985888 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00007fd0e60c5c65 RCX: 00007fd0e6042be9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000009 R08: 00007ffee1983627 R09: 00007ffee1986b40
R10: 0000000000000009 R11: 0000000000000246 R12: 00007ffee1986b40
R13: 00007fd0e60c5c05 R14: 000055555e3514a8 R15: 00007ffee1987c10
Allocated by task 2950:
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:430 [inline]
__kasan_slab_alloc+0xbd/0xf0 mm/kasan/common.c:463
kasan_slab_alloc include/linux/kasan.h:244 [inline]
slab_post_alloc_hook+0x5d/0x2f0 mm/slab.h:583
slab_alloc_node mm/slub.c:2947 [inline]
slab_alloc mm/slub.c:2955 [inline]
kmem_cache_alloc+0x165/0x2e0 mm/slub.c:2960
__d_alloc+0x2d/0x6a0 fs/dcache.c:1714
d_alloc fs/dcache.c:1793 [inline]
d_alloc_parallel+0xd6/0x1320 fs/dcache.c:2547
__lookup_slow+0x13e/0x3e0 fs/namei.c:1625
lookup_one_len+0x18e/0x2c0 fs/namei.c:2656
incfs_lookup_dentry+0x60/0xb0 fs/incfs/data_mgmt.c:210
open_or_create_special_dir+0x4f/0x1d0 fs/incfs/vfs.c:469
incfs_mount_fs+0x434/0x8c0 fs/incfs/vfs.c:1867
legacy_get_tree+0xed/0x190 fs/fs_context.c:593
vfs_get_tree+0x89/0x260 fs/super.c:1572
do_new_mount+0x25a/0xa20 fs/namespace.c:2919
path_mount+0x572/0xc80 fs/namespace.c:3249
do_mount fs/namespace.c:3262 [inline]
__do_sys_mount fs/namespace.c:3470 [inline]
__se_sys_mount+0x318/0x380 fs/namespace.c:3447
__x64_sys_mount+0xbf/0xd0 fs/namespace.c:3447
do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x61/0xcb
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:362
__kasan_slab_free+0x11/0x20 mm/kasan/common.c:370
kasan_slab_free include/linux/kasan.h:220 [inline]
slab_free_hook mm/slub.c:1595 [inline]
slab_free_freelist_hook+0xc5/0x190 mm/slub.c:1621
slab_free mm/slub.c:3203 [inline]
kmem_cache_free+0x100/0x2d0 mm/slub.c:3219
__d_free+0x23/0x30 fs/dcache.c:271
rcu_do_batch+0x4df/0xa80 kernel/rcu/tree.c:2494
rcu_core+0x55f/0xd60 kernel/rcu/tree.c:2735
rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2748
__do_softirq+0x255/0x563 kernel/softirq.c:309
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 kernel/rcu/tree.c:2980 [inline]
call_rcu+0x10e/0x1050 kernel/rcu/tree.c:3054
dentry_free+0xbd/0x150 fs/dcache.c:-1
__dentry_kill+0x50a/0x650 fs/dcache.c:597
dentry_kill+0xc0/0x2a0 fs/dcache.c:-1
dput+0x42/0x80 fs/dcache.c:883
incfs_free_mount_info+0x60/0x200 fs/incfs/data_mgmt.c:166
incfs_kill_sb+0x1aa/0x210 fs/incfs/vfs.c:1979
deactivate_locked_super+0xa0/0x100 fs/super.c:335
deactivate_super+0xaf/0xe0 fs/super.c:366
cleanup_mnt+0x446/0x500 fs/namespace.c:1114
__cleanup_mnt+0x19/0x20 fs/namespace.c:1121
task_work_run+0x127/0x190 kernel/task_work.c:189
exit_task_work include/linux/task_work.h:33 [inline]
do_exit+0xa4f/0x2480 kernel/exit.c:872
do_group_exit+0x141/0x310 kernel/exit.c:986
__do_sys_exit_group kernel/exit.c:997 [inline]
__se_sys_exit_group kernel/exit.c:995 [inline]
__x64_sys_exit_group+0x3f/0x40 kernel/exit.c:995
do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x61/0xcb
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 kernel/rcu/tree.c:2980 [inline]
call_rcu+0x10e/0x1050 kernel/rcu/tree.c:3054
dentry_free+0xbd/0x150 fs/dcache.c:-1
__dentry_kill+0x50a/0x650 fs/dcache.c:597
dentry_kill+0xc0/0x2a0 fs/dcache.c:-1
dput+0x42/0x80 fs/dcache.c:883
dcache_dir_close+0x3b/0x40 fs/libfs.c:89
__fput+0x2fb/0x770 fs/file_table.c:281
____fput+0x15/0x20 fs/file_table.c:314
task_work_run+0x127/0x190 kernel/task_work.c:189
tracehook_notify_resume include/linux/tracehook.h:188 [inline]
exit_to_user_mode_loop+0xcb/0xe0 kernel/entry/common.c:172
exit_to_user_mode_prepare kernel/entry/common.c:199 [inline]
syscall_exit_to_user_mode+0x68/0x90 kernel/entry/common.c:274
do_syscall_64+0x3d/0x40 arch/x86/entry/common.c:56
entry_SYSCALL_64_after_hwframe+0x61/0xcb
The buggy address belongs to the object at ffff88811b9bfbb0
which belongs to the cache dentry of size 208
The buggy address is located 0 bytes inside of
208-byte region [ffff88811b9bfbb0, ffff88811b9bfc80)
The buggy address belongs to the page:
page:ffffea00046e6fc0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11b9bf
flags: 0x4000000000000200(slab)
raw: 4000000000000200 ffffea000433dfc0 0000000600000005 ffff88810018a000
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 0x112cd0(GFP_USER|__GFP_NOWARN|__GFP_NORETRY|__GFP_RECLAIMABLE), pid 282, ts 25626083552, free_ts 0
set_page_owner include/linux/page_owner.h:35 [inline]
post_alloc_hook mm/page_alloc.c:2456 [inline]
prep_new_page+0x179/0x180 mm/page_alloc.c:2462
get_page_from_freelist+0x2235/0x23d0 mm/page_alloc.c:4254
__alloc_pages_nodemask+0x268/0x5f0 mm/page_alloc.c:5357
alloc_slab_page mm/slub.c:-1 [inline]
allocate_slab mm/slub.c:1808 [inline]
new_slab+0x84/0x3f0 mm/slub.c:1869
new_slab_objects mm/slub.c:2627 [inline]
___slab_alloc+0x2a6/0x450 mm/slub.c:2791
__slab_alloc+0x63/0xa0 mm/slub.c:2831
slab_alloc_node mm/slub.c:2913 [inline]
slab_alloc mm/slub.c:2955 [inline]
kmem_cache_alloc+0x1af/0x2e0 mm/slub.c:2960
__d_alloc+0x2d/0x6a0 fs/dcache.c:1714
d_alloc_pseudo+0x1d/0x70 fs/dcache.c:1843
alloc_file_pseudo+0xc8/0x1f0 fs/file_table.c:226
sock_alloc_file+0xba/0x260 net/socket.c:412
sock_map_fd net/socket.c:436 [inline]
__sys_socket+0x12b/0x190 net/socket.c:1533
__do_sys_socket net/socket.c:1538 [inline]
__se_sys_socket net/socket.c:1536 [inline]
__x64_sys_socket+0x7a/0x90 net/socket.c:1536
do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x61/0xcb
page_owner free stack trace missing
Memory state around the buggy address:
ffff88811b9bfa80: fc fc fc fc 00 00 00 00 00 00 00 00 00 00 00 00
ffff88811b9bfb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc
>ffff88811b9bfb80: fc fc fc fc fc fc fa fb fb fb fb fb fb fb fb fb
^
ffff88811b9bfc00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88811b9bfc80: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00
==================================================================
------------[ cut here ]------------
WARNING: CPU: 0 PID: 2516 at fs/dcache.c:766 fast_dput+0x210/0x290 fs/dcache.c:766
Modules linked in:
CPU: 0 PID: 2516 Comm: syz-executor Tainted: G B W 5.10.240-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/14/2025
RIP: 0010:fast_dput+0x210/0x290 fs/dcache.c:766
Code: 05 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 2a 05 f3 ff e9 8c fe ff ff e8 c0 15 b9 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:ffffc90000ba7b80 EFLAGS: 00010293
RAX: ffffffff81aa8ab0 RBX: ffff88811b9bfbb0 RCX: ffff8881297c13c0
RDX: 0000000000000000 RSI: 00000000ffffff80 RDI: 0000000000000001
RBP: ffffc90000ba7bb0 R08: 0000000000000004 R09: 0000000000000003
R10: fffff52000174f60 R11: 1ffff92000174f60 R12: 00000000ffffff80
R13: dffffc0000000000 R14: ffff88811b9bfc08 R15: 1ffff11023737f81
FS: 0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055556d1e84a8 CR3: 000000011099d000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
dput+0x21/0x80 fs/dcache.c:870
incfs_free_mount_info+0x60/0x200 fs/incfs/data_mgmt.c:166
incfs_kill_sb+0x1aa/0x210 fs/incfs/vfs.c:1979
deactivate_locked_super+0xa0/0x100 fs/super.c:335
deactivate_super+0xaf/0xe0 fs/super.c:366
cleanup_mnt+0x446/0x500 fs/namespace.c:1114
__cleanup_mnt+0x19/0x20 fs/namespace.c:1121
task_work_run+0x127/0x190 kernel/task_work.c:189
exit_task_work include/linux/task_work.h:33 [inline]
do_exit+0xa4f/0x2480 kernel/exit.c:872
do_group_exit+0x141/0x310 kernel/exit.c:986
__do_sys_exit_group kernel/exit.c:997 [inline]
__se_sys_exit_group kernel/exit.c:995 [inline]
__x64_sys_exit_group+0x3f/0x40 kernel/exit.c:995
do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fd0e6042be9
Code: Unable to access opcode bytes at RIP 0x7fd0e6042bbf.
RSP: 002b:00007ffee1985888 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00007fd0e60c5c65 RCX: 00007fd0e6042be9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000009 R08: 00007ffee1983627 R09: 00007ffee1986b40
R10: 0000000000000009 R11: 0000000000000246 R12: 00007ffee1986b40
R13: 00007fd0e60c5c05 R14: 000055555e3514a8 R15: 00007ffee1987c10
---[ end trace ea6fe2cb9db505d5 ]---
BUG: kernel NULL pointer dereference, address: 0000000000000000
#PF: supervisor instruction fetch in kernel mode
#PF: error_code(0x0010) - not-present page
PGD 12990e067 P4D 12990e067 PUD 0
Oops: 0010 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 2516 Comm: syz-executor Tainted: G B W 5.10.240-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/14/2025
RIP: 0010:0x0
Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.
RSP: 0018:ffffc90000ba7b20 EFLAGS: 00010246
RAX: 1ffffffff0a11daf RBX: ffff88811b9bf220 RCX: 0000000000000286
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff88811b9bf220
RBP: ffffc90000ba7b70 R08: fffffffffffffffb R09: 0000000000000003
R10: ffffed1023737e4f R11: 1ffff11023737e4f R12: 1ffff11023737e44
R13: dffffc0000000000 R14: ffffffff8508ed78 R15: ffff88811b9bf278
FS: 0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 000000011c8fe000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__dentry_kill+0xca/0x650 fs/dcache.c:571
dentry_kill+0xc0/0x2a0 fs/dcache.c:-1
dput+0x42/0x80 fs/dcache.c:883
incfs_free_mount_info+0x80/0x200 fs/incfs/data_mgmt.c:167
incfs_kill_sb+0x1aa/0x210 fs/incfs/vfs.c:1979
deactivate_locked_super+0xa0/0x100 fs/super.c:335
deactivate_super+0xaf/0xe0 fs/super.c:366
cleanup_mnt+0x446/0x500 fs/namespace.c:1114
__cleanup_mnt+0x19/0x20 fs/namespace.c:1121
task_work_run+0x127/0x190 kernel/task_work.c:189
exit_task_work include/linux/task_work.h:33 [inline]
do_exit+0xa4f/0x2480 kernel/exit.c:872
do_group_exit+0x141/0x310 kernel/exit.c:986
__do_sys_exit_group kernel/exit.c:997 [inline]
__se_sys_exit_group kernel/exit.c:995 [inline]
__x64_sys_exit_group+0x3f/0x40 kernel/exit.c:995
do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fd0e6042be9
Code: Unable to access opcode bytes at RIP 0x7fd0e6042bbf.
RSP: 002b:00007ffee1985888 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00007fd0e60c5c65 RCX: 00007fd0e6042be9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000009 R08: 00007ffee1983627 R09: 00007ffee1986b40
R10: 0000000000000009 R11: 0000000000000246 R12: 00007ffee1986b40
R13: 00007fd0e60c5c05 R14: 000055555e3514a8 R15: 00007ffee1987c10
Modules linked in:
CR2: 0000000000000000
---[ end trace ea6fe2cb9db505d6 ]---
RIP: 0010:0x0
Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.
RSP: 0018:ffffc90000ba7b20 EFLAGS: 00010246
RAX: 1ffffffff0a11daf RBX: ffff88811b9bf220 RCX: 0000000000000286
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff88811b9bf220
RBP: ffffc90000ba7b70 R08: fffffffffffffffb R09: 0000000000000003
R10: ffffed1023737e4f R11: 1ffff11023737e4f R12: 1ffff11023737e44
R13: dffffc0000000000 R14: ffffffff8508ed78 R15: ffff88811b9bf278
FS: 0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 000000011c8fe000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400