RBP: 00007f71fcdd5090 R08: 0000200000000500 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007f71fee26218 R14: 00007f71fee26180 R15: 00007ffd0c708798 ================================================================== BUG: KASAN: slab-use-after-free in ecryptfs_destroy_mount_crypt_stat+0x2ee/0x300 fs/ecryptfs/crypto.c:137 Read of size 4 at addr ffff888076572790 by task syz.2.974/8511 CPU: 0 UID: 0 PID: 8511 Comm: syz.2.974 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/08/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 ecryptfs_destroy_mount_crypt_stat+0x2ee/0x300 fs/ecryptfs/crypto.c:137 ecryptfs_get_tree+0xd3c/0x12a0 fs/ecryptfs/main.c:566 vfs_get_tree+0x92/0x2a0 fs/super.c:1933 fc_mount fs/namespace.c:1198 [inline] do_new_mount_fc fs/namespace.c:3772 [inline] do_new_mount+0x319/0xdc0 fs/namespace.c:3848 do_mount fs/namespace.c:4181 [inline] __do_sys_mount fs/namespace.c:4396 [inline] __se_sys_mount+0x31d/0x420 fs/namespace.c:4373 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f71feb9e159 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:00007f71fcdd5028 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f71fee26180 RCX: 00007f71feb9e159 RDX: 0000200000000480 RSI: 0000200000000000 RDI: 0000200000000400 RBP: 00007f71fcdd5090 R08: 0000200000000500 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007f71fee26218 R14: 00007f71fee26180 R15: 00007ffd0c708798 Allocated by task 8511: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 unpoison_slab_object mm/kasan/common.c:340 [inline] __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:366 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4683 [inline] slab_alloc_node mm/slub.c:4996 [inline] kmem_cache_alloc_noprof+0x2b4/0x600 mm/slub.c:5010 ecryptfs_init_fs_context+0x70/0x1b0 fs/ecryptfs/main.c:617 alloc_fs_context+0x99e/0xd00 fs/fs_context.c:295 do_new_mount+0x17f/0xdc0 fs/namespace.c:3828 do_mount fs/namespace.c:4181 [inline] __do_sys_mount fs/namespace.c:4396 [inline] __se_sys_mount+0x31d/0x420 fs/namespace.c:4373 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 8511: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2748 [inline] slab_free mm/slub.c:6505 [inline] kmem_cache_free+0x182/0x650 mm/slub.c:6632 deactivate_locked_super+0xbc/0x110 fs/super.c:589 ecryptfs_get_tree+0xf68/0x12a0 fs/ecryptfs/main.c:563 vfs_get_tree+0x92/0x2a0 fs/super.c:1933 fc_mount fs/namespace.c:1198 [inline] do_new_mount_fc fs/namespace.c:3772 [inline] do_new_mount+0x319/0xdc0 fs/namespace.c:3848 do_mount fs/namespace.c:4181 [inline] __do_sys_mount fs/namespace.c:4396 [inline] __se_sys_mount+0x31d/0x420 fs/namespace.c:4373 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888076572780 which belongs to the cache ecryptfs_sb_cache of size 280 The buggy address is located 16 bytes inside of freed 280-byte region [ffff888076572780, ffff888076572898) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x76572 head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88801df3f140 dead000000000100 dead000000000122 raw: 0000000000000000 0000000200150015 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88801df3f140 dead000000000100 dead000000000122 head: 0000000000000000 0000000200150015 00000000f5000000 0000000000000000 head: 00fff00000000001 ffffffffffffff81 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 1, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 6909, tgid 6906 (syz.0.413), ts 124304336582 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1853 prep_new_page mm/page_alloc.c:1861 [inline] get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3925 __alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5418 alloc_slab_page mm/slub.c:3347 [inline] allocate_slab+0x7d/0x620 mm/slub.c:3462 new_slab mm/slub.c:3513 [inline] refill_objects+0x2d5/0x350 mm/slub.c:7416 refill_sheaf mm/slub.c:2885 [inline] __pcs_replace_empty_main+0x2c8/0x6c0 mm/slub.c:4774 alloc_from_pcs mm/slub.c:4850 [inline] slab_alloc_node mm/slub.c:4984 [inline] kmem_cache_alloc_noprof+0x394/0x600 mm/slub.c:5010 ecryptfs_init_fs_context+0x70/0x1b0 fs/ecryptfs/main.c:617 alloc_fs_context+0x99e/0xd00 fs/fs_context.c:295 do_new_mount+0x17f/0xdc0 fs/namespace.c:3828 do_mount fs/namespace.c:4181 [inline] __do_sys_mount fs/namespace.c:4396 [inline] __se_sys_mount+0x31d/0x420 fs/namespace.c:4373 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5612 tgid 5612 ts 122719519066 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1400 [inline] __free_frozen_pages+0xc93/0xd90 mm/page_alloc.c:2944 __slab_free+0x274/0x2c0 mm/slub.c:5820 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x99/0x100 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:350 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4683 [inline] slab_alloc_node mm/slub.c:4996 [inline] kmem_cache_alloc_noprof+0x2b4/0x600 mm/slub.c:5010 alloc_filename fs/namei.c:147 [inline] do_getname+0x2e/0x250 fs/namei.c:187 getname_flags fs/namei.c:230 [inline] class_filename_flags_constructor include/linux/fs.h:2586 [inline] user_path_at+0x2a/0x160 fs/namei.c:3661 ksys_umount fs/namespace.c:2067 [inline] __do_sys_umount fs/namespace.c:2075 [inline] __se_sys_umount fs/namespace.c:2073 [inline] __x64_sys_umount+0xf6/0x170 fs/namespace.c:2073 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff888076572680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888076572700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888076572780: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888076572800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888076572880: fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================