================================================================== BUG: KASAN: use-after-free in dtInsertEntry.isra.0+0x12df/0x15d0 fs/jfs/jfs_dtree.c:3977 Read of size 1 at addr ffff88802e649c88 by task syz-executor.4/2753 CPU: 1 PID: 2753 Comm: syz-executor.4 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1b9 mm/kasan/report.c:354 kasan_report mm/kasan/report.c:412 [inline] __asan_report_load1_noabort+0x88/0x90 mm/kasan/report.c:430 dtInsertEntry.isra.0+0x12df/0x15d0 fs/jfs/jfs_dtree.c:3977 dtInsert+0x4c2/0xa00 fs/jfs/jfs_dtree.c:899 jfs_create.part.0+0x3c6/0x880 fs/jfs/namei.c:150 jfs_create+0x3f/0x60 fs/jfs/namei.c:90 lookup_open+0x893/0x1a20 fs/namei.c:3235 do_last fs/namei.c:3327 [inline] path_openat+0x1094/0x2df0 fs/namei.c:3537 do_filp_open+0x18c/0x3f0 fs/namei.c:3567 do_sys_open+0x3b3/0x520 fs/open.c:1085 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fc57d04f639 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc57b5c2168 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fc57d16ff80 RCX: 00007fc57d04f639 RDX: 000000000000275a RSI: 0000000020000040 RDI: ffffffffffffff9c RBP: 00007fc57d0aaa41 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc78d3a72f R14: 00007fc57b5c2300 R15: 0000000000022000 Allocated by task 2569: kmem_cache_alloc+0x122/0x370 mm/slab.c:3559 ext4_alloc_inode+0x1a/0x630 fs/ext4/super.c:1079 alloc_inode+0x5d/0x180 fs/inode.c:211 new_inode_pseudo fs/inode.c:911 [inline] new_inode+0x1d/0xf0 fs/inode.c:940 __ext4_new_inode+0x400/0x5a20 fs/ext4/ialloc.c:831 ext4_create+0x29e/0x5f0 fs/ext4/namei.c:2517 lookup_open+0x893/0x1a20 fs/namei.c:3235 do_last fs/namei.c:3327 [inline] path_openat+0x1094/0x2df0 fs/namei.c:3537 do_filp_open+0x18c/0x3f0 fs/namei.c:3567 do_sys_open+0x3b3/0x520 fs/open.c:1085 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 18: __cache_free mm/slab.c:3503 [inline] kmem_cache_free+0x7f/0x260 mm/slab.c:3765 __rcu_reclaim kernel/rcu/rcu.h:236 [inline] rcu_do_batch kernel/rcu/tree.c:2584 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2897 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2864 [inline] rcu_process_callbacks+0x8ff/0x18b0 kernel/rcu/tree.c:2881 __do_softirq+0x265/0x980 kernel/softirq.c:292 The buggy address belongs to the object at ffff88802e649700 which belongs to the cache ext4_inode_cache of size 1968 The buggy address is located 1416 bytes inside of 1968-byte region [ffff88802e649700, ffff88802e649eb0) The buggy address belongs to the page: page:ffffea0000b99240 count:1 mapcount:0 mapping:ffff8880b1324240 index:0xffff88802e649fff flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffffea0000b993c8 ffffea0000b99208 ffff8880b1324240 raw: ffff88802e649fff ffff88802e649700 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88802e649b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88802e649c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88802e649c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88802e649d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88802e649d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================