ci2 starts bisection 2025-08-02 13:56:07.820183641 +0000 UTC m=+51165.243778787 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.7 (++20250616065708+6146a88f6049-1~exp1~20250616065826.132), Debian LLD 20.1.7 kernel signature: 93ee187857f8239771c58b553da662d835f9a1e1869c6e243115082eb44880a9 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.7 (++20250616065708+6146a88f6049-1~exp1~20250616065826.132), Debian LLD 20.1.7 kernel signature: 84e29ca24fe76ff162218f7e1546198fd346ed179c42c1ba019a996c67f222ab 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 bug reproduces without the instrumentation disabling configs for [bug_or_warning locking atomic_sleep hang memleak ubsan], 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.7 (++20250616065708+6146a88f6049-1~exp1~20250616065826.132), Debian LLD 20.1.7 kernel signature: b71a6b97dbbb05d4e4bf2aea51865d63fd3378328c457571ed9e5c46116ebea4 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 [atomic_sleep hang memleak ubsan bug_or_warning locking], they are not needed testing commit ba450694016633a7455e0ee730b393051799f9ae gcc compiler: Debian clang version 20.1.7 (++20250616065708+6146a88f6049-1~exp1~20250616065826.132), Debian LLD 20.1.7 kernel signature: 5eaeb3724da3937d2ee38851cbbb9aa98c1f84af1d2e0c5589353eba5f31b489 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 [atomic_sleep hang memleak ubsan bug_or_warning locking], they are not needed testing commit ba450694016633a7455e0ee730b393051799f9ae gcc compiler: Debian clang version 20.1.7 (++20250616065708+6146a88f6049-1~exp1~20250616065826.132), Debian LLD 20.1.7 kernel signature: 1af072bc4d1ffede03bff9ead6146dce346a31c00508c6ee6b207ad17045f71d 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 [hang memleak ubsan bug_or_warning locking atomic_sleep], they are not needed testing commit ba450694016633a7455e0ee730b393051799f9ae gcc compiler: Debian clang version 20.1.7 (++20250616065708+6146a88f6049-1~exp1~20250616065826.132), Debian LLD 20.1.7 kernel signature: cf5dde3817e3aa2e8835c2c083467c7ceeb2ea23a875f1600cf68a617f3ef0b1 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 [memleak ubsan bug_or_warning locking atomic_sleep hang], they are not needed testing commit ba450694016633a7455e0ee730b393051799f9ae gcc compiler: Debian clang version 20.1.7 (++20250616065708+6146a88f6049-1~exp1~20250616065826.132), Debian LLD 20.1.7 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 [locking atomic_sleep hang memleak ubsan bug_or_warning], they are not needed testing current HEAD 3b4ff5af8d36f391ee0e6adf7b9d14d0d004de95 testing commit 3b4ff5af8d36f391ee0e6adf7b9d14d0d004de95 gcc compiler: Debian clang version 20.1.7 (++20250616065708+6146a88f6049-1~exp1~20250616065826.132), Debian LLD 20.1.7 kernel signature: 872bdbccec5023a7d1888ddbb47deea1d021f9552f9f4d06c6fe301da4f55f20 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: 1h41m16.027578359s (build: 57m40.685096529s, test: 39m9.97937475s) crash still not fixed or there were kernel test errors commit msg: ANDROID: abi_gki_aarch64_qcom: whitelist some mm symbols crash: KASAN: use-after-free Read in sanity_check_extent_cache R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f78ef5b6080 R15: 00007fffc336f788 ================================================================== BUG: KASAN: use-after-free in sanity_check_extent_cache+0x399/0x450 fs/f2fs/extent_cache.c:47 Read of size 4 at addr ffff88812bc3d8b8 by task syz.6.18/506 CPU: 0 PID: 506 Comm: syz.6.18 Not tainted 6.1.145-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/0x210 mm/kasan/report.c:316 print_report+0x4a/0x60 mm/kasan/report.c:427 kasan_report+0x122/0x150 mm/kasan/report.c:531 __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:0x7f78ef38e929 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:00007f78ef1ff038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f78ef5b6080 RCX: 00007f78ef38e929 RDX: 0000000000101000 RSI: 0000200000000080 RDI: ffffffffffffff9c RBP: 00007f78ef410b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f78ef5b6080 R15: 00007fffc336f788 Allocated by task 492: 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 492: 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 ffff88812bc3d870 which belongs to the cache f2fs_extent_tree of size 88 The buggy address is located 72 bytes inside of 88-byte region [ffff88812bc3d870, ffff88812bc3d8c8) The buggy address belongs to the physical page: page:ffffea0004af0f40 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x12bc3d flags: 0x4000000000000200(slab|zone=1) raw: 4000000000000200 0000000000000000 dead000000000122 ffff888100280f00 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 492, tgid 491 (syz.6.18), ts 62549192232, free_ts 0 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook mm/page_alloc.c:2637 [inline] prep_new_page+0x58c/0x650 mm/page_alloc.c:2644 get_page_from_freelist+0x2f0f/0x2f80 mm/page_alloc.c:4544 __alloc_pages+0x1c3/0x450 mm/page_alloc.c:5858 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: ffff88812bc3d780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88812bc3d800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fa fb >ffff88812bc3d880: fb fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc ^ ffff88812bc3d900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88812bc3d980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== F2FS-fs (loop6): sanity_check_extent_cache: inode (ino=8) extent info [14338, 0, 2147549187] is incorrect, run fsck to fix