ci2 starts bisection 2024-08-22 05:05:39.474065561 +0000 UTC m=+11636.611632604 bisecting fixing commit since 6364d594125d5489b4f160c055505ec08c68c4eb building syzkaller on 3ce4924c386b24ce0dea10478efdecc852cda540 ensuring issue is reproducible on original commit 6364d594125d5489b4f160c055505ec08c68c4eb testing commit 6364d594125d5489b4f160c055505ec08c68c4eb gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 08cb91506faab4de9b220648ff0dbcf2014be5910fc369642bab430c60b8f113 run #0: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock run #1: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock run #2: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock run #3: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock run #4: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock run #5: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock run #6: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock run #7: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock run #8: crashed: KASAN: out-of-bounds Read in ext4_convert_inline_data_nolock run #9: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock run #10: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock run #11: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock run #12: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock run #13: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock run #14: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock run #15: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock run #16: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock run #17: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock run #18: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock run #19: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock representative crash: KASAN: use-after-free Read in ext4_convert_inline_data_nolock, types: [KASAN] check whether we can drop unnecessary instrumentation disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit 6364d594125d5489b4f160c055505ec08c68c4eb gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: b7393a051e43e617dcc641848b7c53995952b00fbddfbec3ee5a10a3c06c939b all runs: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock representative crash: KASAN: use-after-free Read in ext4_convert_inline_data_nolock, types: [KASAN] the bug reproduces without the instrumentation disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed kconfig minimization: base=5179 full=6494 leaves diff=257 split chunks (needed=false): <257> split chunk #0 of len 257 into 5 parts testing without sub-chunk 1/5 disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit 6364d594125d5489b4f160c055505ec08c68c4eb gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: c66f7b0daec0b2222386c0283d966e6726f2e3975ba6ec8b98e036f77df4c592 all runs: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock representative crash: KASAN: use-after-free Read in ext4_convert_inline_data_nolock, types: [KASAN] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing commit 6364d594125d5489b4f160c055505ec08c68c4eb gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 3c2c029551f4d5b0db775c395a61690245a4a7f74b81e95460d9fe791328bd4e all runs: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock representative crash: KASAN: use-after-free Read in ext4_convert_inline_data_nolock, types: [KASAN] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing commit 6364d594125d5489b4f160c055505ec08c68c4eb gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 7c898b43beb0524fe35ad1dc6cb1059e52f4388a81f1d74719c355fb4f3c2114 all runs: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock representative crash: KASAN: use-after-free Read in ext4_convert_inline_data_nolock, 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 6364d594125d5489b4f160c055505ec08c68c4eb gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 360b7754a2a91056f54bfdfd27f3a26f671443e5ab69933639891034ac552fe6 all runs: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock representative crash: KASAN: use-after-free Read in ext4_convert_inline_data_nolock, types: [KASAN] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing commit 6364d594125d5489b4f160c055505ec08c68c4eb gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 failed building 6364d594125d5489b4f160c055505ec08c68c4eb: net/socket.c:1245: undefined reference to `wext_handle_ioctl' net/socket.c:3442: 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 49 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_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 V4L2_ASYNC V4L2_FWNODE VIDEO_CAMERA_SENSOR 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 faf32723dc540c8c233e0ef0842e7895a9fffd49 testing commit faf32723dc540c8c233e0ef0842e7895a9fffd49 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: cac36a7d85daf788e8bf7439cec963cee35b6511376d15561b280e2fe3948828 all runs: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock representative crash: KASAN: use-after-free Read in ext4_convert_inline_data_nolock, types: [KASAN] crash still not fixed/happens on the oldest tested release revisions tested: 7, total time: 45m3.802257877s (build: 18m46.065169971s, test: 24m5.719246002s) crash still not fixed or there were kernel test errors commit msg: BACKPORT: scsi: ufs: core: Fix ufshcd_abort_one racing issue crash: KASAN: use-after-free Read in ext4_convert_inline_data_nolock ================================================================== BUG: KASAN: use-after-free in ext4_read_inline_data fs/ext4/inline.c:210 [inline] BUG: KASAN: use-after-free in ext4_convert_inline_data_nolock+0x280/0x980 fs/ext4/inline.c:1216 Read of size 68 at addr ffff888120af20cf by task syz-executor.4/457 CPU: 1 PID: 457 Comm: syz-executor.4 Not tainted 6.1.90-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/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 memcpy+0x2d/0x70 mm/kasan/shadow.c:65 ext4_read_inline_data fs/ext4/inline.c:210 [inline] ext4_convert_inline_data_nolock+0x280/0x980 fs/ext4/inline.c:1216 ext4_try_add_inline_entry+0x69e/0x9c0 fs/ext4/inline.c:1342 ext4_add_entry+0x384/0xba0 fs/ext4/namei.c:2409 ext4_mkdir+0x472/0xa50 fs/ext4/namei.c:3032 vfs_mkdir+0x2ea/0x480 fs/namei.c:4107 do_mkdirat+0x230/0x390 fs/namei.c:4132 __do_sys_mkdirat fs/namei.c:4147 [inline] __se_sys_mkdirat fs/namei.c:4145 [inline] __x64_sys_mkdirat+0x84/0x90 fs/namei.c:4145 x64_sys_call+0x6c6/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:259 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f0e2587c9a7 Code: 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 02 01 00 00 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:00007f0e253feef8 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007f0e253fef80 RCX: 00007f0e2587c9a7 RDX: 00000000000001ff RSI: 0000000020000580 RDI: 00000000ffffff9c RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000020000580 R13: 00007f0e253fef40 R14: 0000000000000000 R15: 0000000000000000 The buggy address belongs to the physical page: page:ffffea000482bc80 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x120af2 flags: 0x4000000000000000(zone=1) raw: 4000000000000000 ffffea00046dcd88 ffffea000482bcc8 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 403, tgid 402 (syz-executor.1), ts 50347087943, free_ts 50742521541 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook mm/page_alloc.c:2590 [inline] prep_new_page+0x512/0x5e0 mm/page_alloc.c:2597 get_page_from_freelist+0x288b/0x2910 mm/page_alloc.c:4425 __alloc_pages+0x39f/0x780 mm/page_alloc.c:5714 __folio_alloc+0x15/0x40 mm/page_alloc.c:5746 __folio_alloc_node include/linux/gfp.h:245 [inline] folio_alloc include/linux/gfp.h:274 [inline] shmem_alloc_folio mm/shmem.c:1597 [inline] shmem_alloc_and_acct_folio+0x49e/0x910 mm/shmem.c:1622 shmem_get_folio_gfp+0xe05/0x1b90 mm/shmem.c:1951 shmem_get_folio mm/shmem.c:2082 [inline] shmem_write_begin+0x136/0x2f0 mm/shmem.c:2570 generic_perform_write+0x2ee/0x520 mm/filemap.c:3844 __generic_file_write_iter+0x13b/0x2f0 mm/filemap.c:3972 generic_file_write_iter+0xae/0x290 mm/filemap.c:4004 call_write_iter include/linux/fs.h:2274 [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 x64_sys_call+0x2f/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:2 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1498 [inline] free_pcp_prepare mm/page_alloc.c:1572 [inline] free_unref_page_prepare+0x794/0x7a0 mm/page_alloc.c:3498 free_unref_page_list+0xf1/0x790 mm/page_alloc.c:3646 release_pages+0xcfc/0xd50 mm/swap.c:1063 __pagevec_release+0x66/0xe0 mm/swap.c:1083 pagevec_release include/linux/pagevec.h:71 [inline] folio_batch_release include/linux/pagevec.h:135 [inline] shmem_undo_range+0x4a7/0x1150 mm/shmem.c:951 shmem_truncate_range mm/shmem.c:1067 [inline] shmem_evict_inode+0x34e/0x840 mm/shmem.c:1176 evict+0x262/0x620 fs/inode.c:666 iput_final fs/inode.c:1791 [inline] iput+0x4b6/0x4e0 fs/inode.c:1817 dentry_unlink_inode+0x2d8/0x3c0 fs/dcache.c:401 __dentry_kill+0x37e/0x5e0 fs/dcache.c:607 dentry_kill+0xc4/0x1f0 dput+0x10a/0x250 fs/dcache.c:914 __fput+0x475/0x6a0 fs/file_table.c:328 ____fput+0x9/0x10 fs/file_table.c:348 task_work_run+0x208/0x260 kernel/task_work.c:179 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0x9bd/0x2470 kernel/exit.c:875 Memory state around the buggy address: ffff888120af1f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888120af2000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888120af2080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888120af2100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888120af2180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== EXT4-fs error (device loop4): ext4_check_all_de:655: inode #12: block 5: comm syz-executor.4: bad entry in directory: rec_len is smaller than minimal - offset=0, inode=0, rec_len=0, size=124 fake=0