================================================================== BUG: KASAN: slab-out-of-bounds in cleancache_fs_enabled_mapping include/linux/cleancache.h:54 [inline] BUG: KASAN: slab-out-of-bounds in cleancache_invalidate_page include/linux/cleancache.h:108 [inline] BUG: KASAN: slab-out-of-bounds in unaccount_page_cache_page+0x639/0x6b0 mm/filemap.c:169 Read of size 4 at addr ffff8881ebac4488 by task syz-executor.0/24200 CPU: 0 PID: 24200 Comm: syz-executor.0 Tainted: G W 5.4.233-syzkaller-00032-g21086923c1e6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 print_address_description+0x8c/0x600 mm/kasan/report.c:384 __kasan_report+0xf3/0x120 mm/kasan/report.c:516 kasan_report+0x30/0x60 mm/kasan/common.c:653 cleancache_fs_enabled_mapping include/linux/cleancache.h:54 [inline] cleancache_invalidate_page include/linux/cleancache.h:108 [inline] unaccount_page_cache_page+0x639/0x6b0 mm/filemap.c:169 __delete_from_page_cache+0xc3/0x510 mm/filemap.c:237 __remove_mapping+0x46e/0x550 mm/vmscan.c:978 shrink_page_list+0x2467/0x3e70 mm/vmscan.c:1482 shrink_inactive_list+0x4f6/0xfd0 mm/vmscan.c:2001 shrink_list mm/vmscan.c:2293 [inline] shrink_node_memcg+0xc42/0x2430 mm/vmscan.c:2623 shrink_node+0x396/0x12b0 mm/vmscan.c:2836 shrink_zones mm/vmscan.c:3053 [inline] do_try_to_free_pages+0x625/0x1280 mm/vmscan.c:3111 try_to_free_mem_cgroup_pages+0x3f6/0x9b0 mm/vmscan.c:3412 memory_max_write+0x235/0x3c0 mm/memcontrol.c:6220 cgroup_file_write+0x275/0x5c0 kernel/cgroup/cgroup.c:3898 kernfs_fop_write+0x2e2/0x3e0 fs/kernfs/file.c:315 __vfs_write+0x103/0x750 fs/read_write.c:494 vfs_write+0x206/0x4e0 fs/read_write.c:558 ksys_write+0x199/0x2c0 fs/read_write.c:611 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 Allocated by task 20719: save_stack mm/kasan/common.c:70 [inline] set_track mm/kasan/common.c:78 [inline] __kasan_kmalloc+0x130/0x1d0 mm/kasan/common.c:529 kmalloc include/linux/slab.h:561 [inline] kzalloc include/linux/slab.h:690 [inline] __register_sysctl_table+0xdb/0x11d0 fs/proc/proc_sysctl.c:1332 __devinet_sysctl_register+0x1d3/0x2a0 net/ipv4/devinet.c:2575 devinet_sysctl_register+0x13a/0x1a0 net/ipv4/devinet.c:2615 inetdev_init+0x24e/0x450 net/ipv4/devinet.c:276 inetdev_event+0x208/0x1030 net/ipv4/devinet.c:1531 notifier_call_chain kernel/notifier.c:98 [inline] __raw_notifier_call_chain kernel/notifier.c:399 [inline] raw_notifier_call_chain+0x95/0x110 kernel/notifier.c:406 call_netdevice_notifiers_info net/core/dev.c:1670 [inline] call_netdevice_notifiers_extack net/core/dev.c:1682 [inline] call_netdevice_notifiers net/core/dev.c:1696 [inline] register_netdevice+0xeef/0x12a0 net/core/dev.c:9207 veth_newlink+0x670/0xb70 drivers/net/veth.c:1303 __rtnl_newlink net/core/rtnetlink.c:3230 [inline] rtnl_newlink+0x1511/0x2010 net/core/rtnetlink.c:3289 rtnetlink_rcv_msg+0x983/0xc70 net/core/rtnetlink.c:5262 netlink_rcv_skb+0x1d5/0x420 net/netlink/af_netlink.c:2509 netlink_unicast_kernel net/netlink/af_netlink.c:1321 [inline] netlink_unicast+0x936/0xb20 net/netlink/af_netlink.c:1347 netlink_sendmsg+0xa18/0xcf0 net/netlink/af_netlink.c:1943 sock_sendmsg_nosec net/socket.c:638 [inline] sock_sendmsg net/socket.c:658 [inline] __sys_sendto+0x4f3/0x6c0 net/socket.c:1942 __do_sys_sendto net/socket.c:1954 [inline] __se_sys_sendto net/socket.c:1950 [inline] __x64_sys_sendto+0xda/0xf0 net/socket.c:1950 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 Freed by task 15834: save_stack mm/kasan/common.c:70 [inline] set_track mm/kasan/common.c:78 [inline] kasan_set_free_info mm/kasan/common.c:345 [inline] __kasan_slab_free+0x178/0x230 mm/kasan/common.c:487 slab_free_hook mm/slub.c:1455 [inline] slab_free_freelist_hook mm/slub.c:1494 [inline] slab_free mm/slub.c:3080 [inline] kfree+0xeb/0x320 mm/slub.c:4071 process_one_work+0x765/0xd20 kernel/workqueue.c:2287 worker_thread+0xaef/0x1470 kernel/workqueue.c:2433 kthread+0x2da/0x360 kernel/kthread.c:288 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:354 The buggy address belongs to the object at ffff8881ebac4000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1160 bytes inside of 2048-byte region [ffff8881ebac4000, ffff8881ebac4800) The buggy address belongs to the page: page:ffffea0007aeb000 refcount:1 mapcount:0 mapping:ffff8881f5c0c000 index:0x0 compound_mapcount: 0 flags: 0x8000000000010200(slab|head) raw: 8000000000010200 dead000000000100 dead000000000122 ffff8881f5c0c000 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 0x1d2a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL) set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook mm/page_alloc.c:2165 [inline] prep_new_page+0x18f/0x370 mm/page_alloc.c:2171 get_page_from_freelist+0x2ce8/0x2d70 mm/page_alloc.c:3794 __alloc_pages_nodemask+0x393/0x840 mm/page_alloc.c:4891 alloc_slab_page+0x39/0x3c0 mm/slub.c:343 allocate_slab mm/slub.c:1683 [inline] new_slab+0x97/0x440 mm/slub.c:1749 new_slab_objects mm/slub.c:2505 [inline] ___slab_alloc+0x2fe/0x490 mm/slub.c:2667 __slab_alloc+0x5a/0x90 mm/slub.c:2707 slab_alloc_node mm/slub.c:2792 [inline] slab_alloc mm/slub.c:2837 [inline] __kmalloc_track_caller+0x168/0x290 mm/slub.c:4449 __kmalloc_reserve net/core/skbuff.c:142 [inline] __alloc_skb+0xb4/0x4d0 net/core/skbuff.c:210 alloc_skb include/linux/skbuff.h:1079 [inline] alloc_skb_with_frags+0x9c/0x560 net/core/skbuff.c:5812 sock_alloc_send_pskb+0x831/0x950 net/core/sock.c:2261 mld_newpack+0x1b2/0x990 net/ipv6/mcast.c:1607 add_grhead net/ipv6/mcast.c:1710 [inline] add_grec+0xec5/0x12f0 net/ipv6/mcast.c:1841 mld_send_cr net/ipv6/mcast.c:1967 [inline] mld_ifc_timer_expire+0x73d/0xc10 net/ipv6/mcast.c:2474 call_timer_fn+0x36/0x390 kernel/time/timer.c:1418 expire_timers kernel/time/timer.c:1463 [inline] __run_timers+0x7c2/0xae0 kernel/time/timer.c:1787 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1176 [inline] __free_pages_ok+0x83d/0x940 mm/page_alloc.c:1438 free_the_page mm/page_alloc.c:4953 [inline] __free_pages+0x91/0x140 mm/page_alloc.c:4959 __free_slab+0x221/0x2e0 mm/slub.c:1774 __slab_free+0x33e/0x350 mm/slub.c:3012 qlist_free_all+0x43/0xb0 mm/kasan/quarantine.c:167 quarantine_reduce+0x174/0x190 mm/kasan/quarantine.c:260 __kasan_kmalloc+0x43/0x1d0 mm/kasan/common.c:507 slab_post_alloc_hook mm/slab.h:584 [inline] slab_alloc_node mm/slub.c:2829 [inline] slab_alloc mm/slub.c:2837 [inline] __kmalloc+0x100/0x2b0 mm/slub.c:3909 kmalloc include/linux/slab.h:561 [inline] kzalloc include/linux/slab.h:690 [inline] fib_create_info+0x8d8/0x1f40 net/ipv4/fib_semantics.c:1460 fib_table_insert+0x1cc/0x19b0 net/ipv4/fib_trie.c:1142 fib_magic net/ipv4/fib_frontend.c:1100 [inline] fib_add_ifaddr+0x42c/0x1a40 net/ipv4/fib_frontend.c:1122 fib_inetaddr_event+0x12b/0x2b0 net/ipv4/fib_frontend.c:1438 notifier_call_chain kernel/notifier.c:98 [inline] __blocking_notifier_call_chain kernel/notifier.c:322 [inline] blocking_notifier_call_chain+0xd5/0x160 kernel/notifier.c:333 __inet_insert_ifa+0x907/0xb50 net/ipv4/devinet.c:553 inet_rtm_newaddr+0x8f1/0x16a0 net/ipv4/devinet.c:957 rtnetlink_rcv_msg+0x983/0xc70 net/core/rtnetlink.c:5262 Memory state around the buggy address: ffff8881ebac4380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881ebac4400: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc >ffff8881ebac4480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8881ebac4500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8881ebac4580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================