ci2 starts bisection 2024-05-16 00:06:41.875054749 +0000 UTC m=+1767.893046523 bisecting fixing commit since ea586874d2f9e501ef84b7e55036fc8965397d5d building syzkaller on 0b6a67ac4b0dc26f43030c5edd01c9175f13b784 ensuring issue is reproducible on original commit ea586874d2f9e501ef84b7e55036fc8965397d5d testing commit ea586874d2f9e501ef84b7e55036fc8965397d5d gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: c2eca20bcb3985543e5946fecfb197a1bc961dfaab82a3667f104834a71a8d11 run #0: crashed: KASAN: use-after-free Read in ext4_find_extent run #1: crashed: kernel BUG 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: 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: use-after-free 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: kernel BUG in ext4_writepages run #16: crashed: KASAN: use-after-free Read in ext4_find_extent run #17: crashed: KASAN: out-of-bounds 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 [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing commit ea586874d2f9e501ef84b7e55036fc8965397d5d gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 8992ee84d5db3195f73291cc4f9dfa2180c35d430e6a0e6fa425ea5702076df3 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: out-of-bounds 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: out-of-bounds Read in ext4_find_extent run #9: crashed: KASAN: use-after-free Read in ext4_ext_insert_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=4920 full=6163 leaves diff=241 split chunks (needed=false): <241> split chunk #0 of len 241 into 5 parts testing without sub-chunk 1/5 disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing commit ea586874d2f9e501ef84b7e55036fc8965397d5d gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: a73f9902a677716e0c372c1061323ffc7dd1b370b2478fdc427f2aa445f3391d 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: use-after-free 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: 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 [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit ea586874d2f9e501ef84b7e55036fc8965397d5d gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e539be3552ff874becd3747613309fe488ad8c4c555768545a7ace783c119e3c all runs: 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 [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], they are not needed testing commit ea586874d2f9e501ef84b7e55036fc8965397d5d gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 7185b4688460193b7d6b479bb09980827c3a3439c02a13c3e61b3ddfc9f07953 run #0: crashed: invalid opcode in ext4_writepages 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: 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 ea586874d2f9e501ef84b7e55036fc8965397d5d gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: f1365678ac914b2c942e2a575225dc003967e03609c74bc0c7a6efce4d3b6c7c 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: 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: 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 chunk can be dropped testing without sub-chunk 5/5 disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit ea586874d2f9e501ef84b7e55036fc8965397d5d gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 failed building ea586874d2f9e501ef84b7e55036fc8965397d5d: net/socket.c:1172: undefined reference to `wext_handle_ioctl' net/socket.c:3366: undefined reference to `compat_wext_handle_ioctl' net/core/net-procfs.c:343: undefined reference to `wext_proc_exit' net/core/net-procfs.c:327: undefined reference to `wext_proc_init' minimized to 45 configs; suspects: [HID_ZEROPLUS 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 USB_SERIAL_FTDI_SIO 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_RALINK WLAN_VENDOR_REALTEK WLAN_VENDOR_RSI WLAN_VENDOR_ZYDAS X86_X32 ZEROPLUS_FF] disabling configs for [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], they are not needed testing current HEAD 5d96939590c0122be2138255c921e57e3f78b7bd testing commit 5d96939590c0122be2138255c921e57e3f78b7bd gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 88ff841a3743359b48b0b827ab2d1cb4ae9b8130bf22269ccfdefbb856510439 run #0: crashed: invalid opcode in ext4_writepages 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: 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: 40m7.941859759s (build: 15m14.434038106s, test: 23m18.264300543s) crash still not fixed or there were kernel test errors commit msg: Revert "hrtimer: Report offline hrtimer enqueue" crash: KASAN: use-after-free Read in ext4_find_extent ================================================================== BUG: KASAN: use-after-free in ext4_ext_binsearch fs/ext4/extents.c:827 [inline] BUG: KASAN: use-after-free in ext4_find_extent+0xb6a/0xc30 fs/ext4/extents.c:946 Read of size 4 at addr ffff888124126078 by task kworker/u4:2/112 CPU: 0 PID: 112 Comm: kworker/u4:2 Not tainted 5.15.149-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Workqueue: writeback wb_workfn (flush-7:0) Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x38/0x49 lib/dump_stack.c:106 print_address_description.constprop.0+0x24/0x160 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:427 [inline] kasan_report.cold+0x82/0xdb mm/kasan/report.c:444 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308 ext4_ext_binsearch fs/ext4/extents.c:827 [inline] ext4_find_extent+0xb6a/0xc30 fs/ext4/extents.c:946 ext4_ext_map_blocks+0x18f/0x5100 fs/ext4/extents.c:4103 ext4_map_blocks+0x593/0x1450 fs/ext4/inode.c:646 mpage_map_one_extent fs/ext4/inode.c:2409 [inline] mpage_map_and_submit_extent fs/ext4/inode.c:2462 [inline] ext4_writepages+0x135a/0x2a80 fs/ext4/inode.c:2830 do_writepages+0x18c/0x770 mm/page-writeback.c:2366 __writeback_single_inode+0x6e/0x730 fs/fs-writeback.c:1647 writeback_sb_inodes+0x4ab/0xe80 fs/fs-writeback.c:1930 wb_writeback+0x20c/0x6b0 fs/fs-writeback.c:2104 wb_do_writeback fs/fs-writeback.c:2247 [inline] wb_workfn+0x247/0xe20 fs/fs-writeback.c:2288 process_one_work+0x62c/0xec0 kernel/workqueue.c:2325 worker_thread+0x48e/0xdb0 kernel/workqueue.c:2472 kthread+0x324/0x3e0 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 The buggy address belongs to the page: page:ffffea0004904980 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x124126 flags: 0x4000000000000000(zone=1) raw: 4000000000000000 ffffea00049049c8 ffffea0004904948 0000000000000000 raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner info is not present (never set?) Memory state around the buggy address: ffff888124125f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888124125f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888124126000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888124126080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888124126100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 112 Comm: kworker/u4:2 Tainted: G B 5.15.149-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Workqueue: writeback wb_workfn (flush-7:0) RIP: 0010:mpage_map_one_extent fs/ext4/inode.c:2421 [inline] RIP: 0010:mpage_map_and_submit_extent fs/ext4/inode.c:2462 [inline] RIP: 0010:ext4_writepages+0x1f2f/0x2a80 fs/ext4/inode.c:2830 Code: ff 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 84 ca ee ff ff 48 8b bd f0 fd ff ff e8 66 b9 d0 ff e9 b9 ee ff ff <0f> 0b 8b 85 1c fd ff ff 31 db 89 85 c8 fd ff ff e9 70 fb ff ff 89 RSP: 0018:ffffc90000557448 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 1ffffffff0b2049c RDX: 0000000000000001 RSI: 0000000000000008 RDI: 0000000000000001 RBP: ffffc90000557798 R08: 0000000000000001 R09: ffff88812159ea4f R10: ffffed10242b3d49 R11: 0000000000000000 R12: ffff88812159ea88 R13: dffffc0000000000 R14: ffffc90000557770 R15: ffff88812159eab0 FS: 0000000000000000(0000) GS:ffff8881f7500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055555748b818 CR3: 000000000500f000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: do_writepages+0x18c/0x770 mm/page-writeback.c:2366 __writeback_single_inode+0x6e/0x730 fs/fs-writeback.c:1647 writeback_sb_inodes+0x4ab/0xe80 fs/fs-writeback.c:1930 wb_writeback+0x20c/0x6b0 fs/fs-writeback.c:2104 wb_do_writeback fs/fs-writeback.c:2247 [inline] wb_workfn+0x247/0xe20 fs/fs-writeback.c:2288 process_one_work+0x62c/0xec0 kernel/workqueue.c:2325 worker_thread+0x48e/0xdb0 kernel/workqueue.c:2472 kthread+0x324/0x3e0 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Modules linked in: ---[ end trace 9f1802ae8f79009a ]--- RIP: 0010:mpage_map_one_extent fs/ext4/inode.c:2421 [inline] RIP: 0010:mpage_map_and_submit_extent fs/ext4/inode.c:2462 [inline] RIP: 0010:ext4_writepages+0x1f2f/0x2a80 fs/ext4/inode.c:2830 Code: ff 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 84 ca ee ff ff 48 8b bd f0 fd ff ff e8 66 b9 d0 ff e9 b9 ee ff ff <0f> 0b 8b 85 1c fd ff ff 31 db 89 85 c8 fd ff ff e9 70 fb ff ff 89 RSP: 0018:ffffc90000557448 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 1ffffffff0b2049c RDX: 0000000000000001 RSI: 0000000000000008 RDI: 0000000000000001 RBP: ffffc90000557798 R08: 0000000000000001 R09: ffff88812159ea4f R10: ffffed10242b3d49 R11: 0000000000000000 R12: ffff88812159ea88 R13: dffffc0000000000 R14: ffffc90000557770 R15: ffff88812159eab0 FS: 0000000000000000(0000) GS:ffff8881f7400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000560c55c70508 CR3: 000000010b73f000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400