ci2 starts bisection 2024-03-16 04:47:04.721156614 +0000 UTC m=+108962.844305033 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: 480c7206e3ac5f02f3bb4ceb2bbb8eff1f48017c4dc0c35028b9c51fcf25557d run #0: crashed: INFO: rcu detected stall in corrupted run #1: crashed: INFO: rcu detected stall in corrupted run #2: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #3: crashed: INFO: rcu detected stall in corrupted run #4: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #5: crashed: INFO: rcu detected stall in corrupted run #6: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space 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 [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: 4a97f75c34a44c33f4ec10f62d402b31043ef992dde6a5e66c7f085f322bc9aa 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: 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: KASAN: out-of-bounds Read in ext4_ext_remove_space, types: [KASAN UNKNOWN] the bug reproduces without the instrumentation disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], 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 [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: 8bd8fa8fae1dac2cd20607922681f3cfcf1008a67ef8f8fa7a2cdf9aab0c1336 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: no output from test machine run #7: OK 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 [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: 73279d73d3a210fbd0a3d26eff94b0ff8a895c96d05b2ece4195a54d95fed89c 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: 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 [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: e514484a989e26543cb609f1905de997a4b818ea09738dcc2b5283be529ab4c2 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] the chunk can be dropped testing without sub-chunk 4/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: 323deda0255ec9bdb852ecdfd9a54c8bd543e7e760ad3e4ac18af7af17de3557 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: 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: 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 [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: 302c50e99fed21603d64c60c99ac83880c7b1b55ef2086499a017ddc22b4a914 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] the chunk can be dropped disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing current HEAD d7543167affd372819a94879b8b1e8b9b12547d9 testing commit d7543167affd372819a94879b8b1e8b9b12547d9 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: aa69ee00162400b0da20ab343143a775f738627395e664dad1b973c4ca94a532 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: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space 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: 2h8m8.84051896s (build: 32m31.344875473s, test: 1h32m51.845216697s) crash still not fixed or there were kernel test errors commit msg: Linux 6.1.82 crash: KASAN: out-of-bounds Read in ext4_ext_remove_space ================================================================== 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 ffff888129586054 by task syz-executor.2/6353 CPU: 0 PID: 6353 Comm: syz-executor.2 Not tainted 6.1.82-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/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+0x3d/0x80 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f62f95b9ce9 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:00007f62f90fa0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f62f96d9120 RCX: 00007f62f95b9ce9 RDX: 0000000020000080 RSI: 000000004030582b RDI: 0000000000000004 RBP: 00007f62f960647a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f62f96d9120 R15: 00007ffe787ea1a8 The buggy address belongs to the physical page: page:ffffea0004a56180 refcount:2 mapcount:0 mapping:ffff888111d787f0 index:0x11 pfn:0x129586 memcg:ffff88811bc82000 aops:def_blk_aops ino:700002 flags: 0x200000000002036(referenced|uptodate|lru|active|private|node=0|zone=2) raw: 0200000000002036 ffffea00045b1008 ffff8881148de030 ffff888111d787f0 raw: 0000000000000011 ffff88812721eae0 00000002ffffffff ffff88811bc82000 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 6345, tgid 6343 (syz-executor.2), ts 139709506381, free_ts 139668548968 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:5545 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+0x3d/0x80 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x63/0xcd Memory state around the buggy address: ffff888129585f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888129585f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888129586000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888129586080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888129586100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================