================================================================== 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 ffff88810fdd9470 by task syz.3.18017/1112 CPU: 0 PID: 1112 Comm: syz.3.18017 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/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_fallocate+0x817/0xc20 mm/shmem.c:2824 vfs_fallocate+0x4b4/0x590 fs/open.c:310 ksys_fallocate fs/open.c:333 [inline] __do_sys_fallocate fs/open.c:341 [inline] __se_sys_fallocate fs/open.c:339 [inline] __x64_sys_fallocate+0xc0/0x110 fs/open.c:339 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f64da2acec9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f64d8d15038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007f64da503fa0 RCX: 00007f64da2acec9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000006 RBP: 00007f64da32ff91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000008800000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f64da504038 R14: 00007f64da503fa0 R15: 00007ffdf28191b8 Allocated by task 23152: 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] kmem_cache_alloc_trace+0x184/0x2e0 mm/slub.c:2979 kmalloc include/linux/slab.h:552 [inline] kzalloc include/linux/slab.h:664 [inline] kobject_uevent_env+0x272/0x700 lib/kobject_uevent.c:539 kobject_uevent+0x1d/0x30 lib/kobject_uevent.c:657 netdev_queue_add_kobject net/core/net-sysfs.c:1660 [inline] netdev_queue_update_kobjects+0x1a7/0x390 net/core/net-sysfs.c:1694 register_queue_kobjects net/core/net-sysfs.c:1755 [inline] netdev_register_kobject+0x26e/0x320 net/core/net-sysfs.c:2001 register_netdevice+0xddd/0x13c0 net/core/dev.c:10056 register_netdev+0x3e/0x50 net/core/dev.c:10180 vti6_init_net+0x2c0/0x380 net/ipv6/ip6_vti.c:1160 ops_init+0x1ba/0x4a0 net/core/net_namespace.c:144 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 copy_namespaces+0x1d1/0x220 kernel/nsproxy.c:179 copy_process+0x11b8/0x32c0 kernel/fork.c:2271 kernel_clone+0x23f/0x940 kernel/fork.c:2650 __do_sys_clone kernel/fork.c:2776 [inline] __se_sys_clone kernel/fork.c:2760 [inline] __x64_sys_clone+0x176/0x1d0 kernel/fork.c:2760 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb The buggy address belongs to the object at ffff88810fdd8000 which belongs to the cache kmalloc-4k of size 4096 The buggy address is located 1136 bytes to the right of 4096-byte region [ffff88810fdd8000, ffff88810fdd9000) The buggy address belongs to the page: page:ffffea00043f7600 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10fdd8 head:ffffea00043f7600 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head) raw: 4000000000010200 0000000000000000 0000000100000001 ffff888100042c00 raw: 0000000000000000 0000000000040004 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 13085, ts 665765919599, free_ts 665759729856 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:5370 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+0x2a6/0x450 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_track_caller+0x1ef/0x320 mm/slub.c:4541 kmemdup+0x26/0x60 mm/util.c:131 __devinet_sysctl_register+0xad/0x390 net/ipv4/devinet.c:2586 devinet_sysctl_register+0x169/0x1e0 net/ipv4/devinet.c:2638 inetdev_init+0x273/0x480 net/ipv4/devinet.c:277 inetdev_event+0x1f8/0x1030 net/ipv4/devinet.c:1544 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 __ip_tunnel_create+0x2bf/0x380 net/ipv4/ip_tunnel.c:267 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_pages_ok+0x7fc/0x820 mm/page_alloc.c:1629 free_the_page mm/page_alloc.c:5431 [inline] __free_pages+0xdd/0x380 mm/page_alloc.c:5440 __free_slab+0xcf/0x190 mm/slub.c:1899 free_slab mm/slub.c:1914 [inline] discard_slab+0x29/0x40 mm/slub.c:1920 __slab_free+0x313/0x3a0 mm/slub.c:3136 do_slab_free mm/slub.c:3196 [inline] ___cache_free+0x111/0x130 mm/slub.c:3215 qlink_free+0x50/0x90 mm/kasan/quarantine.c:157 qlist_free_all+0x5f/0xb0 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x14a/0x160 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0x2f/0xf0 mm/kasan/common.c:440 kasan_slab_alloc include/linux/kasan.h:244 [inline] slab_post_alloc_hook+0x5d/0x2f0 mm/slab.h:580 slab_alloc_node mm/slub.c:2952 [inline] slab_alloc mm/slub.c:2960 [inline] __kmalloc+0x183/0x330 mm/slub.c:4034 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 Memory state around the buggy address: ffff88810fdd9300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88810fdd9380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88810fdd9400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88810fdd9480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88810fdd9500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================