ci2 starts bisection 2024-08-07 00:52:49.010349456 +0000 UTC m=+37999.317116426 bisecting fixing commit since dd875b63669a9a0b7b3fbbcd66d9456aa3f73a2d building syzkaller on 34889ee3b09e7b4d381828377aa6173bfcc36cc7 ensuring issue is reproducible on original commit dd875b63669a9a0b7b3fbbcd66d9456aa3f73a2d testing commit dd875b63669a9a0b7b3fbbcd66d9456aa3f73a2d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 8112cea8913654fb1f231f15d6e00f7b763f9b3038ff606fa5681be8a7b1e971 all runs: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode representative crash: KASAN: use-after-free Read in ext4_xattr_delete_inode, types: [KASAN] check whether we can drop unnecessary instrumentation disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit dd875b63669a9a0b7b3fbbcd66d9456aa3f73a2d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 57e71f7f477283556ace80f866f299e8ca265c5d7d133c0e440a6531473cd63a all runs: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode representative crash: KASAN: use-after-free Read in ext4_xattr_delete_inode, types: [KASAN] the bug reproduces without the instrumentation disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], 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 dd875b63669a9a0b7b3fbbcd66d9456aa3f73a2d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 28d1090a9233b76ea23327034b757f78abeea54b84acf9464367c5b0926c4764 run #0: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #1: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #2: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #3: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #4: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #5: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #6: crashed: KASAN: slab-out-of-bounds Read in ext4_xattr_delete_inode run #7: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #8: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #9: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode representative crash: KASAN: use-after-free Read in ext4_xattr_delete_inode, types: [KASAN] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], they are not needed testing commit dd875b63669a9a0b7b3fbbcd66d9456aa3f73a2d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 01d54bdf8adb703f7e395ba7d994d22e09dbb5b58e850d57681f353e3331a0f3 run #0: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #1: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #2: crashed: KASAN: slab-out-of-bounds Read in ext4_xattr_delete_inode run #3: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #4: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #5: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #6: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #7: crashed: KASAN: slab-out-of-bounds Read in ext4_xattr_delete_inode run #8: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #9: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode representative crash: KASAN: use-after-free Read in ext4_xattr_delete_inode, types: [KASAN] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit dd875b63669a9a0b7b3fbbcd66d9456aa3f73a2d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d680f89b2822aeaf88a5fe30dbab7afa45d021a888f73cee9d1981047585f1a9 all runs: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode representative crash: KASAN: use-after-free Read in ext4_xattr_delete_inode, 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 dd875b63669a9a0b7b3fbbcd66d9456aa3f73a2d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 218ca9fa8bf2188dd905530e1cb52f6247864db2f828b5152fc7e6d7939c3fdd all runs: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode representative crash: KASAN: use-after-free Read in ext4_xattr_delete_inode, 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 dd875b63669a9a0b7b3fbbcd66d9456aa3f73a2d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 failed building dd875b63669a9a0b7b3fbbcd66d9456aa3f73a2d: 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 [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing current HEAD 1bb38f786569a713fee1a7c98f7304369e36635b testing commit 1bb38f786569a713fee1a7c98f7304369e36635b gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: a85f48ce0dc7d7f815e051604c1674615f8415f1491968ea8a2a21bc8c310611 run #0: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #1: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #2: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #3: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #4: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #5: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #6: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #7: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #8: crashed: KASAN: slab-out-of-bounds Read in ext4_xattr_delete_inode run #9: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode representative crash: KASAN: use-after-free Read in ext4_xattr_delete_inode, types: [KASAN] crash still not fixed/happens on the oldest tested release revisions tested: 7, total time: 1h6m33.645649222s (build: 33m48.880236413s, test: 29m49.046459205s) crash still not fixed or there were kernel test errors commit msg: UPSTREAM: ring-buffer: Fix a race between readers and resize checks crash: KASAN: use-after-free Read in ext4_xattr_delete_inode ================================================================== BUG: KASAN: use-after-free in ext4_xattr_delete_inode+0xac5/0xad0 fs/ext4/xattr.c:2905 Read of size 4 at addr ffff8881259f1000 by task syz-executor/458 CPU: 1 PID: 458 Comm: syz-executor 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 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:350 ext4_xattr_delete_inode+0xac5/0xad0 fs/ext4/xattr.c:2905 ext4_evict_inode+0xd82/0x1320 fs/ext4/inode.c:296 evict+0x262/0x620 fs/inode.c:666 iput_final fs/inode.c:1791 [inline] iput+0x4f0/0x660 fs/inode.c:1817 d_delete_notify include/linux/fsnotify.h:286 [inline] vfs_rmdir+0x35f/0x410 fs/namei.c:4205 do_rmdir+0x307/0x590 fs/namei.c:4253 __do_sys_unlinkat fs/namei.c:4433 [inline] __se_sys_unlinkat fs/namei.c:4427 [inline] __x64_sys_unlinkat+0x9e/0xb0 fs/namei.c:4427 x64_sys_call+0x6e9/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:264 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:0x7fac5227c6c7 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 07 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:00007fff573e45f8 EFLAGS: 00000207 ORIG_RAX: 0000000000000107 RAX: ffffffffffffffda RBX: 0000000000000065 RCX: 00007fac5227c6c7 RDX: 0000000000000200 RSI: 00007fff573e57a0 RDI: 00000000ffffff9c RBP: 00007fac522c8336 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000100 R11: 0000000000000207 R12: 00007fff573e57a0 R13: 00007fac522c8336 R14: 000000000000b20d R15: 0000000000000007 The buggy address belongs to the physical page: page:ffffea0004967c40 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x1259f1 flags: 0x4000000000000000(zone=1) raw: 4000000000000000 ffffea000496c048 ffffea0004967f48 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 436, tgid 436 (syz-executor.0), ts 44654804521, free_ts 44672374055 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] alloc_page_vma include/linux/gfp.h:283 [inline] wp_page_copy+0x239/0x1270 mm/memory.c:3184 do_wp_page+0x9ef/0xc80 handle_pte_fault mm/memory.c:5145 [inline] __handle_mm_fault mm/memory.c:5269 [inline] handle_mm_fault+0xffc/0x2550 mm/memory.c:5409 do_user_addr_fault arch/x86/mm/fault.c:1354 [inline] handle_page_fault arch/x86/mm/fault.c:1497 [inline] exc_page_fault+0x3b3/0x700 arch/x86/mm/fault.c:1553 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: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 free_pages_and_swap_cache+0x68/0x80 mm/swap_state.c:315 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:3348 __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 get_signal+0xf0b/0x1000 kernel/signal.c:2880 arch_do_signal_or_restart+0xb0/0x16f0 arch/x86/kernel/signal.c:871 exit_to_user_mode_loop+0x74/0xa0 kernel/entry/common.c:174 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x26/0x130 kernel/entry/common.c:303 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:87 Memory state around the buggy address: ffff8881259f0f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881259f0f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8881259f1000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8881259f1080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8881259f1100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs error (device loop0): ext4_xattr_inode_iget:404: comm syz-executor: inode #1: comm syz-executor: iget: illegal inode # EXT4-fs error (device loop0): ext4_xattr_inode_iget:409: comm syz-executor: error while reading EA inode 1 err=-117