================================================================== BUG: KASAN: use-after-free in cleancache_fs_enabled_mapping include/linux/cleancache.h:56 [inline] BUG: KASAN: use-after-free in cleancache_invalidate_page include/linux/cleancache.h:110 [inline] BUG: KASAN: use-after-free in unaccount_page_cache_page+0x6f2/0x760 mm/filemap.c:172 Read of size 4 at addr ffff888128bc8470 by task syz.8.548/2281 CPU: 0 PID: 2281 Comm: syz.8.548 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026 Call Trace: __dump_stack+0x21/0x30 lib/dump_stack.c:88 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:427 [inline] kasan_report+0xf1/0x140 mm/kasan/report.c:444 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308 cleancache_fs_enabled_mapping include/linux/cleancache.h:56 [inline] cleancache_invalidate_page include/linux/cleancache.h:110 [inline] unaccount_page_cache_page+0x6f2/0x760 mm/filemap.c:172 __delete_from_page_cache+0xbe/0x470 mm/filemap.c:240 __remove_mapping+0x80a/0x980 mm/vmscan.c:1216 shrink_page_list+0x24fc/0x5540 mm/vmscan.c:1824 shrink_inactive_list mm/vmscan.c:2331 [inline] shrink_list mm/vmscan.c:2576 [inline] shrink_lruvec+0x1209/0x39a0 mm/vmscan.c:5793 shrink_node_memcgs mm/vmscan.c:5985 [inline] shrink_node+0x1205/0x2aa0 mm/vmscan.c:6015 shrink_zones mm/vmscan.c:6221 [inline] do_try_to_free_pages+0x5a8/0x1580 mm/vmscan.c:6279 try_to_free_mem_cgroup_pages+0x261/0x610 mm/vmscan.c:6593 try_charge_memcg+0x3f8/0x14b0 mm/memcontrol.c:2713 try_charge mm/memcontrol.c:2838 [inline] charge_memcg+0x6d/0x1a0 mm/memcontrol.c:6861 __mem_cgroup_charge+0x93/0x280 mm/memcontrol.c:6898 mem_cgroup_charge include/linux/memcontrol.h:715 [inline] __add_to_page_cache_locked+0x1eb/0x890 mm/filemap.c:902 add_to_page_cache_lru+0xa7/0x210 mm/filemap.c:994 pagecache_get_page+0xb87/0xde0 mm/filemap.c:1966 grab_cache_page_write_begin+0x59/0xb0 mm/filemap.c:3824 simple_write_begin+0x33/0x160 fs/libfs.c:533 generic_perform_write+0x2b7/0x690 mm/filemap.c:3870 __generic_file_write_iter+0x268/0x480 mm/filemap.c:3998 generic_file_write_iter+0xa9/0x1d0 mm/filemap.c:4030 __kernel_write+0x510/0x950 fs/read_write.c:539 __dump_emit+0x246/0x370 fs/coredump.c:880 dump_emit+0x383/0x3f0 fs/coredump.c:917 dump_user_range+0x86/0x1c0 fs/coredump.c:954 elf_core_dump+0x2a8f/0x2fd0 fs/binfmt_elf.c:2285 do_coredump+0x1452/0x2950 fs/coredump.c:831 get_signal+0x38d/0x1480 kernel/signal.c:2893 arch_do_signal_or_restart+0xdf/0x11c0 arch/x86/kernel/signal.c:867 handle_signal_work kernel/entry/common.c:154 [inline] exit_to_user_mode_loop+0xa7/0xe0 kernel/entry/common.c:178 exit_to_user_mode_prepare+0x87/0xd0 kernel/entry/common.c:214 irqentry_exit_to_user_mode+0x9/0x10 kernel/entry/common.c:320 irqentry_exit+0x12/0x40 kernel/entry/common.c:411 exc_page_fault+0x5e/0xb0 arch/x86/mm/fault.c:1563 asm_exc_page_fault+0x27/0x30 arch/x86/include/asm/idtentry.h:606 RIP: 0033:0x7f61fe5127f7 Code: e8 8e fa ff ff 89 f2 48 8d 3d 8d 40 1b 00 48 8d 35 6c fa 1d 00 31 c0 e8 e7 f8 ff ff 0f 1f 80 00 00 00 00 53 89 fb 48 83 ec 10 <64> 8b 04 25 a4 ff ff ff 85 c0 74 2a 89 fe 31 c0 bf 3c 00 00 00 e8 RSP: 002b:00007f61fd077120 EFLAGS: 00010202 RAX: 0000000000000000 RBX: 000000000000000b RCX: 00007f61fe65c819 RDX: 00007f61fd077140 RSI: 00007f61fd077270 RDI: 000000000000000b RBP: 00007f61fe6f2c91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 00007f61fe8d6128 R14: 00007f61fe8d6090 R15: 00007ffcc225dd78 Allocated by task 2216: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:433 [inline] ____kasan_kmalloc mm/kasan/common.c:512 [inline] __kasan_kmalloc+0xda/0x110 mm/kasan/common.c:521 kasan_kmalloc include/linux/kasan.h:227 [inline] kmem_cache_alloc_trace+0x119/0x270 mm/slub.c:3274 kmalloc include/linux/slab.h:619 [inline] kzalloc include/linux/slab.h:750 [inline] copy_verifier_state+0x6a6/0xcd0 kernel/bpf/verifier.c:975 push_stack+0x19b/0x4f0 kernel/bpf/verifier.c:1051 check_cond_jmp_op kernel/bpf/verifier.c:9336 [inline] do_check+0xc401/0xea90 kernel/bpf/verifier.c:11461 do_check_common+0xff5/0x19b0 kernel/bpf/verifier.c:13474 do_check_main kernel/bpf/verifier.c:13537 [inline] bpf_check+0x33f4/0xf370 kernel/bpf/verifier.c:14108 bpf_prog_load+0x10c4/0x1640 kernel/bpf/syscall.c:2328 __sys_bpf+0x51d/0x7d0 kernel/bpf/syscall.c:4633 __do_sys_bpf kernel/bpf/syscall.c:4737 [inline] __se_sys_bpf kernel/bpf/syscall.c:4735 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:4735 x64_sys_call+0x4b9/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:322 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Freed by task 2216: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4a/0x70 mm/kasan/common.c:45 kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:370 ____kasan_slab_free+0x125/0x160 mm/kasan/common.c:365 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:373 kasan_slab_free include/linux/kasan.h:193 [inline] slab_free_hook mm/slub.c:1728 [inline] slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1754 slab_free mm/slub.c:3526 [inline] kfree+0xc4/0x270 mm/slub.c:4588 free_func_state kernel/bpf/verifier.c:908 [inline] free_verifier_state+0xde/0x220 kernel/bpf/verifier.c:924 pop_stack+0x394/0x510 kernel/bpf/verifier.c:1026 do_check+0x8bf4/0xea90 kernel/bpf/verifier.c:11450 do_check_common+0xff5/0x19b0 kernel/bpf/verifier.c:13474 do_check_main kernel/bpf/verifier.c:13537 [inline] bpf_check+0x33f4/0xf370 kernel/bpf/verifier.c:14108 bpf_prog_load+0x10c4/0x1640 kernel/bpf/syscall.c:2328 __sys_bpf+0x51d/0x7d0 kernel/bpf/syscall.c:4633 __do_sys_bpf kernel/bpf/syscall.c:4737 [inline] __se_sys_bpf kernel/bpf/syscall.c:4735 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:4735 x64_sys_call+0x4b9/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:322 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:38 __kasan_record_aux_stack+0xd2/0x100 mm/kasan/generic.c:348 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358 insert_work+0x51/0x310 kernel/workqueue.c:1373 __queue_work+0x8e5/0xc60 kernel/workqueue.c:1539 queue_work_on+0xde/0x150 kernel/workqueue.c:1566 queue_work include/linux/workqueue.h:510 [inline] schedule_work include/linux/workqueue.h:571 [inline] destroy_super_rcu+0xd1/0xe0 fs/super.c:172 rcu_do_batch+0x532/0xbe0 kernel/rcu/tree.c:2523 rcu_core+0x5ee/0xf80 kernel/rcu/tree.c:2763 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2776 handle_softirqs+0x250/0x560 kernel/softirq.c:583 __do_softirq kernel/softirq.c:621 [inline] invoke_softirq kernel/softirq.c:443 [inline] __irq_exit_rcu+0x52/0xf0 kernel/softirq.c:670 irq_exit_rcu+0x9/0x10 kernel/softirq.c:682 instr_sysvec_call_function_single arch/x86/kernel/smp.c:243 [inline] sysvec_call_function_single+0xa6/0xc0 arch/x86/kernel/smp.c:243 asm_sysvec_call_function_single+0x1b/0x20 arch/x86/include/asm/idtentry.h:684 Second to last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:38 __kasan_record_aux_stack+0xd2/0x100 mm/kasan/generic.c:348 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358 __call_rcu_common kernel/rcu/tree.c:3011 [inline] call_rcu+0x10b/0xf80 kernel/rcu/tree.c:3129 __put_super+0x26b/0x2d0 fs/super.c:299 put_super fs/super.c:313 [inline] deactivate_locked_super+0xd4/0x100 fs/super.c:346 mount_bdev+0x2cc/0x3e0 fs/super.c:1402 f2fs_mount+0x34/0x40 fs/f2fs/super.c:4708 legacy_get_tree+0xed/0x190 fs/fs_context.c:611 vfs_get_tree+0x89/0x260 fs/super.c:1530 do_new_mount+0x25a/0xa20 fs/namespace.c:3034 path_mount+0x659/0xff0 fs/namespace.c:3364 do_mount fs/namespace.c:3377 [inline] __do_sys_mount fs/namespace.c:3585 [inline] __se_sys_mount+0x320/0x390 fs/namespace.c:3562 __x64_sys_mount+0xbf/0xd0 fs/namespace.c:3562 x64_sys_call+0x6bf/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:166 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 The buggy address belongs to the object at ffff888128bc8000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1136 bytes inside of 2048-byte region [ffff888128bc8000, ffff888128bc8800) The buggy address belongs to the page: page:ffffea0004a2f200 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x128bc8 head:ffffea0004a2f200 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 ffffea000445d400 0000000300000003 ffff888100043200 raw: 0000000000000000 0000000000080008 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd60c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_RETRY_MAYFAIL|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 282, ts 25747345926, free_ts 0 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x192/0x1b0 mm/page_alloc.c:2605 prep_new_page+0x1c/0x110 mm/page_alloc.c:2611 get_page_from_freelist+0x2d3a/0x2dc0 mm/page_alloc.c:4485 __alloc_pages+0x1a2/0x460 mm/page_alloc.c:5822 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1937 [inline] new_slab+0xa1/0x4d0 mm/slub.c:2000 ___slab_alloc+0x381/0x810 mm/slub.c:3033 __slab_alloc+0x49/0x90 mm/slub.c:3120 slab_alloc_node mm/slub.c:3211 [inline] slab_alloc mm/slub.c:3255 [inline] __kmalloc+0x16a/0x2c0 mm/slub.c:4432 __kmalloc_node include/linux/slab.h:487 [inline] kmalloc_node include/linux/slab.h:642 [inline] kvmalloc_node+0x211/0x320 mm/util.c:621 kvmalloc include/linux/mm.h:862 [inline] kvmalloc_array include/linux/mm.h:880 [inline] kvcalloc include/linux/mm.h:885 [inline] veth_alloc_queues drivers/net/veth.c:1306 [inline] veth_dev_init+0x1bb/0x350 drivers/net/veth.c:1334 register_netdevice+0x3be/0x1460 net/core/dev.c:10361 veth_newlink+0x8d7/0xe30 drivers/net/veth.c:1714 __rtnl_newlink net/core/rtnetlink.c:3524 [inline] rtnl_newlink+0x133a/0x1a30 net/core/rtnetlink.c:3572 rtnetlink_rcv_msg+0xa4b/0xce0 net/core/rtnetlink.c:5650 netlink_rcv_skb+0x1f5/0x440 net/netlink/af_netlink.c:2511 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5668 page_owner free stack trace missing Memory state around the buggy address: ffff888128bc8300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888128bc8380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888128bc8400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888128bc8480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888128bc8500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================