================================================================== 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 ffff8881111ae470 by task syz-executor.1/24313 CPU: 1 PID: 24313 Comm: syz-executor.1 Not tainted 5.15.141-syzkaller-00899-g28e3f5851a99 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/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:1200 shrink_page_list+0x2723/0x5c50 mm/vmscan.c:1797 shrink_inactive_list mm/vmscan.c:2304 [inline] shrink_list mm/vmscan.c:2549 [inline] shrink_lruvec+0x17ec/0x4580 mm/vmscan.c:5752 shrink_node_memcgs mm/vmscan.c:5944 [inline] shrink_node+0x1077/0x24e0 mm/vmscan.c:5974 shrink_zones mm/vmscan.c:6177 [inline] do_try_to_free_pages+0x5b6/0x1570 mm/vmscan.c:6235 try_to_free_mem_cgroup_pages+0x36c/0x850 mm/vmscan.c:6549 try_charge_memcg+0x48f/0x1550 mm/memcontrol.c:2686 try_charge mm/memcontrol.c:2811 [inline] charge_memcg+0x6b/0x1a0 mm/memcontrol.c:6814 __mem_cgroup_charge+0x37/0x130 mm/memcontrol.c:6850 mem_cgroup_charge include/linux/memcontrol.h:715 [inline] __add_to_page_cache_locked+0x2d1/0xa20 mm/filemap.c:892 add_to_page_cache_lru+0x11b/0x2c0 mm/filemap.c:984 pagecache_get_page+0xbe1/0xeb0 mm/filemap.c:1951 grab_cache_page_write_begin+0x5d/0xa0 mm/filemap.c:3788 ext4_da_write_begin+0x5ae/0xc30 fs/ext4/inode.c:3003 generic_perform_write+0x2bc/0x5a0 mm/filemap.c:3834 ext4_buffered_write_iter+0x48a/0x610 fs/ext4/file.c:270 ext4_file_write_iter+0x443/0x1c80 __kernel_write+0x5ab/0xa60 fs/read_write.c:539 __dump_emit+0x261/0x3a0 fs/coredump.c:875 dump_emit+0x381/0x3f0 fs/coredump.c:912 dump_user_range+0x86/0x1c0 fs/coredump.c:949 elf_core_dump+0x3663/0x3e80 fs/binfmt_elf.c:2285 do_coredump+0x1834/0x3050 fs/coredump.c:826 get_signal+0x4c8/0x1630 kernel/signal.c:2882 arch_do_signal_or_restart+0xbd/0x1680 arch/x86/kernel/signal.c:867 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop+0xa0/0xe0 kernel/entry/common.c:172 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:208 irqentry_exit_to_user_mode+0x9/0x20 kernel/entry/common.c:314 irqentry_exit+0x12/0x40 kernel/entry/common.c:405 exc_page_fault+0x47a/0x830 arch/x86/mm/fault.c:1608 asm_exc_page_fault+0x27/0x30 arch/x86/include/asm/idtentry.h:568 RIP: 0033:0x0 Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6. RSP: 002b:000000002000043d EFLAGS: 00010217 RAX: 0000000000000000 RBX: 0000000000000058 RCX: 00007f462f300ce9 RDX: 00007f462e082fb0 RSI: 0000000000000058 RDI: 00007f462e082fb0 RBP: 00007f462f34d47a R08: 0000000000000000 R09: 0000000000000058 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f462f41ff80 R15: 00007ffdff083748 Allocated by task 30032: 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] kmem_cache_alloc_trace+0x115/0x210 mm/slub.c:3267 kmalloc include/linux/slab.h:603 [inline] __hw_addr_create net/core/dev_addr_lists.c:29 [inline] __hw_addr_add_ex+0x200/0x7d0 net/core/dev_addr_lists.c:93 __dev_mc_add net/core/dev_addr_lists.c:832 [inline] dev_mc_add+0x78/0xd0 net/core/dev_addr_lists.c:850 igmp6_group_added+0x1a9/0x5b0 net/ipv6/mcast.c:680 ipv6_mc_up+0x1f3/0x2a0 net/ipv6/mcast.c:2754 ipv6_find_idev net/ipv6/addrconf.c:496 [inline] addrconf_add_dev+0x1ae/0x610 net/ipv6/addrconf.c:2523 addrconf_dev_config net/ipv6/addrconf.c:3412 [inline] addrconf_init_auto_addrs+0xad0/0x1060 net/ipv6/addrconf.c:3499 addrconf_notify+0x91d/0xdd0 net/ipv6/addrconf.c:3668 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:2025 [inline] netdev_state_change+0x1a3/0x250 net/core/dev.c:1416 linkwatch_do_dev+0x110/0x160 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+0x6bb/0xc10 kernel/workqueue.c:2317 worker_thread+0xad5/0x12a0 kernel/workqueue.c:2464 kthread+0x421/0x510 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 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 kvfree_call_rcu+0xb2/0x7d0 kernel/rcu/tree.c:3596 __hw_addr_del_entry net/core/dev_addr_lists.c:145 [inline] __hw_addr_del_ex+0x52c/0x630 net/core/dev_addr_lists.c:194 __dev_mc_del net/core/dev_addr_lists.c:873 [inline] dev_mc_del+0x74/0xc0 net/core/dev_addr_lists.c:891 igmp6_group_dropped+0x1a2/0xa10 net/ipv6/mcast.c:715 __ipv6_dev_mc_dec+0x2f0/0x4f0 net/ipv6/mcast.c:978 addrconf_leave_solict net/ipv6/addrconf.c:2197 [inline] __ipv6_ifa_notify+0x905/0x11c0 net/ipv6/addrconf.c:6196 addrconf_ifdown+0xe14/0x1ae0 net/ipv6/addrconf.c:3905 addrconf_notify+0x37d/0xdd0 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0x8c/0xf0 kernel/notifier.c:391 __dev_notify_flags+0x304/0x610 dev_change_flags+0xf0/0x1a0 net/core/dev.c:8890 do_setlink+0xcd1/0x3ae0 net/core/rtnetlink.c:2741 rtnl_group_changelink net/core/rtnetlink.c:3270 [inline] __rtnl_newlink net/core/rtnetlink.c:3439 [inline] rtnl_newlink+0x1088/0x2050 net/core/rtnetlink.c:3549 rtnetlink_rcv_msg+0x951/0xc40 net/core/rtnetlink.c:5630 netlink_rcv_skb+0x1cf/0x410 net/netlink/af_netlink.c:2505 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5648 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:1924 sock_sendmsg_nosec net/socket.c:704 [inline] __sock_sendmsg net/socket.c:716 [inline] ____sys_sendmsg+0x59e/0x8f0 net/socket.c:2429 ___sys_sendmsg+0x252/0x2e0 net/socket.c:2483 __sys_sendmsg net/socket.c:2512 [inline] __do_sys_sendmsg net/socket.c:2521 [inline] __se_sys_sendmsg+0x19a/0x260 net/socket.c:2519 __x64_sys_sendmsg+0x7b/0x90 net/socket.c:2519 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 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 kvfree_call_rcu+0xb2/0x7d0 kernel/rcu/tree.c:3596 __hw_addr_del_entry net/core/dev_addr_lists.c:145 [inline] __hw_addr_del_ex+0x52c/0x630 net/core/dev_addr_lists.c:194 __dev_mc_del net/core/dev_addr_lists.c:873 [inline] dev_mc_del+0x74/0xc0 net/core/dev_addr_lists.c:891 igmp6_group_dropped+0x1a2/0xa10 net/ipv6/mcast.c:715 ipv6_mc_down+0x64/0x330 net/ipv6/mcast.c:2719 ipv6_mc_destroy_dev+0x2b/0x620 net/ipv6/mcast.c:2788 addrconf_ifdown+0x1652/0x1ae0 net/ipv6/addrconf.c:3924 addrconf_notify+0x37d/0xdd0 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:2025 [inline] call_netdevice_notifiers_extack net/core/dev.c:2037 [inline] call_netdevice_notifiers net/core/dev.c:2051 [inline] unregister_netdevice_many+0xe0a/0x17c0 net/core/dev.c:11102 ip_tunnel_delete_nets+0x33b/0x380 net/ipv4/ip_tunnel.c:1123 ipgre_tap_exit_batch_net+0x22/0x30 net/ipv4/ip_gre.c:1703 ops_exit_list net/core/net_namespace.c:174 [inline] cleanup_net+0x6ce/0xc00 net/core/net_namespace.c:596 process_one_work+0x6bb/0xc10 kernel/workqueue.c:2317 worker_thread+0xad5/0x12a0 kernel/workqueue.c:2464 kthread+0x421/0x510 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 The buggy address belongs to the object at ffff8881111ae400 which belongs to the cache kmalloc-128 of size 128 The buggy address is located 112 bytes inside of 128-byte region [ffff8881111ae400, ffff8881111ae480) The buggy address belongs to the page: page:ffffea0004446b80 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1111ae flags: 0x4000000000000200(slab|zone=1) raw: 4000000000000200 0000000000000000 0000000700000001 ffff888100042a80 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112cc0(GFP_USER|__GFP_NOWARN|__GFP_NORETRY), pid 23487, ts 706638397313, free_ts 706026091752 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1a3/0x1b0 mm/page_alloc.c:2604 prep_new_page+0x1b/0x110 mm/page_alloc.c:2610 get_page_from_freelist+0x3550/0x35d0 mm/page_alloc.c:4484 __alloc_pages+0x27e/0x8f0 mm/page_alloc.c:5776 allocate_slab mm/slub.c:1932 [inline] new_slab+0x9a/0x4e0 mm/slub.c:1995 ___slab_alloc+0x39e/0x830 mm/slub.c:3028 __slab_alloc+0x4a/0x90 mm/slub.c:3115 slab_alloc_node mm/slub.c:3206 [inline] slab_alloc mm/slub.c:3248 [inline] __kmalloc_track_caller+0x16c/0x260 mm/slub.c:4945 __do_krealloc mm/slab_common.c:1231 [inline] krealloc+0x5f/0xf0 mm/slab_common.c:1264 push_jmp_history kernel/bpf/verifier.c:2119 [inline] is_state_visited kernel/bpf/verifier.c:10988 [inline] do_check+0x2633/0xf2c0 kernel/bpf/verifier.c:11128 do_check_common+0x909/0x1290 kernel/bpf/verifier.c:13403 do_check_main kernel/bpf/verifier.c:13466 [inline] bpf_check+0x3835/0x12bf0 kernel/bpf/verifier.c:14037 bpf_prog_load+0x12ac/0x1b50 kernel/bpf/syscall.c:2327 __sys_bpf+0x4bc/0x760 kernel/bpf/syscall.c:4618 __do_sys_bpf kernel/bpf/syscall.c:4722 [inline] __se_sys_bpf kernel/bpf/syscall.c:4720 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:4720 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1471 [inline] free_pcp_prepare mm/page_alloc.c:1543 [inline] free_unref_page_prepare+0x7c8/0x7d0 mm/page_alloc.c:3533 free_unref_page_list+0x14b/0xa60 mm/page_alloc.c:3670 release_pages+0x1310/0x1370 mm/swap.c:1009 __pagevec_release+0x84/0x100 mm/swap.c:1029 pagevec_release include/linux/pagevec.h:81 [inline] truncate_inode_pages_range+0x482/0x1160 mm/truncate.c:329 truncate_inode_pages+0x24/0x30 mm/truncate.c:425 kill_bdev block/bdev.c:77 [inline] blkdev_flush_mapping+0x182/0x340 block/bdev.c:659 blkdev_put_whole block/bdev.c:690 [inline] blkdev_put+0x509/0x7b0 block/bdev.c:954 kill_block_super+0xb3/0xe0 fs/super.c:1417 kill_f2fs_super+0x2f9/0x3c0 fs/f2fs/super.c:4610 deactivate_locked_super+0xad/0x110 fs/super.c:335 deactivate_super+0xbe/0xf0 fs/super.c:366 cleanup_mnt+0x45c/0x510 fs/namespace.c:1143 __cleanup_mnt+0x19/0x20 fs/namespace.c:1150 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 Memory state around the buggy address: ffff8881111ae300: 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc ffff8881111ae380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8881111ae400: 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc ^ ffff8881111ae480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8881111ae500: 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc ================================================================== syz-executor.1 (24313) used greatest stack depth: 17120 bytes left