ci2 starts bisection 2024-06-09 12:25:15.077742661 +0000 UTC m=+152896.767178490 bisecting fixing commit since 993bed180178156a70afdafe8aaf23a117107352 building syzkaller on 33b9e058838dbe993f943107bcdd0223e831bd84 ensuring issue is reproducible on original commit 993bed180178156a70afdafe8aaf23a117107352 testing commit 993bed180178156a70afdafe8aaf23a117107352 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 0dc5b7b37d4196609c8df1df767142e95c81291ca1035903c67545dd78eb83cd 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 [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit 993bed180178156a70afdafe8aaf23a117107352 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 0c2a19cb8cf614785942766c8e2faed6e3829f1ba930f867d76fd51b054c82a8 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 [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed kconfig minimization: base=4920 full=6159 leaves diff=242 split chunks (needed=false): <242> split chunk #0 of len 242 into 5 parts testing without sub-chunk 1/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing commit 993bed180178156a70afdafe8aaf23a117107352 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 60ad731fa07ab0990449bdca0fc1fa0b70fe3d6c2ab7e4063f1d24eae3248609 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 [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit 993bed180178156a70afdafe8aaf23a117107352 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: b424fb00874614370832e725b64f7abd0d185185d1c0abc4be24bf65a3f446f5 run #0: crashed: KASAN: use-after-free Write in igrab run #1: crashed: KASAN: use-after-free Write in igrab run #2: crashed: KASAN: use-after-free Write in igrab run #3: crashed: KASAN: use-after-free Write in igrab run #4: crashed: KASAN: use-after-free Write in igrab run #5: crashed: KASAN: use-after-free Write in igrab run #6: crashed: KASAN: use-after-free Write in igrab run #7: crashed: KASAN: use-after-free Write in igrab run #8: crashed: KASAN: use-after-free Write in igrab run #9: crashed: KASAN: use-after-free Read 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 [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit 993bed180178156a70afdafe8aaf23a117107352 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 26e66cbc015298da47560eb290d2a7579d0c34dbf12518446d467c071c0fad8c 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 993bed180178156a70afdafe8aaf23a117107352 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 8b021b96eb83ab3bc14d485601d32e66f5447ec0aef7572f522bd90e1aa36d2e run #0: crashed: KASAN: use-after-free Write in igrab run #1: crashed: KASAN: use-after-free Write in igrab run #2: crashed: KASAN: use-after-free Write in igrab run #3: crashed: KASAN: use-after-free Write in igrab run #4: crashed: KASAN: use-after-free Write in igrab run #5: crashed: KASAN: use-after-free Write in igrab run #6: crashed: KASAN: use-after-free Write in igrab run #7: crashed: KASAN: use-after-free Write in igrab run #8: crashed: KASAN: use-after-free Write in igrab run #9: crashed: KASAN: use-after-free Read 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 [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit 993bed180178156a70afdafe8aaf23a117107352 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 failed building 993bed180178156a70afdafe8aaf23a117107352: net/socket.c:1191: undefined reference to `wext_handle_ioctl' net/socket.c:3385: 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 46 configs; suspects: [HID_ZEROPLUS 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 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 [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing current HEAD 79bd336c7a94039e3d325195b978a04f3b89d2f3 testing commit 79bd336c7a94039e3d325195b978a04f3b89d2f3 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 9b8e2ef16adc3793332dd601c708fc7d9a9f05640485f79ccca94e4b5c42b7f1 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: 1h7m2.5375884s (build: 42m37.367842857s, test: 22m24.290754902s) crash still not fixed or there were kernel test errors commit msg: Merge a585faf05915 ("fs/ntfs3: Fix oob in ntfs_listxattr") into android-mainline crash: KASAN: use-after-free Write in igrab ================================================================== BUG: KASAN: use-after-free in instrument_atomic_read_write include/linux/instrumented.h:101 [inline] BUG: KASAN: use-after-free in atomic_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:511 [inline] BUG: KASAN: use-after-free in queued_spin_lock include/asm-generic/qspinlock.h:82 [inline] BUG: KASAN: use-after-free in do_raw_spin_lock include/linux/spinlock.h:187 [inline] BUG: KASAN: use-after-free in __raw_spin_lock include/linux/spinlock_api_smp.h:143 [inline] BUG: KASAN: use-after-free in _raw_spin_lock+0x78/0x110 kernel/locking/spinlock.c:154 Write of size 4 at addr ffff88812800f3b8 by task syz-executor.0/347 CPU: 1 PID: 347 Comm: syz-executor.0 Not tainted 5.15.149-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 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 check_region_inline mm/kasan/generic.c:183 [inline] kasan_check_range+0x148/0x190 mm/kasan/generic.c:189 __kasan_check_write+0x14/0x20 mm/kasan/shadow.c:37 instrument_atomic_read_write include/linux/instrumented.h:101 [inline] atomic_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:511 [inline] queued_spin_lock include/asm-generic/qspinlock.h:82 [inline] do_raw_spin_lock include/linux/spinlock.h:187 [inline] __raw_spin_lock include/linux/spinlock_api_smp.h:143 [inline] _raw_spin_lock+0x78/0x110 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:363 [inline] igrab+0x19/0x80 fs/inode.c:1346 f2fs_sync_inode_meta+0x16e/0x260 fs/f2fs/checkpoint.c:1157 block_operations fs/f2fs/checkpoint.c:1265 [inline] f2fs_write_checkpoint+0x693/0x6430 fs/f2fs/checkpoint.c:1659 __write_checkpoint_sync fs/f2fs/checkpoint.c:1776 [inline] f2fs_issue_checkpoint+0x2a6/0x440 fs/f2fs/checkpoint.c:1873 f2fs_sync_fs+0x14c/0x240 fs/f2fs/super.c:1695 sync_filesystem.part.0+0xfc/0x170 fs/sync.c:66 sync_filesystem+0x66/0x80 fs/sync.c:43 f2fs_quota_off_umount+0x52/0xd0 fs/f2fs/super.c:2896 f2fs_put_super+0xb8/0xd50 fs/f2fs/super.c:1582 generic_shutdown_super+0x13d/0x340 fs/super.c:475 kill_block_super+0x9a/0xd0 fs/super.c:1414 kill_f2fs_super+0x24d/0x360 fs/f2fs/super.c:4610 deactivate_locked_super+0x8b/0x130 fs/super.c:335 deactivate_super+0x71/0x80 fs/super.c:366 cleanup_mnt+0x2cf/0x400 fs/namespace.c:1143 __cleanup_mnt+0xd/0x10 fs/namespace.c:1150 task_work_run+0xc2/0x150 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x140/0x150 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x21/0x40 kernel/entry/common.c:301 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fb247eed197 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:00007ffc08cea108 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007fb247eed197 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffc08cea1c0 RBP: 00007ffc08cea1c0 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffc08ceb280 R13: 00007fb247f373b9 R14: 000000000000ab3e R15: 0000000000000003 Allocated by task 352: kasan_save_stack+0x26/0x50 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:433 [inline] __kasan_slab_alloc+0x94/0xc0 mm/kasan/common.c:466 kasan_slab_alloc include/linux/kasan.h:217 [inline] slab_post_alloc_hook mm/slab.h:550 [inline] slab_alloc_node mm/slub.c:3240 [inline] slab_alloc mm/slub.c:3248 [inline] kmem_cache_alloc+0x197/0x480 mm/slub.c:3253 f2fs_kmem_cache_alloc fs/f2fs/f2fs.h:2795 [inline] f2fs_alloc_inode+0x1d/0x370 fs/f2fs/super.c:1406 alloc_inode+0x5c/0x1e0 fs/inode.c:236 iget_locked+0x138/0x5f0 fs/inode.c:1244 f2fs_iget+0x55/0x4c70 fs/f2fs/inode.c:489 f2fs_lookup+0x484/0xbe0 fs/f2fs/namei.c:551 lookup_open fs/namei.c:3440 [inline] open_last_lookups fs/namei.c:3532 [inline] path_openat+0x1196/0x4180 fs/namei.c:3739 do_filp_open+0x1ab/0x3f0 fs/namei.c:3769 do_sys_openat2+0x135/0x8e0 fs/open.c:1234 do_sys_open fs/open.c:1250 [inline] __do_sys_openat fs/open.c:1266 [inline] __se_sys_openat fs/open.c:1261 [inline] __x64_sys_openat+0x124/0x200 fs/open.c:1261 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb Freed by task 0: kasan_save_stack+0x26/0x50 mm/kasan/common.c:38 kasan_set_track+0x25/0x30 mm/kasan/common.c:45 kasan_set_free_info+0x24/0x40 mm/kasan/generic.c:370 ____kasan_slab_free mm/kasan/common.c:365 [inline] ____kasan_slab_free mm/kasan/common.c:327 [inline] __kasan_slab_free+0x111/0x150 mm/kasan/common.c:373 kasan_slab_free include/linux/kasan.h:193 [inline] slab_free_hook mm/slub.c:1723 [inline] slab_free_freelist_hook+0x94/0x1a0 mm/slub.c:1749 slab_free mm/slub.c:3519 [inline] kmem_cache_free+0x105/0x250 mm/slub.c:3535 f2fs_free_inode+0x1d/0x30 fs/f2fs/super.c:1550 i_callback+0x3a/0x60 fs/inode.c:225 rcu_do_batch+0x340/0xca0 kernel/rcu/tree.c:2523 rcu_core+0x56b/0xac0 kernel/rcu/tree.c:2763 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2776 __do_softirq+0x1c1/0x5c8 kernel/softirq.c:565 Last potentially related work creation: kasan_save_stack+0x26/0x50 mm/kasan/common.c:38 __kasan_record_aux_stack+0xd8/0xf0 mm/kasan/generic.c:348 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358 __call_rcu_common.constprop.0+0xd7/0x11c0 kernel/rcu/tree.c:3007 call_rcu+0x9/0x10 kernel/rcu/tree.c:3125 destroy_inode+0x11f/0x190 fs/inode.c:291 evict+0x43c/0x610 fs/inode.c:602 dispose_list+0xf5/0x1a0 fs/inode.c:620 evict_inodes+0x2e6/0x3d0 fs/inode.c:670 generic_shutdown_super+0xa4/0x340 fs/super.c:454 kill_block_super+0x9a/0xd0 fs/super.c:1414 kill_f2fs_super+0x24d/0x360 fs/f2fs/super.c:4610 deactivate_locked_super+0x8b/0x130 fs/super.c:335 deactivate_super+0x71/0x80 fs/super.c:366 cleanup_mnt+0x2cf/0x400 fs/namespace.c:1143 __cleanup_mnt+0xd/0x10 fs/namespace.c:1150 task_work_run+0xc2/0x150 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x140/0x150 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x21/0x40 kernel/entry/common.c:301 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x61/0xcb The buggy address belongs to the object at ffff88812800f330 which belongs to the cache f2fs_inode_cache of size 1424 The buggy address is located 136 bytes inside of 1424-byte region [ffff88812800f330, ffff88812800f8c0) The buggy address belongs to the page: page:ffffea0004a00200 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x128008 head:ffffea0004a00200 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 0000000000000000 dead000000000122 ffff8881083ca780 raw: 0000000000000000 0000000080150015 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 352, ts 44275499577, free_ts 0 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook mm/page_alloc.c:2604 [inline] prep_new_page+0x1a2/0x310 mm/page_alloc.c:2610 get_page_from_freelist+0x1ce2/0x30a0 mm/page_alloc.c:4484 __alloc_pages+0x2d1/0x2620 mm/page_alloc.c:5776 __alloc_pages_node include/linux/gfp.h:591 [inline] alloc_pages_node include/linux/gfp.h:605 [inline] alloc_pages include/linux/gfp.h:618 [inline] alloc_slab_page mm/slub.c:1793 [inline] allocate_slab+0x39d/0x530 mm/slub.c:1932 new_slab mm/slub.c:1995 [inline] ___slab_alloc.constprop.0+0x3ca/0x890 mm/slub.c:3028 __slab_alloc.constprop.0+0x42/0x80 mm/slub.c:3115 slab_alloc_node mm/slub.c:3206 [inline] slab_alloc mm/slub.c:3248 [inline] kmem_cache_alloc+0x440/0x480 mm/slub.c:3253 f2fs_kmem_cache_alloc fs/f2fs/f2fs.h:2795 [inline] f2fs_alloc_inode+0x1d/0x370 fs/f2fs/super.c:1406 alloc_inode+0x5c/0x1e0 fs/inode.c:236 iget_locked+0x138/0x5f0 fs/inode.c:1244 f2fs_iget+0x55/0x4c70 fs/f2fs/inode.c:489 f2fs_lookup+0x484/0xbe0 fs/f2fs/namei.c:551 lookup_open fs/namei.c:3440 [inline] open_last_lookups fs/namei.c:3532 [inline] path_openat+0x1196/0x4180 fs/namei.c:3739 do_filp_open+0x1ab/0x3f0 fs/namei.c:3769 do_sys_openat2+0x135/0x8e0 fs/open.c:1234 do_sys_open fs/open.c:1250 [inline] __do_sys_openat fs/open.c:1266 [inline] __se_sys_openat fs/open.c:1261 [inline] __x64_sys_openat+0x124/0x200 fs/open.c:1261 page_owner free stack trace missing Memory state around the buggy address: ffff88812800f280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88812800f300: fc fc fc fc fc fc fa fb fb fb fb fb fb fb fb fb >ffff88812800f380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88812800f400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88812800f480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================