================================================================== 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+0x6f2/0x760 mm/filemap.c:172 Read of size 4 at addr ffff888119032470 by task syz.5.2766/10011 CPU: 0 PID: 10011 Comm: syz.5.2766 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 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:1568 asm_exc_page_fault+0x27/0x30 arch/x86/include/asm/idtentry.h:606 RIP: 0033:0x0 Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6. RSP: 002b:00002000000001a8 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007f3411bbc090 RCX: 00007f3411940eb9 RDX: 0000200000000040 RSI: 00002000000001a0 RDI: 0000000000041000 RBP: 00007f34119aec1f R08: 00002000000001c0 R09: 00002000000001c0 R10: 0000200000000080 R11: 0000000000000206 R12: 0000000000000000 R13: 00007f3411bbc128 R14: 00007f3411bbc090 R15: 00007ffcdc7203a8 Allocated by task 7876: 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+0x13d/0x2c0 mm/slub.c:4436 kmalloc include/linux/slab.h:624 [inline] kzalloc include/linux/slab.h:750 [inline] __register_sysctl_table+0xeb/0x1250 fs/proc/proc_sysctl.c:1326 register_net_sysctl+0x238/0x250 net/sysctl_net.c:169 __devinet_sysctl_register+0x2cd/0x3a0 net/ipv4/devinet.c:2604 devinet_sysctl_register+0x169/0x1e0 net/ipv4/devinet.c:2644 inetdev_init+0x2b9/0x500 net/ipv4/devinet.c:284 inetdev_event+0x1f7/0x10a0 net/ipv4/devinet.c:1544 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:2057 [inline] call_netdevice_notifiers_extack net/core/dev.c:2069 [inline] call_netdevice_notifiers+0x119/0x190 net/core/dev.c:2083 register_netdevice+0x10e5/0x1460 net/core/dev.c:10436 register_netdev+0x3e/0x50 net/core/dev.c:10529 sit_init_net+0x246/0x480 net/ipv6/sit.c:1925 ops_init+0x1ba/0x4a0 net/core/net_namespace.c:138 setup_net+0x34d/0xaa0 net/core/net_namespace.c:332 copy_net_ns+0x355/0x5c0 net/core/net_namespace.c:476 create_new_namespaces+0x3a2/0x660 kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0x120/0x170 kernel/nsproxy.c:226 ksys_unshare+0x4ba/0x7c0 kernel/fork.c:3242 __do_sys_unshare kernel/fork.c:3316 [inline] __se_sys_unshare kernel/fork.c:3314 [inline] __x64_sys_unshare+0x38/0x40 kernel/fork.c:3314 x64_sys_call+0x442/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:273 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_delayed_work+0x188/0x200 kernel/workqueue.c:1686 mod_delayed_work_on+0x74/0xe0 kernel/workqueue.c:1760 mod_delayed_work include/linux/workqueue.h:540 [inline] wb_shutdown+0x164/0x1c0 mm/backing-dev.c:353 bdi_unregister+0x174/0x530 mm/backing-dev.c:948 generic_shutdown_super+0x2cc/0x330 fs/super.c:490 kill_anon_super+0x3a/0x70 fs/super.c:1089 fuse_kill_sb_anon+0x20b/0x260 fs/fuse/inode.c:2032 deactivate_locked_super+0xa0/0x100 fs/super.c:335 deactivate_super+0xaf/0xe0 fs/super.c:366 cleanup_mnt+0x45b/0x510 fs/namespace.c:1148 __cleanup_mnt+0x19/0x20 fs/namespace.c:1155 task_work_run+0x127/0x190 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop+0xd0/0xe0 kernel/entry/common.c:181 exit_to_user_mode_prepare+0x87/0xd0 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x1a/0x30 kernel/entry/common.c:307 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x66/0xd0 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 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 run_ksoftirqd+0x28/0x40 kernel/softirq.c:959 smpboot_thread_fn+0x45a/0x8c0 kernel/smpboot.c:164 kthread+0x411/0x500 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 The buggy address belongs to the object at ffff888119032000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1136 bytes inside of 2048-byte region [ffff888119032000, ffff888119032800) The buggy address belongs to the page: page:ffffea0004640c00 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888119030000 pfn:0x119030 head:ffffea0004640c00 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 ffffea0004355a08 ffffea0004a00a08 ffff888100043200 raw: ffff888119030000 0000000000080005 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 282, ts 33217488572, free_ts 33149913708 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+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] alloc_fdtable+0x10b/0x2e0 fs/file.c:150 dup_fd+0x886/0xaa0 fs/file.c:345 copy_files+0x76/0xe0 kernel/fork.c:1620 copy_process+0x10cc/0x3250 kernel/fork.c:2336 kernel_clone+0x233/0x960 kernel/fork.c:2737 __do_sys_clone kernel/fork.c:2863 [inline] __se_sys_clone kernel/fork.c:2847 [inline] __x64_sys_clone+0x198/0x210 kernel/fork.c:2847 x64_sys_call+0x41f/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:57 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1472 [inline] free_pcp_prepare mm/page_alloc.c:1544 [inline] free_unref_page_prepare+0x542/0x550 mm/page_alloc.c:3534 free_unref_page+0xae/0x540 mm/page_alloc.c:3616 free_the_page mm/page_alloc.c:805 [inline] __free_pages+0x6c/0x100 mm/page_alloc.c:5884 __free_slab+0xe8/0x1e0 mm/slub.c:2025 free_slab mm/slub.c:2040 [inline] discard_slab mm/slub.c:2046 [inline] __unfreeze_partials+0x160/0x190 mm/slub.c:2532 put_cpu_partial+0xc6/0x120 mm/slub.c:2612 __slab_free+0x1d4/0x290 mm/slub.c:3395 do_slab_free mm/slub.c:3514 [inline] ___cache_free+0x104/0x120 mm/slub.c:3535 qlink_free+0x4d/0x90 mm/kasan/quarantine.c:157 qlist_free_all+0x5f/0xb0 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x14a/0x170 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0x2f/0xf0 mm/kasan/common.c:443 kasan_slab_alloc include/linux/kasan.h:217 [inline] slab_post_alloc_hook+0x4f/0x2b0 mm/slab.h:550 slab_alloc_node mm/slub.c:3245 [inline] slab_alloc mm/slub.c:3255 [inline] kmem_cache_alloc+0xf7/0x260 mm/slub.c:3260 getname_flags+0xb9/0x500 fs/namei.c:138 user_path_at_empty+0x30/0x1c0 fs/namei.c:2890 Memory state around the buggy address: ffff888119032300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888119032380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888119032400: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc ^ ffff888119032480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888119032500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== syz.5.2766 (10011) used greatest stack depth: 16992 bytes left