================================================================== 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+0x6f1/0x760 mm/filemap.c:172 Read of size 4 at addr ffff88811abea470 by task syz.2.3822/14520 CPU: 0 PID: 14520 Comm: syz.2.3822 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 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+0x10f/0x150 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+0x6f1/0x760 mm/filemap.c:172 __delete_from_page_cache+0xbe/0x470 mm/filemap.c:240 __remove_mapping+0x601/0x990 mm/vmscan.c:1216 shrink_page_list+0x2a24/0x5800 mm/vmscan.c:1829 shrink_inactive_list mm/vmscan.c:2338 [inline] shrink_list mm/vmscan.c:2583 [inline] shrink_lruvec+0x11eb/0x3b00 mm/vmscan.c:5800 shrink_node_memcgs mm/vmscan.c:5992 [inline] shrink_node+0x11ee/0x2a40 mm/vmscan.c:6022 shrink_zones mm/vmscan.c:6228 [inline] do_try_to_free_pages+0x5a7/0x1580 mm/vmscan.c:6286 try_to_free_mem_cgroup_pages+0x261/0x610 mm/vmscan.c:6608 mem_cgroup_force_empty mm/memcontrol.c:3595 [inline] mem_cgroup_force_empty_write+0x130/0x170 mm/memcontrol.c:3616 cgroup_file_write+0x294/0x560 kernel/cgroup/cgroup.c:4011 kernfs_fop_write_iter+0x2bd/0x400 fs/kernfs/file.c:296 call_write_iter include/linux/fs.h:2218 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0x831/0xfd0 fs/read_write.c:594 ksys_write+0x14a/0x260 fs/read_write.c:647 __do_sys_write fs/read_write.c:659 [inline] __se_sys_write fs/read_write.c:656 [inline] __x64_sys_write+0x7b/0x90 fs/read_write.c:656 x64_sys_call+0x8ef/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:2 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 RIP: 0033:0x7ff0f36c0559 Code: ff c3 66 2e 0f 1f 84 00 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 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff0f2118028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007ff0f3946fa0 RCX: 00007ff0f36c0559 RDX: 0000000000000001 RSI: 0000200000000040 RDI: 0000000000000004 RBP: 00007ff0f3757b50 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ff0f3947038 R14: 00007ff0f3946fa0 R15: 00007ffe4131bf28 Allocated by task 13939: 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+0xd4/0x100 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/0x1240 fs/proc/proc_sysctl.c:1326 register_net_sysctl+0x21d/0x230 net/sysctl_net.c:169 __devinet_sysctl_register+0x2bd/0x390 net/ipv4/devinet.c:2604 devinet_sysctl_register+0x169/0x1e0 net/ipv4/devinet.c:2644 inetdev_init+0x2b2/0x500 net/ipv4/devinet.c:284 inetdev_event+0x1f4/0x1060 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:2070 [inline] call_netdevice_notifiers_extack net/core/dev.c:2082 [inline] call_netdevice_notifiers+0x119/0x190 net/core/dev.c:2096 register_netdevice+0x110a/0x1490 net/core/dev.c:10463 macsec_newlink+0x5c6/0xcf0 drivers/net/macsec.c:4073 __rtnl_newlink net/core/rtnetlink.c:3536 [inline] rtnl_newlink+0x137f/0x1900 net/core/rtnetlink.c:3584 rtnetlink_rcv_msg+0x9fd/0xcb0 net/core/rtnetlink.c:5662 netlink_rcv_skb+0x1e9/0x430 net/netlink/af_netlink.c:2520 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5680 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x86c/0xa30 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x879/0xb80 net/netlink/af_netlink.c:1923 sock_sendmsg_nosec net/socket.c:704 [inline] __sock_sendmsg net/socket.c:716 [inline] ____sys_sendmsg+0x5be/0x8f0 net/socket.c:2436 ___sys_sendmsg+0x236/0x2e0 net/socket.c:2490 __sys_sendmsg net/socket.c:2519 [inline] __do_sys_sendmsg net/socket.c:2528 [inline] __se_sys_sendmsg net/socket.c:2526 [inline] __x64_sys_sendmsg+0x201/0x2d0 net/socket.c:2526 x64_sys_call+0x4b/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:47 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+0xb6/0x860 kernel/rcu/tree.c:3648 drop_sysctl_table+0x2f5/0x430 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+0x788/0x1060 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:2070 [inline] call_netdevice_notifiers_extack net/core/dev.c:2082 [inline] call_netdevice_notifiers net/core/dev.c:2096 [inline] unregister_netdevice_many+0x103d/0x1a00 net/core/dev.c:11177 ip_tunnel_delete_nets+0x343/0x390 net/ipv4/ip_tunnel.c:1123 ipip_exit_batch_net+0x22/0x30 net/ipv4/ipip.c:621 ops_exit_list net/core/net_namespace.c:177 [inline] cleanup_net+0x605/0xae0 net/core/net_namespace.c:599 process_one_work+0x6c8/0xbb0 kernel/workqueue.c:2328 worker_thread+0xaa0/0x1250 kernel/workqueue.c:2475 kthread+0x3f5/0x4f0 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+0x10b/0xf60 kernel/rcu/tree.c:3129 netlink_release+0x128f/0x16d0 net/netlink/af_netlink.c:799 __sock_release net/socket.c:649 [inline] sock_close+0xb8/0x200 net/socket.c:1336 __fput+0x22b/0x900 fs/file_table.c:311 ____fput+0x15/0x20 fs/file_table.c:339 task_work_run+0x127/0x190 kernel/task_work.c:188 exit_task_work include/linux/task_work.h:33 [inline] do_exit+0xb70/0x29a0 kernel/exit.c:896 do_group_exit+0x149/0x310 kernel/exit.c:1010 __do_sys_exit_group kernel/exit.c:1021 [inline] __se_sys_exit_group kernel/exit.c:1019 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1019 x64_sys_call+0x832/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:232 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 The buggy address belongs to the object at ffff88811abea000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1136 bytes inside of 2048-byte region [ffff88811abea000, ffff88811abea800) The buggy address belongs to the page: page:ffffea00046afa00 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88811abef000 pfn:0x11abe8 head:ffffea00046afa00 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 ffffea0004782a08 ffffea00047b6608 ffff888100043200 raw: ffff88811abef000 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 672, ts 76543575230, free_ts 76493665142 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x192/0x1b0 mm/page_alloc.c:2610 prep_new_page+0x1c/0x110 mm/page_alloc.c:2616 get_page_from_freelist+0x2d42/0x2dd0 mm/page_alloc.c:4492 __alloc_pages+0x1a2/0x460 mm/page_alloc.c:5829 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1937 [inline] new_slab+0xa0/0x4d0 mm/slub.c:2000 ___slab_alloc+0x3ac/0x840 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] kmem_cache_alloc_trace+0x146/0x270 mm/slub.c:3272 kmalloc include/linux/slab.h:619 [inline] kzalloc include/linux/slab.h:750 [inline] usb_alloc_dev+0x5d/0xcd0 drivers/usb/core/usb.c:704 hub_port_connect drivers/usb/core/hub.c:5462 [inline] hub_port_connect_change drivers/usb/core/hub.c:5700 [inline] port_event drivers/usb/core/hub.c:5866 [inline] hub_event+0x1f51/0x43f0 drivers/usb/core/hub.c:5948 process_one_work+0x6c8/0xbb0 kernel/workqueue.c:2328 worker_thread+0xaa0/0x1250 kernel/workqueue.c:2475 kthread+0x3f5/0x4f0 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1477 [inline] free_pcp_prepare mm/page_alloc.c:1549 [inline] free_unref_page_prepare+0x5fa/0x600 mm/page_alloc.c:3540 free_unref_page+0xae/0x540 mm/page_alloc.c:3622 free_the_page mm/page_alloc.c:808 [inline] __free_pages+0x6c/0x100 mm/page_alloc.c:5905 __free_slab+0xe5/0x1e0 mm/slub.c:2025 free_slab mm/slub.c:2040 [inline] discard_slab mm/slub.c:2046 [inline] __unfreeze_partials+0x15a/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/0xe0 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+0xba/0x510 fs/namei.c:138 user_path_at_empty+0x2f/0x1c0 fs/namei.c:2890 Memory state around the buggy address: ffff88811abea300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88811abea380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88811abea400: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc ^ ffff88811abea480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88811abea500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================