ci2 starts bisection 2025-08-10 09:22:08.477534939 +0000 UTC m=+155615.317834319 bisecting fixing commit since 59e9a72288571b476bbe39902c89aed0423905bf building syzkaller on 26d77996cd6057592f0d7212c9017e8b62be66e8 ensuring issue is reproducible on original commit 59e9a72288571b476bbe39902c89aed0423905bf testing commit 59e9a72288571b476bbe39902c89aed0423905bf gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 3cb9941b316ca9657acf3cad4d28e3f4c6121930b072d9101c1eb2e5f7b250a9 all runs: crashed: KASAN: use-after-free Read in f2fs_inode_dirtied representative crash: KASAN: use-after-free Read in f2fs_inode_dirtied, 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 59e9a72288571b476bbe39902c89aed0423905bf gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 224eb67c40ab47e2c37e56a96b17d7581ebd29354b150033cdf3838f036497ee all runs: crashed: KASAN: use-after-free Read in f2fs_inode_synced representative crash: KASAN: use-after-free Read in f2fs_inode_synced, types: [KASAN-USE-AFTER-FREE-READ] the bug reproduces without the instrumentation disabling configs for [locking atomic_sleep hang memleak ubsan bug_or_warning], they are not needed kconfig minimization: base=4788 full=6022 leaves diff=244 split chunks (needed=false): <244> split chunk #0 of len 244 into 5 parts testing without sub-chunk 1/5 disabling configs for [ubsan bug_or_warning locking atomic_sleep hang memleak], they are not needed testing commit 59e9a72288571b476bbe39902c89aed0423905bf gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 99986dc9cd622ca68c2c79edc113cfcee56077b2d78a88b664a2d2a32c959819 all runs: crashed: KASAN: use-after-free Read in f2fs_inode_synced representative crash: KASAN: use-after-free Read in f2fs_inode_synced, 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 59e9a72288571b476bbe39902c89aed0423905bf gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: c34b6db09f88294b631f92b6a699d6a0b89a4202a76bf85ad0114d6dc15ba344 all runs: crashed: KASAN: use-after-free Read in f2fs_inode_synced representative crash: KASAN: use-after-free Read in f2fs_inode_synced, 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 59e9a72288571b476bbe39902c89aed0423905bf gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 8811cd4d2619114e94a3ba194ca28582843a368492de09f66f037a9d3d40954c all runs: crashed: KASAN: use-after-free Read in f2fs_inode_synced representative crash: KASAN: use-after-free Read in f2fs_inode_synced, types: [KASAN-USE-AFTER-FREE-READ] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [memleak ubsan bug_or_warning locking atomic_sleep hang], they are not needed testing commit 59e9a72288571b476bbe39902c89aed0423905bf gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 30f3e4db2d6ef1a66ea1c6f9513fd5b361d1f1a6ce211a82c442cebd75de1e57 all runs: crashed: KASAN: use-after-free Read in f2fs_inode_synced representative crash: KASAN: use-after-free Read in f2fs_inode_synced, 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 59e9a72288571b476bbe39902c89aed0423905bf gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 failed building 59e9a72288571b476bbe39902c89aed0423905bf: 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 48 configs; suspects: [HID_ZEROPLUS 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 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 [locking atomic_sleep hang memleak ubsan bug_or_warning], they are not needed testing current HEAD 1154f779f3f3d196ace7d5084498f5d7f418ba64 testing commit 1154f779f3f3d196ace7d5084498f5d7f418ba64 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 70b2a492842e450e0c2490e1417d25fb9f3c8d3b1129f214cb232b91c3726e65 all runs: crashed: KASAN: use-after-free Read in f2fs_inode_synced representative crash: KASAN: use-after-free Read in f2fs_inode_synced, types: [KASAN-USE-AFTER-FREE-READ] crash still not fixed/happens on the oldest tested release revisions tested: 7, total time: 43m52.923499249s (build: 16m37.492832402s, test: 26m8.109233189s) crash still not fixed or there were kernel test errors commit msg: Merge android13-5.10 into android13-5.10-lts crash: KASAN: use-after-free Read in f2fs_inode_synced ================================================================== BUG: KASAN: use-after-free in __list_del_entry_valid+0xf0/0x110 lib/list_debug.c:62 Read of size 8 at addr ffff88812744d768 by task syz.2.16/459 CPU: 1 PID: 459 Comm: syz.2.16 Not tainted 5.10.240-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/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_load8_noabort+0x14/0x20 mm/kasan/report_generic.c:309 __list_del_entry_valid+0xf0/0x110 lib/list_debug.c:62 __list_del_entry include/linux/list.h:132 [inline] list_del_init include/linux/list.h:204 [inline] f2fs_inode_synced+0xed/0x3c0 fs/f2fs/super.c:1494 f2fs_update_inode+0x6f/0x2030 fs/f2fs/inode.c:602 f2fs_update_inode_page+0xa9/0x110 fs/f2fs/inode.c:717 f2fs_write_inode+0x190/0x1010 fs/f2fs/inode.c:745 write_inode fs/fs-writeback.c:1329 [inline] __writeback_single_inode+0x52c/0x780 fs/fs-writeback.c:1527 writeback_single_inode+0x1e9/0x310 fs/fs-writeback.c:1581 sync_inode fs/fs-writeback.c:2595 [inline] sync_inode_metadata+0x8f/0xc0 fs/fs-writeback.c:2615 f2fs_sync_inode_meta+0x194/0x260 fs/f2fs/checkpoint.c:1162 block_operations fs/f2fs/checkpoint.c:1267 [inline] f2fs_write_checkpoint+0x888/0x6080 fs/f2fs/checkpoint.c:1661 kill_f2fs_super+0x2c0/0x360 fs/f2fs/super.c:4588 deactivate_locked_super+0x8b/0x130 fs/super.c:335 deactivate_super+0x71/0x80 fs/super.c:366 cleanup_mnt+0x2c5/0x400 fs/namespace.c:1114 __cleanup_mnt+0xd/0x10 fs/namespace.c:1121 task_work_run+0xc2/0x140 kernel/task_work.c:189 exit_task_work include/linux/task_work.h:33 [inline] do_exit+0x8c5/0x2330 kernel/exit.c:872 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+0xd1/0x120 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 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fa2997fb1e5 Code: Unable to access opcode bytes at RIP 0x7fa2997fb1bb. RSP: 002b:00007fa299238f80 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6 RAX: fffffffffffffdfc RBX: 00007fa2999effa0 RCX: 00007fa2997fb1e5 RDX: 00007fa299238fc0 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007fa29984ab39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fa2999effa0 R15: 00007fffd7a36758 Allocated by task 453: 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:583 [inline] slab_alloc_node mm/slub.c:2947 [inline] slab_alloc mm/slub.c:2955 [inline] kmem_cache_alloc+0x15d/0x4f0 mm/slub.c:2960 f2fs_kmem_cache_alloc fs/f2fs/f2fs.h:2785 [inline] f2fs_alloc_inode+0x1d/0x4a0 fs/f2fs/super.c:1373 alloc_inode+0x5c/0x1e0 fs/inode.c:233 iget_locked+0x12e/0x5e0 fs/inode.c:1275 f2fs_iget+0x53/0x4a10 fs/f2fs/inode.c:498 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 Freed by task 23: 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:1595 [inline] slab_free_freelist_hook+0x9b/0x1a0 mm/slub.c:1621 slab_free mm/slub.c:3203 [inline] kmem_cache_free+0x106/0x440 mm/slub.c:3219 f2fs_free_inode+0x1d/0x30 fs/f2fs/super.c:1528 i_callback+0x3a/0x60 fs/inode.c:222 rcu_do_batch+0x34e/0xb90 kernel/rcu/tree.c:2494 rcu_core+0x3fa/0xa40 kernel/rcu/tree.c:2735 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2748 __do_softirq+0x1bc/0x5f3 kernel/softirq.c:309 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 kernel/rcu/tree.c:2980 [inline] call_rcu+0xe2/0x12d0 kernel/rcu/tree.c:3054 destroy_inode+0x11f/0x190 fs/inode.c:288 evict+0x517/0x940 fs/inode.c:629 iput_final fs/inode.c:1736 [inline] iput.part.0+0x33b/0x640 fs/inode.c:1762 iput+0x3f/0x50 fs/inode.c:1752 do_unlinkat+0x337/0x5d0 fs/namei.c:4042 __do_sys_unlink fs/namei.c:4082 [inline] __se_sys_unlink fs/namei.c:4080 [inline] __x64_sys_unlink+0xa5/0xe0 fs/namei.c:4080 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 ffff88812744d3b0 which belongs to the cache f2fs_inode_cache of size 1520 The buggy address is located 952 bytes inside of 1520-byte region [ffff88812744d3b0, ffff88812744d9a0) The buggy address belongs to the page: page:ffffea00049d1200 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x127448 head:ffffea00049d1200 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head) raw: 4000000000010200 dead000000000100 dead000000000122 ffff88810479d500 raw: 0000000000000000 0000000080130013 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 453, ts 56986500960, 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/0x2490 mm/page_alloc.c:5357 __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:1665 [inline] allocate_slab+0x30f/0x460 mm/slub.c:1808 new_slab mm/slub.c:1869 [inline] new_slab_objects mm/slub.c:2627 [inline] ___slab_alloc.constprop.0+0x32b/0x730 mm/slub.c:2791 __slab_alloc mm/slub.c:2831 [inline] slab_alloc_node mm/slub.c:2913 [inline] slab_alloc mm/slub.c:2955 [inline] kmem_cache_alloc+0x491/0x4f0 mm/slub.c:2960 f2fs_kmem_cache_alloc fs/f2fs/f2fs.h:2785 [inline] f2fs_alloc_inode+0x1d/0x4a0 fs/f2fs/super.c:1373 alloc_inode+0x5c/0x1e0 fs/inode.c:233 iget_locked+0x12e/0x5e0 fs/inode.c:1275 f2fs_iget+0x53/0x4a10 fs/f2fs/inode.c:498 f2fs_fill_super+0x3e49/0x6390 fs/f2fs/super.c:4315 mount_bdev+0x2b7/0x390 fs/super.c:1442 f2fs_mount+0x10/0x20 fs/f2fs/super.c:4562 legacy_get_tree+0xf5/0x1d0 fs/fs_context.c:593 vfs_get_tree+0x81/0x1b0 fs/super.c:1572 do_new_mount fs/namespace.c:2919 [inline] path_mount+0x4b4/0x1f60 fs/namespace.c:3249 do_mount fs/namespace.c:3262 [inline] __do_sys_mount fs/namespace.c:3470 [inline] __se_sys_mount fs/namespace.c:3447 [inline] __x64_sys_mount+0x20e/0x280 fs/namespace.c:3447 page_owner free stack trace missing Memory state around the buggy address: ffff88812744d600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88812744d680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88812744d700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88812744d780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88812744d800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================