ci2 starts bisection 2024-03-07 01:33:48.418024213 +0000 UTC m=+127969.495811744 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: b0456dc419f02025d89a2fe3ecf3ced6cc2a89dcecfbc3604ef3aafa7de87a40 run #0: crashed: kernel BUG in ext4_writepages 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: kernel BUG 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: kernel BUG in ext4_writepages run #8: crashed: KASAN: use-after-free Read in ext4_find_extent 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: slab-out-of-bounds Read in ext4_find_extent run #13: crashed: KASAN: use-after-free 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: use-after-free Read in ext4_find_extent run #17: crashed: KASAN: use-after-free Read in ext4_find_extent run #18: crashed: KASAN: use-after-free Read in ext4_find_extent run #19: crashed: KASAN: use-after-free Read in ext4_find_extent representative crash: KASAN: use-after-free Read in ext4_find_extent, types: [KASAN] check whether we can drop unnecessary instrumentation 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: 87aba066f9553f1407d4d0541b1189f0fc916b996cc9a10326b93457eb94f10f 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: 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] 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 [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: 29a96f320062d60f3463911c1b3db06347b4d68795322ff9141a60c878eda009 run #0: crashed: invalid opcode in ext4_split_extent_at 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: 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: invalid opcode in ext4_writepages 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 UNKNOWN] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], 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: b931c26812881d1476bda13b743ddb2badf9cbc49abf7ab840a84a07681041c7 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] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], 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: 44a6893db8aa9eacb28740905e79592bf2cafb073978b1504fb49057a99f6df4 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: invalid opcode in ext4_writepages 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 4/5 disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], 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: e0d6c26c481678a4768973e35daf3e052ca3ad8fe4d6fc6ce4fc339f94ab1f6c run #0: crashed: KASAN: use-after-free Read in ext4_find_extent run #1: crashed: KASAN: slab-out-of-bounds 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: 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 5/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 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 95805f9e46c7fea597709005eb36d952be24a1a3 testing commit 95805f9e46c7fea597709005eb36d952be24a1a3 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 4bd5d332407799e205bd650c1f67f99e2b77bc07e84175cc66e14630d36da187 run #0: crashed: invalid opcode in ext4_writepages run #1: crashed: KASAN: use-after-free Read in ext4_find_extent run #2: crashed: KASAN: slab-out-of-bounds Read in ext4_find_extent run #3: crashed: KASAN: use-after-free Read in ext4_find_extent run #4: crashed: invalid opcode in ext4_writepages run #5: crashed: invalid opcode in ext4_writepages 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 UNKNOWN] crash still not fixed/happens on the oldest tested release revisions tested: 7, total time: 44m46.42247405s (build: 19m51.622111181s, test: 22m15.074152741s) crash still not fixed or there were kernel test errors commit msg: ANDROID: GKI: add GKI symbol list for Exynosauto SoC 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 ffff88812514ffb4 by task kworker/u4:3/357 CPU: 1 PID: 357 Comm: kworker/u4:3 Not tainted 6.1.68-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 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:2423 [inline] mpage_map_and_submit_extent fs/ext4/inode.c:2476 [inline] ext4_writepages+0x13f4/0x3120 fs/ext4/inode.c:2844 do_writepages+0x338/0x5b0 mm/page-writeback.c:2472 __writeback_single_inode+0x73/0x7a0 fs/fs-writeback.c:1612 writeback_sb_inodes+0x881/0x1500 fs/fs-writeback.c:1903 wb_writeback+0x357/0x810 fs/fs-writeback.c:2077 wb_do_writeback fs/fs-writeback.c:2220 [inline] wb_workfn+0x37d/0xdf0 fs/fs-writeback.c:2260 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:ffffea00049453c0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x12514f flags: 0x4000000000000000(zone=1) raw: 4000000000000000 ffffea0004946148 ffffea0004943108 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 0x141cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP|__GFP_WRITE), pid 477, tgid 476 (syz-executor.0), ts 46369811738, free_ts 46369897571 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:4397 __alloc_pages+0x39f/0x780 mm/page_alloc.c:5684 __folio_alloc+0x15/0x40 mm/page_alloc.c:5716 __folio_alloc_node include/linux/gfp.h:245 [inline] folio_alloc include/linux/gfp.h:274 [inline] filemap_alloc_folio include/linux/pagemap.h:474 [inline] __filemap_get_folio+0x53b/0x6a0 mm/filemap.c:1983 pagecache_get_page+0x15/0xb0 mm/folio-compat.c:110 grab_cache_page_write_begin+0x3d/0x60 mm/folio-compat.c:122 ext4_write_begin+0x201/0xe00 fs/ext4/inode.c:1197 ext4_da_write_begin+0x397/0x6f0 fs/ext4/inode.c:2989 generic_perform_write+0x2ee/0x520 mm/filemap.c:3829 ext4_buffered_write_iter+0x2d8/0x540 fs/ext4/file.c:285 ext4_file_write_iter+0x195/0x1200 call_write_iter include/linux/fs.h:2258 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0xa13/0xd40 fs/read_write.c:584 ksys_write+0x15c/0x240 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __x64_sys_write+0x76/0x80 fs/read_write.c:646 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81 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:3470 free_unref_page+0xb2/0x5b0 mm/page_alloc.c:3566 __folio_put_small mm/swap.c:105 [inline] __folio_put+0x7c/0xa0 mm/swap.c:128 folio_put include/linux/mm.h:1417 [inline] put_page include/linux/mm.h:1469 [inline] ext4_write_begin+0xc53/0xe00 fs/ext4/inode.c:1279 ext4_da_write_begin+0x397/0x6f0 fs/ext4/inode.c:2989 generic_perform_write+0x2ee/0x520 mm/filemap.c:3829 ext4_buffered_write_iter+0x2d8/0x540 fs/ext4/file.c:285 ext4_file_write_iter+0x195/0x1200 call_write_iter include/linux/fs.h:2258 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0xa13/0xd40 fs/read_write.c:584 ksys_write+0x15c/0x240 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __x64_sys_write+0x76/0x80 fs/read_write.c:646 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: ffff88812514fe80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88812514ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88812514ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888125150000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888125150080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 357 Comm: kworker/u4:3 Tainted: G B 6.1.68-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 Workqueue: writeback wb_workfn (flush-7:0) RIP: 0010:mpage_map_one_extent fs/ext4/inode.c:2435 [inline] RIP: 0010:mpage_map_and_submit_extent fs/ext4/inode.c:2476 [inline] RIP: 0010:ext4_writepages+0x310e/0x3120 fs/ext4/inode.c:2844 Code: e9 45 89 f0 e8 23 cd 06 00 65 ff 0d 44 cf 30 7e 49 bf 00 00 00 00 00 fc ff df 0f 85 7e fb ff ff e8 ef c6 2e 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:ffffc90000d87060 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 000000000000042b RCX: 1ffff920001b0e6a RDX: 0000000000000001 RSI: 0000000000000008 RDI: 0000000000000001 RBP: ffffc90000d87450 R08: dffffc0000000000 R09: ffffed10200b574c R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8881101af670 R13: ffffc90000d87320 R14: ffff8881005aba98 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8881f7200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002000f000 CR3: 000000010f02b000 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:1612 writeback_sb_inodes+0x881/0x1500 fs/fs-writeback.c:1903 wb_writeback+0x357/0x810 fs/fs-writeback.c:2077 wb_do_writeback fs/fs-writeback.c:2220 [inline] wb_workfn+0x37d/0xdf0 fs/fs-writeback.c:2260 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:2435 [inline] RIP: 0010:mpage_map_and_submit_extent fs/ext4/inode.c:2476 [inline] RIP: 0010:ext4_writepages+0x310e/0x3120 fs/ext4/inode.c:2844 Code: e9 45 89 f0 e8 23 cd 06 00 65 ff 0d 44 cf 30 7e 49 bf 00 00 00 00 00 fc ff df 0f 85 7e fb ff ff e8 ef c6 2e 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:ffffc90000d87060 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 000000000000042b RCX: 1ffff920001b0e6a RDX: 0000000000000001 RSI: 0000000000000008 RDI: 0000000000000001 RBP: ffffc90000d87450 R08: dffffc0000000000 R09: ffffed10200b574c R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8881101af670 R13: ffffc90000d87320 R14: ffff8881005aba98 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8881f7200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002000f000 CR3: 000000010f02b000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400