ci2 starts bisection 2026-02-12 18:51:17.010666502 +0000 UTC m=+10540.859358992 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.44 kernel signature: 6250eaf24e302ac395e45ee2f7c67eaa763004ddac06ca6c7f867b01e7320297 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 [memleak ubsan bug_or_warning locking atomic_sleep hang], they are not needed testing commit 1154f779f3f3d196ace7d5084498f5d7f418ba64 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.44 kernel signature: 1ff0e149376681bf2853080d5dd29a6f5d0a721d1587112723651100e8d8cac3 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 [ubsan bug_or_warning locking atomic_sleep hang memleak], 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 [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.44 kernel signature: fd64cb532c05da010b1dc5bf88ef4800b16978f42378974485c38c9177fd8ff9 run #0: crashed: KASAN: use-after-free Read in f2fs_iget run #1: crashed: KASAN: use-after-free Read in f2fs_destroy_extent_node run #2: crashed: KASAN: use-after-free Read in f2fs_iget 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 2/5 disabling configs for [bug_or_warning locking atomic_sleep hang memleak ubsan], they are not needed testing commit 1154f779f3f3d196ace7d5084498f5d7f418ba64 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.44 kernel signature: 89061c8d60c63ae841a6ab1b10b0710ed3e559b5e1c880802f41b667f777b286 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.44 kernel signature: d979bfd1fec8cdb643dfc2f2493c7c7f40a2aeb0f67b7db3b4c0dd15138009df 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 4/5 disabling configs for [ubsan bug_or_warning locking atomic_sleep hang memleak], they are not needed testing commit 1154f779f3f3d196ace7d5084498f5d7f418ba64 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.44 kernel signature: 6075e30292940360669c81919c2a7f21c1333ce60c2caee12704450358e6a6b5 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.44 failed building 1154f779f3f3d196ace7d5084498f5d7f418ba64: net/socket.c:1128:(.text+0x1307): undefined reference to `wext_handle_ioctl' net/socket.c:3397:(.text+0x17c7): undefined reference to `compat_wext_handle_ioctl' net/core/net-procfs.c:346:(.text+0x33b): undefined reference to `wext_proc_exit' net/core/net-procfs.c:330:(.text+0x4e2): 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 e8b14e1cefe8a3049a46a48685bf937ca244949d testing commit e8b14e1cefe8a3049a46a48685bf937ca244949d gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.44 kernel signature: 89105d628950c6897256f307de0db562a8069d4a1c159778c75a99b99b5b7837 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: 2h4m22.699757819s (build: 1h36m37.120805301s, test: 25m38.309451136s) crash still not fixed or there were kernel test errors commit msg: Merge 5.10.250 into android13-5.10-lts crash: KASAN: use-after-free Read in f2fs_iget R13: 00007f7ae088a128 R14: 00007f7ae088a090 R15: 00007ffe7c593528 ================================================================== 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+0x4321/0x4a00 fs/f2fs/inode.c:521 Read of size 4 at addr ffff888127033254 by task syz.4.21/524 CPU: 1 PID: 524 Comm: syz.4.21 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/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+0x4321/0x4a00 fs/f2fs/inode.c:521 f2fs_lookup+0x491/0xc20 fs/f2fs/namei.c:544 lookup_open fs/namei.c:3234 [inline] open_last_lookups fs/namei.c:3325 [inline] path_openat+0x1024/0x3950 fs/namei.c:3514 do_filp_open+0x193/0x3d0 fs/namei.c:3544 do_sys_openat2+0x135/0x810 fs/open.c:1219 do_sys_open fs/open.c:1235 [inline] __do_sys_openat fs/open.c:1251 [inline] __se_sys_openat fs/open.c:1246 [inline] __x64_sys_openat+0x124/0x200 fs/open.c:1246 do_syscall_64+0x32/0x50 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f7ae064e339 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f7ae0492028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f7ae088a090 RCX: 00007f7ae064e339 RDX: 0000000000101000 RSI: 0000200000000080 RDI: ffffffffffffff9c RBP: 00007f7ae06e1d68 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f7ae088a128 R14: 00007f7ae088a090 R15: 00007ffe7c593528 Allocated by task 469: 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:2766 [inline] f2fs_kmem_cache_alloc fs/f2fs/f2fs.h:2776 [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+0xa75/0x4a00 fs/f2fs/inode.c:521 f2fs_lookup+0x491/0xc20 fs/f2fs/namei.c:544 __lookup_slow+0x19b/0x3d0 fs/namei.c:1648 lookup_slow fs/namei.c:1665 [inline] walk_component+0x3ad/0x710 fs/namei.c:1960 lookup_last fs/namei.c:2411 [inline] path_lookupat+0x112/0x6a0 fs/namei.c:2435 filename_lookup+0x17f/0x510 fs/namei.c:2468 user_path_at_empty+0xa2/0xf0 fs/namei.c:2748 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 469: 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:778 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+0x22be/0x4a00 fs/f2fs/inode.c:574 f2fs_lookup+0x491/0xc20 fs/f2fs/namei.c:544 __lookup_slow+0x19b/0x3d0 fs/namei.c:1648 lookup_slow fs/namei.c:1665 [inline] walk_component+0x3ad/0x710 fs/namei.c:1960 lookup_last fs/namei.c:2411 [inline] path_lookupat+0x112/0x6a0 fs/namei.c:2435 filename_lookup+0x17f/0x510 fs/namei.c:2468 user_path_at_empty+0xa2/0xf0 fs/namei.c:2748 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 ffff888127033230 which belongs to the cache f2fs_extent_tree of size 80 The buggy address is located 36 bytes inside of 80-byte region [ffff888127033230, ffff888127033280) The buggy address belongs to the page: page:ffffea00049c0cc0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x127033 flags: 0x4000000000000200(slab) raw: 4000000000000200 dead000000000100 dead000000000122 ffff888104581500 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 472, ts 53472543803, free_ts 31131627894 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:2766 [inline] f2fs_kmem_cache_alloc fs/f2fs/f2fs.h:2776 [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+0xa75/0x4a00 fs/f2fs/inode.c:521 f2fs_lookup+0x491/0xc20 fs/f2fs/namei.c:544 __lookup_slow+0x19b/0x3d0 fs/namei.c:1648 lookup_slow fs/namei.c:1665 [inline] walk_component+0x3ad/0x710 fs/namei.c:1960 lookup_last fs/namei.c:2411 [inline] path_lookupat+0x112/0x6a0 fs/namei.c:2435 filename_lookup+0x17f/0x510 fs/namei.c:2468 user_path_at_empty+0xa2/0xf0 fs/namei.c:2748 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 last free stack trace: reset_page_owner include/linux/page_owner.h:28 [inline] free_pages_prepare mm/page_alloc.c:1349 [inline] free_pcp_prepare+0x1a7/0x230 mm/page_alloc.c:1421 free_unref_page_prepare mm/page_alloc.c:3336 [inline] free_unref_page_list+0x18a/0xae0 mm/page_alloc.c:3443 release_pages+0x374/0xb00 mm/swap.c:1103 free_pages_and_swap_cache+0x180/0x1e0 mm/swap_state.c:356 tlb_batch_pages_flush mm/mmu_gather.c:49 [inline] tlb_flush_mmu_free mm/mmu_gather.c:240 [inline] tlb_flush_mmu+0xbe/0x590 mm/mmu_gather.c:247 zap_pte_range mm/memory.c:1385 [inline] zap_pmd_range mm/memory.c:1435 [inline] zap_pud_range mm/memory.c:1464 [inline] zap_p4d_range mm/memory.c:1485 [inline] unmap_page_range+0x127b/0x1d60 mm/memory.c:1506 unmap_single_vma mm/memory.c:1551 [inline] unmap_vmas+0x1cf/0x390 mm/memory.c:1583 exit_mmap+0x276/0x520 mm/mmap.c:3385 __mmput kernel/fork.c:1153 [inline] mmput kernel/fork.c:1176 [inline] mmput+0x99/0x430 kernel/fork.c:1170 exit_mm kernel/exit.c:539 [inline] do_exit+0x873/0x2330 kernel/exit.c:859 do_group_exit+0xe6/0x290 kernel/exit.c:986 get_signal+0x353/0x1a10 kernel/signal.c:2793 arch_do_signal_or_restart+0x2c1/0x1b70 arch/x86/kernel/signal.c:805 handle_signal_work kernel/entry/common.c:145 [inline] exit_to_user_mode_loop kernel/entry/common.c:169 [inline] exit_to_user_mode_prepare+0x10f/0x160 kernel/entry/common.c:199 syscall_exit_to_user_mode+0x27/0x160 kernel/entry/common.c:274 do_syscall_64+0x3f/0x50 arch/x86/entry/common.c:56 Memory state around the buggy address: ffff888127033100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888127033180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888127033200: fc fc fc fc fc fc fa fb fb fb fb fb fb fb fb fb ^ ffff888127033280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888127033300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== F2FS-fs (loop4): 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: 0 PID: 524 Comm: syz.4.21 Tainted: G B syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/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:778 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+0x22be/0x4a00 fs/f2fs/inode.c:574 f2fs_lookup+0x491/0xc20 fs/f2fs/namei.c:544 lookup_open fs/namei.c:3234 [inline] open_last_lookups fs/namei.c:3325 [inline] path_openat+0x1024/0x3950 fs/namei.c:3514 do_filp_open+0x193/0x3d0 fs/namei.c:3544 do_sys_openat2+0x135/0x810 fs/open.c:1219 do_sys_open fs/open.c:1235 [inline] __do_sys_openat fs/open.c:1251 [inline] __se_sys_openat fs/open.c:1246 [inline] __x64_sys_openat+0x124/0x200 fs/open.c:1246 do_syscall_64+0x32/0x50 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f7ae064e339 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f7ae0492028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f7ae088a090 RCX: 00007f7ae064e339 RDX: 0000000000101000 RSI: 0000200000000080 RDI: ffffffffffffff9c RBP: 00007f7ae06e1d68 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f7ae088a128 R14: 00007f7ae088a090 R15: 00007ffe7c593528 Allocated by task 469: 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:2766 [inline] f2fs_kmem_cache_alloc fs/f2fs/f2fs.h:2776 [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+0xa75/0x4a00 fs/f2fs/inode.c:521 f2fs_lookup+0x491/0xc20 fs/f2fs/namei.c:544 __lookup_slow+0x19b/0x3d0 fs/namei.c:1648 lookup_slow fs/namei.c:1665 [inline] walk_component+0x3ad/0x710 fs/namei.c:1960 lookup_last fs/namei.c:2411 [inline] path_lookupat+0x112/0x6a0 fs/namei.c:2435 filename_lookup+0x17f/0x510 fs/namei.c:2468 user_path_at_empty+0xa2/0xf0 fs/namei.c:2748 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 469: 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:778 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+0x22be/0x4a00 fs/f2fs/inode.c:574 f2fs_lookup+0x491/0xc20 fs/f2fs/namei.c:544 __lookup_slow+0x19b/0x3d0 fs/namei.c:1648 lookup_slow fs/namei.c:1665 [inline] walk_component+0x3ad/0x710 fs/namei.c:1960 lookup_last fs/namei.c:2411 [inline] path_lookupat+0x112/0x6a0 fs/namei.c:2435 filename_lookup+0x17f/0x510 fs/namei.c:2468 user_path_at_empty+0xa2/0xf0 fs/namei.c:2748 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 ffff888127033230 which belongs to the cache f2fs_extent_tree of size 80 The buggy address is located 0 bytes inside of 80-byte region [ffff888127033230, ffff888127033280) The buggy address belongs to the page: page:ffffea00049c0cc0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x127033 flags: 0x4000000000000200(slab) raw: 4000000000000200 dead000000000100 dead000000000122 ffff888104581500 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 472, ts 53472543803, free_ts 31131627894 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:2766 [inline] f2fs_kmem_cache_alloc fs/f2fs/f2fs.h:2776 [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+0xa75/0x4a00 fs/f2fs/inode.c:521 f2fs_lookup+0x491/0xc20 fs/f2fs/namei.c:544 __lookup_slow+0x19b/0x3d0 fs/namei.c:1648 lookup_slow fs/namei.c:1665 [inline] walk_component+0x3ad/0x710 fs/namei.c:1960 lookup_last fs/namei.c:2411 [inline] path_lookupat+0x112/0x6a0 fs/namei.c:2435 filename_lookup+0x17f/0x510 fs/namei.c:2468 user_path_at_empty+0xa2/0xf0 fs/namei.c:2748 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 last free stack trace: reset_page_owner include/linux/page_owner.h:28 [inline] free_pages_prepare mm/page_alloc.c:1349 [inline] free_pcp_prepare+0x1a7/0x230 mm/page_alloc.c:1421 free_unref_page_prepare mm/page_alloc.c:3336 [inline] free_unref_page_list+0x18a/0xae0 mm/page_alloc.c:3443 release_pages+0x374/0xb00 mm/swap.c:1103 free_pages_and_swap_cache+0x180/0x1e0 mm/swap_state.c:356 tlb_batch_pages_flush mm/mmu_gather.c:49 [inline] tlb_flush_mmu_free mm/mmu_gather.c:240 [inline] tlb_flush_mmu+0xbe/0x590 mm/mmu_gather.c:247 zap_pte_range mm/memory.c:1385 [inline] zap_pmd_range mm/memory.c:1435 [inline] zap_pud_range mm/memory.c:1464 [inline] zap_p4d_range mm/memory.c:1485 [inline] unmap_page_range+0x127b/0x1d60 mm/memory.c:1506 unmap_single_vma mm/memory.c:1551 [inline] unmap_vmas+0x1cf/0x390 mm/memory.c:1583 exit_mmap+0x276/0x520 mm/mmap.c:3385 __mmput kernel/fork.c:1153 [inline] mmput kernel/fork.c:1176 [inline] mmput+0x99/0x430 kernel/fork.c:1170 exit_mm kernel/exit.c:539 [inline] do_exit+0x873/0x2330 kernel/exit.c:859 do_group_exit+0xe6/0x290 kernel/exit.c:986 get_signal+0x353/0x1a10 kernel/signal.c:2793 arch_do_signal_or_restart+0x2c1/0x1b70 arch/x86/kernel/signal.c:805 handle_signal_work kernel/entry/common.c:145 [inline] exit_to_user_mode_loop kernel/entry/common.c:169 [inline] exit_to_user_mode_prepare+0x10f/0x160 kernel/entry/common.c:199 syscall_exit_to_user_mode+0x27/0x160 kernel/entry/common.c:274 do_syscall_64+0x3f/0x50 arch/x86/entry/common.c:56 Memory state around the buggy address: ffff888127033100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888127033180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888127033200: fc fc fc fc fc fc fa fb fb fb fb fb fb fb fb fb ^ ffff888127033280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888127033300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================