================================================================== 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+0x6f2/0x760 mm/filemap.c:172 Read of size 4 at addr ffff88812823e470 by task syz.7.1835/7068 CPU: 1 PID: 7068 Comm: syz.7.1835 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026 Call Trace: __dump_stack+0x21/0x30 lib/dump_stack.c:88 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:427 [inline] kasan_report+0xf1/0x140 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+0x6f2/0x760 mm/filemap.c:172 __delete_from_page_cache+0xbe/0x470 mm/filemap.c:240 __remove_mapping+0x80a/0x980 mm/vmscan.c:1216 shrink_page_list+0x24c4/0x5af0 mm/vmscan.c:1829 shrink_inactive_list mm/vmscan.c:2338 [inline] shrink_list mm/vmscan.c:2583 [inline] shrink_lruvec+0x1209/0x39a0 mm/vmscan.c:5800 shrink_node_memcgs mm/vmscan.c:5992 [inline] shrink_node+0x1205/0x2aa0 mm/vmscan.c:6022 shrink_zones mm/vmscan.c:6228 [inline] do_try_to_free_pages+0x5a8/0x1580 mm/vmscan.c:6286 try_to_free_pages+0x4e6/0xc40 mm/vmscan.c:6521 __perform_reclaim mm/page_alloc.c:4955 [inline] __alloc_pages_direct_reclaim mm/page_alloc.c:4978 [inline] __alloc_pages_slowpath+0x1457/0x30b0 mm/page_alloc.c:5438 __alloc_pages+0x338/0x460 mm/page_alloc.c:5835 vm_area_alloc_pages mm/vmalloc.c:-1 [inline] __vmalloc_area_node mm/vmalloc.c:2981 [inline] __vmalloc_node_range+0x505/0xaf0 mm/vmalloc.c:3147 __bpf_map_area_alloc kernel/bpf/syscall.c:328 [inline] bpf_map_area_alloc+0xd5/0xe0 kernel/bpf/syscall.c:335 prealloc_init kernel/bpf/hashtab.c:323 [inline] htab_map_alloc+0xb29/0x14f0 kernel/bpf/hashtab.c:554 find_and_alloc_map kernel/bpf/syscall.c:129 [inline] map_create+0x455/0x21b0 kernel/bpf/syscall.c:860 __sys_bpf+0x2ff/0x7d0 kernel/bpf/syscall.c:4615 __do_sys_bpf kernel/bpf/syscall.c:4737 [inline] __se_sys_bpf kernel/bpf/syscall.c:4735 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:4735 x64_sys_call+0x4b9/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:322 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f2f71cd5e59 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f2f70730028 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f2f71f4efa0 RCX: 00007f2f71cd5e59 RDX: 0000000000000050 RSI: 0000200000000640 RDI: 0000000000000000 RBP: 00007f2f71d6bd6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f2f71f4f038 R14: 00007f2f71f4efa0 R15: 00007ffd72dbe438 Allocated by task 2633: 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 mm/kasan/common.c:512 [inline] __kasan_kmalloc+0xda/0x110 mm/kasan/common.c:521 kasan_kmalloc include/linux/kasan.h:227 [inline] __kmalloc+0x13d/0x2c0 mm/slub.c:4436 __kmalloc_node include/linux/slab.h:487 [inline] kmalloc_node include/linux/slab.h:642 [inline] kzalloc_node include/linux/slab.h:761 [inline] crypto_create_tfm_node+0x77/0x340 crypto/api.c:488 crypto_create_tfm crypto/internal.h:110 [inline] crypto_spawn_tfm2+0x5c/0x90 crypto/algapi.c:804 crypto_spawn_skcipher include/crypto/internal/skcipher.h:116 [inline] cryptd_skcipher_init_tfm+0x44/0xe0 crypto/cryptd.c:343 crypto_skcipher_init_tfm+0x105/0x160 crypto/skcipher.c:672 crypto_create_tfm_node+0xfb/0x340 crypto/api.c:496 crypto_alloc_tfm_node+0x165/0x350 crypto/api.c:572 crypto_alloc_tfm crypto/internal.h:124 [inline] crypto_alloc_skcipher+0x30/0x40 crypto/skcipher.c:756 cryptd_alloc_skcipher+0x102/0x220 crypto/cryptd.c:916 simd_skcipher_init+0x66/0x140 crypto/simd.c:122 crypto_skcipher_init_tfm+0x105/0x160 crypto/skcipher.c:672 crypto_create_tfm_node+0xfb/0x340 crypto/api.c:496 crypto_alloc_tfm_node+0x165/0x350 crypto/api.c:572 crypto_alloc_tfm crypto/internal.h:124 [inline] crypto_alloc_skcipher+0x30/0x40 crypto/skcipher.c:756 blk_crypto_fallback_start_using_mode+0x15b/0x440 block/blk-crypto-fallback.c:641 blk_crypto_start_using_key+0x9e/0xf0 block/blk-crypto.c:408 fscrypt_prepare_inline_crypt_key+0x5d9/0x7f0 fs/crypto/inline_crypt.c:178 fscrypt_prepare_key+0x6a/0x4b0 fs/crypto/keysetup.c:142 fscrypt_set_per_file_enc_key fs/crypto/keysetup.c:173 [inline] fscrypt_setup_v2_file_key+0x3a2/0x850 fs/crypto/keysetup.c:396 setup_file_encryption_key fs/crypto/keysetup.c:525 [inline] fscrypt_setup_encryption_info+0x802/0xd50 fs/crypto/keysetup.c:604 fscrypt_prepare_new_inode+0x229/0x310 fs/crypto/keysetup.c:749 __ext4_new_inode+0x70a/0x3730 fs/ext4/ialloc.c:997 ext4_create+0x230/0x470 fs/ext4/namei.c:2883 lookup_open fs/namei.c:3470 [inline] open_last_lookups fs/namei.c:3540 [inline] path_openat+0x119b/0x2f20 fs/namei.c:3747 do_filp_open+0x1e2/0x410 fs/namei.c:3777 do_sys_openat2+0x15e/0x7f0 fs/open.c:1236 do_sys_open fs/open.c:1252 [inline] __do_sys_openat fs/open.c:1268 [inline] __se_sys_openat fs/open.c:1263 [inline] __x64_sys_openat+0x136/0x160 fs/open.c:1263 x64_sys_call+0x219/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:258 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 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+0x51/0x310 kernel/workqueue.c:1373 __queue_work+0x8e5/0xc60 kernel/workqueue.c:1539 queue_work_on+0xde/0x150 kernel/workqueue.c:1566 queue_work include/linux/workqueue.h:510 [inline] schedule_work include/linux/workqueue.h:571 [inline] destroy_super_rcu+0xd1/0xe0 fs/super.c:172 rcu_do_batch+0x532/0xbe0 kernel/rcu/tree.c:2523 rcu_core+0x5ee/0xf80 kernel/rcu/tree.c:2763 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2776 handle_softirqs+0x250/0x560 kernel/softirq.c:583 __do_softirq kernel/softirq.c:621 [inline] invoke_softirq kernel/softirq.c:443 [inline] __irq_exit_rcu+0x52/0xf0 kernel/softirq.c:670 irq_exit_rcu+0x9/0x10 kernel/softirq.c:682 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline] sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1108 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:676 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_common kernel/rcu/tree.c:3011 [inline] call_rcu+0x10b/0xf80 kernel/rcu/tree.c:3129 __put_super+0x26b/0x2d0 fs/super.c:299 put_super fs/super.c:313 [inline] deactivate_locked_super+0xd4/0x100 fs/super.c:346 mount_bdev+0x2cc/0x3e0 fs/super.c:1402 f2fs_mount+0x34/0x40 fs/f2fs/super.c:4708 legacy_get_tree+0xed/0x190 fs/fs_context.c:611 vfs_get_tree+0x89/0x260 fs/super.c:1530 do_new_mount+0x25a/0xa20 fs/namespace.c:3034 path_mount+0x659/0xff0 fs/namespace.c:3364 do_mount fs/namespace.c:3377 [inline] __do_sys_mount fs/namespace.c:3585 [inline] __se_sys_mount+0x320/0x390 fs/namespace.c:3562 __x64_sys_mount+0xbf/0xd0 fs/namespace.c:3562 x64_sys_call+0x6bf/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:166 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 The buggy address belongs to the object at ffff88812823e000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1136 bytes inside of 2048-byte region [ffff88812823e000, ffff88812823e800) The buggy address belongs to the page: page:ffffea0004a08e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888128239000 pfn:0x128238 head:ffffea0004a08e00 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 ffffea0004a16208 ffffea00048b0808 ffff888100043200 raw: ffff888128239000 0000000000080003 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 286, ts 23276444269, free_ts 0 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x192/0x1b0 mm/page_alloc.c:2605 prep_new_page+0x1c/0x110 mm/page_alloc.c:2611 get_page_from_freelist+0x2d3a/0x2dc0 mm/page_alloc.c:4485 __alloc_pages+0x1a2/0x460 mm/page_alloc.c:5822 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1937 [inline] new_slab+0xa1/0x4d0 mm/slub.c:2000 ___slab_alloc+0x381/0x810 mm/slub.c:3033 __slab_alloc+0x49/0x90 mm/slub.c:3120 slab_alloc_node mm/slub.c:3211 [inline] slab_alloc mm/slub.c:3255 [inline] __kmalloc+0x16a/0x2c0 mm/slub.c:4432 kmalloc include/linux/slab.h:624 [inline] kzalloc include/linux/slab.h:750 [inline] __register_sysctl_table+0xeb/0x1250 fs/proc/proc_sysctl.c:1326 register_net_sysctl+0x238/0x250 net/sysctl_net.c:169 __addrconf_sysctl_register+0x277/0x3e0 net/ipv6/addrconf.c:7164 addrconf_sysctl_register+0x147/0x1a0 net/ipv6/addrconf.c:7211 ipv6_add_dev+0xc03/0x1150 net/ipv6/addrconf.c:456 addrconf_notify+0x582/0xde0 net/ipv6/addrconf.c:3600 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0x90/0x100 kernel/notifier.c:391 call_netdevice_notifiers_info net/core/dev.c:2070 [inline] call_netdevice_notifiers_extack net/core/dev.c:2082 [inline] call_netdevice_notifiers+0x119/0x190 net/core/dev.c:2096 page_owner free stack trace missing Memory state around the buggy address: ffff88812823e300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88812823e380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88812823e400: 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88812823e480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88812823e500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================