================================================================== BUG: KASAN: use-after-free in cleancache_fs_enabled_mapping include/linux/cleancache.h:56 [inline] BUG: KASAN: use-after-free in cleancache_invalidate_page include/linux/cleancache.h:110 [inline] BUG: KASAN: use-after-free in unaccount_page_cache_page+0x9e0/0xac0 mm/filemap.c:175 Read of size 4 at addr ffff88810e9f8470 by task syz.5.313/1471 CPU: 1 PID: 1471 Comm: syz.5.313 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x1a7/0x208 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+0xc3/0x470 mm/filemap.c:243 __remove_mapping+0x562/0x690 mm/vmscan.c:985 shrink_page_list+0x21a9/0x4250 mm/vmscan.c:1498 shrink_inactive_list+0x532/0xef0 mm/vmscan.c:2075 shrink_list mm/vmscan.c:2294 [inline] shrink_lruvec+0x1235/0x2860 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+0x603/0x1590 mm/vmscan.c:5954 try_to_free_mem_cgroup_pages+0x261/0x610 mm/vmscan.c:6272 try_charge+0x43e/0x1500 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+0x574/0xe30 mm/shmem.c:699 shmem_getpage_gfp+0x8eb/0x2120 mm/shmem.c:1952 shmem_getpage mm/shmem.c:161 [inline] shmem_write_begin+0xce/0x1b0 mm/shmem.c:2497 generic_perform_write+0x2ce/0x540 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+0x535/0x910 fs/read_write.c:550 dump_emit+0x246/0x370 fs/coredump.c:855 dump_user_range+0x6a/0x1a0 fs/coredump.c:908 elf_core_dump+0x2866/0x2cc0 fs/binfmt_elf.c:2290 do_coredump+0x1ba3/0x28e0 fs/coredump.c:817 get_signal+0xf23/0x12e0 kernel/signal.c:2779 arch_do_signal_or_restart+0xe2/0x11d0 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:0x7f1446e6c877 Code: e8 8e fa ff ff 89 f2 48 8d 3d 0d 40 1b 00 48 8d 35 c4 fa 1d 00 31 c0 e8 e7 f8 ff ff 0f 1f 80 00 00 00 00 53 89 fb 48 83 ec 10 <64> 8b 04 25 a4 ff ff ff 85 c0 74 2a 89 fe 31 c0 bf 3c 00 00 00 e8 RSP: 002b:00007f14459d1120 EFLAGS: 00010202 RAX: 0000000000000000 RBX: 000000000000000b RCX: 00007f1446fb6dd9 RDX: 00007f14459d1140 RSI: 00007f14459d1270 RDI: 000000000000000b RBP: 00007f144704cd69 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 00007f1447230128 R14: 00007f1447230090 R15: 00007ffc76d23e48 Allocated by task 1020: 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+0x181/0x2e0 mm/slub.c:2979 kmalloc include/linux/slab.h:555 [inline] kzalloc include/linux/slab.h:667 [inline] alloc_super+0x5e/0x7a0 fs/super.c:203 sget+0x1e4/0x4c0 fs/super.c:627 mount_bdev+0xf6/0x3a0 fs/super.c:1415 f2fs_mount+0x34/0x40 fs/f2fs/super.c:4598 legacy_get_tree+0xed/0x190 fs/fs_context.c:593 vfs_get_tree+0x89/0x260 fs/super.c:1572 do_new_mount+0x25a/0xa20 fs/namespace.c:3006 path_mount+0x585/0xc90 fs/namespace.c:3336 do_mount fs/namespace.c:3349 [inline] __do_sys_mount fs/namespace.c:3557 [inline] __se_sys_mount+0x320/0x390 fs/namespace.c:3534 __x64_sys_mount+0xbf/0xd0 fs/namespace.c:3534 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb Freed by task 462: 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 destroy_super_work+0x40/0x50 fs/super.c:165 process_one_work+0x6e1/0xba0 kernel/workqueue.c:2301 worker_thread+0xa6a/0x13c0 kernel/workqueue.c:2447 kthread+0x346/0x3d0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:38 __kasan_record_aux_stack+0xd2/0x100 mm/kasan/generic.c:348 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358 insert_work+0x52/0x310 kernel/workqueue.c:1352 __queue_work+0x923/0xca0 kernel/workqueue.c:1518 queue_work_on+0xe6/0x140 kernel/workqueue.c:1545 queue_work include/linux/workqueue.h:515 [inline] schedule_work include/linux/workqueue.h:576 [inline] destroy_super_rcu+0xd1/0xe0 fs/super.c:172 rcu_do_batch+0x4ef/0xab0 kernel/rcu/tree.c:2494 rcu_core+0x577/0xd80 kernel/rcu/tree.c:2735 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2748 __do_softirq+0x255/0x563 kernel/softirq.c:309 Second to last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:38 __kasan_record_aux_stack+0xd2/0x100 mm/kasan/generic.c:348 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358 __call_rcu kernel/rcu/tree.c:2980 [inline] call_rcu+0x11a/0x10b0 kernel/rcu/tree.c:3054 __put_super+0x254/0x2b0 fs/super.c:299 put_super fs/super.c:313 [inline] deactivate_locked_super+0xd4/0x100 fs/super.c:346 mount_bdev+0x2a9/0x3a0 fs/super.c:1444 f2fs_mount+0x34/0x40 fs/f2fs/super.c:4598 legacy_get_tree+0xed/0x190 fs/fs_context.c:593 vfs_get_tree+0x89/0x260 fs/super.c:1572 do_new_mount+0x25a/0xa20 fs/namespace.c:3006 path_mount+0x585/0xc90 fs/namespace.c:3336 do_mount fs/namespace.c:3349 [inline] __do_sys_mount fs/namespace.c:3557 [inline] __se_sys_mount+0x320/0x390 fs/namespace.c:3534 __x64_sys_mount+0xbf/0xd0 fs/namespace.c:3534 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 ffff88810e9f8000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1136 bytes inside of 2048-byte region [ffff88810e9f8000, ffff88810e9f8800) The buggy address belongs to the page: page:ffffea00043a7e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10e9f8 head:ffffea00043a7e00 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head) raw: 4000000000010200 dead000000000100 dead000000000122 ffff888100042d80 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), pid 393, ts 37064529290, free_ts 37004327870 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+0x223b/0x23d0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x290/0x620 mm/page_alloc.c:5384 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] __kmalloc_track_caller+0x1ec/0x320 mm/slub.c:4541 __kmalloc_reserve net/core/skbuff.c:144 [inline] __alloc_skb+0xdc/0x520 net/core/skbuff.c:212 alloc_skb include/linux/skbuff.h:1126 [inline] nlmsg_new include/net/netlink.h:953 [inline] inet6_ifinfo_notify+0x6e/0x110 net/ipv6/addrconf.c:6056 addrconf_notify+0xb63/0xe90 net/ipv6/addrconf.c:3695 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0x90/0x100 kernel/notifier.c:410 call_netdevice_notifiers_info net/core/dev.c:2054 [inline] netdev_state_change+0x175/0x230 net/core/dev.c:1484 linkwatch_do_dev+0x102/0x140 net/core/link_watch.c:167 __linkwatch_run_queue+0x4b1/0x7c0 net/core/link_watch.c:213 linkwatch_event+0x4c/0x60 net/core/link_watch.c:252 process_one_work+0x6e1/0xba0 kernel/workqueue.c:2301 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+0x80b/0x830 mm/page_alloc.c:1629 free_the_page mm/page_alloc.c:5445 [inline] __free_pages+0xd8/0x3b0 mm/page_alloc.c:5454 __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+0x10e/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+0x162/0x2d0 mm/slub.c:2965 kmem_cache_alloc_node include/linux/slab.h:426 [inline] __alloc_skb+0x9e/0x520 net/core/skbuff.c:200 alloc_skb include/linux/skbuff.h:1126 [inline] netlink_alloc_large_skb net/netlink/af_netlink.c:1178 [inline] netlink_sendmsg+0x605/0xb50 net/netlink/af_netlink.c:1889 sock_sendmsg_nosec net/socket.c:652 [inline] __sock_sendmsg net/socket.c:664 [inline] __sys_sendto+0x467/0x620 net/socket.c:2006 Memory state around the buggy address: ffff88810e9f8300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88810e9f8380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88810e9f8400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88810e9f8480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88810e9f8500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== syz.5.313 invoked oom-killer: gfp_mask=0xcc0(GFP_KERNEL), order=0, oom_score_adj=1000 CPU: 0 PID: 1471 Comm: syz.5.313 Tainted: G B syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x1a7/0x208 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+0x93f/0xd20 mm/oom_kill.c:1181 mem_cgroup_out_of_memory+0x2d5/0x3b0 mm/memcontrol.c:1736 mem_cgroup_oom mm/memcontrol.c:1971 [inline] try_charge+0xf69/0x1500 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+0x574/0xe30 mm/shmem.c:699 shmem_getpage_gfp+0x8eb/0x2120 mm/shmem.c:1952 shmem_getpage mm/shmem.c:161 [inline] shmem_write_begin+0xce/0x1b0 mm/shmem.c:2497 generic_perform_write+0x2ce/0x540 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+0x535/0x910 fs/read_write.c:550 dump_emit+0x246/0x370 fs/coredump.c:855 dump_user_range+0x6a/0x1a0 fs/coredump.c:908 elf_core_dump+0x2866/0x2cc0 fs/binfmt_elf.c:2290 do_coredump+0x1ba3/0x28e0 fs/coredump.c:817 get_signal+0xf23/0x12e0 kernel/signal.c:2779 arch_do_signal_or_restart+0xe2/0x11d0 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:0x7f1446e6c877 Code: e8 8e fa ff ff 89 f2 48 8d 3d 0d 40 1b 00 48 8d 35 c4 fa 1d 00 31 c0 e8 e7 f8 ff ff 0f 1f 80 00 00 00 00 53 89 fb 48 83 ec 10 <64> 8b 04 25 a4 ff ff ff 85 c0 74 2a 89 fe 31 c0 bf 3c 00 00 00 e8 RSP: 002b:00007f14459d1120 EFLAGS: 00010202 RAX: 0000000000000000 RBX: 000000000000000b RCX: 00007f1446fb6dd9 RDX: 00007f14459d1140 RSI: 00007f14459d1270 RDI: 000000000000000b RBP: 00007f144704cd69 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 00007f1447230128 R14: 00007f1447230090 R15: 00007ffc76d23e48 memory: usage 305044kB, limit 307200kB, failcnt 14739 memory+swap: usage 409728kB, limit 9007199254740988kB, failcnt 0 kmem: usage 0kB, limit 9007199254740988kB, failcnt 0 Memory cgroup stats for /syz5: anon 1216512 file 294395904 kernel_stack 0 percpu 0 sock 0 shmem 294395904 file_mapped 135168 file_dirty 0 file_writeback 0 anon_thp 0 inactive_anon 299429888 active_anon 1351680 inactive_file 98304 active_file 180224 unevictable 0 slab_reclaimable 0 slab_unreclaimable 0 slab 0 workingset_refault_anon 0 workingset_refault_file 1881 workingset_activate_anon 0 workingset_activate_file 1518 workingset_restore_anon 0 workingset_restore_file 1320 oom-kill:constraint=CONSTRAINT_MEMCG,nodemask=(null),cpuset=syz5,mems_allowed=0,oom_memcg=/syz5,task_memcg=/syz5,task=syz.5.313,pid=1475,uid=0 Memory cgroup out of memory: Killed process 1475 (syz.5.313) total-vm:90316kB, anon-rss:1376kB, file-rss:52400kB, shmem-rss:0kB, UID:0 pgtables:204kB oom_score_adj:1000