MINIX-fs: mounting unchecked file system, running fsck is recommended Process accounting resumed ================================================================== BUG: KASAN: use-after-free in add_chain fs/minix/itree_common.c:14 [inline] BUG: KASAN: use-after-free in get_branch fs/minix/itree_common.c:52 [inline] BUG: KASAN: use-after-free in get_block+0x69a/0x1600 fs/minix/itree_common.c:160 Read of size 2 at addr ffff888091744644 by task syz-executor361/7018 CPU: 1 PID: 7018 Comm: syz-executor361 Not tainted 5.7.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1e9/0x30e lib/dump_stack.c:118 print_address_description+0x74/0x5c0 mm/kasan/report.c:382 __kasan_report+0x103/0x1a0 mm/kasan/report.c:511 kasan_report+0x4d/0x80 mm/kasan/common.c:625 Allocated by task 4109: save_stack mm/kasan/common.c:49 [inline] set_track mm/kasan/common.c:57 [inline] __kasan_kmalloc+0x114/0x160 mm/kasan/common.c:495 slab_post_alloc_hook mm/slab.h:586 [inline] slab_alloc mm/slab.c:3320 [inline] kmem_cache_alloc+0x1f5/0x2d0 mm/slab.c:3484 getname_flags+0xb8/0x610 fs/namei.c:138 user_path_at_empty+0x28/0x50 fs/namei.c:2632 user_path_at include/linux/namei.h:59 [inline] do_faccessat+0x2ca/0x780 fs/open.c:398 do_syscall_64+0xf3/0x1b0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 Freed by task 4109: save_stack mm/kasan/common.c:49 [inline] set_track mm/kasan/common.c:57 [inline] kasan_set_free_info mm/kasan/common.c:317 [inline] __kasan_slab_free+0x125/0x190 mm/kasan/common.c:456 __cache_free mm/slab.c:3426 [inline] kmem_cache_free+0x7e/0xf0 mm/slab.c:3694 putname fs/namei.c:259 [inline] filename_lookup+0x410/0x5d0 fs/namei.c:2362 user_path_at include/linux/namei.h:59 [inline] do_faccessat+0x2ca/0x780 fs/open.c:398 do_syscall_64+0xf3/0x1b0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 The buggy address belongs to the object at ffff888091744200 which belongs to the cache names_cache of size 4096 The buggy address is located 1092 bytes inside of 4096-byte region [ffff888091744200, ffff888091745200) The buggy address belongs to the page: page:ffffea000245d100 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 head:ffffea000245d100 order:1 compound_mapcount:0 flags: 0xfffe0000010200(slab|head) raw: 00fffe0000010200 ffffea00024e3b08 ffffea0002457588 ffff8880aa600c40 raw: 0000000000000000 ffff888091744200 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888091744500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888091744580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888091744600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888091744680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888091744700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================