================================================================== BUG: KASAN: slab-out-of-bounds in cleancache_fs_enabled_mapping include/linux/cleancache.h:56 [inline] BUG: KASAN: slab-out-of-bounds in cleancache_invalidate_page include/linux/cleancache.h:110 [inline] BUG: KASAN: slab-out-of-bounds in unaccount_page_cache_page+0x9e0/0xac0 mm/filemap.c:175 Read of size 4 at addr ffff88810ca9b470 by task syz.3.8273/614 CPU: 1 PID: 614 Comm: syz.3.8273 Tainted: G W 5.10.238-syzkaller-00282-gd76d4cd0623a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x169/0x1d8 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+0xe2/0x130 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+0x9e0/0xac0 mm/filemap.c:175 __delete_from_page_cache+0xc4/0x460 mm/filemap.c:243 __remove_mapping+0x562/0x690 mm/vmscan.c:985 shrink_page_list+0x2109/0x4120 mm/vmscan.c:1498 shrink_inactive_list+0x4f4/0xe80 mm/vmscan.c:2075 shrink_list mm/vmscan.c:2294 [inline] shrink_lruvec+0x2246/0x2770 mm/vmscan.c:5473 shrink_node_memcgs mm/vmscan.c:5660 [inline] shrink_node+0xf0c/0x2690 mm/vmscan.c:5690 shrink_zones mm/vmscan.c:5896 [inline] do_try_to_free_pages+0x5db/0x1560 mm/vmscan.c:5954 try_to_free_mem_cgroup_pages+0x233/0x5b0 mm/vmscan.c:6272 try_charge+0x42b/0x14e0 mm/memcontrol.c:2745 __mem_cgroup_charge+0x14c/0x6d0 mm/memcontrol.c:6871 mem_cgroup_charge include/linux/memcontrol.h:458 [inline] shmem_add_to_page_cache+0x55e/0xe10 mm/shmem.c:703 shmem_getpage_gfp+0x8e8/0x2110 mm/shmem.c:1956 shmem_getpage mm/shmem.c:165 [inline] shmem_write_begin+0xce/0x1b0 mm/shmem.c:2501 generic_perform_write+0x2be/0x510 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+0x55a/0x910 fs/read_write.c:550 dump_emit+0x240/0x360 fs/coredump.c:855 dump_user_range+0x6a/0x1a0 fs/coredump.c:908 elf_core_dump+0x278a/0x2bc0 fs/binfmt_elf.c:2290 do_coredump+0x1ac9/0x27f0 fs/coredump.c:817 get_signal+0xf23/0x12e0 kernel/signal.c:2779 arch_do_signal_or_restart+0xbf/0x10f0 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 kernel/entry/common.c:199 [inline] irqentry_exit_to_user_mode+0x4e/0x80 kernel/entry/common.c:287 irqentry_exit+0x12/0x60 kernel/entry/common.c:375 exc_page_fault+0x67/0xc0 arch/x86/mm/fault.c:1487 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:571 RIP: 0033:0x0 Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6. RSP: 002b:0000200000000088 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007fa536f11080 RCX: 00007fa536ce9929 RDX: 0000200000000080 RSI: 0000200000000080 RDI: 0000000002800400 RBP: 00007fa536d6bb39 R08: 0000200000000100 R09: 0000200000000100 R10: 00002000000000c0 R11: 0000000000000206 R12: 0000000000000000 R13: 0000000000000001 R14: 00007fa536f11080 R15: 00007ffcbde61808 Allocated by task 32189: 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+0xda/0x110 mm/kasan/common.c:518 kasan_kmalloc include/linux/kasan.h:254 [inline] __kmalloc+0x1a7/0x330 mm/slub.c:4033 kmalloc include/linux/slab.h:557 [inline] kzalloc include/linux/slab.h:664 [inline] ops_init+0x89/0x4a0 net/core/net_namespace.c:134 setup_net+0x36d/0xb50 net/core/net_namespace.c:345 copy_net_ns+0x314/0x520 net/core/net_namespace.c:486 create_new_namespaces+0x3a2/0x650 kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0x120/0x170 kernel/nsproxy.c:231 ksys_unshare+0x4ac/0x7d0 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 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+0x10c/0x620 kernel/rcu/tree.c:3535 drop_sysctl_table+0x2ef/0x410 fs/proc/proc_sysctl.c:1680 unregister_sysctl_table+0x75/0x120 fs/proc/proc_sysctl.c:1718 unregister_net_sysctl_table+0x15/0x20 net/sysctl_net.c:127 __devinet_sysctl_unregister net/ipv4/devinet.c:2622 [inline] devinet_sysctl_unregister net/ipv4/devinet.c:2650 [inline] inetdev_destroy net/ipv4/devinet.c:326 [inline] inetdev_event+0x79d/0x1030 net/ipv4/devinet.c:1613 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:2054 [inline] call_netdevice_notifiers_extack net/core/dev.c:2066 [inline] call_netdevice_notifiers net/core/dev.c:2080 [inline] unregister_netdevice_many+0xf8b/0x1980 net/core/dev.c:10767 ip_tunnel_delete_nets+0x343/0x390 net/ipv4/ip_tunnel.c:1136 ipgre_tap_exit_batch_net+0x22/0x30 net/ipv4/ip_gre.c:1706 ops_exit_list net/core/net_namespace.c:190 [inline] cleanup_net+0x5fb/0xb70 net/core/net_namespace.c:609 process_one_work+0x6e1/0xba0 kernel/workqueue.c:2301 worker_thread+0xa6a/0x13b0 kernel/workqueue.c:2447 kthread+0x346/0x3d0 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 __call_rcu kernel/rcu/tree.c:2976 [inline] call_rcu+0x105/0x1040 kernel/rcu/tree.c:3050 netlink_release+0x1288/0x1690 net/netlink/af_netlink.c:796 __sock_release net/socket.c:597 [inline] sock_close+0xe0/0x270 net/socket.c:1286 __fput+0x2fb/0x770 fs/file_table.c:281 ____fput+0x15/0x20 fs/file_table.c:314 task_work_run+0x127/0x190 kernel/task_work.c:189 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop+0xcb/0xe0 kernel/entry/common.c:172 exit_to_user_mode_prepare kernel/entry/common.c:199 [inline] syscall_exit_to_user_mode+0x68/0x90 kernel/entry/common.c:274 do_syscall_64+0x3d/0x40 arch/x86/entry/common.c:56 entry_SYSCALL_64_after_hwframe+0x61/0xcb The buggy address belongs to the object at ffff88810ca9b000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1136 bytes inside of 2048-byte region [ffff88810ca9b000, ffff88810ca9b800) The buggy address belongs to the page: page:ffffea000432a600 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10ca98 head:ffffea000432a600 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 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 16240, ts 1163147894283, free_ts 1162981293484 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page+0x179/0x180 mm/page_alloc.c:2462 get_page_from_freelist+0x2235/0x23d0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x268/0x5f0 mm/page_alloc.c:5357 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1808 [inline] new_slab+0x84/0x3f0 mm/slub.c:1869 new_slab_objects mm/slub.c:2627 [inline] ___slab_alloc+0x2a6/0x450 mm/slub.c:2791 __slab_alloc+0x63/0xa0 mm/slub.c:2831 slab_alloc_node mm/slub.c:2913 [inline] slab_alloc mm/slub.c:2955 [inline] __kmalloc_track_caller+0x1ef/0x320 mm/slub.c:4536 kmemdup+0x26/0x60 mm/util.c:131 neigh_sysctl_register+0xaf/0xa70 net/core/neighbour.c:3652 devinet_sysctl_register+0xaf/0x1e0 net/ipv4/devinet.c:2636 inetdev_init+0x273/0x480 net/ipv4/devinet.c:277 inetdev_event+0x1f8/0x1030 net/ipv4/devinet.c:1545 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:2054 [inline] call_netdevice_notifiers_extack net/core/dev.c:2066 [inline] call_netdevice_notifiers+0x111/0x190 net/core/dev.c:2080 register_netdevice+0x1043/0x13c0 net/core/dev.c:10087 register_vlan_dev+0x2a0/0x5d0 net/8021q/vlan.c:177 page last free stack trace: reset_page_owner include/linux/page_owner.h:28 [inline] free_pages_prepare mm/page_alloc.c:1349 [inline] free_pcp_prepare mm/page_alloc.c:1421 [inline] free_unref_page_prepare+0x2b7/0x2d0 mm/page_alloc.c:3336 free_unref_page mm/page_alloc.c:3391 [inline] free_the_page mm/page_alloc.c:5416 [inline] __free_pages+0x14b/0x380 mm/page_alloc.c:5427 __vunmap+0x84d/0x9d0 mm/vmalloc.c:2301 __vfree mm/vmalloc.c:2350 [inline] vfree+0x61/0x90 mm/vmalloc.c:2381 kcov_put kernel/kcov.c:408 [inline] kcov_close+0x2b/0x50 kernel/kcov.c:510 __fput+0x2fb/0x770 fs/file_table.c:281 ____fput+0x15/0x20 fs/file_table.c:314 task_work_run+0x127/0x190 kernel/task_work.c:189 exit_task_work include/linux/task_work.h:33 [inline] do_exit+0xa27/0x2470 kernel/exit.c:863 do_group_exit+0x141/0x310 kernel/exit.c:985 __do_sys_exit_group kernel/exit.c:996 [inline] __se_sys_exit_group kernel/exit.c:994 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:994 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb Memory state around the buggy address: ffff88810ca9b300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88810ca9b380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88810ca9b400: 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88810ca9b480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88810ca9b500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================