ci2 starts bisection 2025-09-29 10:57:59.121723759 +0000 UTC m=+135.798304844 bisecting fixing commit since 1154f779f3f3d196ace7d5084498f5d7f418ba64 building syzkaller on 32a0e5edfeef60e894c453dc9e9ae45528626ef1 ensuring issue is reproducible on original commit 1154f779f3f3d196ace7d5084498f5d7f418ba64 testing commit 1154f779f3f3d196ace7d5084498f5d7f418ba64 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 536315ba4531fd21eba75720b738b7b8edd781580c299bb91f62c426d112f92b all runs: crashed: KASAN: use-after-free Read in f2fs_iget representative crash: KASAN: use-after-free Read in f2fs_iget, types: [KASAN-USE-AFTER-FREE-READ] check whether we can drop unnecessary instrumentation disabling configs for [atomic_sleep hang memleak ubsan bug_or_warning locking], they are not needed testing commit 1154f779f3f3d196ace7d5084498f5d7f418ba64 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 5335251809ab1d39201f31b58d414745ec6019b4d88faf036608e159a23ac7a1 all runs: crashed: KASAN: use-after-free Read in f2fs_iget representative crash: KASAN: use-after-free Read in f2fs_iget, types: [KASAN-USE-AFTER-FREE-READ] the bug reproduces without the instrumentation disabling configs for [hang memleak ubsan bug_or_warning locking atomic_sleep], they are not needed kconfig minimization: base=4788 full=6025 leaves diff=247 split chunks (needed=false): <247> split chunk #0 of len 247 into 5 parts testing without sub-chunk 1/5 disabling configs for [atomic_sleep hang memleak ubsan bug_or_warning locking], they are not needed testing commit 1154f779f3f3d196ace7d5084498f5d7f418ba64 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 3fe591cd425bfcaf661252a6882f6364e71626aca86feedf01a052a4ff7d1a31 all runs: crashed: KASAN: use-after-free Read in f2fs_iget representative crash: KASAN: use-after-free Read in f2fs_iget, types: [KASAN-USE-AFTER-FREE-READ] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [hang memleak ubsan bug_or_warning locking atomic_sleep], they are not needed testing commit 1154f779f3f3d196ace7d5084498f5d7f418ba64 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 4b160efd4cfa2b3aa123131b12663c4c30cded8fd88fd0fb3af344678fb8b99e all runs: crashed: KASAN: use-after-free Read in f2fs_iget representative crash: KASAN: use-after-free Read in f2fs_iget, types: [KASAN-USE-AFTER-FREE-READ] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [hang memleak ubsan bug_or_warning locking atomic_sleep], they are not needed testing commit 1154f779f3f3d196ace7d5084498f5d7f418ba64 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 0320a085b5e2c7cf63356d32585334520e1e81a0c4905800fa553f7502ad4114 run #0: crashed: KASAN: use-after-free Read in f2fs_iget run #1: crashed: KASAN: use-after-free Read in f2fs_iget run #2: crashed: KASAN: use-after-free Read in f2fs_destroy_extent_node run #3: crashed: KASAN: use-after-free Read in f2fs_iget run #4: crashed: KASAN: use-after-free Read in f2fs_iget run #5: crashed: KASAN: use-after-free Read in f2fs_iget run #6: crashed: KASAN: use-after-free Read in f2fs_iget run #7: crashed: KASAN: use-after-free Read in f2fs_iget run #8: crashed: KASAN: use-after-free Read in f2fs_iget run #9: crashed: KASAN: use-after-free Read in f2fs_iget representative crash: KASAN: use-after-free Read in f2fs_iget, types: [KASAN-USE-AFTER-FREE-READ] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [atomic_sleep hang memleak ubsan bug_or_warning locking], they are not needed testing commit 1154f779f3f3d196ace7d5084498f5d7f418ba64 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: bc67d113a9c8c0ba7c5d72a8ce4518c17f332ed01dea5fb3e20526c4558a509a all runs: crashed: KASAN: use-after-free Read in f2fs_iget representative crash: KASAN: use-after-free Read in f2fs_iget, 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 1154f779f3f3d196ace7d5084498f5d7f418ba64 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 failed building 1154f779f3f3d196ace7d5084498f5d7f418ba64: net/socket.c:1128: undefined reference to `wext_handle_ioctl' net/socket.c:3397: undefined reference to `compat_wext_handle_ioctl' net/core/net-procfs.c:346: undefined reference to `wext_proc_exit' net/core/net-procfs.c:330: undefined reference to `wext_proc_init' minimized to 47 configs; suspects: [HID_ZEROPLUS 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 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 USB_XHCI_PCI_RENESAS 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 ZEROPLUS_FF] disabling configs for [hang memleak ubsan bug_or_warning locking atomic_sleep], they are not needed testing current HEAD 911f602c2237b4e5cad1e1f53bfcf6190a37a764 testing commit 911f602c2237b4e5cad1e1f53bfcf6190a37a764 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 723dbd6fc25abe4a7b05b5fb9f4cd62319845f7df03fea0c36fe44b80cbd49d8 all runs: crashed: KASAN: use-after-free Read in f2fs_iget representative crash: KASAN: use-after-free Read in f2fs_iget, types: [KASAN-USE-AFTER-FREE-READ] crash still not fixed/happens on the oldest tested release revisions tested: 7, total time: 2h14m34.557426974s (build: 29m52.853822979s, test: 28m42.75836031s) crash still not fixed or there were kernel test errors commit msg: Merge 5.10.244 into android13-5.10-lts crash: KASAN: use-after-free Read in f2fs_iget RBP: 00007f2b99213e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f2b993b8128 R14: 00007f2b993b8090 R15: 00007fff97bc7208 ================================================================== BUG: KASAN: use-after-free in sanity_check_inode fs/f2fs/inode.c:282 [inline] BUG: KASAN: use-after-free in do_read_inode fs/f2fs/inode.c:422 [inline] BUG: KASAN: use-after-free in f2fs_iget+0x49fe/0x4b10 fs/f2fs/inode.c:521 Read of size 4 at addr ffff88811e355024 by task syz.2.19/500 CPU: 1 PID: 500 Comm: syz.2.19 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x81/0xac lib/dump_stack.c:118 print_address_description.constprop.0+0x24/0x160 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:435 [inline] kasan_report.cold+0x82/0xdb mm/kasan/report.c:452 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308 sanity_check_inode fs/f2fs/inode.c:282 [inline] do_read_inode fs/f2fs/inode.c:422 [inline] f2fs_iget+0x49fe/0x4b10 fs/f2fs/inode.c:521 f2fs_lookup+0x491/0xc20 fs/f2fs/namei.c:544 lookup_open fs/namei.c:3226 [inline] open_last_lookups fs/namei.c:3317 [inline] path_openat+0x1024/0x3950 fs/namei.c:3506 do_filp_open+0x193/0x3d0 fs/namei.c:3536 do_sys_openat2+0x135/0x810 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_openat fs/open.c:1249 [inline] __se_sys_openat fs/open.c:1244 [inline] __x64_sys_openat+0x124/0x200 fs/open.c:1244 do_syscall_64+0x32/0x50 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f2b99190be9 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:00007f2b98fe0038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f2b993b8090 RCX: 00007f2b99190be9 RDX: 0000000000101000 RSI: 0000200000000080 RDI: ffffffffffffff9c RBP: 00007f2b99213e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f2b993b8128 R14: 00007f2b993b8090 R15: 00007fff97bc7208 Allocated by task 465: 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:430 [inline] __kasan_slab_alloc+0x94/0xc0 mm/kasan/common.c:463 kasan_slab_alloc include/linux/kasan.h:244 [inline] slab_post_alloc_hook mm/slab.h:580 [inline] slab_alloc_node mm/slub.c:2952 [inline] slab_alloc mm/slub.c:2960 [inline] kmem_cache_alloc+0x15d/0x4f0 mm/slub.c:2965 f2fs_kmem_cache_alloc_nofail fs/f2fs/f2fs.h:2768 [inline] f2fs_kmem_cache_alloc fs/f2fs/f2fs.h:2778 [inline] __grab_extent_tree fs/f2fs/extent_cache.c:295 [inline] __f2fs_init_extent_tree fs/f2fs/extent_cache.c:381 [inline] f2fs_init_extent_tree+0x98f/0xdf0 fs/f2fs/extent_cache.c:404 do_read_inode fs/f2fs/inode.c:399 [inline] f2fs_iget+0xa71/0x4b10 fs/f2fs/inode.c:521 f2fs_lookup+0x491/0xc20 fs/f2fs/namei.c:544 __lookup_slow+0x19b/0x3d0 fs/namei.c:1640 lookup_slow fs/namei.c:1657 [inline] walk_component+0x3ad/0x710 fs/namei.c:1952 lookup_last fs/namei.c:2403 [inline] path_lookupat+0x112/0x6a0 fs/namei.c:2427 filename_lookup+0x17f/0x510 fs/namei.c:2460 user_path_at_empty+0xa2/0xf0 fs/namei.c:2740 user_path_at include/linux/namei.h:60 [inline] do_sys_truncate.part.0+0x85/0x100 fs/open.c:132 do_sys_truncate fs/open.c:128 [inline] __do_sys_truncate fs/open.c:146 [inline] __se_sys_truncate fs/open.c:144 [inline] __x64_sys_truncate+0x54/0x80 fs/open.c:144 do_syscall_64+0x32/0x50 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb Freed by task 465: 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:362 [inline] ____kasan_slab_free mm/kasan/common.c:324 [inline] __kasan_slab_free+0x111/0x150 mm/kasan/common.c:370 kasan_slab_free include/linux/kasan.h:220 [inline] slab_free_hook mm/slub.c:1600 [inline] slab_free_freelist_hook+0x9b/0x1a0 mm/slub.c:1626 slab_free mm/slub.c:3208 [inline] kmem_cache_free+0x106/0x440 mm/slub.c:3224 f2fs_destroy_extent_tree+0x174/0x4b0 fs/f2fs/extent_cache.c:845 f2fs_evict_inode+0x335/0x1680 fs/f2fs/inode.c:786 evict+0x372/0x940 fs/inode.c:612 iput_final fs/inode.c:1736 [inline] iput.part.0+0x33b/0x640 fs/inode.c:1762 iput+0x3f/0x50 fs/inode.c:1752 iget_failed+0x1e/0x30 fs/bad_inode.c:242 f2fs_iget+0x22f6/0x4b10 fs/f2fs/inode.c:582 f2fs_lookup+0x491/0xc20 fs/f2fs/namei.c:544 __lookup_slow+0x19b/0x3d0 fs/namei.c:1640 lookup_slow fs/namei.c:1657 [inline] walk_component+0x3ad/0x710 fs/namei.c:1952 lookup_last fs/namei.c:2403 [inline] path_lookupat+0x112/0x6a0 fs/namei.c:2427 filename_lookup+0x17f/0x510 fs/namei.c:2460 user_path_at_empty+0xa2/0xf0 fs/namei.c:2740 user_path_at include/linux/namei.h:60 [inline] do_sys_truncate.part.0+0x85/0x100 fs/open.c:132 do_sys_truncate fs/open.c:128 [inline] __do_sys_truncate fs/open.c:146 [inline] __se_sys_truncate fs/open.c:144 [inline] __x64_sys_truncate+0x54/0x80 fs/open.c:144 do_syscall_64+0x32/0x50 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb The buggy address belongs to the object at ffff88811e355000 which belongs to the cache f2fs_extent_tree of size 80 The buggy address is located 36 bytes inside of 80-byte region [ffff88811e355000, ffff88811e355050) The buggy address belongs to the page: page:ffffea000478d540 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11e355 flags: 0x4000000000000200(slab) raw: 4000000000000200 dead000000000100 dead000000000122 ffff8881047d1e00 raw: 0000000000000000 0000000080240024 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 465, ts 55922513414, free_ts 0 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page mm/page_alloc.c:2462 [inline] get_page_from_freelist+0x1fee/0x2ad0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x2ae/0x2530 mm/page_alloc.c:5370 __alloc_pages include/linux/gfp.h:544 [inline] __alloc_pages_node include/linux/gfp.h:557 [inline] alloc_pages_node include/linux/gfp.h:571 [inline] alloc_pages include/linux/gfp.h:590 [inline] alloc_slab_page mm/slub.c:1670 [inline] allocate_slab+0x30f/0x460 mm/slub.c:1813 new_slab mm/slub.c:1874 [inline] new_slab_objects mm/slub.c:2632 [inline] ___slab_alloc.constprop.0+0x32b/0x730 mm/slub.c:2796 __slab_alloc mm/slub.c:2836 [inline] slab_alloc_node mm/slub.c:2918 [inline] slab_alloc mm/slub.c:2960 [inline] kmem_cache_alloc+0x491/0x4f0 mm/slub.c:2965 f2fs_kmem_cache_alloc_nofail fs/f2fs/f2fs.h:2768 [inline] f2fs_kmem_cache_alloc fs/f2fs/f2fs.h:2778 [inline] __grab_extent_tree fs/f2fs/extent_cache.c:295 [inline] __f2fs_init_extent_tree fs/f2fs/extent_cache.c:381 [inline] f2fs_init_extent_tree+0x98f/0xdf0 fs/f2fs/extent_cache.c:404 do_read_inode fs/f2fs/inode.c:399 [inline] f2fs_iget+0xa71/0x4b10 fs/f2fs/inode.c:521 f2fs_lookup+0x491/0xc20 fs/f2fs/namei.c:544 __lookup_slow+0x19b/0x3d0 fs/namei.c:1640 lookup_slow fs/namei.c:1657 [inline] walk_component+0x3ad/0x710 fs/namei.c:1952 lookup_last fs/namei.c:2403 [inline] path_lookupat+0x112/0x6a0 fs/namei.c:2427 filename_lookup+0x17f/0x510 fs/namei.c:2460 user_path_at_empty+0xa2/0xf0 fs/namei.c:2740 user_path_at include/linux/namei.h:60 [inline] do_sys_truncate.part.0+0x85/0x100 fs/open.c:132 do_sys_truncate fs/open.c:128 [inline] __do_sys_truncate fs/open.c:146 [inline] __se_sys_truncate fs/open.c:144 [inline] __x64_sys_truncate+0x54/0x80 fs/open.c:144 do_syscall_64+0x32/0x50 arch/x86/entry/common.c:46 page_owner free stack trace missing Memory state around the buggy address: ffff88811e354f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88811e354f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88811e355000: fa fb fb fb fb fb fb fb fb fb fc fc fc fc fc fc ^ ffff88811e355080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88811e355100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== F2FS-fs (loop2): sanity_check_inode: inode (ino=8) extent info [14338, 0, 2147549187] is incorrect, run fsck to fix ================================================================== BUG: KASAN: double-free or invalid-free in slab_free mm/slub.c:3208 [inline] BUG: KASAN: double-free or invalid-free in kmem_cache_free+0x106/0x440 mm/slub.c:3224 CPU: 1 PID: 500 Comm: syz.2.19 Tainted: G B syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x81/0xac lib/dump_stack.c:118 print_address_description.constprop.0+0x24/0x160 mm/kasan/report.c:248 kasan_report_invalid_free+0x56/0x80 mm/kasan/report.c:374 ____kasan_slab_free mm/kasan/common.c:342 [inline] __kasan_slab_free+0x134/0x150 mm/kasan/common.c:370 kasan_slab_free include/linux/kasan.h:220 [inline] slab_free_hook mm/slub.c:1600 [inline] slab_free_freelist_hook+0x9b/0x1a0 mm/slub.c:1626 slab_free mm/slub.c:3208 [inline] kmem_cache_free+0x106/0x440 mm/slub.c:3224 f2fs_destroy_extent_tree+0x174/0x4b0 fs/f2fs/extent_cache.c:845 f2fs_evict_inode+0x335/0x1680 fs/f2fs/inode.c:786 evict+0x372/0x940 fs/inode.c:612 iput_final fs/inode.c:1736 [inline] iput.part.0+0x33b/0x640 fs/inode.c:1762 iput+0x3f/0x50 fs/inode.c:1752 iget_failed+0x1e/0x30 fs/bad_inode.c:242 f2fs_iget+0x22f6/0x4b10 fs/f2fs/inode.c:582 f2fs_lookup+0x491/0xc20 fs/f2fs/namei.c:544 lookup_open fs/namei.c:3226 [inline] open_last_lookups fs/namei.c:3317 [inline] path_openat+0x1024/0x3950 fs/namei.c:3506 do_filp_open+0x193/0x3d0 fs/namei.c:3536 do_sys_openat2+0x135/0x810 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_openat fs/open.c:1249 [inline] __se_sys_openat fs/open.c:1244 [inline] __x64_sys_openat+0x124/0x200 fs/open.c:1244 do_syscall_64+0x32/0x50 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f2b99190be9 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:00007f2b98fe0038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f2b993b8090 RCX: 00007f2b99190be9 RDX: 0000000000101000 RSI: 0000200000000080 RDI: ffffffffffffff9c RBP: 00007f2b99213e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f2b993b8128 R14: 00007f2b993b8090 R15: 00007fff97bc7208 Allocated by task 465: 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:430 [inline] __kasan_slab_alloc+0x94/0xc0 mm/kasan/common.c:463 kasan_slab_alloc include/linux/kasan.h:244 [inline] slab_post_alloc_hook mm/slab.h:580 [inline] slab_alloc_node mm/slub.c:2952 [inline] slab_alloc mm/slub.c:2960 [inline] kmem_cache_alloc+0x15d/0x4f0 mm/slub.c:2965 f2fs_kmem_cache_alloc_nofail fs/f2fs/f2fs.h:2768 [inline] f2fs_kmem_cache_alloc fs/f2fs/f2fs.h:2778 [inline] __grab_extent_tree fs/f2fs/extent_cache.c:295 [inline] __f2fs_init_extent_tree fs/f2fs/extent_cache.c:381 [inline] f2fs_init_extent_tree+0x98f/0xdf0 fs/f2fs/extent_cache.c:404 do_read_inode fs/f2fs/inode.c:399 [inline] f2fs_iget+0xa71/0x4b10 fs/f2fs/inode.c:521 f2fs_lookup+0x491/0xc20 fs/f2fs/namei.c:544 __lookup_slow+0x19b/0x3d0 fs/namei.c:1640 lookup_slow fs/namei.c:1657 [inline] walk_component+0x3ad/0x710 fs/namei.c:1952 lookup_last fs/namei.c:2403 [inline] path_lookupat+0x112/0x6a0 fs/namei.c:2427 filename_lookup+0x17f/0x510 fs/namei.c:2460 user_path_at_empty+0xa2/0xf0 fs/namei.c:2740 user_path_at include/linux/namei.h:60 [inline] do_sys_truncate.part.0+0x85/0x100 fs/open.c:132 do_sys_truncate fs/open.c:128 [inline] __do_sys_truncate fs/open.c:146 [inline] __se_sys_truncate fs/open.c:144 [inline] __x64_sys_truncate+0x54/0x80 fs/open.c:144 do_syscall_64+0x32/0x50 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb Freed by task 465: 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:362 [inline] ____kasan_slab_free mm/kasan/common.c:324 [inline] __kasan_slab_free+0x111/0x150 mm/kasan/common.c:370 kasan_slab_free include/linux/kasan.h:220 [inline] slab_free_hook mm/slub.c:1600 [inline] slab_free_freelist_hook+0x9b/0x1a0 mm/slub.c:1626 slab_free mm/slub.c:3208 [inline] kmem_cache_free+0x106/0x440 mm/slub.c:3224 f2fs_destroy_extent_tree+0x174/0x4b0 fs/f2fs/extent_cache.c:845 f2fs_evict_inode+0x335/0x1680 fs/f2fs/inode.c:786 evict+0x372/0x940 fs/inode.c:612 iput_final fs/inode.c:1736 [inline] iput.part.0+0x33b/0x640 fs/inode.c:1762 iput+0x3f/0x50 fs/inode.c:1752 iget_failed+0x1e/0x30 fs/bad_inode.c:242 f2fs_iget+0x22f6/0x4b10 fs/f2fs/inode.c:582 f2fs_lookup+0x491/0xc20 fs/f2fs/namei.c:544 __lookup_slow+0x19b/0x3d0 fs/namei.c:1640 lookup_slow fs/namei.c:1657 [inline] walk_component+0x3ad/0x710 fs/namei.c:1952 lookup_last fs/namei.c:2403 [inline] path_lookupat+0x112/0x6a0 fs/namei.c:2427 filename_lookup+0x17f/0x510 fs/namei.c:2460 user_path_at_empty+0xa2/0xf0 fs/namei.c:2740 user_path_at include/linux/namei.h:60 [inline] do_sys_truncate.part.0+0x85/0x100 fs/open.c:132 do_sys_truncate fs/open.c:128 [inline] __do_sys_truncate fs/open.c:146 [inline] __se_sys_truncate fs/open.c:144 [inline] __x64_sys_truncate+0x54/0x80 fs/open.c:144 do_syscall_64+0x32/0x50 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb The buggy address belongs to the object at ffff88811e355000 which belongs to the cache f2fs_extent_tree of size 80 The buggy address is located 0 bytes inside of 80-byte region [ffff88811e355000, ffff88811e355050) The buggy address belongs to the page: page:ffffea000478d540 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11e355 flags: 0x4000000000000200(slab) raw: 4000000000000200 dead000000000100 dead000000000122 ffff8881047d1e00 raw: 0000000000000000 0000000080240024 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 465, ts 55922513414, free_ts 0 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page mm/page_alloc.c:2462 [inline] get_page_from_freelist+0x1fee/0x2ad0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x2ae/0x2530 mm/page_alloc.c:5370 __alloc_pages include/linux/gfp.h:544 [inline] __alloc_pages_node include/linux/gfp.h:557 [inline] alloc_pages_node include/linux/gfp.h:571 [inline] alloc_pages include/linux/gfp.h:590 [inline] alloc_slab_page mm/slub.c:1670 [inline] allocate_slab+0x30f/0x460 mm/slub.c:1813 new_slab mm/slub.c:1874 [inline] new_slab_objects mm/slub.c:2632 [inline] ___slab_alloc.constprop.0+0x32b/0x730 mm/slub.c:2796 __slab_alloc mm/slub.c:2836 [inline] slab_alloc_node mm/slub.c:2918 [inline] slab_alloc mm/slub.c:2960 [inline] kmem_cache_alloc+0x491/0x4f0 mm/slub.c:2965 f2fs_kmem_cache_alloc_nofail fs/f2fs/f2fs.h:2768 [inline] f2fs_kmem_cache_alloc fs/f2fs/f2fs.h:2778 [inline] __grab_extent_tree fs/f2fs/extent_cache.c:295 [inline] __f2fs_init_extent_tree fs/f2fs/extent_cache.c:381 [inline] f2fs_init_extent_tree+0x98f/0xdf0 fs/f2fs/extent_cache.c:404 do_read_inode fs/f2fs/inode.c:399 [inline] f2fs_iget+0xa71/0x4b10 fs/f2fs/inode.c:521 f2fs_lookup+0x491/0xc20 fs/f2fs/namei.c:544 __lookup_slow+0x19b/0x3d0 fs/namei.c:1640 lookup_slow fs/namei.c:1657 [inline] walk_component+0x3ad/0x710 fs/namei.c:1952 lookup_last fs/namei.c:2403 [inline] path_lookupat+0x112/0x6a0 fs/namei.c:2427 filename_lookup+0x17f/0x510 fs/namei.c:2460 user_path_at_empty+0xa2/0xf0 fs/namei.c:2740 user_path_at include/linux/namei.h:60 [inline] do_sys_truncate.part.0+0x85/0x100 fs/open.c:132 do_sys_truncate fs/open.c:128 [inline] __do_sys_truncate fs/open.c:146 [inline] __se_sys_truncate fs/open.c:144 [inline] __x64_sys_truncate+0x54/0x80 fs/open.c:144 do_syscall_64+0x32/0x50 arch/x86/entry/common.c:46 page_owner free stack trace missing Memory state around the buggy address: ffff88811e354f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88811e354f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88811e355000: fa fb fb fb fb fb fb fb fb fb fc fc fc fc fc fc ^ ffff88811e355080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88811e355100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================