================================================================== 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 ffff8881288f0470 by task syz.3.1380/5377 CPU: 0 PID: 5377 Comm: syz.3.1380 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/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] shmem_add_to_page_cache+0x64b/0xc50 mm/shmem.c:723 shmem_getpage_gfp+0x116a/0x2310 mm/shmem.c:1946 shmem_getpage mm/shmem.c:156 [inline] shmem_write_begin+0xce/0x1b0 mm/shmem.c:2480 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:0x7f6003ddb7a1 Code: 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 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f RSP: 002b:0000000000000030 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007f6004055180 RCX: 00007f6003ddb799 RDX: 0000000000000000 RSI: 0000000000000030 RDI: 0000000000000600 RBP: 00007f6003e71bd9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 00007f6004055218 R14: 00007f6004055180 R15: 00007ffe10787e08 Allocated by task 5167: 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] __kmalloc_track_caller+0x13c/0x2c0 mm/slub.c:4959 kmalloc_reserve net/core/skbuff.c:357 [inline] pskb_expand_head+0x11b/0x11d0 net/core/skbuff.c:1733 skb_expand_head+0x1b7/0x390 net/core/skbuff.c:1891 ip_finish_output2+0x5bb/0xe60 net/ipv4/ip_output.c:209 __ip_finish_output+0x161/0x360 net/ipv4/ip_output.c:-1 ip_finish_output+0x31/0x240 net/ipv4/ip_output.c:316 NF_HOOK_COND include/linux/netfilter.h:294 [inline] ip_mc_output+0x419/0x880 net/ipv4/ip_output.c:415 dst_output include/net/dst.h:453 [inline] ip_local_out net/ipv4/ip_output.c:126 [inline] __ip_queue_xmit+0x10db/0x1b60 net/ipv4/ip_output.c:538 ip_queue_xmit+0x4d/0x70 net/ipv4/ip_output.c:552 l2tp_xmit_queue net/l2tp/l2tp_core.c:1012 [inline] l2tp_xmit_core net/l2tp/l2tp_core.c:1104 [inline] l2tp_xmit_skb+0xf1a/0x1860 net/l2tp/l2tp_core.c:1120 pppol2tp_sendmsg+0x361/0x600 net/l2tp/l2tp_ppp.c:319 sock_sendmsg_nosec net/socket.c:704 [inline] __sock_sendmsg net/socket.c:716 [inline] ____sys_sendmsg+0x5b7/0x8f0 net/socket.c:2435 ___sys_sendmsg+0x236/0x2e0 net/socket.c:2489 __sys_sendmmsg+0x2ba/0x4e0 net/socket.c:2575 __do_sys_sendmmsg net/socket.c:2604 [inline] __se_sys_sendmmsg net/socket.c:2601 [inline] __x64_sys_sendmmsg+0xa0/0xb0 net/socket.c:2601 x64_sys_call+0x6c6/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:308 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 5167: 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 skb_free_head net/core/skbuff.c:656 [inline] skb_release_data+0x814/0xa10 net/core/skbuff.c:678 skb_release_all net/core/skbuff.c:743 [inline] __kfree_skb net/core/skbuff.c:757 [inline] kfree_skb_reason net/core/skbuff.c:778 [inline] kfree_skb+0xb9/0x2f0 net/core/skbuff.c:792 neigh_connected_output+0x442/0x460 net/core/neighbour.c:1536 neigh_output include/net/neighbour.h:517 [inline] ip_finish_output2+0xbc7/0xe60 net/ipv4/ip_output.c:228 __ip_finish_output+0x161/0x360 net/ipv4/ip_output.c:-1 ip_finish_output+0x31/0x240 net/ipv4/ip_output.c:316 NF_HOOK_COND include/linux/netfilter.h:294 [inline] ip_mc_output+0x419/0x880 net/ipv4/ip_output.c:415 dst_output include/net/dst.h:453 [inline] ip_local_out net/ipv4/ip_output.c:126 [inline] __ip_queue_xmit+0x10db/0x1b60 net/ipv4/ip_output.c:538 ip_queue_xmit+0x4d/0x70 net/ipv4/ip_output.c:552 l2tp_xmit_queue net/l2tp/l2tp_core.c:1012 [inline] l2tp_xmit_core net/l2tp/l2tp_core.c:1104 [inline] l2tp_xmit_skb+0xf1a/0x1860 net/l2tp/l2tp_core.c:1120 pppol2tp_sendmsg+0x361/0x600 net/l2tp/l2tp_ppp.c:319 sock_sendmsg_nosec net/socket.c:704 [inline] __sock_sendmsg net/socket.c:716 [inline] ____sys_sendmsg+0x5b7/0x8f0 net/socket.c:2435 ___sys_sendmsg+0x236/0x2e0 net/socket.c:2489 __sys_sendmmsg+0x2ba/0x4e0 net/socket.c:2575 __do_sys_sendmmsg net/socket.c:2604 [inline] __se_sys_sendmmsg net/socket.c:2601 [inline] __x64_sys_sendmmsg+0xa0/0xb0 net/socket.c:2601 x64_sys_call+0x6c6/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:308 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_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline] sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1108 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:676 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 ffff8881288f0000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1136 bytes inside of 2048-byte region [ffff8881288f0000, ffff8881288f0800) The buggy address belongs to the page: page:ffffea0004a23c00 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff8881288f3000 pfn:0x1288f0 head:ffffea0004a23c00 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 ffffea00049c0608 ffffea00044f5c08 ffff888100043200 raw: ffff8881288f3000 0000000000080007 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 287, ts 22292334514, 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:5808 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_track_caller+0x169/0x2c0 mm/slub.c:4954 kmemdup+0x26/0x60 mm/util.c:132 neigh_sysctl_register+0xbe/0xa90 net/core/neighbour.c:3652 addrconf_sysctl_register+0xb3/0x1a0 net/ipv6/addrconf.c:7207 ipv6_add_dev+0xc03/0x1150 net/ipv6/addrconf.c:456 addrconf_notify+0x582/0xde0 net/ipv6/addrconf.c:3600 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0x90/0x100 kernel/notifier.c:391 call_netdevice_notifiers_info net/core/dev.c:2070 [inline] call_netdevice_notifiers_extack net/core/dev.c:2082 [inline] call_netdevice_notifiers+0x119/0x190 net/core/dev.c:2096 register_netdevice+0x10e5/0x1460 net/core/dev.c:10449 page_owner free stack trace missing Memory state around the buggy address: ffff8881288f0300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881288f0380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8881288f0400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881288f0480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881288f0500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== syz.3.1380 (5377) used greatest stack depth: 16992 bytes left