ci2 starts bisection 2025-09-10 22:39:08.838666534 +0000 UTC m=+80941.810789030 bisecting fixing commit since ba450694016633a7455e0ee730b393051799f9ae building syzkaller on e77fae1501ac8002d344f33dfea3a7b8444d74fc ensuring issue is reproducible on original commit ba450694016633a7455e0ee730b393051799f9ae testing commit ba450694016633a7455e0ee730b393051799f9ae gcc compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8 kernel signature: 61da8b5da858d0532daf4705a1cd2b4045dcc519edea0e3a4ce959d007c0e9cb all runs: crashed: KASAN: use-after-free Read in sanity_check_extent_cache representative crash: KASAN: use-after-free Read in sanity_check_extent_cache, types: [KASAN-USE-AFTER-FREE-READ] check whether we can drop unnecessary instrumentation disabling configs for [hang memleak ubsan bug_or_warning locking atomic_sleep], they are not needed testing commit ba450694016633a7455e0ee730b393051799f9ae gcc compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8 kernel signature: f7210a2d0ada6d5ef190029543866fc8048d2ff4521167bf29f2a6bfdc217500 run #0: crashed: KASAN: use-after-free Read in sanity_check_extent_cache run #1: crashed: KASAN: use-after-free Read in sanity_check_extent_cache run #2: crashed: KASAN: use-after-free Read in sanity_check_extent_cache run #3: crashed: KASAN: use-after-free Read in sanity_check_extent_cache run #4: crashed: KASAN: use-after-free Read in sanity_check_extent_cache run #5: crashed: KASAN: use-after-free Read in sanity_check_extent_cache run #6: crashed: KASAN: use-after-free Read in sanity_check_extent_cache run #7: crashed: KASAN: use-after-free Read in sanity_check_extent_cache run #8: crashed: KASAN: use-after-free Read in __destroy_extent_node run #9: crashed: KASAN: use-after-free Read in sanity_check_extent_cache representative crash: KASAN: use-after-free Read in sanity_check_extent_cache, types: [KASAN-USE-AFTER-FREE-READ] the bug reproduces without the instrumentation disabling configs for [ubsan bug_or_warning locking atomic_sleep hang memleak], they are not needed kconfig minimization: base=5186 full=6556 leaves diff=264 split chunks (needed=false): <264> split chunk #0 of len 264 into 5 parts testing without sub-chunk 1/5 disabling configs for [hang memleak ubsan bug_or_warning locking atomic_sleep], they are not needed testing commit ba450694016633a7455e0ee730b393051799f9ae gcc compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8 kernel signature: 0543486d06828cf237e80d57169e4e0d3b230968098b90b3b74a3c6074ff0626 all runs: crashed: KASAN: use-after-free Read in sanity_check_extent_cache representative crash: KASAN: use-after-free Read in sanity_check_extent_cache, types: [KASAN-USE-AFTER-FREE-READ] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [memleak ubsan bug_or_warning locking atomic_sleep hang], they are not needed testing commit ba450694016633a7455e0ee730b393051799f9ae gcc compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8 kernel signature: becacb9ff6d3da3fa5a15da6ad2794d33acaa091eb7d41f5f0991dc1ad7da517 all runs: crashed: KASAN: use-after-free Read in sanity_check_extent_cache representative crash: KASAN: use-after-free Read in sanity_check_extent_cache, types: [KASAN-USE-AFTER-FREE-READ] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [locking atomic_sleep hang memleak ubsan bug_or_warning], they are not needed testing commit ba450694016633a7455e0ee730b393051799f9ae gcc compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8 kernel signature: 565e8e45d9b042d7e51240aca5eaf1b957de1346e0ed1963d86c4963ffffc01c all runs: crashed: KASAN: use-after-free Read in sanity_check_extent_cache representative crash: KASAN: use-after-free Read in sanity_check_extent_cache, types: [KASAN-USE-AFTER-FREE-READ] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [ubsan bug_or_warning locking atomic_sleep hang memleak], they are not needed testing commit ba450694016633a7455e0ee730b393051799f9ae gcc compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8 kernel signature: c64b7f8059868a3d60ff124b6c77fe477b0a9aa2ec853f43a66b076434fbe5fb all runs: crashed: KASAN: use-after-free Read in sanity_check_extent_cache representative crash: KASAN: use-after-free Read in sanity_check_extent_cache, types: [KASAN-USE-AFTER-FREE-READ] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [hang memleak ubsan bug_or_warning locking atomic_sleep], they are not needed testing commit ba450694016633a7455e0ee730b393051799f9ae gcc compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8 failed building ba450694016633a7455e0ee730b393051799f9ae: ld.lld: error: undefined symbol: wext_proc_init ld.lld: error: undefined symbol: wext_proc_exit ld.lld: error: undefined symbol: wext_handle_ioctl ld.lld: error: undefined symbol: compat_wext_handle_ioctl minimized to 52 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 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 ZEROPLUS_FF] disabling configs for [hang memleak ubsan bug_or_warning locking atomic_sleep], they are not needed testing current HEAD 0429b7af308cf65c84109c08d06b01950dcd57fe testing commit 0429b7af308cf65c84109c08d06b01950dcd57fe gcc compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8 kernel signature: c0fd1a6ecd5f83224c0a3b198778b6ab147ba35aef6817dd2772bac47cda867c all runs: crashed: KASAN: use-after-free Read in sanity_check_extent_cache representative crash: KASAN: use-after-free Read in sanity_check_extent_cache, types: [KASAN-USE-AFTER-FREE-READ] crash still not fixed/happens on the oldest tested release revisions tested: 7, total time: 1h25m18.221848731s (build: 31m33.58669092s, test: 50m33.057258436s) crash still not fixed or there were kernel test errors commit msg: ANDROID: KVM: arm64: Fix CPU type when reading trace_pdesc crash: KASAN: use-after-free Read in sanity_check_extent_cache RBP: 00007f7b5b810b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f7b5b9b6080 R15: 00007ffced4f8148 ================================================================== BUG: KASAN: use-after-free in sanity_check_extent_cache+0x399/0x450 fs/f2fs/extent_cache.c:47 Read of size 4 at addr ffff8881041129a8 by task syz.2.18/521 CPU: 0 PID: 521 Comm: syz.2.18 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: __dump_stack+0x19/0x1c lib/dump_stack.c:88 dump_stack_lvl+0xa3/0xec lib/dump_stack.c:106 print_address_description+0x71/0x1e0 mm/kasan/report.c:316 print_report+0x4a/0x60 mm/kasan/report.c:418 kasan_report+0x122/0x150 mm/kasan/report.c:522 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:350 sanity_check_extent_cache+0x399/0x450 fs/f2fs/extent_cache.c:47 do_read_inode fs/f2fs/inode.c:457 [inline] f2fs_iget+0x2f5c/0x47a0 fs/f2fs/inode.c:508 f2fs_lookup+0x1f2/0x800 fs/f2fs/namei.c:484 lookup_open fs/namei.c:3459 [inline] open_last_lookups fs/namei.c:3549 [inline] path_openat+0xe8f/0x2aa0 fs/namei.c:3779 do_filp_open+0x1b0/0x360 fs/namei.c:3809 do_sys_openat2+0x119/0x6b0 fs/open.c:1341 do_sys_open fs/open.c:1357 [inline] __do_sys_openat fs/open.c:1373 [inline] __se_sys_openat fs/open.c:1368 [inline] __x64_sys_openat+0xf1/0x120 fs/open.c:1368 x64_sys_call+0x783/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:258 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f7b5b78e929 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f7b5c5df038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f7b5b9b6080 RCX: 00007f7b5b78e929 RDX: 0000000000101000 RSI: 0000200000000080 RDI: ffffffffffffff9c RBP: 00007f7b5b810b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f7b5b9b6080 R15: 00007ffced4f8148 Allocated by task 498: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 kasan_save_alloc_info+0x25/0x30 mm/kasan/generic.c:505 __kasan_slab_alloc+0x72/0x80 mm/kasan/common.c:333 kasan_slab_alloc include/linux/kasan.h:202 [inline] slab_post_alloc_hook+0x4f/0x280 mm/slab.h:768 slab_alloc_node mm/slub.c:3421 [inline] slab_alloc mm/slub.c:3431 [inline] __kmem_cache_alloc_lru mm/slub.c:3438 [inline] kmem_cache_alloc+0x16e/0x330 mm/slub.c:3447 f2fs_kmem_cache_alloc fs/f2fs/f2fs.h:-1 [inline] __grab_extent_tree+0x1bb/0x410 fs/f2fs/extent_cache.c:335 f2fs_init_read_extent_tree+0x31d/0x980 fs/f2fs/extent_cache.c:406 do_read_inode fs/f2fs/inode.c:454 [inline] f2fs_iget+0x2f4c/0x47a0 fs/f2fs/inode.c:508 f2fs_lookup+0x1f2/0x800 fs/f2fs/namei.c:484 __lookup_slow+0x24e/0x330 fs/namei.c:1689 lookup_slow+0x52/0x70 fs/namei.c:1706 walk_component+0x261/0x370 fs/namei.c:1997 lookup_last fs/namei.c:2454 [inline] path_lookupat+0x85/0x320 fs/namei.c:2478 filename_lookup+0x1bc/0x420 fs/namei.c:2507 user_path_at_empty+0x3b/0x170 fs/namei.c:2904 user_path_at include/linux/namei.h:57 [inline] do_sys_truncate+0x94/0x140 fs/open.c:133 __do_sys_truncate fs/open.c:147 [inline] __se_sys_truncate fs/open.c:145 [inline] __x64_sys_truncate+0x56/0x60 fs/open.c:145 x64_sys_call+0x679/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:77 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Freed by task 498: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 kasan_save_free_info+0x31/0x50 mm/kasan/generic.c:516 ____kasan_slab_free+0x132/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:1745 [inline] slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1771 slab_free mm/slub.c:3686 [inline] kmem_cache_free+0x12f/0x2a0 mm/slub.c:3711 __destroy_extent_tree+0x2f0/0x450 fs/f2fs/extent_cache.c:1135 f2fs_destroy_extent_tree+0xf/0x20 fs/f2fs/extent_cache.c:1146 f2fs_evict_inode+0x3ef/0x1020 fs/f2fs/inode.c:778 evict+0x3eb/0x820 fs/inode.c:705 iput_final fs/inode.c:1834 [inline] iput+0x4c1/0x4f0 fs/inode.c:1860 iget_failed+0x167/0x1b0 fs/bad_inode.c:250 f2fs_iget+0x1b64/0x47a0 fs/f2fs/inode.c:561 f2fs_lookup+0x1f2/0x800 fs/f2fs/namei.c:484 __lookup_slow+0x24e/0x330 fs/namei.c:1689 lookup_slow+0x52/0x70 fs/namei.c:1706 walk_component+0x261/0x370 fs/namei.c:1997 lookup_last fs/namei.c:2454 [inline] path_lookupat+0x85/0x320 fs/namei.c:2478 filename_lookup+0x1bc/0x420 fs/namei.c:2507 user_path_at_empty+0x3b/0x170 fs/namei.c:2904 user_path_at include/linux/namei.h:57 [inline] do_sys_truncate+0x94/0x140 fs/open.c:133 __do_sys_truncate fs/open.c:147 [inline] __se_sys_truncate fs/open.c:145 [inline] __x64_sys_truncate+0x56/0x60 fs/open.c:145 x64_sys_call+0x679/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:77 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff888104112960 which belongs to the cache f2fs_extent_tree of size 88 The buggy address is located 72 bytes inside of 88-byte region [ffff888104112960, ffff8881041129b8) The buggy address belongs to the physical page: page:ffffea0004104480 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104112 flags: 0x4000000000000200(slab|zone=1) raw: 4000000000000200 0000000000000000 dead000000000122 ffff88810027f680 raw: 0000000000000000 0000000080220022 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Reclaimable, gfp_mask 0x112c50(GFP_NOFS|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 494, tgid 493 (syz.5.16), ts 53441312354, free_ts 0 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook mm/page_alloc.c:2643 [inline] prep_new_page+0x58c/0x650 mm/page_alloc.c:2650 get_page_from_freelist+0x2f0f/0x2f80 mm/page_alloc.c:4554 __alloc_pages+0x1c3/0x450 mm/page_alloc.c:5868 alloc_slab_page+0x6e/0xf0 include/linux/gfp.h:-1 allocate_slab mm/slub.c:1962 [inline] new_slab+0x7c/0x360 mm/slub.c:2015 ___slab_alloc+0x5d2/0x970 mm/slub.c:3203 __slab_alloc+0x53/0x90 mm/slub.c:3302 slab_alloc_node mm/slub.c:3387 [inline] slab_alloc mm/slub.c:3431 [inline] __kmem_cache_alloc_lru mm/slub.c:3438 [inline] kmem_cache_alloc+0x1b0/0x330 mm/slub.c:3447 f2fs_kmem_cache_alloc fs/f2fs/f2fs.h:-1 [inline] __grab_extent_tree+0x1bb/0x410 fs/f2fs/extent_cache.c:335 f2fs_init_read_extent_tree+0x31d/0x980 fs/f2fs/extent_cache.c:406 do_read_inode fs/f2fs/inode.c:454 [inline] f2fs_iget+0x2f4c/0x47a0 fs/f2fs/inode.c:508 f2fs_lookup+0x1f2/0x800 fs/f2fs/namei.c:484 __lookup_slow+0x24e/0x330 fs/namei.c:1689 lookup_slow+0x52/0x70 fs/namei.c:1706 walk_component+0x261/0x370 fs/namei.c:1997 lookup_last fs/namei.c:2454 [inline] path_lookupat+0x85/0x320 fs/namei.c:2478 page_owner free stack trace missing Memory state around the buggy address: ffff888104112880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888104112900: fc fc fc fc fc fc fc fc fc fc fc fc fa fb fb fb >ffff888104112980: fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc fc ^ ffff888104112a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888104112a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== F2FS-fs (loop2): sanity_check_extent_cache: inode (ino=8) extent info [14338, 0, 2147549187] is incorrect, run fsck to fix