================================================================== 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+0x6d8/0x750 mm/filemap.c:163 Read of size 4 at addr ffff888147ecd470 by task syz-executor.0/25754 CPU: 0 PID: 25754 Comm: syz-executor.0 Not tainted 5.15.106-syzkaller-00249-g19c0ed55a470 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106 print_address_description+0x87/0x3b0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:427 [inline] kasan_report+0x179/0x1c0 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+0x6d8/0x750 mm/filemap.c:163 __delete_from_page_cache+0xc6/0x5b0 mm/filemap.c:231 __remove_mapping+0x566/0x690 mm/vmscan.c:1197 shrink_page_list+0x25f1/0x5820 mm/vmscan.c:1789 shrink_inactive_list mm/vmscan.c:2261 [inline] shrink_list mm/vmscan.c:2506 [inline] shrink_lruvec+0x17e9/0x4340 mm/vmscan.c:5694 shrink_node_memcgs mm/vmscan.c:5886 [inline] shrink_node+0x1077/0x24e0 mm/vmscan.c:5916 shrink_zones mm/vmscan.c:6119 [inline] do_try_to_free_pages+0x5b6/0x1570 mm/vmscan.c:6177 try_to_free_mem_cgroup_pages+0x36c/0x850 mm/vmscan.c:6491 memory_high_write+0x243/0x3b0 mm/memcontrol.c:6382 cgroup_file_write+0x290/0x590 kernel/cgroup/cgroup.c:3943 kernfs_fop_write_iter+0x2c4/0x410 fs/kernfs/file.c:296 do_iter_readv_writev+0x58e/0x790 do_iter_write+0x1f5/0x760 fs/read_write.c:855 vfs_iter_write+0x7c/0xa0 fs/read_write.c:896 iter_file_splice_write+0x7f8/0xf90 fs/splice.c:689 do_splice_from fs/splice.c:767 [inline] direct_splice_actor+0xff/0x130 fs/splice.c:936 splice_direct_to_actor+0x4f1/0xbe0 fs/splice.c:891 do_splice_direct+0x27f/0x3c0 fs/splice.c:979 do_sendfile+0x616/0xfe0 fs/read_write.c:1249 __do_sys_sendfile64 fs/read_write.c:1317 [inline] __se_sys_sendfile64 fs/read_write.c:1303 [inline] __x64_sys_sendfile64+0x1ce/0x230 fs/read_write.c:1303 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fd6eb53e169 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd6ea26f168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007fd6eb65e120 RCX: 00007fd6eb53e169 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 0000000000000009 RBP: 00007fd6eb599ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000003 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe5c46873f R14: 00007fd6ea26f300 R15: 0000000000022000 Allocated by task 24082: 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+0xdb/0x110 mm/kasan/common.c:512 __kasan_kmalloc+0x9/0x10 mm/kasan/common.c:521 kasan_kmalloc include/linux/kasan.h:227 [inline] __kmalloc+0x13a/0x270 mm/slub.c:4425 kmalloc include/linux/slab.h:613 [inline] kzalloc include/linux/slab.h:738 [inline] __register_sysctl_table+0xea/0x1240 fs/proc/proc_sysctl.c:1321 register_net_sysctl+0x21e/0x230 net/sysctl_net.c:169 __devinet_sysctl_register+0x1d3/0x2a0 net/ipv4/devinet.c:2577 devinet_sysctl_register+0x16a/0x1e0 net/ipv4/devinet.c:2617 inetdev_init+0x284/0x4b0 net/ipv4/devinet.c:276 inetdev_event+0x205/0x1040 net/ipv4/devinet.c:1530 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0x8c/0xf0 kernel/notifier.c:391 call_netdevice_notifiers_info net/core/dev.c:2005 [inline] call_netdevice_notifiers_extack net/core/dev.c:2017 [inline] call_netdevice_notifiers+0x145/0x1b0 net/core/dev.c:2031 register_netdevice+0xff1/0x1350 net/core/dev.c:10365 veth_newlink+0x720/0xe30 drivers/net/veth.c:1702 __rtnl_newlink net/core/rtnetlink.c:3462 [inline] rtnl_newlink+0x146e/0x2040 net/core/rtnetlink.c:3510 rtnetlink_rcv_msg+0x951/0xc40 net/core/rtnetlink.c:5587 netlink_rcv_skb+0x1cf/0x410 net/netlink/af_netlink.c:2533 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5605 netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline] netlink_unicast+0x8df/0xac0 net/netlink/af_netlink.c:1356 netlink_sendmsg+0xa0a/0xd20 net/netlink/af_netlink.c:1952 sock_sendmsg_nosec net/socket.c:704 [inline] sock_sendmsg net/socket.c:724 [inline] __sys_sendto+0x564/0x720 net/socket.c:2039 __do_sys_sendto net/socket.c:2051 [inline] __se_sys_sendto net/socket.c:2047 [inline] __x64_sys_sendto+0xe5/0x100 net/socket.c:2047 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb Last potentially related work creation: kasan_save_stack+0x3b/0x60 mm/kasan/common.c:38 __kasan_record_aux_stack+0xd3/0xf0 mm/kasan/generic.c:348 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358 __call_rcu kernel/rcu/tree.c:2993 [inline] call_rcu+0x133/0x12a0 kernel/rcu/tree.c:3073 netlink_release+0x12df/0x16f0 net/netlink/af_netlink.c:819 __sock_release net/socket.c:649 [inline] sock_close+0xdf/0x270 net/socket.c:1317 __fput+0x3fe/0x910 fs/file_table.c:280 ____fput+0x15/0x20 fs/file_table.c:308 task_work_run+0x129/0x190 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop+0xc4/0xe0 kernel/entry/common.c:175 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x26/0x160 kernel/entry/common.c:301 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x61/0xcb Second to last potentially related work creation: kasan_save_stack+0x3b/0x60 mm/kasan/common.c:38 __kasan_record_aux_stack+0xd3/0xf0 mm/kasan/generic.c:348 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358 insert_work+0x56/0x320 kernel/workqueue.c:1369 __queue_work+0x923/0xcd0 kernel/workqueue.c:1535 queue_work_on+0x105/0x170 kernel/workqueue.c:1562 queue_work include/linux/workqueue.h:507 [inline] io_ring_ctx_wait_and_kill+0x307/0x360 io_uring/io_uring.c:9775 io_uring_release+0x5b/0x70 io_uring/io_uring.c:9783 __fput+0x3fe/0x910 fs/file_table.c:280 ____fput+0x15/0x20 fs/file_table.c:308 task_work_run+0x129/0x190 kernel/task_work.c:164 exit_task_work include/linux/task_work.h:32 [inline] do_exit+0xc60/0x2b60 kernel/exit.c:875 do_group_exit+0x141/0x310 kernel/exit.c:997 __do_sys_exit_group kernel/exit.c:1008 [inline] __se_sys_exit_group kernel/exit.c:1006 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1006 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb The buggy address belongs to the object at ffff888147ecd000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1136 bytes inside of 2048-byte region [ffff888147ecd000, ffff888147ecd800) The buggy address belongs to the page: page:ffffea00051fb200 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888147ecb000 pfn:0x147ec8 head:ffffea00051fb200 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 ffffea0004b1a808 ffffea0004612608 ffff888100043200 raw: ffff888147ecb000 0000000000080004 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 447, ts 163514838197, free_ts 0 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1a3/0x1b0 mm/page_alloc.c:2502 prep_new_page mm/page_alloc.c:2508 [inline] get_page_from_freelist+0x2c14/0x2cf0 mm/page_alloc.c:4291 __alloc_pages+0x386/0x7b0 mm/page_alloc.c:5569 allocate_slab mm/slub.c:1930 [inline] new_slab+0x92/0x490 mm/slub.c:1993 ___slab_alloc+0x39e/0x830 mm/slub.c:3026 __slab_alloc+0x4a/0x90 mm/slub.c:3113 slab_alloc_node mm/slub.c:3204 [inline] slab_alloc mm/slub.c:3246 [inline] __kmalloc+0x16d/0x270 mm/slub.c:4421 kmalloc include/linux/slab.h:613 [inline] kzalloc include/linux/slab.h:738 [inline] __register_sysctl_table+0xea/0x1240 fs/proc/proc_sysctl.c:1321 register_net_sysctl+0x21e/0x230 net/sysctl_net.c:169 __addrconf_sysctl_register+0x28f/0x3e0 net/ipv6/addrconf.c:7087 addrconf_sysctl_register+0x141/0x1a0 net/ipv6/addrconf.c:7134 ipv6_add_dev+0xc84/0x1140 net/ipv6/addrconf.c:455 addrconf_notify+0x593/0xdd0 net/ipv6/addrconf.c:3574 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0x8c/0xf0 kernel/notifier.c:391 call_netdevice_notifiers_info net/core/dev.c:2005 [inline] call_netdevice_notifiers_extack net/core/dev.c:2017 [inline] call_netdevice_notifiers+0x145/0x1b0 net/core/dev.c:2031 register_netdevice+0xff1/0x1350 net/core/dev.c:10365 page_owner free stack trace missing Memory state around the buggy address: ffff888147ecd300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888147ecd380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888147ecd400: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc ^ ffff888147ecd480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888147ecd500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================