ci2 starts bisection 2023-11-13 06:10:35.15635841 +0000 UTC m=+156794.932739089 bisecting fixing commit since cd94fe67fd3323953016b8193f5be75982da96c8 building syzkaller on 6654cf89a7909afd314ad8abd502bc0dd024112a ensuring issue is reproducible on original commit cd94fe67fd3323953016b8193f5be75982da96c8 testing commit cd94fe67fd3323953016b8193f5be75982da96c8 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: f8e565f28f30516fdfafe09697597bc3c5fdbf8be38c6759575b14fa2b277d59 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: kernel BUG in ext4_writepages 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: slab-out-of-bounds Read in ext4_find_extent run #17: crashed: KASAN: slab-out-of-bounds Read in ext4_find_extent run #18: crashed: kernel BUG in ext4_writepages run #19: crashed: kernel BUG in ext4_writepages representative crash: KASAN: use-after-free Read in ext4_find_extent, types: [KASAN] check whether we can drop unnecessary instrumentation disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit cd94fe67fd3323953016b8193f5be75982da96c8 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 373119a5aa38fb95a84355d1ee48ff90acda74b2ee6618a6ecbe95e947964e91 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: invalid opcode in ext4_writepages representative crash: KASAN: use-after-free Read in ext4_find_extent, types: [KASAN] the bug reproduces without the instrumentation disabling configs for [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], 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 [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], they are not needed testing commit cd94fe67fd3323953016b8193f5be75982da96c8 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: ba949ff9ee1ea3ec7acc3ae571ad7746d0d0119ea38ebc4fcc1e6bda19869022 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: invalid opcode in ext4_writepages 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 representative crash: KASAN: use-after-free Read in ext4_find_extent, types: [KASAN] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing commit cd94fe67fd3323953016b8193f5be75982da96c8 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 3396390fe2f6f0dc28f466af0813164d1aa0ef09d91b00b517c52fcc1f21f9ee 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: slab-out-of-bounds Read in ext4_find_extent run #4: crashed: invalid opcode in ext4_writepages 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: slab-out-of-bounds Read in ext4_find_extent representative crash: KASAN: use-after-free Read in ext4_find_extent, types: [KASAN] 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 cd94fe67fd3323953016b8193f5be75982da96c8 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 0974910207dea15ea58c2f8653c629c12ec62edb9d9d65a16ec0bf78fcf73303 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: invalid opcode in ext4_writepages run #3: crashed: invalid opcode in ext4_writepages 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: slab-out-of-bounds 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 representative crash: KASAN: use-after-free Read in ext4_find_extent, types: [KASAN] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit cd94fe67fd3323953016b8193f5be75982da96c8 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 072ebd68cd59f1380f06925c2fac458d1e0826c08787bbdcfb2b97dc2403f0d5 run #0: crashed: KASAN: use-after-free Read in ext4_find_extent run #1: crashed: invalid opcode in ext4_writepages 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: invalid opcode in ext4_writepages run #8: crashed: invalid opcode in ext4_writepages run #9: crashed: KASAN: use-after-free Read in ext4_find_extent representative crash: KASAN: use-after-free Read in ext4_find_extent, types: [KASAN UNKNOWN] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], they are not needed testing commit cd94fe67fd3323953016b8193f5be75982da96c8 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 failed building cd94fe67fd3323953016b8193f5be75982da96c8: 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 48c6c901fe0e68e176029738d829e0d01eabb0b2 testing commit 48c6c901fe0e68e176029738d829e0d01eabb0b2 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e9c223a6e22931e884565a211ae2892731c0199ab7df945c53ec537d29aa66b6 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: invalid opcode in ext4_writepages 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 representative crash: KASAN: use-after-free Read in ext4_find_extent, types: [KASAN] crash still not fixed/happens on the oldest tested release revisions tested: 7, total time: 43m25.038774561s (build: 19m22.097347382s, test: 21m26.648075896s) crash still not fixed or there were kernel test errors commit msg: ANDROID: fs/passthrough: Fix compatibility with R/O file system crash: KASAN: use-after-free Read in ext4_find_extent ================================================================== BUG: KASAN: use-after-free in ext4_ext_binsearch fs/ext4/extents.c:837 [inline] BUG: KASAN: use-after-free in ext4_find_extent+0xb60/0xd10 fs/ext4/extents.c:953 Read of size 4 at addr ffff888123dd2fb4 by task kworker/u4:0/8 CPU: 0 PID: 8 Comm: kworker/u4:0 Not tainted 6.1.43-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 Workqueue: writeback wb_workfn (flush-7:0) 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 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:350 ext4_ext_binsearch fs/ext4/extents.c:837 [inline] ext4_find_extent+0xb60/0xd10 fs/ext4/extents.c:953 ext4_ext_map_blocks+0x25d/0x64d0 fs/ext4/extents.c:4103 ext4_map_blocks+0x821/0x1890 fs/ext4/inode.c:651 mpage_map_one_extent fs/ext4/inode.c:2411 [inline] mpage_map_and_submit_extent fs/ext4/inode.c:2464 [inline] ext4_writepages+0x13f4/0x3120 fs/ext4/inode.c:2832 do_writepages+0x338/0x5b0 mm/page-writeback.c:2472 __writeback_single_inode+0x73/0x7a0 fs/fs-writeback.c:1590 writeback_sb_inodes+0x881/0x1500 fs/fs-writeback.c:1881 wb_writeback+0x357/0x810 fs/fs-writeback.c:2055 wb_do_writeback fs/fs-writeback.c:2198 [inline] wb_workfn+0x37d/0xdf0 fs/fs-writeback.c:2238 process_one_work+0x6de/0xd00 kernel/workqueue.c:2299 worker_thread+0x892/0xf20 kernel/workqueue.c:2446 kthread+0x215/0x270 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 The buggy address belongs to the physical page: page:ffffea00048f7480 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x123dd2 flags: 0x4000000000000000(zone=1) raw: 4000000000000000 ffffea00048f5888 ffffea00048f5808 0000000000000000 raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 414, tgid 414 (syz-executor.0), ts 45535098160, free_ts 45585727322 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook mm/page_alloc.c:2586 [inline] prep_new_page+0x512/0x5e0 mm/page_alloc.c:2593 get_page_from_freelist+0x2900/0x2990 mm/page_alloc.c:4410 __alloc_pages+0x39f/0x780 mm/page_alloc.c:5698 __folio_alloc+0x15/0x40 mm/page_alloc.c:5730 __folio_alloc_node include/linux/gfp.h:245 [inline] folio_alloc include/linux/gfp.h:274 [inline] alloc_page_vma include/linux/gfp.h:283 [inline] wp_page_copy+0x1e3/0x1170 mm/memory.c:3132 do_wp_page+0xa1b/0xc90 handle_pte_fault mm/memory.c:5075 [inline] __handle_mm_fault mm/memory.c:5199 [inline] handle_mm_fault+0xffc/0x2490 mm/memory.c:5339 do_user_addr_fault arch/x86/mm/fault.c:1363 [inline] handle_page_fault arch/x86/mm/fault.c:1504 [inline] exc_page_fault+0x3a6/0x6e0 arch/x86/mm/fault.c:1560 asm_exc_page_fault+0x27/0x30 arch/x86/include/asm/idtentry.h:570 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1494 [inline] free_pcp_prepare mm/page_alloc.c:1568 [inline] free_unref_page_prepare+0x794/0x7a0 mm/page_alloc.c:3500 free_unref_page_list+0xf6/0x690 mm/page_alloc.c:3649 release_pages+0xcfc/0xd50 mm/swap.c:1055 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+0x36d/0x730 mm/mmap.c:3329 __mmput+0x6b/0x2a0 kernel/fork.c:1272 mmput+0x2a/0xe0 kernel/fork.c:1295 exit_mm kernel/exit.c:566 [inline] do_exit+0x943/0x2470 kernel/exit.c:862 do_group_exit+0x1ba/0x290 kernel/exit.c:1025 get_signal+0xf0b/0x1000 kernel/signal.c:2879 arch_do_signal_or_restart+0xb0/0x16f0 arch/x86/kernel/signal.c:869 exit_to_user_mode_loop+0x6b/0xa0 kernel/entry/common.c:168 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x26/0x130 kernel/entry/common.c:297 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86 Memory state around the buggy address: ffff888123dd2e80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888123dd2f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888123dd2f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888123dd3000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888123dd3080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 8 Comm: kworker/u4:0 Tainted: G B 6.1.43-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 Workqueue: writeback wb_workfn (flush-7:0) RIP: 0010:mpage_map_one_extent fs/ext4/inode.c:2423 [inline] RIP: 0010:mpage_map_and_submit_extent fs/ext4/inode.c:2464 [inline] RIP: 0010:ext4_writepages+0x310e/0x3120 fs/ext4/inode.c:2832 Code: e9 45 89 f0 e8 33 cc 06 00 65 ff 0d b4 88 31 7e 49 bf 00 00 00 00 00 fc ff df 0f 85 7e fb ff ff e8 3f 80 2f ff e9 74 fb ff ff <0f> 0b 0f 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 55 48 89 e5 RSP: 0018:ffffc90000087060 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 000000000000042b RCX: 1ffff92000010e6a RDX: 0000000000000001 RSI: 0000000000000008 RDI: 0000000000000001 RBP: ffffc90000087450 R08: dffffc0000000000 R09: ffffed10200af695 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88811e33f220 R13: ffffc90000087320 R14: ffff88810057b4e0 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8881f7200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffe20f37ff8 CR3: 000000010de07000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: do_writepages+0x338/0x5b0 mm/page-writeback.c:2472 __writeback_single_inode+0x73/0x7a0 fs/fs-writeback.c:1590 writeback_sb_inodes+0x881/0x1500 fs/fs-writeback.c:1881 wb_writeback+0x357/0x810 fs/fs-writeback.c:2055 wb_do_writeback fs/fs-writeback.c:2198 [inline] wb_workfn+0x37d/0xdf0 fs/fs-writeback.c:2238 process_one_work+0x6de/0xd00 kernel/workqueue.c:2299 worker_thread+0x892/0xf20 kernel/workqueue.c:2446 kthread+0x215/0x270 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:mpage_map_one_extent fs/ext4/inode.c:2423 [inline] RIP: 0010:mpage_map_and_submit_extent fs/ext4/inode.c:2464 [inline] RIP: 0010:ext4_writepages+0x310e/0x3120 fs/ext4/inode.c:2832 Code: e9 45 89 f0 e8 33 cc 06 00 65 ff 0d b4 88 31 7e 49 bf 00 00 00 00 00 fc ff df 0f 85 7e fb ff ff e8 3f 80 2f ff e9 74 fb ff ff <0f> 0b 0f 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 55 48 89 e5 RSP: 0018:ffffc90000087060 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 000000000000042b RCX: 1ffff92000010e6a RDX: 0000000000000001 RSI: 0000000000000008 RDI: 0000000000000001 RBP: ffffc90000087450 R08: dffffc0000000000 R09: ffffed10200af695 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88811e33f220 R13: ffffc90000087320 R14: ffff88810057b4e0 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8881f7300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020029000 CR3: 000000010ed1c000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400