ci2 starts bisection 2024-05-23 07:37:07.40740568 +0000 UTC m=+101.662106402 bisecting fixing commit since a507f147e6f06e86b7649b46bc1d3caa34b196d6 building syzkaller on fb427a0782000106c62de76d251e5a02de5406a9 ensuring issue is reproducible on original commit a507f147e6f06e86b7649b46bc1d3caa34b196d6 testing commit a507f147e6f06e86b7649b46bc1d3caa34b196d6 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 78646678dfeecb3e5d7259a62842d7d9f2eb3cdd13b4d826efb0afbd6271c157 run #0: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #1: crashed: INFO: rcu detected stall in corrupted run #2: crashed: INFO: rcu detected stall in corrupted run #3: crashed: INFO: rcu detected stall in corrupted run #4: crashed: INFO: rcu detected stall in corrupted run #5: crashed: INFO: rcu detected stall in corrupted run #6: crashed: INFO: rcu detected stall in corrupted run #7: crashed: INFO: rcu detected stall in corrupted run #8: crashed: INFO: rcu detected stall in corrupted run #9: crashed: INFO: rcu detected stall in corrupted run #10: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #11: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #12: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #13: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #14: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #15: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #16: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #17: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #18: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #19: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space representative crash: KASAN: out-of-bounds Read in ext4_ext_remove_space, types: [KASAN] check whether we can drop unnecessary instrumentation disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit a507f147e6f06e86b7649b46bc1d3caa34b196d6 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: f1c526794a0b517a37b73fda8e8f615ac74efb0a54da8a9c6695744e6d215298 run #0: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #1: crashed: no output from test machine run #2: crashed: no output from test machine run #3: crashed: no output from test machine run #4: crashed: no output from test machine run #5: crashed: no output from test machine run #6: crashed: no output from test machine run #7: crashed: no output from test machine run #8: crashed: no output from test machine run #9: crashed: no output from test machine representative crash: no output from test machine, types: [UNKNOWN] the bug reproduces without the instrumentation disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed kconfig minimization: base=3820 full=7526 leaves diff=1994 split chunks (needed=false): <1994> split chunk #0 of len 1994 into 5 parts testing without sub-chunk 1/5 disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit a507f147e6f06e86b7649b46bc1d3caa34b196d6 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e80fc7176aa8a6980808e62b0d701258f8fe5ee8da87474a589dccf99cb161bc run #0: crashed: no output from test machine run #1: crashed: no output from test machine run #2: crashed: no output from test machine run #3: crashed: no output from test machine run #4: crashed: no output from test machine run #5: crashed: no output from test machine run #6: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #7: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #8: OK run #9: OK representative crash: no output from test machine, types: [UNKNOWN] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit a507f147e6f06e86b7649b46bc1d3caa34b196d6 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 5d093303f526034e1d0628e382e226677ecadcdc13d9d489feb2fed41b947fd9 run #0: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #1: crashed: no output from test machine run #2: crashed: no output from test machine run #3: crashed: no output from test machine run #4: crashed: no output from test machine run #5: crashed: no output from test machine run #6: crashed: no output from test machine run #7: crashed: no output from test machine run #8: OK run #9: OK representative crash: no output from test machine, types: [UNKNOWN] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], they are not needed testing commit a507f147e6f06e86b7649b46bc1d3caa34b196d6 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 3cac18f688637d8518abffc3ad45177bb9dcb78419450bfec6a19e8197844402 run #0: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #1: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #2: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #3: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #4: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #5: OK run #6: OK run #7: OK run #8: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #9: OK representative crash: KASAN: out-of-bounds Read in ext4_ext_remove_space, types: [KASAN] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing commit a507f147e6f06e86b7649b46bc1d3caa34b196d6 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: ec54385b2b3ef04e80eb1eb1fce0841cd19ea098e7f13f0a5c92a6d20acb4064 run #0: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #1: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #2: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #3: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #4: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #5: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #6: OK run #7: OK run #8: OK run #9: OK representative crash: KASAN: out-of-bounds Read in ext4_ext_remove_space, types: [KASAN] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit a507f147e6f06e86b7649b46bc1d3caa34b196d6 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: ced4806e933e081fd06275caaac636cba5febb8b9475fa589f85040c7c8e1335 run #0: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #1: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #2: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #3: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #4: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #5: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #6: OK run #7: OK run #8: OK run #9: OK representative crash: KASAN: out-of-bounds Read in ext4_ext_remove_space, types: [KASAN] the chunk can be dropped disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing current HEAD 4078fa637fcd80c8487680ec2e4ef7c58308e9aa testing commit 4078fa637fcd80c8487680ec2e4ef7c58308e9aa gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: ae679f5d87e41191df4bee43d315199a959671c2e51455915419fb0206d1b2c8 run #0: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #1: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #2: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #3: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #4: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK representative crash: KASAN: out-of-bounds Read in ext4_ext_remove_space, types: [KASAN] crash still not fixed/happens on the oldest tested release revisions tested: 8, total time: 4h55m11.695443055s (build: 1h22m38.111995548s, test: 1h30m27.573947086s) crash still not fixed or there were kernel test errors commit msg: Linux 6.1.91 crash: KASAN: out-of-bounds Read in ext4_ext_remove_space EXT4-fs error (device loop1) in ext4_mb_clear_bb:6171: Corrupt filesystem ================================================================== BUG: KASAN: out-of-bounds in ext4_ext_rm_leaf fs/ext4/extents.c:2713 [inline] BUG: KASAN: out-of-bounds in ext4_ext_remove_space+0x1ae6/0x49e0 fs/ext4/extents.c:2935 Read of size 18446744073709551544 at addr ffff88812a189054 by task syz-executor.1/5301 CPU: 1 PID: 5301 Comm: syz-executor.1 Not tainted 6.1.91-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xf4/0x251 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:284 [inline] print_report+0x15f/0x4f0 mm/kasan/report.c:395 kasan_report+0x136/0x160 mm/kasan/report.c:495 kasan_check_range+0x27f/0x290 mm/kasan/generic.c:189 memmove+0x25/0x60 mm/kasan/shadow.c:54 ext4_ext_rm_leaf fs/ext4/extents.c:2713 [inline] ext4_ext_remove_space+0x1ae6/0x49e0 fs/ext4/extents.c:2935 ext4_punch_hole+0x5bd/0x8e0 fs/ext4/inode.c:4127 ext4_fallocate+0x2b4/0x1790 fs/ext4/extents.c:4737 vfs_fallocate+0x30c/0x3d0 fs/open.c:323 do_vfs_ioctl+0x1ad6/0x2360 fs/ioctl.c:849 __do_sys_ioctl fs/ioctl.c:868 [inline] __se_sys_ioctl+0x4c/0xf0 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0x80 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f88b5f47ce9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f88b5aa90c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f88b6067050 RCX: 00007f88b5f47ce9 RDX: 0000000020000080 RSI: 000000004030582b RDI: 0000000000000004 RBP: 00007f88b5f9447a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f88b6067050 R15: 00007ffde0b6f5e8 The buggy address belongs to the physical page: page:ffffea0004a86240 refcount:2 mapcount:0 mapping:ffff888111d712b0 index:0x11 pfn:0x12a189 memcg:ffff88811cd86000 aops:def_blk_aops ino:700001 flags: 0x200000000002036(referenced|uptodate|lru|active|private|node=0|zone=2) raw: 0200000000002036 ffffea000409ee88 ffff8881062b6030 ffff888111d712b0 raw: 0000000000000011 ffff888120bacae0 00000002ffffffff ffff88811cd86000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Movable, gfp_mask 0x148c48(GFP_NOFS|__GFP_NOFAIL|__GFP_COMP|__GFP_HARDWALL|__GFP_MOVABLE), pid 5281, tgid 5280 (syz-executor.1), ts 112952794541, free_ts 112937468185 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x286/0x2b0 mm/page_alloc.c:2513 prep_new_page mm/page_alloc.c:2520 [inline] get_page_from_freelist+0x2ba7/0x2de0 mm/page_alloc.c:4279 __alloc_pages+0x251/0x640 mm/page_alloc.c:5547 filemap_alloc_folio+0xc2/0x390 mm/filemap.c:971 __filemap_get_folio+0x5fc/0x8a0 mm/filemap.c:1965 pagecache_get_page+0x10/0x160 mm/folio-compat.c:110 find_or_create_page include/linux/pagemap.h:646 [inline] grow_dev_page fs/buffer.c:946 [inline] grow_buffers fs/buffer.c:1011 [inline] __getblk_slow fs/buffer.c:1038 [inline] __getblk_gfp+0x1b5/0x810 fs/buffer.c:1333 sb_getblk_gfp include/linux/buffer_head.h:363 [inline] ext4_ext_grow_indepth fs/ext4/extents.c:1334 [inline] ext4_ext_create_new_leaf fs/ext4/extents.c:1435 [inline] ext4_ext_insert_extent+0xf97/0x54e0 fs/ext4/extents.c:2102 ext4_ext_map_blocks+0x1c1a/0x65c0 fs/ext4/extents.c:4337 ext4_map_blocks+0x82a/0x1810 fs/ext4/inode.c:651 _ext4_get_block+0x1d0/0x540 fs/ext4/inode.c:798 __block_write_begin_int+0x32a/0x1150 fs/buffer.c:1991 ext4_write_begin+0x578/0x10f0 ext4_da_write_begin+0x2a8/0x7f0 fs/ext4/inode.c:2988 generic_perform_write+0x2f1/0x530 mm/filemap.c:3817 ext4_buffered_write_iter+0x2dd/0x530 fs/ext4/file.c:285 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1440 [inline] free_pcp_prepare mm/page_alloc.c:1490 [inline] free_unref_page_prepare+0xca9/0xd80 mm/page_alloc.c:3358 free_unref_page_list+0xaa/0x690 mm/page_alloc.c:3499 release_pages+0x1763/0x1900 mm/swap.c:1055 __pagevec_release+0x62/0xd0 mm/swap.c:1075 pagevec_release include/linux/pagevec.h:71 [inline] folio_batch_release include/linux/pagevec.h:135 [inline] truncate_inode_pages_range+0x351/0xbf0 mm/truncate.c:372 ext4_punch_hole+0x374/0x8e0 fs/ext4/inode.c:4089 ext4_fallocate+0x2b4/0x1790 fs/ext4/extents.c:4737 vfs_fallocate+0x30c/0x3d0 fs/open.c:323 do_vfs_ioctl+0x1ad6/0x2360 fs/ioctl.c:849 __do_sys_ioctl fs/ioctl.c:868 [inline] __se_sys_ioctl+0x4c/0xf0 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0x80 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Memory state around the buggy address: ffff88812a188f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88812a188f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88812a189000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88812a189080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88812a189100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================