================================================================== 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+0x6d8/0x750 mm/filemap.c:167 Read of size 4 at addr ffff888117bad470 by task kswapd0/46 CPU: 1 PID: 46 Comm: kswapd0 Not tainted 5.15.178-syzkaller-00034-g5e1b899f19c3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x151/0x1c0 lib/dump_stack.c:106 print_address_description+0x87/0x3b0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:427 [inline] kasan_report+0x179/0x1c0 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+0x6d8/0x750 mm/filemap.c:167 __delete_from_page_cache+0xc6/0x5b0 mm/filemap.c:235 __remove_mapping+0x566/0x690 mm/vmscan.c:1208 shrink_page_list+0x2723/0x5c50 mm/vmscan.c:1805 shrink_inactive_list mm/vmscan.c:2312 [inline] shrink_list mm/vmscan.c:2557 [inline] shrink_lruvec+0x17ec/0x4580 mm/vmscan.c:5762 shrink_node_memcgs mm/vmscan.c:5954 [inline] shrink_node+0x1083/0x2550 mm/vmscan.c:5984 kswapd_shrink_node mm/vmscan.c:6734 [inline] balance_pgdat+0x15e1/0x2f50 mm/vmscan.c:6924 kswapd+0x698/0xd60 mm/vmscan.c:7183 kthread+0x421/0x510 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Allocated by task 23543: 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+0xdb/0x110 mm/kasan/common.c:512 __kasan_kmalloc+0x9/0x10 mm/kasan/common.c:521 kasan_kmalloc include/linux/kasan.h:227 [inline] __kmalloc_track_caller+0x13e/0x2c0 mm/slub.c:4954 kmalloc_reserve net/core/skbuff.c:357 [inline] pskb_expand_head+0x113/0x1240 net/core/skbuff.c:1733 __skb_cow include/linux/skbuff.h:3398 [inline] skb_cow_head include/linux/skbuff.h:3432 [inline] erspan_xmit+0x4c5/0x1690 net/ipv4/ip_gre.c:696 __netdev_start_xmit include/linux/netdevice.h:5056 [inline] netdev_start_xmit include/linux/netdevice.h:5070 [inline] xmit_one net/core/dev.c:3625 [inline] dev_hard_start_xmit+0x228/0x620 net/core/dev.c:3641 sch_direct_xmit+0x298/0x9b0 net/sched/sch_generic.c:342 __dev_xmit_skb net/core/dev.c:3860 [inline] __dev_queue_xmit+0x15b6/0x2e80 net/core/dev.c:4229 dev_queue_xmit+0x17/0x20 net/core/dev.c:4297 br_dev_queue_push_xmit+0x576/0x700 net/bridge/br_forward.c:53 NF_HOOK include/linux/netfilter.h:305 [inline] br_forward_finish+0xd3/0x2d0 net/bridge/br_forward.c:66 NF_HOOK include/linux/netfilter.h:305 [inline] __br_forward+0x473/0x5b0 net/bridge/br_forward.c:115 deliver_clone net/bridge/br_forward.c:131 [inline] maybe_deliver+0x1c0/0x2a0 net/bridge/br_forward.c:189 br_flood+0x2e5/0x420 net/bridge/br_forward.c:231 br_handle_frame_finish+0xf3f/0x12b0 net/bridge/br_input.c:180 nf_hook_bridge_pre net/bridge/br_input.c:264 [inline] br_handle_frame+0x8ea/0xf70 net/bridge/br_input.c:384 __netif_receive_skb_core+0x11af/0x3640 net/core/dev.c:5395 __netif_receive_skb_one_core net/core/dev.c:5499 [inline] __netif_receive_skb+0x11c/0x530 net/core/dev.c:5615 process_backlog+0x31c/0x650 net/core/dev.c:6492 __napi_poll+0xc4/0x5a0 net/core/dev.c:7051 napi_poll net/core/dev.c:7118 [inline] net_rx_action+0x47d/0xc50 net/core/dev.c:7208 handle_softirqs+0x25e/0x5c0 kernel/softirq.c:565 __do_softirq+0xb/0xd kernel/softirq.c:603 Freed by task 23543: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:45 kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:370 ____kasan_slab_free+0x126/0x160 mm/kasan/common.c:365 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:373 kasan_slab_free include/linux/kasan.h:193 [inline] slab_free_hook mm/slub.c:1723 [inline] slab_free_freelist_hook+0xbd/0x190 mm/slub.c:1749 slab_free mm/slub.c:3521 [inline] kfree+0xcc/0x270 mm/slub.c:4583 skb_free_head net/core/skbuff.c:656 [inline] skb_release_data+0x8a9/0xa80 net/core/skbuff.c:678 skb_release_all net/core/skbuff.c:743 [inline] __kfree_skb net/core/skbuff.c:757 [inline] kfree_skb_reason net/core/skbuff.c:778 [inline] kfree_skb+0xba/0x360 net/core/skbuff.c:792 ip_tunnel_xmit+0x15be/0x2760 net/ipv4/ip_tunnel.c:-1 __gre_xmit net/ipv4/ip_gre.c:474 [inline] erspan_xmit+0xaf8/0x1690 net/ipv4/ip_gre.c:723 __netdev_start_xmit include/linux/netdevice.h:5056 [inline] netdev_start_xmit include/linux/netdevice.h:5070 [inline] xmit_one net/core/dev.c:3625 [inline] dev_hard_start_xmit+0x228/0x620 net/core/dev.c:3641 sch_direct_xmit+0x298/0x9b0 net/sched/sch_generic.c:342 __dev_xmit_skb net/core/dev.c:3860 [inline] __dev_queue_xmit+0x15b6/0x2e80 net/core/dev.c:4229 dev_queue_xmit+0x17/0x20 net/core/dev.c:4297 br_dev_queue_push_xmit+0x576/0x700 net/bridge/br_forward.c:53 NF_HOOK include/linux/netfilter.h:305 [inline] br_forward_finish+0xd3/0x2d0 net/bridge/br_forward.c:66 NF_HOOK include/linux/netfilter.h:305 [inline] __br_forward+0x473/0x5b0 net/bridge/br_forward.c:115 deliver_clone net/bridge/br_forward.c:131 [inline] maybe_deliver+0x1c0/0x2a0 net/bridge/br_forward.c:189 br_flood+0x2e5/0x420 net/bridge/br_forward.c:231 br_handle_frame_finish+0xf3f/0x12b0 net/bridge/br_input.c:180 nf_hook_bridge_pre net/bridge/br_input.c:264 [inline] br_handle_frame+0x8ea/0xf70 net/bridge/br_input.c:384 __netif_receive_skb_core+0x11af/0x3640 net/core/dev.c:5395 __netif_receive_skb_one_core net/core/dev.c:5499 [inline] __netif_receive_skb+0x11c/0x530 net/core/dev.c:5615 process_backlog+0x31c/0x650 net/core/dev.c:6492 __napi_poll+0xc4/0x5a0 net/core/dev.c:7051 napi_poll net/core/dev.c:7118 [inline] net_rx_action+0x47d/0xc50 net/core/dev.c:7208 handle_softirqs+0x25e/0x5c0 kernel/softirq.c:565 __do_softirq+0xb/0xd kernel/softirq.c:603 The buggy address belongs to the object at ffff888117bad000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 112 bytes to the right of 1024-byte region [ffff888117bad000, ffff888117bad400) The buggy address belongs to the page: page:ffffea00045eea00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x117ba8 head:ffffea00045eea00 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 dead000000000100 dead000000000122 ffff888100043080 raw: 0000000000000000 0000000000100010 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 23543, ts 468617993515, free_ts 468476442610 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1a3/0x1b0 mm/page_alloc.c:2605 prep_new_page+0x1b/0x110 mm/page_alloc.c:2611 get_page_from_freelist+0x3550/0x35d0 mm/page_alloc.c:4485 __alloc_pages+0x27e/0x8f0 mm/page_alloc.c:5780 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1932 [inline] new_slab+0x9a/0x4e0 mm/slub.c:1995 ___slab_alloc+0x39e/0x830 mm/slub.c:3028 __slab_alloc+0x4a/0x90 mm/slub.c:3115 slab_alloc_node mm/slub.c:3206 [inline] slab_alloc mm/slub.c:3250 [inline] __kmalloc_track_caller+0x171/0x2c0 mm/slub.c:4949 kmalloc_reserve net/core/skbuff.c:357 [inline] pskb_expand_head+0x113/0x1240 net/core/skbuff.c:1733 __skb_cow include/linux/skbuff.h:3398 [inline] skb_cow_head include/linux/skbuff.h:3432 [inline] erspan_xmit+0x4c5/0x1690 net/ipv4/ip_gre.c:696 __netdev_start_xmit include/linux/netdevice.h:5056 [inline] netdev_start_xmit include/linux/netdevice.h:5070 [inline] xmit_one net/core/dev.c:3625 [inline] dev_hard_start_xmit+0x228/0x620 net/core/dev.c:3641 sch_direct_xmit+0x298/0x9b0 net/sched/sch_generic.c:342 __dev_xmit_skb net/core/dev.c:3860 [inline] __dev_queue_xmit+0x15b6/0x2e80 net/core/dev.c:4229 dev_queue_xmit+0x17/0x20 net/core/dev.c:4297 br_dev_queue_push_xmit+0x576/0x700 net/bridge/br_forward.c:53 NF_HOOK include/linux/netfilter.h:305 [inline] br_forward_finish+0xd3/0x2d0 net/bridge/br_forward.c:66 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+0x7c8/0x7d0 mm/page_alloc.c:3534 free_unref_page+0xe8/0x750 mm/page_alloc.c:3616 free_the_page mm/page_alloc.c:805 [inline] __free_pages+0x61/0xf0 mm/page_alloc.c:5856 __free_slab+0xec/0x1d0 mm/slub.c:2020 free_slab mm/slub.c:2035 [inline] discard_slab mm/slub.c:2041 [inline] __unfreeze_partials+0x165/0x1a0 mm/slub.c:2527 put_cpu_partial+0xc4/0x120 mm/slub.c:2607 __slab_free+0x1c8/0x290 mm/slub.c:3390 do_slab_free mm/slub.c:3509 [inline] ___cache_free+0x109/0x120 mm/slub.c:3530 qlink_free+0x4d/0x90 mm/kasan/quarantine.c:157 qlist_free_all+0x44/0xb0 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x15a/0x180 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0x2f/0xe0 mm/kasan/common.c:443 kasan_slab_alloc include/linux/kasan.h:217 [inline] slab_post_alloc_hook+0x53/0x2c0 mm/slab.h:550 slab_alloc_node mm/slub.c:3240 [inline] slab_alloc mm/slub.c:3250 [inline] kmem_cache_alloc+0xf5/0x250 mm/slub.c:3255 kmem_cache_alloc_node include/linux/slab.h:474 [inline] __alloc_skb+0xbe/0x550 net/core/skbuff.c:416 alloc_skb include/linux/skbuff.h:1183 [inline] alloc_skb_with_frags+0xa6/0x680 net/core/skbuff.c:6194 Memory state around the buggy address: ffff888117bad300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888117bad380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888117bad400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888117bad480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888117bad500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================