================================================================== BUG: KASAN: use-after-free in ecryptfs_write_tag_70_packet+0x11d4/0x1258 fs/ecryptfs/keystore.c:764 Read of size 4 at addr ffff0000ca61e098 by task syz.1.234/5280 CPU: 0 PID: 5280 Comm: syz.1.234 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call trace: dump_backtrace+0x1c4/0x1f0 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf4/0x15c lib/dump_stack.c:106 print_address_description+0x88/0x218 mm/kasan/report.c:316 print_report+0x50/0x68 mm/kasan/report.c:420 kasan_report+0xa8/0xfc mm/kasan/report.c:524 __asan_report_load_n_noabort+0x28/0x34 mm/kasan/report_generic.c:361 ecryptfs_write_tag_70_packet+0x11d4/0x1258 fs/ecryptfs/keystore.c:764 ecryptfs_encrypt_filename fs/ecryptfs/crypto.c:1487 [inline] ecryptfs_encrypt_and_encode_filename+0x378/0x103c fs/ecryptfs/crypto.c:1910 ecryptfs_lookup+0x1a0/0x6b4 fs/ecryptfs/inode.c:405 __lookup_slow+0x25c/0x38c fs/namei.c:1698 lookup_slow+0x60/0x84 fs/namei.c:1715 walk_component+0x278/0x374 fs/namei.c:2006 lookup_last fs/namei.c:2463 [inline] path_lookupat+0x168/0x3f0 fs/namei.c:2487 do_o_path+0xa4/0x1dc fs/namei.c:3809 path_openat+0x2290/0x27a0 fs/namei.c:3831 do_filp_open+0x198/0x38c fs/namei.c:3865 do_sys_openat2+0x134/0x3fc fs/open.c:1320 do_sys_open fs/open.c:1336 [inline] __do_sys_openat fs/open.c:1352 [inline] __se_sys_openat fs/open.c:1347 [inline] __arm64_sys_openat+0x11c/0x150 fs/open.c:1347 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x12c arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:589 The buggy address belongs to the physical page: page:00000000d1484062 refcount:0 mapcount:-128 mapping:0000000000000000 index:0x0 pfn:0x10a61e flags: 0x5ffc00000000000(node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000000000 fffffc0003739508 fffffc0003715c08 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffff7f 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000ca61df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000ca61e000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff0000ca61e080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff0000ca61e100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff0000ca61e180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================