================================================================== 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+0x99f/0xa80 mm/filemap.c:175 Read of size 4 at addr ffff888176c66470 by task syz-executor.5/14758 CPU: 1 PID: 14758 Comm: syz-executor.5 Not tainted 5.10.204-syzkaller-01048-gf7977422e132 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x1e2/0x24b lib/dump_stack.c:118 print_address_description+0x81/0x3b0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:435 [inline] kasan_report+0x179/0x1c0 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+0x99f/0xa80 mm/filemap.c:175 __delete_from_page_cache+0xd0/0x5d0 mm/filemap.c:243 __remove_mapping+0x567/0x690 mm/vmscan.c:978 shrink_page_list+0x1f38/0x4c60 mm/vmscan.c:1491 shrink_inactive_list+0x591/0x1150 mm/vmscan.c:2068 shrink_list mm/vmscan.c:2287 [inline] shrink_lruvec+0xced/0x3860 mm/vmscan.c:5466 shrink_node_memcgs mm/vmscan.c:5653 [inline] shrink_node+0xdf3/0x1fb0 mm/vmscan.c:5683 shrink_zones mm/vmscan.c:5886 [inline] do_try_to_free_pages+0x67e/0x15e0 mm/vmscan.c:5944 try_to_free_mem_cgroup_pages+0x369/0x830 mm/vmscan.c:6262 try_charge+0x4b8/0x15f0 mm/memcontrol.c:2742 __mem_cgroup_charge+0x147/0x6e0 mm/memcontrol.c:6848 mem_cgroup_charge include/linux/memcontrol.h:458 [inline] __add_to_page_cache_locked+0x29d/0xba0 mm/filemap.c:854 add_to_page_cache_lru+0x117/0x2c0 mm/filemap.c:948 pagecache_get_page+0x71e/0x950 mm/filemap.c:1859 grab_cache_page_write_begin+0x5d/0xa0 mm/filemap.c:3459 ext4_da_write_begin+0x587/0xf60 fs/ext4/inode.c:3055 generic_perform_write+0x2cd/0x570 mm/filemap.c:3509 ext4_buffered_write_iter+0x482/0x610 fs/ext4/file.c:271 ext4_file_write_iter+0x193/0x1c80 fs/ext4/file.c:685 __kernel_write+0x5ab/0x9d0 fs/read_write.c:550 dump_emit+0x261/0x3a0 fs/coredump.c:849 dump_user_range+0x71/0x1a0 fs/coredump.c:902 elf_core_dump+0x33bd/0x3c10 fs/binfmt_elf.c:2287 do_coredump+0x1eb8/0x2d60 fs/coredump.c:811 get_signal+0x102c/0x1410 kernel/signal.c:2768 arch_do_signal_or_restart+0xbd/0x17c0 arch/x86/kernel/signal.c:805 handle_signal_work kernel/entry/common.c:145 [inline] exit_to_user_mode_loop+0x9b/0xd0 kernel/entry/common.c:169 exit_to_user_mode_prepare kernel/entry/common.c:199 [inline] irqentry_exit_to_user_mode+0x5a/0x80 kernel/entry/common.c:287 irqentry_exit+0x12/0x60 kernel/entry/common.c:375 exc_page_fault+0x33d/0x5b0 arch/x86/mm/fault.c:1521 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:571 RIP: 0033:0x7fbe8677fcf1 Code: c4 28 c3 e8 e1 20 00 00 90 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 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f RSP: 002b:0000000000000030 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007fbe8689f2c0 RCX: 00007fbe8677fce9 RDX: 0000000000000000 RSI: 0000000000000030 RDI: 0000000000000000 RBP: 00007fbe867cc47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fbe8689f2c0 R15: 00007ffe4dc67fe8 Allocated by task 9431: 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+0xdb/0x110 mm/kasan/common.c:509 __kasan_kmalloc+0x9/0x10 mm/kasan/common.c:518 kasan_kmalloc include/linux/kasan.h:254 [inline] __kmalloc+0x1aa/0x330 mm/slub.c:4033 kmalloc include/linux/slab.h:557 [inline] kzalloc include/linux/slab.h:664 [inline] __register_sysctl_table+0xea/0x1240 fs/proc/proc_sysctl.c:1321 register_net_sysctl+0x2c/0x40 net/sysctl_net.c:121 __devinet_sysctl_register+0x1d3/0x2a0 net/ipv4/devinet.c:2572 devinet_init_net+0x32d/0x5d0 net/ipv4/devinet.c:2695 ops_init+0x1cf/0x4a0 net/core/net_namespace.c:141 setup_net+0x367/0xbf0 net/core/net_namespace.c:342 copy_net_ns+0x331/0x520 net/core/net_namespace.c:483 create_new_namespaces+0x410/0x660 kernel/nsproxy.c:110 copy_namespaces+0x1d1/0x220 kernel/nsproxy.c:179 copy_process+0x11a0/0x3340 kernel/fork.c:2186 kernel_clone+0x21e/0x9e0 kernel/fork.c:2574 __do_sys_clone kernel/fork.c:2700 [inline] __se_sys_clone kernel/fork.c:2684 [inline] __x64_sys_clone+0x23f/0x290 kernel/fork.c:2684 do_syscall_64+0x34/0x70 entry_SYSCALL_64_after_hwframe+0x61/0xc6 Last potentially related work creation: kasan_save_stack+0x3b/0x60 mm/kasan/common.c:38 __kasan_record_aux_stack+0xd3/0x100 mm/kasan/generic.c:348 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358 kvfree_call_rcu+0x136/0x650 kernel/rcu/tree.c:3535 drop_sysctl_table+0x311/0x450 fs/proc/proc_sysctl.c:1682 unregister_sysctl_table+0x76/0x120 fs/proc/proc_sysctl.c:1720 unregister_net_sysctl_table+0x15/0x20 net/sysctl_net.c:127 __devinet_sysctl_unregister net/ipv4/devinet.c:2595 [inline] devinet_exit_net+0x1a8/0x230 net/ipv4/devinet.c:2740 ops_exit_list net/core/net_namespace.c:182 [inline] cleanup_net+0x66c/0xcb0 net/core/net_namespace.c:606 process_one_work+0x6dc/0xbd0 kernel/workqueue.c:2301 worker_thread+0xaea/0x1510 kernel/workqueue.c:2447 kthread+0x34b/0x3d0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:299 Second to last potentially related work creation: kasan_save_stack+0x3b/0x60 mm/kasan/common.c:38 __kasan_record_aux_stack+0xd3/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+0x135/0x11f0 kernel/rcu/tree.c:3050 netlink_release+0x12df/0x16f0 net/netlink/af_netlink.c:811 __sock_release net/socket.c:597 [inline] sock_release+0x7e/0x140 net/socket.c:625 netlink_kernel_release+0x4d/0x60 net/netlink/af_netlink.c:2103 genl_pernet_exit+0x40/0x60 net/netlink/genetlink.c:1388 ops_exit_list net/core/net_namespace.c:182 [inline] cleanup_net+0x66c/0xcb0 net/core/net_namespace.c:606 process_one_work+0x6dc/0xbd0 kernel/workqueue.c:2301 worker_thread+0xaea/0x1510 kernel/workqueue.c:2447 kthread+0x34b/0x3d0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:299 The buggy address belongs to the object at ffff888176c66000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1136 bytes inside of 2048-byte region [ffff888176c66000, ffff888176c66800) The buggy address belongs to the page: page:ffffea0005db1800 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x176c60 head:ffffea0005db1800 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head) raw: 4000000000010200 0000000000000000 0000000700000001 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 0xd2a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 288, ts 218091551712, free_ts 0 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page+0x166/0x180 mm/page_alloc.c:2462 get_page_from_freelist+0x2d8c/0x2f30 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x435/0xaf0 mm/page_alloc.c:5346 allocate_slab mm/slub.c:1808 [inline] new_slab+0x80/0x400 mm/slub.c:1869 new_slab_objects mm/slub.c:2627 [inline] ___slab_alloc+0x302/0x4b0 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+0x1f8/0x320 mm/slub.c:4536 __kmalloc_reserve net/core/skbuff.c:143 [inline] __alloc_skb+0xbc/0x510 net/core/skbuff.c:211 alloc_skb include/linux/skbuff.h:1126 [inline] nlmsg_new include/net/netlink.h:953 [inline] inet6_ifinfo_notify+0x70/0x110 net/ipv6/addrconf.c:6015 addrconf_notify+0xa48/0xe90 net/ipv6/addrconf.c:3669 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0x8c/0xf0 kernel/notifier.c:410 call_netdevice_notifiers_info net/core/dev.c:2054 [inline] netdev_state_change+0x1a3/0x250 net/core/dev.c:1484 linkwatch_do_dev+0x100/0x140 net/core/link_watch.c:167 __linkwatch_run_queue+0x4ca/0x7f0 net/core/link_watch.c:213 linkwatch_event+0x4c/0x60 net/core/link_watch.c:252 process_one_work+0x6dc/0xbd0 kernel/workqueue.c:2301 page_owner free stack trace missing Memory state around the buggy address: ffff888176c66300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888176c66380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888176c66400: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc ^ ffff888176c66480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888176c66500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================