================================================================== 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+0x9e0/0xac0 mm/filemap.c:175 Read of size 4 at addr ffff8881198af470 by task syz.1.9179/32608 CPU: 1 PID: 32608 Comm: syz.1.9179 Tainted: G W 5.10.240-syzkaller-00225-g1154f779f3f3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x169/0x1d8 lib/dump_stack.c:118 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:435 [inline] kasan_report+0xe2/0x130 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+0x9e0/0xac0 mm/filemap.c:175 __delete_from_page_cache+0xc4/0x460 mm/filemap.c:243 __remove_mapping+0x562/0x690 mm/vmscan.c:985 shrink_page_list+0x2109/0x4120 mm/vmscan.c:1498 shrink_inactive_list+0x4f4/0xe80 mm/vmscan.c:2075 shrink_list mm/vmscan.c:2294 [inline] shrink_lruvec+0x2246/0x2770 mm/vmscan.c:5473 shrink_node_memcgs mm/vmscan.c:5660 [inline] shrink_node+0xf0c/0x2690 mm/vmscan.c:5690 shrink_zones mm/vmscan.c:5896 [inline] do_try_to_free_pages+0x5db/0x1560 mm/vmscan.c:5954 try_to_free_mem_cgroup_pages+0x233/0x5b0 mm/vmscan.c:6272 try_charge+0x42b/0x14e0 mm/memcontrol.c:2745 __mem_cgroup_charge+0x14c/0x6d0 mm/memcontrol.c:6871 mem_cgroup_charge include/linux/memcontrol.h:458 [inline] shmem_add_to_page_cache+0x55e/0xe10 mm/shmem.c:703 shmem_getpage_gfp+0x8e8/0x2110 mm/shmem.c:1956 shmem_fault+0x2b7/0x640 mm/shmem.c:2143 __do_fault mm/memory.c:4064 [inline] do_read_fault mm/memory.c:4399 [inline] do_fault mm/memory.c:4527 [inline] handle_pte_fault+0x1fa5/0x3750 mm/memory.c:4791 __handle_mm_fault mm/memory.c:4944 [inline] handle_mm_fault+0xf3f/0x16a0 mm/memory.c:5358 faultin_page mm/gup.c:902 [inline] __get_user_pages+0xbe9/0x13e0 mm/gup.c:1121 populate_vma_page_range mm/gup.c:1454 [inline] __mm_populate+0x33b/0x420 mm/gup.c:1502 mm_populate include/linux/mm.h:2782 [inline] vm_mmap_pgoff+0x223/0x340 mm/util.c:548 ksys_mmap_pgoff+0xfd/0x1e0 mm/mmap.c:1708 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:95 [inline] __se_sys_mmap arch/x86/kernel/sys_x86_64.c:86 [inline] __x64_sys_mmap+0xfa/0x110 arch/x86/kernel/sys_x86_64.c:86 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fc702e46b69 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc7014af038 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007fc70306dfa0 RCX: 00007fc702e46b69 RDX: b635773f06ebbeee RSI: 0000000000b36000 RDI: 0000200000000000 RBP: 00007fc702ec9df1 R08: ffffffffffffffff R09: 00000000ffffe000 R10: 0000000000008031 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fc70306dfa0 R15: 00007fffd6938768 Allocated by task 31957: 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 mm/kasan/common.c:509 [inline] __kasan_kmalloc+0xda/0x110 mm/kasan/common.c:518 kasan_kmalloc include/linux/kasan.h:254 [inline] __kmalloc+0x1a7/0x330 mm/slub.c:4033 kmalloc include/linux/slab.h:557 [inline] kernfs_file_read_iter fs/kernfs/file.c:195 [inline] kernfs_fop_read_iter+0x15d/0x470 fs/kernfs/file.c:242 call_read_iter include/linux/fs.h:2060 [inline] new_sync_read fs/read_write.c:415 [inline] vfs_read+0x874/0xa10 fs/read_write.c:496 ksys_read+0x140/0x240 fs/read_write.c:634 __do_sys_read fs/read_write.c:644 [inline] __se_sys_read fs/read_write.c:642 [inline] __x64_sys_read+0x7b/0x90 fs/read_write.c:642 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb Freed by task 31957: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4a/0x70 mm/kasan/common.c:45 kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:370 ____kasan_slab_free+0x125/0x160 mm/kasan/common.c:362 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:370 kasan_slab_free include/linux/kasan.h:220 [inline] slab_free_hook mm/slub.c:1595 [inline] slab_free_freelist_hook+0xc5/0x190 mm/slub.c:1621 slab_free mm/slub.c:3203 [inline] kfree+0xc0/0x270 mm/slub.c:4191 kernfs_file_read_iter fs/kernfs/file.c:234 [inline] kernfs_fop_read_iter+0x3d8/0x470 fs/kernfs/file.c:242 call_read_iter include/linux/fs.h:2060 [inline] new_sync_read fs/read_write.c:415 [inline] vfs_read+0x874/0xa10 fs/read_write.c:496 ksys_read+0x140/0x240 fs/read_write.c:634 __do_sys_read fs/read_write.c:644 [inline] __se_sys_read fs/read_write.c:642 [inline] __x64_sys_read+0x7b/0x90 fs/read_write.c:642 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb The buggy address belongs to the object at ffff8881198ae000 which belongs to the cache kmalloc-4k of size 4096 The buggy address is located 1136 bytes to the right of 4096-byte region [ffff8881198ae000, ffff8881198af000) The buggy address belongs to the page: page:ffffea0004662a00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1198a8 head:ffffea0004662a00 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head) raw: 4000000000010200 dead000000000100 dead000000000122 ffff888100042c00 raw: 0000000000000000 0000000000040004 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 31957, ts 1380415806116, free_ts 1371003625225 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page+0x179/0x180 mm/page_alloc.c:2462 get_page_from_freelist+0x2235/0x23d0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x268/0x5f0 mm/page_alloc.c:5357 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1808 [inline] new_slab+0x84/0x3f0 mm/slub.c:1869 new_slab_objects mm/slub.c:2627 [inline] ___slab_alloc+0x2a6/0x450 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+0x201/0x330 mm/slub.c:4029 kmalloc include/linux/slab.h:557 [inline] kernfs_file_read_iter fs/kernfs/file.c:195 [inline] kernfs_fop_read_iter+0x15d/0x470 fs/kernfs/file.c:242 call_read_iter include/linux/fs.h:2060 [inline] new_sync_read fs/read_write.c:415 [inline] vfs_read+0x874/0xa10 fs/read_write.c:496 ksys_read+0x140/0x240 fs/read_write.c:634 __do_sys_read fs/read_write.c:644 [inline] __se_sys_read fs/read_write.c:642 [inline] __x64_sys_read+0x7b/0x90 fs/read_write.c:642 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb page last free stack trace: reset_page_owner include/linux/page_owner.h:28 [inline] free_pages_prepare mm/page_alloc.c:1349 [inline] free_pcp_prepare mm/page_alloc.c:1421 [inline] free_unref_page_prepare+0x2b7/0x2d0 mm/page_alloc.c:3336 free_unref_page mm/page_alloc.c:3391 [inline] free_the_page mm/page_alloc.c:5416 [inline] __free_pages+0x14b/0x380 mm/page_alloc.c:5427 pcpu_free_pages mm/percpu-vm.c:64 [inline] pcpu_depopulate_chunk mm/percpu-vm.c:328 [inline] __pcpu_balance_workfn mm/percpu.c:1976 [inline] pcpu_balance_workfn+0x99c/0x1710 mm/percpu.c:2068 process_one_work+0x6e1/0xba0 kernel/workqueue.c:2301 worker_thread+0xa6a/0x13b0 kernel/workqueue.c:2447 kthread+0x346/0x3d0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Memory state around the buggy address: ffff8881198af300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8881198af380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8881198af400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8881198af480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8881198af500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================