================================================================== 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 ffff888133e0c470 by task kswapd0/46 CPU: 0 PID: 46 Comm: kswapd0 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 Call Trace: __dump_stack+0x21/0x30 lib/dump_stack.c:88 dump_stack_lvl+0xee/0x150 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/0x420 mm/filemap.c:240 __remove_mapping+0x60b/0x930 mm/vmscan.c:1216 shrink_page_list+0x2778/0x5040 mm/vmscan.c:1824 shrink_inactive_list mm/vmscan.c:2331 [inline] shrink_list mm/vmscan.c:2576 [inline] shrink_lruvec+0x10f3/0x36a0 mm/vmscan.c:5793 shrink_node_memcgs mm/vmscan.c:5985 [inline] shrink_node+0x11e9/0x2a70 mm/vmscan.c:6015 kswapd_shrink_node mm/vmscan.c:6766 [inline] balance_pgdat+0xfba/0x2150 mm/vmscan.c:6956 kswapd+0x649/0xcf0 mm/vmscan.c:7215 kthread+0x411/0x500 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Allocated by task 4909: 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/0x350 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+0x102/0x350 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+0xde/0x1f0 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+0x102/0x350 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:638 blk_crypto_start_using_key+0x9e/0xf0 block/blk-crypto.c:408 fscrypt_prepare_inline_crypt_key+0x58f/0x7d0 fs/crypto/inline_crypt.c:178 fscrypt_prepare_key+0x6a/0x4b0 fs/crypto/keysetup.c:142 fscrypt_set_per_file_enc_key+0x7c/0xb0 fs/crypto/keysetup.c:173 setup_v1_file_key_derived fs/crypto/keysetup_v1.c:285 [inline] fscrypt_setup_v1_file_key+0x721/0x940 fs/crypto/keysetup_v1.c:296 setup_file_encryption_key fs/crypto/keysetup.c:522 [inline] fscrypt_setup_encryption_info+0x760/0xd10 fs/crypto/keysetup.c:604 fscrypt_prepare_new_inode+0x221/0x300 fs/crypto/keysetup.c:749 __ext4_new_inode+0x6fe/0x3690 fs/ext4/ialloc.c:991 ext4_create+0x22a/0x460 fs/ext4/namei.c:2883 lookup_open fs/namei.c:3470 [inline] open_last_lookups fs/namei.c:3540 [inline] path_openat+0x11ae/0x2f10 fs/namei.c:3747 do_filp_open+0x1b3/0x3e0 fs/namei.c:3777 do_sys_openat2+0x14c/0x7b0 fs/open.c:1234 do_sys_open fs/open.c:1250 [inline] __do_sys_openat fs/open.c:1266 [inline] __se_sys_openat fs/open.c:1261 [inline] __x64_sys_openat+0x136/0x160 fs/open.c:1261 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+0xd2/0x140 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+0x51d/0xba0 kernel/rcu/tree.c:2523 rcu_core+0x5e4/0xf80 kernel/rcu/tree.c:2763 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2776 handle_softirqs+0x250/0x560 kernel/softirq.c:583 run_ksoftirqd+0x28/0x40 kernel/softirq.c:959 smpboot_thread_fn+0x45a/0x8c0 kernel/smpboot.c:164 kthread+0x411/0x500 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 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+0x105/0xfe0 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:4705 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+0x675/0x1020 fs/namespace.c:3364 do_mount fs/namespace.c:3377 [inline] __do_sys_mount fs/namespace.c:3585 [inline] __se_sys_mount+0x318/0x380 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 ffff888133e0c000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1136 bytes inside of 2048-byte region [ffff888133e0c000, ffff888133e0c800) The buggy address belongs to the page: page:ffffea0004cf8200 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x133e08 head:ffffea0004cf8200 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 dead000000000100 dead000000000122 ffff888100043200 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 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 1294, ts 83789291987, free_ts 83787982886 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+0x2cc5/0x2d50 mm/page_alloc.c:4485 __alloc_pages+0x18f/0x440 mm/page_alloc.c:5808 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] kmem_cache_alloc_trace+0x146/0x270 mm/slub.c:3272 kmalloc include/linux/slab.h:619 [inline] kzalloc include/linux/slab.h:750 [inline] ipv6_add_dev+0xd2/0x1150 net/ipv6/addrconf.c:386 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:2057 [inline] call_netdevice_notifiers_extack net/core/dev.c:2069 [inline] call_netdevice_notifiers+0x111/0x190 net/core/dev.c:2083 register_netdevice+0x1039/0x13a0 net/core/dev.c:10436 __ip_tunnel_create+0x2bf/0x380 net/ipv4/ip_tunnel.c:267 ip_tunnel_init_net+0x290/0x740 net/ipv4/ip_tunnel.c:1084 erspan_init_net+0x29/0x30 net/ipv4/ip_gre.c:1723 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1472 [inline] free_pcp_prepare mm/page_alloc.c:1544 [inline] free_unref_page_prepare+0x542/0x550 mm/page_alloc.c:3534 free_unref_page+0xa2/0x550 mm/page_alloc.c:3616 free_the_page mm/page_alloc.c:805 [inline] __free_pages+0x6c/0x100 mm/page_alloc.c:5884 __free_slab+0xe8/0x1e0 mm/slub.c:2025 free_slab mm/slub.c:2040 [inline] discard_slab mm/slub.c:2046 [inline] __unfreeze_partials+0x160/0x190 mm/slub.c:2532 put_cpu_partial+0xc6/0x120 mm/slub.c:2612 __slab_free+0x1d4/0x290 mm/slub.c:3395 do_slab_free mm/slub.c:3514 [inline] ___cache_free+0x104/0x120 mm/slub.c:3535 qlink_free+0x4d/0x90 mm/kasan/quarantine.c:157 qlist_free_all+0x5f/0xb0 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x14a/0x170 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0x2f/0xf0 mm/kasan/common.c:443 kasan_slab_alloc include/linux/kasan.h:217 [inline] slab_post_alloc_hook+0x4f/0x2b0 mm/slab.h:550 slab_alloc_node mm/slub.c:3245 [inline] slab_alloc mm/slub.c:3255 [inline] kmem_cache_alloc_trace+0xfb/0x270 mm/slub.c:3272 kmalloc include/linux/slab.h:619 [inline] kzalloc include/linux/slab.h:750 [inline] mca_alloc net/ipv6/mcast.c:880 [inline] __ipv6_dev_mc_inc+0x37b/0x9a0 net/ipv6/mcast.c:935 ipv6_dev_mc_inc+0x1f/0x30 net/ipv6/mcast.c:956 Memory state around the buggy address: ffff888133e0c300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888133e0c380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888133e0c400: 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888133e0c480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888133e0c500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================