================================================================== BUG: KASAN: use-after-free in instrument_atomic_read include/linux/instrumented.h:68 [inline] BUG: KASAN: use-after-free in atomic_read include/linux/atomic/atomic-instrumented.h:32 [inline] BUG: KASAN: use-after-free in get_pages fs/f2fs/f2fs.h:2718 [inline] BUG: KASAN: use-after-free in f2fs_write_end_io+0x9b9/0xb60 fs/f2fs/data.c:364 Read of size 4 at addr ffff88802878d6f0 by task syz-executor/22985 CPU: 0 UID: 0 PID: 22985 Comm: syz-executor Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xca/0x240 mm/kasan/report.c:482 kasan_report+0x118/0x150 mm/kasan/report.c:595 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x2b0/0x2c0 mm/kasan/generic.c:200 instrument_atomic_read include/linux/instrumented.h:68 [inline] atomic_read include/linux/atomic/atomic-instrumented.h:32 [inline] get_pages fs/f2fs/f2fs.h:2718 [inline] f2fs_write_end_io+0x9b9/0xb60 fs/f2fs/data.c:364 blk_update_request+0x57e/0xe60 block/blk-mq.c:1007 blk_mq_end_request+0x3e/0x70 block/blk-mq.c:1169 blk_flush_complete_seq+0x687/0xce0 block/blk-flush.c:191 flush_end_io+0xc46/0xf30 block/blk-flush.c:250 __blk_mq_end_request+0x4a8/0x680 block/blk-mq.c:1159 blk_complete_reqs block/blk-mq.c:1244 [inline] blk_done_softirq+0x10a/0x160 block/blk-mq.c:1249 handle_softirqs+0x1df/0x650 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] __local_bh_enable_ip+0x171/0x2c0 kernel/softirq.c:302 local_bh_enable include/linux/bottom_half.h:33 [inline] __alloc_skb+0x1bc/0x3a0 net/core/skbuff.c:674 alloc_skb include/linux/skbuff.h:1383 [inline] nlmsg_new include/net/netlink.h:1055 [inline] genlmsg_new include/net/genetlink.h:611 [inline] ethnl_default_notify+0x551/0xb20 net/ethtool/netlink.c:1014 ethtool_notify net/ethtool/netlink.c:1092 [inline] ethnl_notify_features net/ethtool/netlink.c:1100 [inline] ethnl_netdev_event+0xe2/0x160 net/ethtool/netlink.c:1115 notifier_call_chain+0x19d/0x3a0 kernel/notifier.c:85 call_netdevice_notifiers_extack net/core/dev.c:2268 [inline] call_netdevice_notifiers net/core/dev.c:2282 [inline] netdev_features_change net/core/dev.c:1571 [inline] netdev_update_features+0xa3/0xe0 net/core/dev.c:11064 hsr_add_port+0x4cc/0xa30 net/hsr/hsr_slave.c:219 hsr_dev_finalize+0x44a/0xab0 net/hsr/hsr_device.c:769 hsr_newlink+0x8ad/0x9f0 net/hsr/hsr_netlink.c:128 rtnl_newlink_create+0x310/0xb00 net/core/rtnetlink.c:3840 __rtnl_newlink net/core/rtnetlink.c:3957 [inline] rtnl_newlink+0x16e7/0x1c90 net/core/rtnetlink.c:4072 rtnetlink_rcv_msg+0x7cf/0xb70 net/core/rtnetlink.c:6958 netlink_rcv_skb+0x208/0x470 net/netlink/af_netlink.c:2550 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x846/0xa10 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x805/0xb30 net/netlink/af_netlink.c:1894 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg+0x21c/0x270 net/socket.c:742 __sys_sendto+0x3c7/0x520 net/socket.c:2206 __do_sys_sendto net/socket.c:2213 [inline] __se_sys_sendto net/socket.c:2209 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2209 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xec/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f53b0be15dc Code: 2a 5f 02 00 44 8b 4c 24 2c 4c 8b 44 24 20 89 c5 44 8b 54 24 28 48 8b 54 24 18 b8 2c 00 00 00 48 8b 74 24 10 8b 7c 24 08 0f 05 <48> 3d 00 f0 ff ff 77 34 89 ef 48 89 44 24 08 e8 70 5f 02 00 48 8b RSP: 002b:00007ffc52d507a0 EFLAGS: 00000293 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 00007f53b1964620 RCX: 00007f53b0be15dc RDX: 0000000000000048 RSI: 00007f53b1964670 RDI: 0000000000000003 RBP: 0000000000000000 R08: 00007ffc52d507f4 R09: 000000000000000c R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000003 R13: 0000000000000000 R14: 00007f53b1964670 R15: 0000000000000000 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x2a pfn:0x2878d flags: 0x80000000000000(node=0|zone=1) raw: 0080000000000000 0000000000000000 00000000ffffffff 0000000000000000 raw: 000000000000002a 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 2, migratetype Unmovable, gfp_mask 0x40dc0(GFP_KERNEL|__GFP_ZERO|__GFP_COMP), pid 23567, tgid 23566 (syz.7.2200), ts 1800192648199, free_ts 1802576896970 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x234/0x290 mm/page_alloc.c:1857 prep_new_page mm/page_alloc.c:1865 [inline] get_page_from_freelist+0x28c0/0x2960 mm/page_alloc.c:3915 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5210 alloc_pages_mpol+0xd1/0x380 mm/mempolicy.c:2486 ___kmalloc_large_node+0x4e/0x150 mm/slub.c:5598 __kmalloc_large_noprof+0x1a/0x90 mm/slub.c:5619 kmalloc_noprof include/linux/slab.h:954 [inline] kzalloc_noprof include/linux/slab.h:1094 [inline] f2fs_fill_super+0x5a/0x6e30 fs/f2fs/super.c:4895 get_tree_bdev_flags+0x40e/0x4d0 fs/super.c:1691 vfs_get_tree+0x92/0x2a0 fs/super.c:1751 fc_mount fs/namespace.c:1199 [inline] do_new_mount_fc fs/namespace.c:3636 [inline] do_new_mount+0x302/0xa10 fs/namespace.c:3712 do_mount fs/namespace.c:4035 [inline] __do_sys_mount fs/namespace.c:4224 [inline] __se_sys_mount+0x313/0x410 fs/namespace.c:4201 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xec/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 21085 tgid 21085 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1406 [inline] __free_frozen_pages+0xfe1/0x1170 mm/page_alloc.c:2943 kill_f2fs_super+0x5b6/0x6c0 fs/f2fs/super.c:5458 deactivate_locked_super+0xbc/0x130 fs/super.c:474 cleanup_mnt+0x425/0x4c0 fs/namespace.c:1318 task_work_run+0x1d4/0x260 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:44 [inline] exit_to_user_mode_loop+0xef/0x4e0 kernel/entry/common.c:75 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:159 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:194 [inline] do_syscall_64+0x2c1/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88802878d580: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88802878d600: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88802878d680: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88802878d700: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88802878d780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================