ci2 starts bisection 2023-03-04 00:48:41.98778992 +0000 UTC m=+189536.926479261 bisecting fixing commit since c73b4619ad86a2a29fc998e950e98bcdfa2f6d8f building syzkaller on 9da18ae8fa827d046ef8da48cc23c97418553c23 ensuring issue is reproducible on original commit c73b4619ad86a2a29fc998e950e98bcdfa2f6d8f testing commit c73b4619ad86a2a29fc998e950e98bcdfa2f6d8f gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 42b31ee0b1fdbd8766a42f75c1d2c4396b25218420a5428189e665501adfb10c run #0: crashed: KASAN: use-after-free Read in ext4_find_extent run #1: crashed: KASAN: use-after-free Read in ext4_find_extent run #2: crashed: KASAN: use-after-free Read in ext4_find_extent run #3: crashed: KASAN: use-after-free Read in ext4_find_extent run #4: crashed: KASAN: slab-out-of-bounds Read in ext4_find_extent run #5: crashed: KASAN: use-after-free Read in ext4_find_extent run #6: crashed: KASAN: use-after-free Read in ext4_find_extent run #7: crashed: KASAN: use-after-free Read in ext4_find_extent run #8: crashed: KASAN: use-after-free Read in ext4_find_extent run #9: crashed: KASAN: use-after-free Read in ext4_find_extent run #10: crashed: KASAN: use-after-free Read in ext4_find_extent run #11: crashed: KASAN: use-after-free Read in ext4_find_extent run #12: crashed: KASAN: use-after-free Read in ext4_find_extent run #13: crashed: KASAN: use-after-free Read in ext4_find_extent run #14: crashed: KASAN: slab-out-of-bounds Read in ext4_find_extent run #15: crashed: KASAN: use-after-free Read in ext4_find_extent run #16: crashed: KASAN: use-after-free Read in ext4_find_extent run #17: crashed: KASAN: use-after-free Read in ext4_find_extent run #18: crashed: KASAN: use-after-free Read in ext4_find_extent run #19: crashed: KASAN: use-after-free Read in ext4_find_extent testing current HEAD 5448b2fda85f2d90de03f053226f721ba2f7e731 testing commit 5448b2fda85f2d90de03f053226f721ba2f7e731 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 32923ec63f1e03767f1dbc3b53409019a480089cc976c1ebe1d5a8bf6e3599a7 run #0: crashed: KASAN: slab-out-of-bounds Read in ext4_find_extent run #1: crashed: KASAN: use-after-free Read in ext4_find_extent run #2: crashed: KASAN: use-after-free Read in ext4_find_extent run #3: crashed: KASAN: use-after-free Read in ext4_find_extent run #4: crashed: KASAN: use-after-free Read in ext4_find_extent run #5: crashed: KASAN: slab-out-of-bounds Read in ext4_find_extent run #6: crashed: KASAN: slab-out-of-bounds Read in ext4_find_extent run #7: crashed: KASAN: use-after-free Read in ext4_find_extent run #8: crashed: KASAN: use-after-free Read in ext4_find_extent run #9: crashed: KASAN: slab-out-of-bounds Read in ext4_find_extent revisions tested: 2, total time: 17m42.283055048s (build: 9m31.436516833s, test: 5m34.872496822s) the crash still happens on HEAD commit msg: Merge 5.15.94 into android13-5.15-lts crash: KASAN: slab-out-of-bounds Read in ext4_find_extent ================================================================== BUG: KASAN: slab-out-of-bounds in ext4_ext_binsearch_idx fs/ext4/extents.c:759 [inline] BUG: KASAN: slab-out-of-bounds in ext4_find_extent+0x7b7/0xd10 fs/ext4/extents.c:924 Read of size 4 at addr ffff888109384340 by task syz-executor.0/388 CPU: 0 PID: 388 Comm: syz-executor.0 Not tainted 5.15.94-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x105/0x148 lib/dump_stack.c:106 print_address_description+0x87/0x3b0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:427 [inline] kasan_report+0x179/0x1c0 mm/kasan/report.c:444 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308 ext4_ext_binsearch_idx fs/ext4/extents.c:759 [inline] ext4_find_extent+0x7b7/0xd10 fs/ext4/extents.c:924 ext4_clu_mapped+0xd6/0x7a0 fs/ext4/extents.c:5822 ext4_insert_delayed_block fs/ext4/inode.c:1690 [inline] ext4_da_map_blocks fs/ext4/inode.c:1800 [inline] ext4_da_get_block_prep+0x8bd/0x1150 fs/ext4/inode.c:1864 ext4_block_write_begin+0x36f/0xcd0 fs/ext4/inode.c:1088 ext4_da_write_begin+0x497/0x910 fs/ext4/inode.c:3021 generic_perform_write+0x2ad/0x4e0 mm/filemap.c:3830 ext4_buffered_write_iter+0x3fa/0x540 fs/ext4/file.c:271 ext4_file_write_iter+0x441/0x1890 call_write_iter include/linux/fs.h:2157 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0x713/0xd00 fs/read_write.c:594 ksys_write+0x15c/0x240 fs/read_write.c:647 __do_sys_write fs/read_write.c:659 [inline] __se_sys_write fs/read_write.c:656 [inline] __x64_sys_write+0x76/0x80 fs/read_write.c:656 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fd91a5880a9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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:00007fd91a0fb168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fd91a6a7f80 RCX: 00007fd91a5880a9 RDX: 00000000175d9003 RSI: 0000000020000200 RDI: 0000000000000004 RBP: 00007fd91a5e3ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd7959be6f R14: 00007fd91a0fb300 R15: 0000000000022000 Allocated by task 1: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:433 [inline] __kasan_slab_alloc+0xb1/0xe0 mm/kasan/common.c:466 kasan_slab_alloc include/linux/kasan.h:217 [inline] slab_post_alloc_hook+0x53/0x2c0 mm/slab.h:550 slab_alloc_node mm/slub.c:3238 [inline] slab_alloc mm/slub.c:3246 [inline] kmem_cache_alloc+0xf5/0x200 mm/slub.c:3251 alloc_inode fs/inode.c:238 [inline] new_inode_pseudo+0x6d/0x1d0 fs/inode.c:937 new_inode+0x1d/0x1a0 fs/inode.c:966 sel_make_inode security/selinux/selinuxfs.c:1255 [inline] sel_make_class_dir_entries security/selinux/selinuxfs.c:1922 [inline] sel_make_classes security/selinux/selinuxfs.c:1967 [inline] sel_make_policy_nodes+0xd80/0x1900 security/selinux/selinuxfs.c:572 sel_write_load+0x33b/0x4f0 security/selinux/selinuxfs.c:650 vfs_write+0x324/0xd00 fs/read_write.c:592 ksys_write+0x15c/0x240 fs/read_write.c:647 __do_sys_write fs/read_write.c:659 [inline] __se_sys_write fs/read_write.c:656 [inline] __x64_sys_write+0x76/0x80 fs/read_write.c:656 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb The buggy address belongs to the object at ffff888109384000 which belongs to the cache inode_cache of size 752 The buggy address is located 80 bytes to the right of 752-byte region [ffff888109384000, ffff8881093842f0) The buggy address belongs to the page: page:ffffea000424e100 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109384 head:ffffea000424e100 order:2 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 0000000000000000 dead000000000122 ffff8881001b6a80 raw: 0000000000000000 0000000000120012 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Reclaimable, gfp_mask 0xd20d0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_RECLAIMABLE), pid 1, ts 2632667220, free_ts 0 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1a3/0x1b0 mm/page_alloc.c:2502 prep_new_page mm/page_alloc.c:2508 [inline] get_page_from_freelist+0x2c14/0x2cf0 mm/page_alloc.c:4291 __alloc_pages+0x386/0x7b0 mm/page_alloc.c:5569 allocate_slab mm/slub.c:1930 [inline] new_slab+0x92/0x490 mm/slub.c:1993 ___slab_alloc+0x39e/0x830 mm/slub.c:3026 __slab_alloc+0x4a/0x90 mm/slub.c:3113 slab_alloc_node mm/slub.c:3204 [inline] slab_alloc mm/slub.c:3246 [inline] kmem_cache_alloc+0x134/0x200 mm/slub.c:3251 alloc_inode fs/inode.c:238 [inline] new_inode_pseudo+0x6d/0x1d0 fs/inode.c:937 new_inode+0x1d/0x1a0 fs/inode.c:966 sel_make_inode security/selinux/selinuxfs.c:1255 [inline] sel_make_perm_files security/selinux/selinuxfs.c:1889 [inline] sel_make_class_dir_entries security/selinux/selinuxfs.c:1936 [inline] sel_make_classes security/selinux/selinuxfs.c:1967 [inline] sel_make_policy_nodes+0x102e/0x1900 security/selinux/selinuxfs.c:572 sel_write_load+0x33b/0x4f0 security/selinux/selinuxfs.c:650 vfs_write+0x324/0xd00 fs/read_write.c:592 ksys_write+0x15c/0x240 fs/read_write.c:647 __do_sys_write fs/read_write.c:659 [inline] __se_sys_write fs/read_write.c:656 [inline] __x64_sys_write+0x76/0x80 fs/read_write.c:656 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb page_owner free stack trace missing Memory state around the buggy address: ffff888109384200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888109384280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc >ffff888109384300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc 00 00 ^ ffff888109384380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888109384400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== EXT4-fs error (device loop0): ext4_find_extent:929: inode #15: comm syz-executor.0: pblk 0 bad header/extent: invalid magic - magic 0, entries 0, max 0(0), depth 0(3)