ci2 starts bisection 2023-02-01 21:23:28.722784737 +0000 UTC m=+40547.476068348 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 13.0.1-6~deb11u1, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 3ab0fe87106e2a4c2a583bb3cf0e3e10717900efb46b2eab4261e669248bc427 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: use-after-free 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: slab-out-of-bounds Read in ext4_find_extent run #14: crashed: KASAN: use-after-free 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 52cea9ba914f9b973231b156fe10ab48bb87068b testing commit 52cea9ba914f9b973231b156fe10ab48bb87068b gcc compiler: Debian clang version 13.0.1-6~deb11u1, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: a11720f2e2d62c48b131a132539997166c6ba0ff17c980322db1ef515e029405 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: 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: use-after-free Read in ext4_find_extent run #7: crashed: KASAN: slab-out-of-bounds 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: 28m24.746229867s (build: 20m36.386323371s, test: 5m40.555118633s) the crash still happens on HEAD commit msg: Merge "Merge 5.15.89 into android13-5.15-lts" into android13-5.15-lts crash: KASAN: slab-out-of-bounds Read in ext4_find_extent loop0: detected capacity change from 0 to 2048 EXT4-fs (loop0): mounted filesystem without journal. Opts: ,errors=continue. Quota mode: none. ================================================================== 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+0x7af/0xd10 fs/ext4/extents.c:924 Read of size 4 at addr ffff8881091f5eb0 by task syz-executor.0/386 CPU: 0 PID: 386 Comm: syz-executor.0 Not tainted 5.15.89-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/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/0x3d0 mm/kasan/report.c:256 __kasan_report mm/kasan/report.c:435 [inline] kasan_report+0x1a6/0x1f0 mm/kasan/report.c:452 __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+0x7af/0xd10 fs/ext4/extents.c:924 ext4_clu_mapped+0xd5/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+0x86e/0x1070 fs/ext4/inode.c:1864 ext4_block_write_begin+0x38d/0xd00 fs/ext4/inode.c:1088 ext4_da_write_begin+0x4a9/0x920 fs/ext4/inode.c:3021 generic_perform_write+0x2b9/0x4f0 mm/filemap.c:3830 ext4_buffered_write_iter+0x3f9/0x540 fs/ext4/file.c:271 ext4_file_write_iter+0x448/0x18a0 call_write_iter include/linux/fs.h:2157 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0x726/0xd20 fs/read_write.c:594 ksys_write+0x15b/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+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f8aeefaf0a9 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:00007f8aeeb22168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f8aef0cef80 RCX: 00007f8aeefaf0a9 RDX: 00000000175d9003 RSI: 0000000020000200 RDI: 0000000000000004 RBP: 00007f8aef00aae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe97f9baef R14: 00007f8aeeb22300 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+0xb2/0xe0 mm/kasan/common.c:466 kasan_slab_alloc include/linux/kasan.h:217 [inline] slab_post_alloc_hook mm/slab.h:550 [inline] slab_alloc_node mm/slub.c:3238 [inline] slab_alloc mm/slub.c:3246 [inline] kmem_cache_alloc+0x189/0x2f0 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 debugfs_get_inode fs/debugfs/inode.c:72 [inline] __debugfs_create_file+0x108/0x490 fs/debugfs/inode.c:407 debugfs_create_file+0x21/0x30 fs/debugfs/inode.c:459 debugfs_create_files block/blk-mq-debugfs.c:821 [inline] blk_mq_debugfs_register_ctx block/blk-mq-debugfs.c:872 [inline] blk_mq_debugfs_register_hctx+0x5ec/0x710 block/blk-mq-debugfs.c:891 blk_mq_debugfs_register+0x29e/0x780 block/blk-mq-debugfs.c:843 blk_register_queue+0x1db/0x320 block/blk-sysfs.c:876 device_add_disk+0x420/0xa50 block/genhd.c:488 add_disk include/linux/genhd.h:221 [inline] loop_add+0x595/0x850 drivers/block/loop.c:2407 loop_init+0xed/0x179 drivers/block/loop.c:2591 do_one_initcall+0x179/0x4e0 init/main.c:1306 do_initcall_level+0x14a/0x24e init/main.c:1379 do_initcalls+0x4b/0x7e init/main.c:1395 do_basic_setup+0x68/0x71 init/main.c:1414 kernel_init_freeable+0x286/0x399 init/main.c:1619 kernel_init+0x18/0x1a0 init/main.c:1510 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 The buggy address belongs to the object at ffff8881091f5b80 which belongs to the cache inode_cache of size 752 The buggy address is located 64 bytes to the right of 752-byte region [ffff8881091f5b80, ffff8881091f5e70) The buggy address belongs to the page: page:ffffea0004247d00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1091f4 head:ffffea0004247d00 order:2 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 0000000000000000 dead000000000122 ffff8881001b7200 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 1795198723, free_ts 0 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1ab/0x1b0 mm/page_alloc.c:2502 prep_new_page mm/page_alloc.c:2508 [inline] get_page_from_freelist+0x3e5/0x460 mm/page_alloc.c:4291 __alloc_pages+0x3a8/0x7c0 mm/page_alloc.c:5569 allocate_slab+0x62/0x580 mm/slub.c:1930 new_slab mm/slub.c:1993 [inline] ___slab_alloc+0x2e2/0x6f0 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+0x205/0x2f0 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 debugfs_get_inode fs/debugfs/inode.c:72 [inline] debugfs_create_dir+0xd4/0x4d0 fs/debugfs/inode.c:568 blk_mq_debugfs_register_ctx block/blk-mq-debugfs.c:870 [inline] blk_mq_debugfs_register_hctx+0x4dc/0x710 block/blk-mq-debugfs.c:891 blk_mq_debugfs_register+0x29e/0x780 block/blk-mq-debugfs.c:843 blk_register_queue+0x1db/0x320 block/blk-sysfs.c:876 device_add_disk+0x420/0xa50 block/genhd.c:488 add_disk include/linux/genhd.h:221 [inline] loop_add+0x595/0x850 drivers/block/loop.c:2407 loop_init+0xed/0x179 drivers/block/loop.c:2591 page_owner free stack trace missing Memory state around the buggy address: ffff8881091f5d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881091f5e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc >ffff8881091f5e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc 00 00 ^ ffff8881091f5f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881091f5f80: 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)