ci2 starts bisection 2024-04-18 18:49:23.987281221 +0000 UTC m=+40887.476219810 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: 6d15158ad04729093664f8b9be6fb8992e0f57a7538047e91b2248162b5a9113 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: INFO: rcu detected stall in corrupted run #11: crashed: INFO: rcu detected stall in corrupted run #12: crashed: INFO: rcu detected stall in corrupted run #13: crashed: INFO: rcu detected stall in corrupted 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: OK representative crash: INFO: rcu detected stall in corrupted, types: [HANG KASAN] check whether we can drop unnecessary instrumentation disabling configs for [LOCKDEP ATOMIC_SLEEP 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: 18f8d7363623fddcad7f0fab2f7f6138a15fc193772d06c5c3412c47deaa6882 run #0: crashed: INFO: rcu detected stall in corrupted run #1: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space 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: 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: 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 bug reproduces without the instrumentation disabling configs for [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], 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 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: 2d949fd1522b8b81dedd3858275be8c61fcdf29b55c12c6443326e390956b42a 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: 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: INFO: rcu detected stall in corrupted, types: [HANG KASAN] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP 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: df96fd282d1822228ac80c54f6b3d0d82c84598a2f33ce45833157c7ee529c8e run #0: crashed: INFO: rcu detected stall in corrupted run #1: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space 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: KASAN: out-of-bounds Read in ext4_ext_remove_space run #8: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space run #9: crashed: KASAN: out-of-bounds Read in ext4_ext_remove_space representative crash: INFO: rcu detected stall in corrupted, types: [HANG KASAN] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], 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: 0ffecd3435a5ccea85ff5b6359e8d741a06fd7d55c77dd111562800e5700c91e 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 4/5 disabling configs for [BUG LOCKDEP ATOMIC_SLEEP 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: 53a1be9beb69fdebac0d28caf8d1c5910e0837bb60ef4a6f9bfa5d19dc05aff5 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 [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], 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: 1925c6ed6fdf2bc2d78354cde8a631cc449f624e968f582a2b717cdbbec71cac 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 [LOCKDEP ATOMIC_SLEEP LEAK UBSAN BUG], they are not needed testing current HEAD 6741e066ec7633450d3186946035c1f80c4226b8 testing commit 6741e066ec7633450d3186946035c1f80c4226b8 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: cd4021198e8d2499f9ddcb1102ed2c6d05ace8c0ac3d83aa4de6d4a187938de2 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: 3h43m21.431365567s (build: 1h51m23.248171161s, test: 1h49m24.063033344s) crash still not fixed or there were kernel test errors commit msg: Linux 6.1.87 crash: KASAN: out-of-bounds Read in ext4_ext_remove_space EXT4-fs (loop3): Remounting filesystem read-only EXT4-fs error (device loop3) 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 ffff8881262a9054 by task syz-executor.3/7918 CPU: 0 PID: 7918 Comm: syz-executor.3 Not tainted 6.1.87-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/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:0x7ff6ae093ce9 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:00007ff6adbf50c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007ff6ae1b3050 RCX: 00007ff6ae093ce9 RDX: 0000000020000080 RSI: 000000004030582b RDI: 0000000000000004 RBP: 00007ff6ae0e047a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007ff6ae1b3050 R15: 00007ffdf48535e8 The buggy address belongs to the physical page: page:ffffea000498aa40 refcount:2 mapcount:0 mapping:ffff888100451d70 index:0x11 pfn:0x1262a9 memcg:ffff88810834a000 aops:def_blk_aops ino:700003 flags: 0x200000000002036(referenced|uptodate|lru|active|private|node=0|zone=2) raw: 0200000000002036 ffffea0004a56b88 ffffea0004a16c88 ffff888100451d70 raw: 0000000000000011 ffff88812a0452b8 00000002ffffffff ffff88810834a000 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 7907, tgid 7906 (syz-executor.3), ts 171464388805, free_ts 170922042039 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] shmem_undo_range+0x66b/0x1b00 mm/shmem.c:946 shmem_truncate_range mm/shmem.c:1062 [inline] shmem_evict_inode+0x354/0x860 mm/shmem.c:1171 evict+0x263/0x630 fs/inode.c:666 __dentry_kill+0x380/0x5d0 fs/dcache.c:607 dentry_kill+0xbb/0x1e0 dput+0x154/0x2d0 fs/dcache.c:914 __fput+0x4bd/0x700 fs/file_table.c:328 task_work_run+0x206/0x280 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xa9/0xc0 kernel/entry/common.c:177 exit_to_user_mode_prepare+0x64/0xb0 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x27/0x1b0 kernel/entry/common.c:303 do_syscall_64+0x47/0x80 arch/x86/entry/common.c:87 Memory state around the buggy address: ffff8881262a8f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881262a8f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8881262a9000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff8881262a9080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881262a9100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================