================================================================== 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 ffff8881104d3470 by task kswapd0/46 CPU: 0 PID: 46 Comm: kswapd0 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+0xee/0x150 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/0x420 mm/filemap.c:240 __remove_mapping+0x60b/0x930 mm/vmscan.c:1216 shrink_page_list+0x2778/0x5040 mm/vmscan.c:1824 shrink_inactive_list mm/vmscan.c:2331 [inline] shrink_list mm/vmscan.c:2576 [inline] shrink_lruvec+0x10f3/0x36a0 mm/vmscan.c:5793 shrink_node_memcgs mm/vmscan.c:5985 [inline] shrink_node+0x11e9/0x2a70 mm/vmscan.c:6015 kswapd_shrink_node mm/vmscan.c:6766 [inline] balance_pgdat+0xfba/0x2150 mm/vmscan.c:6956 kswapd+0x649/0xcf0 mm/vmscan.c:7215 kthread+0x411/0x500 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Allocated by task 23195: 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+0x2c4/0x390 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+0x1f8/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+0x111/0x190 net/core/dev.c:2083 register_netdevice+0x1039/0x13a0 net/core/dev.c:10436 veth_newlink+0x8ed/0xda0 drivers/net/veth.c:1714 __rtnl_newlink net/core/rtnetlink.c:3524 [inline] rtnl_newlink+0x112d/0x17b0 net/core/rtnetlink.c:3572 rtnetlink_rcv_msg+0x9e4/0xb90 net/core/rtnetlink.c:5650 netlink_rcv_skb+0x1e0/0x430 net/netlink/af_netlink.c:2511 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5668 netlink_unicast_kernel net/netlink/af_netlink.c:1322 [inline] netlink_unicast+0x876/0xa40 net/netlink/af_netlink.c:1348 netlink_sendmsg+0x86a/0xb70 net/netlink/af_netlink.c:1922 sock_sendmsg_nosec net/socket.c:704 [inline] __sock_sendmsg net/socket.c:716 [inline] __sys_sendto+0x423/0x580 net/socket.c:2063 __do_sys_sendto net/socket.c:2075 [inline] __se_sys_sendto net/socket.c:2071 [inline] __x64_sys_sendto+0xe5/0x100 net/socket.c:2071 x64_sys_call+0x178/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:45 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 kvfree_call_rcu+0xae/0x7e0 kernel/rcu/tree.c:3648 drop_sysctl_table+0x2ef/0x410 fs/proc/proc_sysctl.c:1687 unregister_sysctl_table+0x7a/0x120 fs/proc/proc_sysctl.c:1725 unregister_net_sysctl_table+0x15/0x20 net/sysctl_net.c:175 __devinet_sysctl_unregister net/ipv4/devinet.c:2627 [inline] devinet_sysctl_unregister net/ipv4/devinet.c:2655 [inline] inetdev_destroy net/ipv4/devinet.c:327 [inline] inetdev_event+0x79d/0x10a0 net/ipv4/devinet.c:1612 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 net/core/dev.c:2083 [inline] unregister_netdevice_many+0xfb8/0x1990 net/core/dev.c:11150 ip_tunnel_delete_nets+0x343/0x390 net/ipv4/ip_tunnel.c:1123 ipip_exit_batch_net+0x22/0x30 net/ipv4/ipip.c:652 ops_exit_list net/core/net_namespace.c:177 [inline] cleanup_net+0x602/0xad0 net/core/net_namespace.c:599 process_one_work+0x6be/0xba0 kernel/workqueue.c:2325 worker_thread+0xa59/0x1200 kernel/workqueue.c:2472 kthread+0x411/0x500 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 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+0x105/0xfe0 kernel/rcu/tree.c:3129 netlink_release+0x1288/0x1690 net/netlink/af_netlink.c:803 __sock_release net/socket.c:649 [inline] sock_close+0xe0/0x270 net/socket.c:1336 __fput+0x20b/0x8b0 fs/file_table.c:311 ____fput+0x15/0x20 fs/file_table.c:339 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 The buggy address belongs to the object at ffff8881104d3000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1136 bytes inside of 2048-byte region [ffff8881104d3000, ffff8881104d3800) The buggy address belongs to the page: page:ffffea0004413400 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1104d0 head:ffffea0004413400 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 dead000000000100 dead000000000122 ffff888100043200 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 0x1d28c0(GFP_NOWAIT|__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 15146, ts 709231827815, free_ts 705789343652 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+0x2cc5/0x2d50 mm/page_alloc.c:4485 __alloc_pages+0x18f/0x440 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 kmalloc_reserve net/core/skbuff.c:357 [inline] pskb_expand_head+0x11b/0x11d0 net/core/skbuff.c:1733 netlink_trim+0x193/0x230 net/netlink/af_netlink.c:1303 netlink_broadcast_filtered+0x78/0x1230 net/netlink/af_netlink.c:1515 netlink_broadcast net/netlink/af_netlink.c:1560 [inline] nlmsg_multicast include/net/netlink.h:1033 [inline] nlmsg_notify+0xed/0x1b0 net/netlink/af_netlink.c:2554 rtnl_notify net/core/rtnetlink.c:759 [inline] rtmsg_ifinfo_send net/core/rtnetlink.c:3908 [inline] rtmsg_ifinfo_event net/core/rtnetlink.c:3923 [inline] rtmsg_ifinfo+0xea/0x130 net/core/rtnetlink.c:3929 register_netdevice+0x112a/0x13a0 net/core/dev.c:10450 register_netdev+0x3e/0x50 net/core/dev.c:10529 ip6_tnl_init_net+0x2e4/0x3a0 net/ipv6/ip6_tunnel.c:2285 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+0xa2/0x550 mm/page_alloc.c:3616 free_the_page mm/page_alloc.c:805 [inline] __free_pages+0x6c/0x100 mm/page_alloc.c:5884 pcpu_free_pages mm/percpu-vm.c:65 [inline] pcpu_depopulate_chunk+0x481/0x5a0 mm/percpu-vm.c:330 pcpu_reclaim_populated mm/percpu.c:2195 [inline] pcpu_balance_workfn+0x2a7/0x1150 mm/percpu.c:2247 process_one_work+0x6be/0xba0 kernel/workqueue.c:2325 worker_thread+0xa59/0x1200 kernel/workqueue.c:2472 kthread+0x411/0x500 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Memory state around the buggy address: ffff8881104d3300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881104d3380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8881104d3400: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc ^ ffff8881104d3480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8881104d3500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== attempt to access beyond end of device loop9: rw=1, want=40968, limit=40427