ci2 starts bisection 2023-10-12 19:38:40.278923358 +0000 UTC m=+40485.914146628 bisecting fixing commit since 312dfb3b7ec3beb9ff305db3b194e19eec7f2bc3 building syzkaller on a4ae4f428721da42ac15f07d6f3b54584dedee27 ensuring issue is reproducible on original commit 312dfb3b7ec3beb9ff305db3b194e19eec7f2bc3 testing commit 312dfb3b7ec3beb9ff305db3b194e19eec7f2bc3 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 4ace5774c8ae8ea8982c0985cf0385e1cf9ce95be60474697f15b1dccc71300e all runs: crashed: KASAN: use-after-free Write in igrab representative crash: KASAN: use-after-free Write in igrab, 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 312dfb3b7ec3beb9ff305db3b194e19eec7f2bc3 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 556335a0c35325ed0ef778ccd18157c0911afe3deaa6fda8c10e037e305c6df7 all runs: crashed: KASAN: use-after-free Write in igrab representative crash: KASAN: use-after-free Write in igrab, 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=6520 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 312dfb3b7ec3beb9ff305db3b194e19eec7f2bc3 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: cce7627fb64da1973d53993877b80354d1bf2128d343eeb8fe2ec2883427b1bd all runs: crashed: KASAN: use-after-free Write in igrab representative crash: KASAN: use-after-free Write in igrab, 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 312dfb3b7ec3beb9ff305db3b194e19eec7f2bc3 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: ff34bc31331311c2fed63608d94d430b085a535fa8ed498f23df3457a182d4e9 all runs: crashed: KASAN: use-after-free Write in igrab representative crash: KASAN: use-after-free Write in igrab, 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 312dfb3b7ec3beb9ff305db3b194e19eec7f2bc3 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 34ad43f7f607ce9c396a02372fc34d1c7d9c73d995446ea5a15f578159172024 all runs: crashed: KASAN: use-after-free Write in igrab representative crash: KASAN: use-after-free Write in igrab, 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 312dfb3b7ec3beb9ff305db3b194e19eec7f2bc3 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: f6f59548e2e68d020dc90c9d6eeb60d9c6f3bde416fe12eaa6cc4d2178b24ff9 all runs: crashed: KASAN: use-after-free Write in igrab representative crash: KASAN: use-after-free Write in igrab, 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 312dfb3b7ec3beb9ff305db3b194e19eec7f2bc3 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 failed building 312dfb3b7ec3beb9ff305db3b194e19eec7f2bc3: 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 [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing current HEAD acb072863888c916b539271c9a2c2e91fbfcceb6 testing commit acb072863888c916b539271c9a2c2e91fbfcceb6 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 3fe75065c3f94b3b1f9da68a2705e5e55a3d15542ccb313070442f0a2e2dcff7 all runs: crashed: KASAN: use-after-free Write in igrab representative crash: KASAN: use-after-free Write in igrab, types: [KASAN] crash still not fixed/happens on the oldest tested release revisions tested: 7, total time: 43m3.344364044s (build: 20m21.620212054s, test: 20m5.124186109s) crash still not fixed or there were kernel test errors commit msg: UPSTREAM: usb: core: stop USB enumeration if too many retries crash: KASAN: use-after-free Write in igrab ================================================================== BUG: KASAN: use-after-free in instrument_atomic_read_write include/linux/instrumented.h:102 [inline] BUG: KASAN: use-after-free in atomic_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:541 [inline] BUG: KASAN: use-after-free in queued_spin_lock include/asm-generic/qspinlock.h:111 [inline] BUG: KASAN: use-after-free in do_raw_spin_lock include/linux/spinlock.h:186 [inline] BUG: KASAN: use-after-free in __raw_spin_lock include/linux/spinlock_api_smp.h:134 [inline] BUG: KASAN: use-after-free in _raw_spin_lock+0x97/0x1b0 kernel/locking/spinlock.c:154 Write of size 4 at addr ffff88810ae04078 by task syz-executor.0/342 CPU: 0 PID: 342 Comm: syz-executor.0 Not tainted 6.1.25-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 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 __kasan_check_write+0x14/0x20 mm/kasan/shadow.c:37 instrument_atomic_read_write include/linux/instrumented.h:102 [inline] atomic_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:541 [inline] queued_spin_lock include/asm-generic/qspinlock.h:111 [inline] do_raw_spin_lock include/linux/spinlock.h:186 [inline] __raw_spin_lock include/linux/spinlock_api_smp.h:134 [inline] _raw_spin_lock+0x97/0x1b0 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:350 [inline] igrab+0x1b/0x80 fs/inode.c:1388 f2fs_sync_inode_meta fs/f2fs/checkpoint.c:1148 [inline] block_operations fs/f2fs/checkpoint.c:1256 [inline] f2fs_write_checkpoint+0xb9f/0x2050 fs/f2fs/checkpoint.c:1648 f2fs_issue_checkpoint+0x2fb/0x460 f2fs_sync_fs+0x109/0x200 fs/f2fs/super.c:1670 sync_filesystem+0x16d/0x1b0 fs/sync.c:66 f2fs_quota_off_umount+0x1ba/0x1d0 fs/f2fs/super.c:2945 f2fs_put_super+0xb8/0xc20 fs/f2fs/super.c:1559 generic_shutdown_super+0x113/0x2d0 fs/super.c:503 kill_block_super+0x79/0xb0 fs/super.c:1452 kill_f2fs_super+0x252/0x320 fs/f2fs/super.c:4705 deactivate_locked_super+0x7d/0xe0 fs/super.c:334 deactivate_super+0x5d/0x80 fs/super.c:365 cleanup_mnt+0x31e/0x390 fs/namespace.c:1186 __cleanup_mnt+0xd/0x10 fs/namespace.c:1193 task_work_run+0x208/0x260 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x8b/0xa0 kernel/entry/common.c:171 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 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f1bb887dc87 Code: b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 b0 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffdcc390bd8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f1bb887dc87 RDX: 0000000000000000 RSI: 000000000000000a RDI: 00007ffdcc390c90 RBP: 00007ffdcc390c90 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffdcc391d50 R13: 00007f1bb88d7c5a R14: 000000000000a065 R15: 0000000000000003 Allocated by task 349: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 kasan_save_alloc_info+0x1f/0x30 mm/kasan/generic.c:505 __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:333 kasan_slab_alloc include/linux/kasan.h:202 [inline] slab_post_alloc_hook+0x59/0x270 mm/slab.h:768 slab_alloc_node mm/slub.c:3418 [inline] slab_alloc mm/slub.c:3426 [inline] __kmem_cache_alloc_lru mm/slub.c:3433 [inline] kmem_cache_alloc_lru+0x102/0x220 mm/slub.c:3449 alloc_inode_sb include/linux/fs.h:3142 [inline] f2fs_alloc_inode+0x28/0x340 fs/f2fs/super.c:1384 alloc_inode fs/inode.c:259 [inline] iget_locked+0x16d/0x750 fs/inode.c:1286 f2fs_iget+0x50/0x4250 fs/f2fs/inode.c:503 f2fs_lookup+0x28f/0xa10 fs/f2fs/namei.c:541 lookup_open fs/namei.c:3391 [inline] open_last_lookups fs/namei.c:3481 [inline] path_openat+0xe15/0x2440 fs/namei.c:3711 do_filp_open+0x226/0x430 fs/namei.c:3741 do_sys_openat2+0x103/0x6c0 fs/open.c:1333 do_sys_open fs/open.c:1349 [inline] __do_sys_open fs/open.c:1357 [inline] __se_sys_open fs/open.c:1353 [inline] __x64_sys_open+0x1eb/0x240 fs/open.c:1353 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Freed by task 13: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:516 ____kasan_slab_free+0x131/0x180 mm/kasan/common.c:241 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:249 kasan_slab_free include/linux/kasan.h:178 [inline] slab_free_hook mm/slub.c:1744 [inline] slab_free_freelist_hook mm/slub.c:1770 [inline] slab_free mm/slub.c:3681 [inline] kmem_cache_free+0x264/0x450 mm/slub.c:3703 f2fs_free_inode+0x1c/0x20 fs/f2fs/super.c:1527 i_callback+0x41/0x60 fs/inode.c:248 rcu_do_batch+0x505/0xb20 kernel/rcu/tree.c:2250 rcu_core+0x4ae/0xe50 kernel/rcu/tree.c:2510 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2527 __do_softirq+0x1d2/0x5f2 kernel/softirq.c:613 Last potentially related work creation: kasan_save_stack+0x3b/0x60 mm/kasan/common.c:45 __kasan_record_aux_stack+0xb4/0xc0 mm/kasan/generic.c:486 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:496 call_rcu+0xd4/0x1010 kernel/rcu/tree.c:2798 destroy_inode fs/inode.c:314 [inline] evict+0x5e0/0x620 fs/inode.c:679 dispose_list fs/inode.c:697 [inline] evict_inodes+0x522/0x590 fs/inode.c:747 generic_shutdown_super+0x92/0x2d0 fs/super.c:482 kill_block_super+0x79/0xb0 fs/super.c:1452 kill_f2fs_super+0x252/0x320 fs/f2fs/super.c:4705 deactivate_locked_super+0x7d/0xe0 fs/super.c:334 deactivate_super+0x5d/0x80 fs/super.c:365 cleanup_mnt+0x31e/0x390 fs/namespace.c:1186 __cleanup_mnt+0xd/0x10 fs/namespace.c:1193 task_work_run+0x208/0x260 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x8b/0xa0 kernel/entry/common.c:171 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 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff88810ae03ff0 which belongs to the cache f2fs_inode_cache of size 1360 The buggy address is located 136 bytes inside of 1360-byte region [ffff88810ae03ff0, ffff88810ae04540) The buggy address belongs to the physical page: page:ffffea00042b8000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10ae00 head:ffffea00042b8000 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 0000000000000000 dead000000000122 ffff888100280900 raw: 0000000000000000 0000000080160016 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Reclaimable, gfp_mask 0x1d2050(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 349, tgid 348 (syz-executor.0), ts 41301174342, free_ts 0 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook mm/page_alloc.c:2582 [inline] prep_new_page+0x512/0x5e0 mm/page_alloc.c:2589 get_page_from_freelist+0x273d/0x27d0 mm/page_alloc.c:4387 __alloc_pages+0x39f/0x780 mm/page_alloc.c:5669 allocate_slab mm/slub.c:1959 [inline] new_slab+0xcb/0x440 mm/slub.c:2012 ___slab_alloc+0x611/0x9a0 mm/slub.c:3200 __slab_alloc+0x52/0x90 mm/slub.c:3299 slab_alloc_node mm/slub.c:3384 [inline] slab_alloc mm/slub.c:3426 [inline] __kmem_cache_alloc_lru mm/slub.c:3433 [inline] kmem_cache_alloc_lru+0x144/0x220 mm/slub.c:3449 alloc_inode_sb include/linux/fs.h:3142 [inline] f2fs_alloc_inode+0x28/0x340 fs/f2fs/super.c:1384 alloc_inode fs/inode.c:259 [inline] iget_locked+0x16d/0x750 fs/inode.c:1286 f2fs_iget+0x50/0x4250 fs/f2fs/inode.c:503 f2fs_fill_super+0x4141/0x6b90 fs/f2fs/super.c:4316 mount_bdev+0x265/0x340 fs/super.c:1425 f2fs_mount+0x10/0x20 fs/f2fs/super.c:4673 legacy_get_tree+0xeb/0x180 fs/fs_context.c:610 vfs_get_tree+0x7c/0x170 fs/super.c:1555 do_new_mount+0x1e1/0x8f0 fs/namespace.c:3040 page_owner free stack trace missing Memory state around the buggy address: ffff88810ae03f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88810ae03f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fa fb >ffff88810ae04000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88810ae04080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88810ae04100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================