================================================================== 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+0x9dc/0xac0 mm/filemap.c:175 Read of size 4 at addr ffff88811d0a0470 by task syz.0.672/2859 CPU: 1 PID: 2859 Comm: syz.0.672 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x1a7/0x208 lib/dump_stack.c:118 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:435 [inline] kasan_report+0x100/0x140 mm/kasan/report.c:452 __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+0x9dc/0xac0 mm/filemap.c:175 __delete_from_page_cache+0xc3/0x470 mm/filemap.c:243 __remove_mapping+0x581/0x6b0 mm/vmscan.c:985 shrink_page_list+0x21ee/0x4160 mm/vmscan.c:1498 shrink_inactive_list+0x90c/0xef0 mm/vmscan.c:2075 shrink_list mm/vmscan.c:2294 [inline] shrink_lruvec+0x2806/0x2d70 mm/vmscan.c:5473 shrink_node_memcgs mm/vmscan.c:5660 [inline] shrink_node+0xee0/0x2690 mm/vmscan.c:5690 shrink_zones mm/vmscan.c:5896 [inline] do_try_to_free_pages+0x602/0x1590 mm/vmscan.c:5954 try_to_free_mem_cgroup_pages+0x261/0x610 mm/vmscan.c:6272 try_charge+0x426/0x1580 mm/memcontrol.c:2745 __mem_cgroup_charge+0x148/0x6d0 mm/memcontrol.c:6871 mem_cgroup_charge include/linux/memcontrol.h:458 [inline] shmem_add_to_page_cache+0x569/0xe10 mm/shmem.c:699 shmem_getpage_gfp+0x907/0x20f0 mm/shmem.c:1952 shmem_getpage mm/shmem.c:161 [inline] shmem_write_begin+0xce/0x1b0 mm/shmem.c:2497 generic_perform_write+0x2ce/0x540 mm/filemap.c:3509 __generic_file_write_iter+0x24b/0x480 mm/filemap.c:3638 generic_file_write_iter+0xa9/0x1d0 mm/filemap.c:3670 __kernel_write+0x5a5/0x9d0 fs/read_write.c:550 dump_emit+0x255/0x380 fs/coredump.c:855 dump_user_range+0x6a/0x1a0 fs/coredump.c:908 elf_core_dump+0x27af/0x2c20 fs/binfmt_elf.c:2290 do_coredump+0x1be6/0x2910 fs/coredump.c:817 get_signal+0xf4c/0x1300 kernel/signal.c:2780 arch_do_signal_or_restart+0xe7/0x11b0 arch/x86/kernel/signal.c:805 handle_signal_work kernel/entry/common.c:145 [inline] exit_to_user_mode_loop+0xa2/0xe0 kernel/entry/common.c:169 exit_to_user_mode_prepare+0x76/0xa0 kernel/entry/common.c:199 irqentry_exit_to_user_mode+0x9/0x10 kernel/entry/common.c:287 irqentry_exit+0x12/0x60 kernel/entry/common.c:375 exc_page_fault+0x67/0xc0 arch/x86/mm/fault.c:1495 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:571 RIP: 0033:0x7f5e6caa3ea1 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:0000000000000010 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007f5e6cd2bfa0 RCX: 00007f5e6caa3e99 RDX: 0000000000000000 RSI: 0000000000000010 RDI: 0000000000000400 RBP: 00007f5e6cb39eaf R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 00007f5e6cd2c038 R14: 00007f5e6cd2bfa0 R15: 00007ffdb1774a48 Allocated by task 2094: 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:430 [inline] ____kasan_kmalloc mm/kasan/common.c:509 [inline] __kasan_kmalloc+0xd4/0x100 mm/kasan/common.c:518 kasan_kmalloc include/linux/kasan.h:254 [inline] __kmalloc+0x19f/0x330 mm/slub.c:4038 kmalloc include/linux/slab.h:560 [inline] kzalloc include/linux/slab.h:667 [inline] __register_sysctl_table+0xeb/0x1240 fs/proc/proc_sysctl.c:1323 register_net_sysctl+0x2c/0x40 net/sysctl_net.c:121 __addrconf_sysctl_register+0x277/0x3e0 net/ipv6/addrconf.c:7062 addrconf_init_net+0x35c/0x5a0 net/ipv6/addrconf.c:7173 ops_init+0x2c0/0x470 net/core/net_namespace.c:144 setup_net+0x34f/0xae0 net/core/net_namespace.c:345 copy_net_ns+0x314/0x520 net/core/net_namespace.c:486 create_new_namespaces+0x3a8/0x650 kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0x120/0x170 kernel/nsproxy.c:231 ksys_unshare+0x4fa/0x820 kernel/fork.c:3156 __do_sys_unshare kernel/fork.c:3224 [inline] __se_sys_unshare kernel/fork.c:3222 [inline] __x64_sys_unshare+0x38/0x40 kernel/fork.c:3222 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb Freed by task 757: 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:362 __kasan_slab_free+0x11/0x20 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+0xc5/0x190 mm/slub.c:1626 slab_free mm/slub.c:3208 [inline] kmem_cache_free_bulk+0x4b3/0x6d0 mm/slub.c:3341 kfree_bulk include/linux/slab.h:412 [inline] kfree_rcu_work+0x16f/0x890 kernel/rcu/tree.c:3242 process_one_work+0x6fd/0xbc0 kernel/workqueue.c:2301 worker_thread+0xa8e/0x13c0 kernel/workqueue.c:2447 kthread+0x324/0x3b0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 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 kvfree_call_rcu+0x117/0x670 kernel/rcu/tree.c:3539 drop_sysctl_table+0x2f5/0x430 fs/proc/proc_sysctl.c:1684 unregister_sysctl_table+0x75/0x120 fs/proc/proc_sysctl.c:1722 unregister_net_sysctl_table+0x15/0x20 net/sysctl_net.c:127 __addrconf_sysctl_unregister net/ipv6/addrconf.c:7091 [inline] addrconf_exit_net+0x161/0x200 net/ipv6/addrconf.c:7200 ops_exit_list net/core/net_namespace.c:185 [inline] cleanup_net+0x589/0xb80 net/core/net_namespace.c:609 process_one_work+0x6fd/0xbc0 kernel/workqueue.c:2301 worker_thread+0xa8e/0x13c0 kernel/workqueue.c:2447 kthread+0x324/0x3b0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 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 kvfree_call_rcu+0x117/0x670 kernel/rcu/tree.c:3539 drop_sysctl_table+0x2f5/0x430 fs/proc/proc_sysctl.c:1684 unregister_sysctl_table+0x75/0x120 fs/proc/proc_sysctl.c:1722 unregister_net_sysctl_table+0x15/0x20 net/sysctl_net.c:127 __addrconf_sysctl_unregister net/ipv6/addrconf.c:7091 [inline] addrconf_sysctl_unregister net/ipv6/addrconf.c:7119 [inline] addrconf_ifdown+0x1597/0x1890 net/ipv6/addrconf.c:3939 addrconf_notify+0x3bd/0xea0 net/ipv6/addrconf.c:-1 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0x90/0x100 kernel/notifier.c:410 call_netdevice_notifiers_info net/core/dev.c:2052 [inline] call_netdevice_notifiers_extack net/core/dev.c:2064 [inline] call_netdevice_notifiers net/core/dev.c:2078 [inline] unregister_netdevice_many+0x100e/0x19f0 net/core/dev.c:10778 ip6gre_exit_batch_net+0x5ca/0x620 net/ipv6/ip6_gre.c:1656 ops_exit_list net/core/net_namespace.c:190 [inline] cleanup_net+0x5fe/0xb80 net/core/net_namespace.c:609 process_one_work+0x6fd/0xbc0 kernel/workqueue.c:2301 worker_thread+0xa8e/0x13c0 kernel/workqueue.c:2447 kthread+0x324/0x3b0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 The buggy address belongs to the object at ffff88811d0a0000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1136 bytes inside of 2048-byte region [ffff88811d0a0000, ffff88811d0a0800) The buggy address belongs to the page: page:ffffea0004742800 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11d0a0 head:ffffea0004742800 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head) raw: 4000000000010200 dead000000000100 dead000000000122 ffff888100042d80 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 223, ts 15240146429, 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+0x176/0x190 mm/page_alloc.c:2462 get_page_from_freelist+0x225f/0x23f0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x29a/0x640 mm/page_alloc.c:5384 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1813 [inline] new_slab+0x84/0x3f0 mm/slub.c:1874 new_slab_objects mm/slub.c:2632 [inline] ___slab_alloc+0x2f8/0x4c0 mm/slub.c:2796 __slab_alloc+0x63/0xa0 mm/slub.c:2836 slab_alloc_node mm/slub.c:2918 [inline] slab_alloc mm/slub.c:2960 [inline] __kmalloc+0x1f9/0x330 mm/slub.c:4034 __kmalloc_node include/linux/slab.h:421 [inline] kmalloc_node include/linux/slab.h:578 [inline] kvmalloc_node+0x88/0x130 mm/util.c:612 kvmalloc include/linux/mm.h:833 [inline] kvmalloc_array include/linux/mm.h:851 [inline] bpf_int_jit_compile+0x37e/0x8930 arch/x86/net/bpf_jit_comp.c:2063 bpf_prog_select_runtime+0x722/0x9c0 kernel/bpf/core.c:1876 bpf_migrate_filter net/core/filter.c:1306 [inline] bpf_prepare_filter+0xfab/0x1150 net/core/filter.c:1354 bpf_prog_create_from_user+0x2c5/0x420 net/core/filter.c:1448 seccomp_prepare_filter kernel/seccomp.c:661 [inline] seccomp_prepare_user_filter kernel/seccomp.c:698 [inline] seccomp_set_mode_filter kernel/seccomp.c:1813 [inline] do_seccomp+0x7ff/0x1480 kernel/seccomp.c:1933 prctl_set_seccomp+0x4c/0x60 kernel/seccomp.c:1986 __do_sys_prctl kernel/sys.c:2457 [inline] __se_sys_prctl+0x77d/0x1230 kernel/sys.c:2375 __x64_sys_prctl+0xbf/0xd0 kernel/sys.c:2375 page_owner free stack trace missing Memory state around the buggy address: ffff88811d0a0300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88811d0a0380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88811d0a0400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88811d0a0480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88811d0a0500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================