ci2 starts bisection 2024-04-04 08:22:06.794731745 +0000 UTC m=+62212.631156138 bisecting fixing commit since d7dacaa439c7cd0f3e2130e90ac8f2b91370d3da building syzkaller on 39990d513277ce9372a4cc89bdac23d9fc30b056 ensuring issue is reproducible on original commit d7dacaa439c7cd0f3e2130e90ac8f2b91370d3da testing commit d7dacaa439c7cd0f3e2130e90ac8f2b91370d3da gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: a1a511fe2ed73da732af7a26134fe71c3edf652d820a2356ebe1c44d76dd96de all runs: 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 d7dacaa439c7cd0f3e2130e90ac8f2b91370d3da gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: a548d37ffa6abb1d28f7adbabb81629b2a27176076aa814df967edce633d98ae all runs: 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] the bug reproduces without the instrumentation disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed kconfig minimization: base=5179 full=6487 leaves diff=250 split chunks (needed=false): <250> split chunk #0 of len 250 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 d7dacaa439c7cd0f3e2130e90ac8f2b91370d3da gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 9ff0870b3f8c00194d49a6e82f31f586f3383058d54e85f14be5f0fc2e379f31 all runs: 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] 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 d7dacaa439c7cd0f3e2130e90ac8f2b91370d3da gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: c6c38ed3dfb76eeb28177519ee8d43e35c915750d3e0887bccbbe32045aeb801 all runs: 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] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit d7dacaa439c7cd0f3e2130e90ac8f2b91370d3da gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 336715cca5377b6ab0c6e37bbdc130e265454836aef244b168a24d1d10bc7c1a all runs: 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] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], they are not needed testing commit d7dacaa439c7cd0f3e2130e90ac8f2b91370d3da gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 454c903334faced6669809a52104aff092c00d071573f431f79ad98221418080 all runs: 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] 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 d7dacaa439c7cd0f3e2130e90ac8f2b91370d3da gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 failed building d7dacaa439c7cd0f3e2130e90ac8f2b91370d3da: net/socket.c:1225: undefined reference to `wext_handle_ioctl' net/socket.c:3420: undefined reference to `compat_wext_handle_ioctl' net/core/net-procfs.c:329: undefined reference to `wext_proc_init' net/core/net-procfs.c:345: undefined reference to `wext_proc_exit' minimized to 50 configs; suspects: [HID_ZEROPLUS USB_NET_CDC_MBIM USB_NET_CDC_SUBSET USB_NET_CDC_SUBSET_ENABLE USB_NET_DM9601 USB_NET_GL620A USB_NET_MCS7830 USB_NET_NET1080 USB_NET_PLUSB USB_NET_RNDIS_HOST USB_NET_SMSC75XX USB_NET_SMSC95XX USB_NET_SR9700 USB_NET_SR9800 USB_NET_ZAURUS USB_OHCI_HCD USB_OHCI_HCD_PCI USB_OHCI_HCD_PLATFORM USB_OTG USB_OTG_FSM USB_PRINTER USB_SERIAL_GENERIC USB_SERIAL_PL2303 USB_STORAGE_ALAUDA USB_STORAGE_CYPRESS_ATACB USB_STORAGE_DATAFAB USB_STORAGE_FREECOM USB_STORAGE_ISD200 USB_STORAGE_JUMPSHOT USB_STORAGE_KARMA USB_STORAGE_ONETOUCH USB_STORAGE_SDDR09 USB_STORAGE_SDDR55 USB_STORAGE_USBAT USB_TRANCEVIBRATOR USB_U_AUDIO USB_U_ETHER USB_U_SERIAL USB_WDM WLAN WLAN_VENDOR_ATH WLAN_VENDOR_ATMEL WLAN_VENDOR_BROADCOM WLAN_VENDOR_INTERSIL WLAN_VENDOR_MARVELL WLAN_VENDOR_MEDIATEK WLAN_VENDOR_MICROCHIP WLAN_VENDOR_PURELIFI WLAN_VENDOR_RALINK WLAN_VENDOR_REALTEK WLAN_VENDOR_RSI WLAN_VENDOR_SILABS WLAN_VENDOR_ZYDAS X86_X32_ABI ZEROPLUS_FF] disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing current HEAD ebcdb9dc211f42a26523f6a4571304855de2643b testing commit ebcdb9dc211f42a26523f6a4571304855de2643b gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: a68e5d8b1535cae145faa93b1a04e96542d0b6e140714c705137624d9ccf9864 all runs: 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] crash still not fixed/happens on the oldest tested release revisions tested: 7, total time: 50m46.937496428s (build: 26m31.95834125s, test: 21m39.295163813s) crash still not fixed or there were kernel test errors commit msg: ANDROID: Move cpu_busy_with_softirqs() into sched.h crash: KASAN: out-of-bounds Read in ext4_ext_remove_space EXT4-fs (loop0): Remounting filesystem read-only EXT4-fs error (device loop0) in ext4_mb_clear_bb:6137: Corrupt filesystem ================================================================== BUG: KASAN: out-of-bounds in ext4_ext_rm_leaf fs/ext4/extents.c:2737 [inline] BUG: KASAN: out-of-bounds in ext4_ext_remove_space+0x1fa0/0x4970 fs/ext4/extents.c:2959 Read of size 18446744073709551544 at addr ffff888120910054 by task syz-executor.0/371 CPU: 0 PID: 371 Comm: syz-executor.0 Not tainted 6.1.75-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+0x105/0x148 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0x158/0x4e0 mm/kasan/report.c:427 kasan_report+0x13c/0x170 mm/kasan/report.c:531 kasan_check_range+0x294/0x2a0 mm/kasan/generic.c:189 memmove+0x2d/0x70 mm/kasan/shadow.c:54 ext4_ext_rm_leaf fs/ext4/extents.c:2737 [inline] ext4_ext_remove_space+0x1fa0/0x4970 fs/ext4/extents.c:2959 ext4_punch_hole+0x5d7/0x8e0 fs/ext4/inode.c:4129 ext4_fallocate+0x2b1/0x1730 fs/ext4/extents.c:4708 vfs_fallocate+0x330/0x410 fs/open.c:324 do_vfs_ioctl+0x1aca/0x2350 fs/ioctl.c:849 __do_sys_ioctl fs/ioctl.c:868 [inline] __se_sys_ioctl+0x5d/0x110 fs/ioctl.c:856 __x64_sys_ioctl+0x76/0x80 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fb1f5c7cae9 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:00007fb1f6a7d0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fb1f5d9c050 RCX: 00007fb1f5c7cae9 RDX: 0000000020000080 RSI: 000000004030582b RDI: 0000000000000004 RBP: 00007fb1f5cc847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fb1f5d9c050 R15: 00007ffd9f7b47b8 The buggy address belongs to the physical page: page:ffffea0004824400 refcount:2 mapcount:0 mapping:ffff88810adb05d0 index:0x3a pfn:0x120910 memcg:ffff88811fe04000 aops:def_blk_aops ino:700000 flags: 0x5600000000002056(referenced|uptodate|lru|workingset|private|zone=1) raw: 5600000000002056 ffffea00049281c8 ffffea00048238c8 ffff88810adb05d0 raw: 000000000000003a ffff88811b3eb348 00000002ffffffff ffff88811fe04000 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 368, tgid 367 (syz-executor.0), ts 41614068803, free_ts 22610908554 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook mm/page_alloc.c:2566 [inline] prep_new_page+0x512/0x5e0 mm/page_alloc.c:2573 get_page_from_freelist+0x288b/0x2910 mm/page_alloc.c:4401 __alloc_pages+0x39f/0x780 mm/page_alloc.c:5688 __folio_alloc+0x15/0x40 mm/page_alloc.c:5720 __folio_alloc_node include/linux/gfp.h:245 [inline] folio_alloc include/linux/gfp.h:274 [inline] filemap_alloc_folio include/linux/pagemap.h:507 [inline] __filemap_get_folio+0x53b/0x6a0 mm/filemap.c:1983 pagecache_get_page+0x15/0xb0 mm/folio-compat.c:110 find_or_create_page include/linux/pagemap.h:648 [inline] grow_dev_page fs/buffer.c:989 [inline] grow_buffers fs/buffer.c:1054 [inline] __getblk_slow fs/buffer.c:1081 [inline] __getblk_gfp+0x1ac/0x590 fs/buffer.c:1376 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+0xf76/0x5490 fs/ext4/extents.c:2102 ext4_ext_map_blocks+0x1a04/0x64d0 fs/ext4/extents.c:4308 ext4_map_blocks+0x821/0x1890 fs/ext4/inode.c:651 _ext4_get_block+0x1d0/0x540 fs/ext4/inode.c:798 ext4_get_block+0x12/0x20 fs/ext4/inode.c:815 ext4_block_write_begin+0x399/0xbc0 fs/ext4/inode.c:1100 ext4_write_begin+0x588/0xe00 ext4_da_write_begin+0x397/0x6f0 fs/ext4/inode.c:2989 generic_perform_write+0x2ee/0x520 mm/filemap.c:3838 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1474 [inline] free_pcp_prepare mm/page_alloc.c:1548 [inline] free_unref_page_prepare+0x794/0x7a0 mm/page_alloc.c:3474 free_unref_page_list+0xf1/0x790 mm/page_alloc.c:3622 release_pages+0xcfc/0xd50 mm/swap.c:1063 free_pages_and_swap_cache+0x68/0x80 mm/swap_state.c:314 tlb_batch_pages_flush mm/mmu_gather.c:59 [inline] tlb_flush_mmu_free mm/mmu_gather.c:254 [inline] tlb_flush_mmu mm/mmu_gather.c:261 [inline] tlb_finish_mmu+0x1ba/0x3b0 mm/mmu_gather.c:361 exit_mmap+0x38b/0x770 mm/mmap.c:3343 __mmput+0x6b/0x2a0 kernel/fork.c:1298 mmput+0x2a/0xe0 kernel/fork.c:1321 exit_mm kernel/exit.c:566 [inline] do_exit+0x943/0x2470 kernel/exit.c:862 do_group_exit+0x1ba/0x290 kernel/exit.c:1025 __do_sys_exit_group kernel/exit.c:1036 [inline] __se_sys_exit_group kernel/exit.c:1034 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1034 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x63/0xcd Memory state around the buggy address: ffff88812090ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88812090ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888120910000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888120910080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888120910100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== EXT4-fs error (device loop0): __ext4_get_inode_loc:4497: comm syz-executor.0: Invalid inode table block 0 in block_group 0 EXT4-fs error (device loop0) in ext4_reserve_inode_write:5870: Corrupt filesystem EXT4-fs error (device loop0): ext4_punch_hole:4142: inode #16: comm syz-executor.0: mark_inode_dirty error