================================================================== 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 ffff88811523f470 by task syz.2.5440/19718 CPU: 1 PID: 19718 Comm: syz.2.5440 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/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_getpage mm/shmem.c:165 [inline] shmem_write_begin+0xce/0x1b0 mm/shmem.c:2501 generic_perform_write+0x2be/0x510 mm/filemap.c:3509 __generic_file_write_iter+0x24b/0x480 mm/filemap.c:3638 generic_file_write_iter+0xa9/0x1d0 mm/filemap.c:3670 __kernel_write+0x55a/0x910 fs/read_write.c:550 dump_emit+0x240/0x360 fs/coredump.c:855 dump_user_range+0x6a/0x1a0 fs/coredump.c:908 elf_core_dump+0x278a/0x2bc0 fs/binfmt_elf.c:2290 do_coredump+0x1ac9/0x27f0 fs/coredump.c:817 get_signal+0xf23/0x12e0 kernel/signal.c:2779 arch_do_signal_or_restart+0xbf/0x10f0 arch/x86/kernel/signal.c:805 handle_signal_work kernel/entry/common.c:145 [inline] exit_to_user_mode_loop+0xa2/0xe0 kernel/entry/common.c:169 exit_to_user_mode_prepare+0x76/0xa0 kernel/entry/common.c:199 irqentry_exit_to_user_mode+0x9/0x10 kernel/entry/common.c:287 irqentry_exit+0x12/0x60 kernel/entry/common.c:375 exc_page_fault+0x67/0xc0 arch/x86/mm/fault.c:1487 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:571 RIP: 0033:0x6b94 Code: Unable to access opcode bytes at RIP 0x6b6a. RSP: 002b:0000200000000298 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007f54dcae6090 RCX: 00007f54dc88efc9 RDX: 0000200000000000 RSI: 0000200000000290 RDI: 0000000000080000 RBP: 00007f54dc911f91 R08: 00002000000000c0 R09: 00002000000000c0 R10: 0000200000000080 R11: 0000000000000206 R12: 0000000000000000 R13: 00007f54dcae6128 R14: 00007f54dcae6090 R15: 00007ffec98423d8 Allocated by task 19591: 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] kmem_cache_alloc_trace+0x184/0x2e0 mm/slub.c:2979 kmalloc include/linux/slab.h:552 [inline] audit_log_d_path+0xa2/0x200 kernel/audit.c:2150 dump_common_audit_data security/lsm_audit.c:249 [inline] common_lsm_audit+0x2e1/0x17f0 security/lsm_audit.c:466 slow_avc_audit+0x1ac/0x220 security/selinux/avc.c:798 avc_audit security/selinux/include/avc.h:140 [inline] avc_has_perm+0x1ca/0x360 security/selinux/avc.c:1201 inode_has_perm security/selinux/hooks.c:1663 [inline] file_path_has_perm security/selinux/hooks.c:1708 [inline] selinux_file_open+0x467/0x620 security/selinux/hooks.c:3985 security_file_open+0x62/0xa0 security/security.c:1582 do_dentry_open+0x39b/0x1090 fs/open.c:806 vfs_open+0x73/0x80 fs/open.c:942 do_open fs/namei.c:3391 [inline] path_openat+0x27ad/0x3160 fs/namei.c:3509 do_filp_open+0x1b3/0x3e0 fs/namei.c:3536 do_sys_openat2+0x14c/0x6d0 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_openat fs/open.c:1249 [inline] __se_sys_openat fs/open.c:1244 [inline] __x64_sys_openat+0x136/0x160 fs/open.c:1244 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb Freed by task 19591: 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:1600 [inline] slab_free_freelist_hook+0xc5/0x190 mm/slub.c:1626 slab_free mm/slub.c:3208 [inline] kfree+0xc0/0x270 mm/slub.c:4196 audit_log_d_path+0x1d2/0x200 kernel/audit.c:2161 dump_common_audit_data security/lsm_audit.c:249 [inline] common_lsm_audit+0x2e1/0x17f0 security/lsm_audit.c:466 slow_avc_audit+0x1ac/0x220 security/selinux/avc.c:798 avc_audit security/selinux/include/avc.h:140 [inline] avc_has_perm+0x1ca/0x360 security/selinux/avc.c:1201 inode_has_perm security/selinux/hooks.c:1663 [inline] file_path_has_perm security/selinux/hooks.c:1708 [inline] selinux_file_open+0x467/0x620 security/selinux/hooks.c:3985 security_file_open+0x62/0xa0 security/security.c:1582 do_dentry_open+0x39b/0x1090 fs/open.c:806 vfs_open+0x73/0x80 fs/open.c:942 do_open fs/namei.c:3391 [inline] path_openat+0x27ad/0x3160 fs/namei.c:3509 do_filp_open+0x1b3/0x3e0 fs/namei.c:3536 do_sys_openat2+0x14c/0x6d0 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_openat fs/open.c:1249 [inline] __se_sys_openat fs/open.c:1244 [inline] __x64_sys_openat+0x136/0x160 fs/open.c:1244 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 ffff88811523c000 which belongs to the cache kmalloc-8k of size 8192 The buggy address is located 5232 bytes to the right of 8192-byte region [ffff88811523c000, ffff88811523e000) The buggy address belongs to the page: page:ffffea0004548e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x115238 head:ffffea0004548e00 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head) raw: 4000000000010200 dead000000000100 dead000000000122 ffff888100042a80 raw: 0000000000000000 0000000000020002 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 0x152a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 19591, ts 736711949151, free_ts 736689382782 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:5370 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1813 [inline] new_slab+0x84/0x3f0 mm/slub.c:1874 new_slab_objects mm/slub.c:2632 [inline] ___slab_alloc+0x2a6/0x450 mm/slub.c:2796 __slab_alloc+0x63/0xa0 mm/slub.c:2836 slab_alloc_node mm/slub.c:2918 [inline] slab_alloc mm/slub.c:2960 [inline] kmem_cache_alloc_trace+0x1b3/0x2e0 mm/slub.c:2977 kmalloc include/linux/slab.h:552 [inline] audit_log_d_path+0xa2/0x200 kernel/audit.c:2150 dump_common_audit_data security/lsm_audit.c:249 [inline] common_lsm_audit+0x2e1/0x17f0 security/lsm_audit.c:466 slow_avc_audit+0x1ac/0x220 security/selinux/avc.c:798 avc_audit security/selinux/include/avc.h:140 [inline] avc_has_perm+0x1ca/0x360 security/selinux/avc.c:1201 inode_has_perm security/selinux/hooks.c:1663 [inline] file_path_has_perm security/selinux/hooks.c:1708 [inline] selinux_file_open+0x467/0x620 security/selinux/hooks.c:3985 security_file_open+0x62/0xa0 security/security.c:1582 do_dentry_open+0x39b/0x1090 fs/open.c:806 vfs_open+0x73/0x80 fs/open.c:942 do_open fs/namei.c:3391 [inline] path_openat+0x27ad/0x3160 fs/namei.c:3509 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_pages_ok+0x7fc/0x820 mm/page_alloc.c:1629 free_the_page mm/page_alloc.c:5431 [inline] __free_pages+0xdd/0x380 mm/page_alloc.c:5440 __free_slab+0xcf/0x190 mm/slub.c:1899 free_slab mm/slub.c:1914 [inline] discard_slab mm/slub.c:1920 [inline] unfreeze_partials+0x15f/0x190 mm/slub.c:2415 put_cpu_partial+0xc1/0x180 mm/slub.c:2451 __slab_free+0x2c9/0x3a0 mm/slub.c:3100 do_slab_free mm/slub.c:3196 [inline] ___cache_free+0x111/0x130 mm/slub.c:3215 qlink_free+0x50/0x90 mm/kasan/quarantine.c:157 qlist_free_all+0x5f/0xb0 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x14a/0x160 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0x2f/0xf0 mm/kasan/common.c:440 kasan_slab_alloc include/linux/kasan.h:244 [inline] slab_post_alloc_hook+0x5d/0x2f0 mm/slab.h:580 slab_alloc_node mm/slub.c:2952 [inline] slab_alloc mm/slub.c:2960 [inline] kmem_cache_alloc+0x165/0x2e0 mm/slub.c:2965 kmem_cache_zalloc include/linux/slab.h:654 [inline] jbd2_alloc_handle include/linux/jbd2.h:1554 [inline] new_handle fs/jbd2/transaction.c:464 [inline] jbd2__journal_start+0x13d/0x6e0 fs/jbd2/transaction.c:491 __ext4_journal_start_sb+0x242/0x490 fs/ext4/ext4_jbd2.c:105 __ext4_journal_start fs/ext4/ext4_jbd2.h:328 [inline] ext4_dirty_inode+0xb2/0x120 fs/ext4/inode.c:6139 Memory state around the buggy address: ffff88811523f300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88811523f380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88811523f400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88811523f480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88811523f500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== syz.2.5440 invoked oom-killer: gfp_mask=0xcc0(GFP_KERNEL), order=0, oom_score_adj=1000 CPU: 0 PID: 19718 Comm: syz.2.5440 Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x169/0x1d8 lib/dump_stack.c:118 dump_stack+0x15/0x1c lib/dump_stack.c:135 dump_header+0xdd/0x650 mm/oom_kill.c:508 oom_kill_process+0x1fa/0x2c0 mm/oom_kill.c:1038 out_of_memory+0x94a/0xd70 mm/oom_kill.c:1181 mem_cgroup_out_of_memory+0x260/0x310 mm/memcontrol.c:1736 mem_cgroup_oom mm/memcontrol.c:1971 [inline] try_charge+0xf61/0x14e0 mm/memcontrol.c:2796 __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_getpage mm/shmem.c:165 [inline] shmem_write_begin+0xce/0x1b0 mm/shmem.c:2501 generic_perform_write+0x2be/0x510 mm/filemap.c:3509 __generic_file_write_iter+0x24b/0x480 mm/filemap.c:3638 generic_file_write_iter+0xa9/0x1d0 mm/filemap.c:3670 __kernel_write+0x55a/0x910 fs/read_write.c:550 dump_emit+0x240/0x360 fs/coredump.c:855 dump_user_range+0x6a/0x1a0 fs/coredump.c:908 elf_core_dump+0x278a/0x2bc0 fs/binfmt_elf.c:2290 do_coredump+0x1ac9/0x27f0 fs/coredump.c:817 get_signal+0xf23/0x12e0 kernel/signal.c:2779 arch_do_signal_or_restart+0xbf/0x10f0 arch/x86/kernel/signal.c:805 handle_signal_work kernel/entry/common.c:145 [inline] exit_to_user_mode_loop+0xa2/0xe0 kernel/entry/common.c:169 exit_to_user_mode_prepare+0x76/0xa0 kernel/entry/common.c:199 irqentry_exit_to_user_mode+0x9/0x10 kernel/entry/common.c:287 irqentry_exit+0x12/0x60 kernel/entry/common.c:375 exc_page_fault+0x67/0xc0 arch/x86/mm/fault.c:1487 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:571 RIP: 0033:0x6b94 Code: Unable to access opcode bytes at RIP 0x6b6a. RSP: 002b:0000200000000298 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007f54dcae6090 RCX: 00007f54dc88efc9 RDX: 0000200000000000 RSI: 0000200000000290 RDI: 0000000000080000 RBP: 00007f54dc911f91 R08: 00002000000000c0 R09: 00002000000000c0 R10: 0000200000000080 R11: 0000000000000206 R12: 0000000000000000 R13: 00007f54dcae6128 R14: 00007f54dcae6090 R15: 00007ffec98423d8 memory: usage 275884kB, limit 307200kB, failcnt 18526 memory+swap: usage 387756kB, limit 9007199254740988kB, failcnt 0 kmem: usage 0kB, limit 9007199254740988kB, failcnt 0 Memory cgroup stats for /syz2: anon 290816 file 277364736 kernel_stack 0 percpu 0 sock 0 shmem 277499904 file_mapped 135168 file_dirty 135168 file_writeback 0 anon_thp 0 inactive_anon 264974336 active_anon 17436672 inactive_file 110592 active_file 57344 unevictable 106496 slab_reclaimable 0 slab_unreclaimable 0 slab 0 workingset_refault_anon 0 workingset_refault_file 4191 workingset_activate_anon 0 workingset_activate_file 2706 workingset_restore_anon 0 workingset_restore_file 1848 oom-kill:constraint=CONSTRAINT_MEMCG,nodemask=(null),cpuset=syz2,mems_allowed=0,oom_memcg=/syz2,task_memcg=/syz2,task=syz.2.5440,pid=19730,uid=0 Memory cgroup out of memory: Killed process 19730 (syz.2.5440) total-vm:90236kB, anon-rss:1188kB, file-rss:53440kB, shmem-rss:0kB, UID:0 pgtables:196kB oom_score_adj:1000