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:00007f8488fb4028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f8488435fa0 RCX: 00007f84881a9b59 RDX: 0000000000000042 RSI: 00002000000006c0 RDI: ffffffffffffff9c RBP: 00007f8488fb4090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000100 R11: 0000000000000246 R12: 0000000000000002 R13: 00007f8488436038 R14: 00007f8488435fa0 R15: 00007ffe83c28248 ================================================================== BUG: KASAN: slab-use-after-free in jffs2_xattr_delete_inode+0x2c8/0x2d0 fs/jffs2/xattr.c:602 Read of size 4 at addr ffff88806809ac68 by task syz.7.1285/10640 CPU: 1 UID: 0 PID: 10640 Comm: syz.7.1285 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:0x00007f84881a9b59 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:00007f8488fb4028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f8488435fa0 RCX: 00007f84881a9b59 RDX: 0000000000000042 RSI: 00002000000006c0 RDI: ffffffffffffff9c RBP: 00007f8488fb4090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000100 R11: 0000000000000246 R12: 0000000000000002 R13: 00007f8488436038 R14: 00007f8488435fa0 R15: 00007ffe83c28248 Allocated by task 9174: 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_scan_make_ino_cache+0x89/0x1d0 fs/jffs2/scan.c:978 jffs2_sum_process_sum_data fs/jffs2/summary.c:418 [inline] jffs2_sum_scan_sumnode+0x498/0x2870 fs/jffs2/summary.c:640 jffs2_scan_eraseblock fs/jffs2/scan.c:546 [inline] jffs2_scan_medium+0x882/0x7240 fs/jffs2/scan.c:151 jffs2_build_filesystem fs/jffs2/build.c:112 [inline] jffs2_do_mount_fs+0x775/0x22b0 fs/jffs2/build.c:416 jffs2_do_fill_super+0x555/0xc60 fs/jffs2/fs.c:574 mtd_get_sb+0x195/0x420 drivers/mtd/mtdsuper.c:59 get_tree_mtd+0x597/0x7d0 drivers/mtd/mtdsuper.c:143 vfs_get_tree+0x92/0x2a0 fs/super.c:2168 fc_mount fs/namespace.c:1300 [inline] do_new_mount_fc fs/namespace.c:4042 [inline] do_new_mount+0x325/0xb00 fs/namespace.c:4118 do_mount fs/namespace.c:4482 [inline] __do_sys_mount fs/namespace.c:4700 [inline] __se_sys_mount+0x31d/0x420 fs/namespace.c:4677 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 6573: 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 ffff88806809ac40 which belongs to the cache jffs2_inode_cache of size 48 The buggy address is located 40 bytes inside of freed 48-byte region [ffff88806809ac40, ffff88806809ac70) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88806809a940 pfn:0x6809a flags: 0xfff00000000200(workingset|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000200 ffff888020b798c0 ffffea000164e890 ffff8880209ccf48 raw: ffff88806809a940 0000000200400000 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 6857, tgid 6856 (syz.3.261), ts 167434862721 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_mkdir+0x189/0xec0 fs/jffs2/dir.c:483 vfs_mkdir_no_perm+0x1a9/0x3b0 fs/namei.c:4254 vfs_mkdir+0x2b3/0x2f0 fs/namei.c:5522 filename_mkdirat+0x284/0x550 fs/namei.c:5551 __do_sys_mkdirat fs/namei.c:5572 [inline] __se_sys_mkdirat+0x35/0x150 fs/namei.c:5569 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89 page last free pid 5646 tgid 5646 ts 167196772008 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 __tlb_remove_table_free mm/mmu_gather.c:236 [inline] tlb_remove_table_rcu+0x85/0x100 mm/mmu_gather.c:297 rcu_do_batch kernel/rcu/tree.c:2651 [inline] rcu_core+0x92e/0x1230 kernel/rcu/tree.c:2920 handle_softirqs+0x265/0x8d0 kernel/softirq.c:669 __do_softirq kernel/softirq.c:703 [inline] invoke_softirq kernel/softirq.c:542 [inline] __irq_exit_rcu+0xce/0x250 kernel/softirq.c:794 irq_exit_rcu+0x9/0x30 kernel/softirq.c:817 instr_sysvec_irq_work arch/x86/kernel/irq_work.c:17 [inline] sysvec_irq_work+0xa3/0xc0 arch/x86/kernel/irq_work.c:17 asm_sysvec_irq_work+0x1a/0x20 arch/x86/include/asm/idtentry.h:710 Memory state around the buggy address: ffff88806809ab00: fa fb fb fb fb fb fc fc fa fb fb fb fb fb fc fc ffff88806809ab80: fa fb fb fb fb fb fc fc fa fb fb fb fb fb fc fc >ffff88806809ac00: fa fb fb fb fb fb fc fc fa fb fb fb fb fb fc fc ^ ffff88806809ac80: fa fb fb fb fb fb fc fc fa fb fb fb fb fb fc fc ffff88806809ad00: fa fb fb fb fb fb fc fc fa fb fb fb fb fb fc fc ================================================================== ---------------- Code disassembly (best guess): 0: ff c3 inc %ebx 2: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1) 9: 00 00 00 c: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 11: 48 89 f8 mov %rdi,%rax 14: 48 89 f7 mov %rsi,%rdi 17: 48 89 d6 mov %rdx,%rsi 1a: 48 89 ca mov %rcx,%rdx 1d: 4d 89 c2 mov %r8,%r10 20: 4d 89 c8 mov %r9,%r8 23: 4c 8b 4c 24 08 mov 0x8(%rsp),%r9 28: 0f 05 syscall * 2a: 48 3d 01 f0 ff ff cmp $0xfffffffffffff001,%rax <-- trapping instruction 30: 73 01 jae 0x33 32: c3 ret 33: 48 c7 c1 e8 ff ff ff mov $0xffffffffffffffe8,%rcx 3a: f7 d8 neg %eax 3c: 64 89 01 mov %eax,%fs:(%rcx) 3f: 48 rex.W