RAX: ffffffffffffffda RBX: 00007fe36ae35fa0 RCX: 00007fe36aba9c99 RDX: 000000000000275a RSI: 00002000000018c0 RDI: ffffffffffffff9c RBP: 00007fe36ba78090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007fe36ae36038 R14: 00007fe36ae35fa0 R15: 00007ffd3884c738 ================================================================== BUG: KASAN: slab-use-after-free in jffs2_xattr_delete_inode+0x2c8/0x2d0 fs/jffs2/xattr.c:602 Read of size 4 at addr ffff888076367de8 by task syz.1.1006/8758 CPU: 0 UID: 0 PID: 8758 Comm: syz.1.1006 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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 jffs2_xattr_delete_inode+0x2c8/0x2d0 fs/jffs2/xattr.c:602 jffs2_do_clear_inode+0x58/0x390 fs/jffs2/readinode.c:1418 evict+0x6bf/0xc20 fs/inode.c:830 jffs2_new_inode+0x48a/0xd20 fs/jffs2/fs.c:-1 jffs2_create+0x87/0x320 fs/jffs2/dir.c:182 vfs_create_no_perm fs/namei.c:4228 [inline] lookup_open+0xc73/0x16e0 fs/namei.c:4683 open_last_lookups fs/namei.c:4884 [inline] path_openat+0x7a5/0x20e0 fs/namei.c:5123 do_file_open+0x23e/0x4a0 fs/namei.c:5155 do_sys_openat2+0x115/0x200 fs/open.c:1496 do_sys_open fs/open.c:1502 [inline] __do_sys_openat fs/open.c:1518 [inline] __se_sys_openat fs/open.c:1513 [inline] __x64_sys_openat+0x138/0x170 fs/open.c:1513 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x00007fe36aba9c99 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:00007fe36ba78028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fe36ae35fa0 RCX: 00007fe36aba9c99 RDX: 000000000000275a RSI: 00002000000018c0 RDI: ffffffffffffff9c RBP: 00007fe36ba78090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007fe36ae36038 R14: 00007fe36ae35fa0 R15: 00007ffd3884c738 Allocated by task 5869: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3f/0x90 mm/kasan/common.c:79 unpoison_slab_object mm/kasan/common.c:354 [inline] __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:380 kasan_slab_alloc include/linux/kasan.h:257 [inline] slab_post_alloc_hook mm/slub.c:4757 [inline] slab_alloc_node mm/slub.c:5071 [inline] kmem_cache_alloc_noprof+0x2b4/0x600 mm/slub.c:5085 jffs2_do_new_inode+0x27/0x510 fs/jffs2/write.c:28 jffs2_new_inode+0x45c/0xd20 fs/jffs2/fs.c:466 jffs2_create+0x87/0x320 fs/jffs2/dir.c:182 vfs_create_no_perm fs/namei.c:4228 [inline] lookup_open+0xc73/0x16e0 fs/namei.c:4683 open_last_lookups fs/namei.c:4884 [inline] path_openat+0x7a5/0x20e0 fs/namei.c:5123 do_file_open+0x23e/0x4a0 fs/namei.c:5155 do_sys_openat2+0x115/0x200 fs/open.c:1496 do_sys_open fs/open.c:1502 [inline] __do_sys_openat fs/open.c:1518 [inline] __se_sys_openat fs/open.c:1513 [inline] __x64_sys_openat+0x138/0x170 fs/open.c:1513 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 5633: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3f/0x90 mm/kasan/common.c:79 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:599 poison_slab_object mm/kasan/common.c:267 [inline] __kasan_slab_free+0x70/0x90 mm/kasan/common.c:299 kasan_slab_free include/linux/kasan.h:239 [inline] slab_free_hook mm/slub.c:2807 [inline] slab_free mm/slub.c:6672 [inline] kmem_cache_free+0x184/0x660 mm/slub.c:6816 jffs2_free_ino_caches+0xec/0x1c0 fs/jffs2/nodelist.c:497 jffs2_put_super+0x6c/0x170 fs/jffs2/super.c:335 generic_shutdown_super+0x140/0x2d0 fs/super.c:823 kill_mtd_super+0x23/0x70 drivers/mtd/mtdsuper.c:176 jffs2_kill_sb+0x96/0xb0 fs/jffs2/super.c:350 deactivate_locked_super+0xbe/0x110 fs/super.c:655 cleanup_mnt+0x204/0x2a0 fs/namespace.c:1414 task_work_run+0x1d9/0x260 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:70 [inline] exit_to_user_mode_loop+0x204/0x770 kernel/entry/common.c:101 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:343 [inline] do_syscall_64+0x336/0x540 arch/x86/entry/syscall_64.c:107 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888076367dc0 which belongs to the cache jffs2_inode_cache of size 48 The buggy address is located 40 bytes inside of freed 48-byte region [ffff888076367dc0, ffff888076367df0) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888076367500 pfn:0x76367 flags: 0xfff00000000200(workingset|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000200 ffff888020c7ea00 ffffea0001d8e890 ffff888020c71f48 raw: ffff888076367500 0000000200400012 00000000f5000000 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 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5869, tgid 5868 (syz.0.25), ts 78791475812 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871 prep_new_page+0x22/0xb0 mm/page_alloc.c:1879 get_page_from_freelist+0x24ef/0x2530 mm/page_alloc.c:4009 __alloc_frozen_pages_noprof+0x211/0x450 mm/page_alloc.c:5555 alloc_slab_page mm/slub.c:3423 [inline] allocate_slab+0x7d/0x5e0 mm/slub.c:3538 new_slab mm/slub.c:3589 [inline] refill_objects+0x2d5/0x350 mm/slub.c:7578 refill_sheaf mm/slub.c:2953 [inline] __pcs_replace_empty_main+0x2c8/0x6c0 mm/slub.c:4849 alloc_from_pcs mm/slub.c:4925 [inline] slab_alloc_node mm/slub.c:5059 [inline] kmem_cache_alloc_noprof+0x398/0x600 mm/slub.c:5085 jffs2_do_new_inode+0x27/0x510 fs/jffs2/write.c:28 jffs2_new_inode+0x45c/0xd20 fs/jffs2/fs.c:466 jffs2_create+0x87/0x320 fs/jffs2/dir.c:182 vfs_create_no_perm fs/namei.c:4228 [inline] lookup_open+0xc73/0x16e0 fs/namei.c:4683 open_last_lookups fs/namei.c:4884 [inline] path_openat+0x7a5/0x20e0 fs/namei.c:5123 do_file_open+0x23e/0x4a0 fs/namei.c:5155 do_sys_openat2+0x115/0x200 fs/open.c:1496 do_sys_open fs/open.c:1502 [inline] __do_sys_openat fs/open.c:1518 [inline] __se_sys_openat fs/open.c:1513 [inline] __x64_sys_openat+0x138/0x170 fs/open.c:1513 page last free pid 5868 tgid 5868 ts 78780282170 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1413 [inline] __free_frozen_pages+0xd1a/0xe10 mm/page_alloc.c:2969 __slab_free+0x269/0x2c0 mm/slub.c:5964 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:364 kasan_slab_alloc include/linux/kasan.h:257 [inline] slab_post_alloc_hook mm/slub.c:4757 [inline] slab_alloc_node mm/slub.c:5071 [inline] kmem_cache_alloc_noprof+0x2b4/0x600 mm/slub.c:5085 alloc_filename fs/namei.c:147 [inline] do_getname+0x2e/0x250 fs/namei.c:187 getname_flags fs/namei.c:230 [inline] getname include/linux/fs.h:2574 [inline] class_filename_constructor include/linux/fs.h:2601 [inline] __do_sys_symlinkat fs/namei.c:5945 [inline] __se_sys_symlinkat+0x2e/0x2b0 fs/namei.c:5942 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff888076367c80: fa fb fb fb fb fb fc fc fa fb fb fb fb fb fc fc ffff888076367d00: fa fb fb fb fb fb fc fc fa fb fb fb fb fb fc fc >ffff888076367d80: fa fb fb fb fb fb fc fc fa fb fb fb fb fb fc fc ^ ffff888076367e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888076367e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================