================================================================== BUG: KASAN: slab-out-of-bounds in ecryptfs_verify_auth_tok_from_key+0x34b/0x390 fs/ecryptfs/keystore.c:466 Read of size 2 at addr ffff8880735abcd9 by task syz.4.2965/20217 CPU: 0 PID: 20217 Comm: syz.4.2965 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0xa8/0x210 mm/kasan/report.c:420 kasan_report+0x10b/0x140 mm/kasan/report.c:524 ecryptfs_verify_auth_tok_from_key+0x34b/0x390 fs/ecryptfs/keystore.c:466 ecryptfs_keyring_auth_tok_for_sig+0xe8/0x240 fs/ecryptfs/keystore.c:1645 ecryptfs_init_global_auth_toks fs/ecryptfs/main.c:194 [inline] ecryptfs_parse_options fs/ecryptfs/main.c:458 [inline] ecryptfs_mount+0xbee/0x1980 fs/ecryptfs/main.c:501 legacy_get_tree+0xe6/0x180 fs/fs_context.c:632 vfs_get_tree+0x88/0x270 fs/super.c:1584 do_new_mount+0x247/0xa40 fs/namespace.c:3078 do_mount fs/namespace.c:3421 [inline] __do_sys_mount fs/namespace.c:3629 [inline] __se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3606 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f2592b9e159 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:00007f2593a4a028 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f2592e25fa0 RCX: 00007f2592b9e159 RDX: 0000200000000480 RSI: 0000200000000000 RDI: 0000200000000400 RBP: 00007f2592c3506b R08: 0000200000000500 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f2592e26038 R14: 00007f2592e25fa0 R15: 00007fff328b7308 Allocated by task 20217: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 ____kasan_kmalloc mm/kasan/common.c:375 [inline] __kasan_kmalloc+0x8e/0xa0 mm/kasan/common.c:384 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:936 [inline] __kmalloc+0xb3/0x240 mm/slab_common.c:949 kmalloc include/linux/slab.h:568 [inline] user_preparse+0x9a/0x160 security/keys/user_defined.c:67 key_create_or_update+0x432/0xa40 security/keys/key.c:862 __do_sys_add_key security/keys/keyctl.c:134 [inline] __se_sys_add_key+0x34b/0x410 security/keys/keyctl.c:74 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff8880735abcc0 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 25 bytes inside of 32-byte region [ffff8880735abcc0, ffff8880735abce0) The buggy address belongs to the physical page: page:ffffea0001cd6ac0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x735ab flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 0000000000000000 dead000000000001 ffff888017441500 raw: 0000000000000000 0000000080400040 00000001ffffffff 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 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 4281, tgid 4281 (syz-executor), ts 68688437534, free_ts 68668344716 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2560 prep_new_page mm/page_alloc.c:2567 [inline] get_page_from_freelist+0x206b/0x2180 mm/page_alloc.c:4358 __alloc_pages+0x1ec/0x4f0 mm/page_alloc.c:5658 alloc_slab_page+0x5d/0x180 mm/slub.c:1799 allocate_slab mm/slub.c:1944 [inline] new_slab+0x87/0x2d0 mm/slub.c:1997 ___slab_alloc+0xbc5/0x1240 mm/slub.c:3154 __slab_alloc mm/slub.c:3240 [inline] slab_alloc_node mm/slub.c:3325 [inline] __kmem_cache_alloc_node+0x126/0x270 mm/slub.c:3398 kmalloc_trace+0x26/0xe0 mm/slab_common.c:1026 kmalloc include/linux/slab.h:563 [inline] kzalloc include/linux/slab.h:699 [inline] ref_tracker_alloc+0x14f/0x490 lib/ref_tracker.c:85 fib_create_info+0x15a0/0x2370 net/ipv4/fib_semantics.c:1583 fib_table_insert+0xc2/0x1af0 net/ipv4/fib_trie.c:1217 fib_magic+0x2ca/0x3b0 net/ipv4/fib_frontend.c:1118 fib_add_ifaddr+0x135/0x5c0 net/ipv4/fib_frontend.c:1140 fib_inetaddr_event+0x13c/0x1c0 net/ipv4/fib_frontend.c:1454 notifier_call_chain kernel/notifier.c:87 [inline] blocking_notifier_call_chain+0x103/0x1b0 kernel/notifier.c:382 __inet_insert_ifa+0x9c4/0xb80 net/ipv4/devinet.c:568 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1487 [inline] free_pcp_prepare mm/page_alloc.c:1537 [inline] free_unref_page_prepare+0x8e5/0x9e0 mm/page_alloc.c:3414 free_unref_page_list+0xbb/0x8e0 mm/page_alloc.c:3555 release_pages+0x20d1/0x2340 mm/swap.c:1035 tlb_batch_pages_flush mm/mmu_gather.c:60 [inline] tlb_flush_mmu_free mm/mmu_gather.c:255 [inline] tlb_flush_mmu+0x105/0x220 mm/mmu_gather.c:262 tlb_finish_mmu+0xf0/0x220 mm/mmu_gather.c:394 exit_mmap+0x388/0x970 mm/mmap.c:3262 __mmput+0x118/0x3a0 kernel/fork.c:1210 exit_mm+0x24d/0x350 kernel/exit.c:572 do_exit+0x958/0x2570 kernel/exit.c:874 do_group_exit+0x229/0x2e0 kernel/exit.c:1030 __do_sys_exit_group kernel/exit.c:1041 [inline] __se_sys_exit_group kernel/exit.c:1039 [inline] __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:1039 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Memory state around the buggy address: ffff8880735abb80: 00 00 00 00 fc fc fc fc 00 00 00 00 fc fc fc fc ffff8880735abc00: fa fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc >ffff8880735abc80: fa fb fb fb fc fc fc fc 00 00 00 01 fc fc fc fc ^ ffff8880735abd00: 00 00 00 00 fc fc fc fc 00 00 00 00 fc fc fc fc ffff8880735abd80: 00 00 00 00 fc fc fc fc 00 00 00 00 fc fc fc fc ==================================================================