================================================================== BUG: KASAN: slab-out-of-bounds in ptep_get include/linux/pgtable.h:495 [inline] BUG: KASAN: slab-out-of-bounds in filemap_map_order0_folio mm/filemap.c:3873 [inline] BUG: KASAN: slab-out-of-bounds in filemap_map_pages+0x1cc2/0x1f80 mm/filemap.c:3949 Read of size 8 at addr ffff888054692f60 by task syz.4.2296/14516 CPU: 0 UID: 0 PID: 14516 Comm: syz.4.2296 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x13d/0x4b0 mm/kasan/report.c:482 kasan_report+0xdf/0x1c0 mm/kasan/report.c:595 ptep_get include/linux/pgtable.h:495 [inline] filemap_map_order0_folio mm/filemap.c:3873 [inline] filemap_map_pages+0x1cc2/0x1f80 mm/filemap.c:3949 do_fault_around mm/memory.c:5818 [inline] do_read_fault mm/memory.c:5851 [inline] do_fault+0x985/0x1750 mm/memory.c:5994 do_pte_missing mm/memory.c:4566 [inline] handle_pte_fault mm/memory.c:6379 [inline] __handle_mm_fault+0x187d/0x2a00 mm/memory.c:6517 handle_mm_fault+0x37b/0xa30 mm/memory.c:6686 do_user_addr_fault+0x74c/0x12f0 arch/x86/mm/fault.c:1394 handle_page_fault arch/x86/mm/fault.c:1483 [inline] exc_page_fault+0x6f/0xd0 arch/x86/mm/fault.c:1536 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:595 RIP: 0010:rep_movs_alternative+0x30/0xa0 arch/x86/lib/copy_user_64.S:60 Code: 83 f9 08 73 25 85 c9 74 0f 8a 06 88 07 48 ff c7 48 ff c6 48 ff c9 75 f1 e9 bd 9d 04 00 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 <48> 8b 06 48 89 07 48 83 c6 08 48 83 c7 08 83 e9 08 74 db 83 f9 08 RSP: 0018:ffffc90004a57a50 EFLAGS: 00050206 RAX: 0000000000000001 RBX: 00002000000a5000 RCX: 0000000000000038 RDX: 0000000000000001 RSI: 00002000000a5000 RDI: ffffc90004a57aa8 RBP: 0000000000000038 R08: 0000000000000001 R09: fffff5200094af5b R10: ffffc90004a57adf R11: 0000000000000000 R12: 0000000000000000 R13: ffffc90004a57aa8 R14: 00002000000a5000 R15: dffffc0000000000 copy_user_generic arch/x86/include/asm/uaccess_64.h:126 [inline] raw_copy_from_user arch/x86/include/asm/uaccess_64.h:141 [inline] _inline_copy_from_user include/linux/uaccess.h:185 [inline] _copy_from_user+0x98/0xd0 lib/usercopy.c:18 copy_from_user include/linux/uaccess.h:222 [inline] copy_msghdr_from_user+0x9f/0x4c0 net/socket.c:2614 recvmsg_copy_msghdr net/socket.c:2870 [inline] ___sys_recvmsg+0xdd/0x1a0 net/socket.c:2942 do_recvmmsg+0x2f3/0x740 net/socket.c:3041 __sys_recvmmsg net/socket.c:3115 [inline] __do_sys_recvmmsg net/socket.c:3138 [inline] __se_sys_recvmmsg net/socket.c:3131 [inline] __x64_sys_recvmmsg+0x22a/0x280 net/socket.c:3131 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x115/0x870 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f244df9ce59 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:00007f244ee49028 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 00007f244e216180 RCX: 00007f244df9ce59 RDX: 0000000000010106 RSI: 00002000000000c0 RDI: 0000000000000005 RBP: 00007f244e032e6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f244e216218 R14: 00007f244e216180 R15: 00007ffe1d851618 Allocated by task 6002: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 unpoison_slab_object mm/kasan/common.c:340 [inline] __kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:366 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4610 [inline] slab_alloc_node mm/slub.c:4939 [inline] kmem_cache_alloc_noprof+0x241/0x6d0 mm/slub.c:4946 skb_clone+0x190/0x400 net/core/skbuff.c:2110 do_one_broadcast net/netlink/af_netlink.c:1456 [inline] netlink_broadcast_filtered+0xb22/0xf20 net/netlink/af_netlink.c:1539 netlink_broadcast net/netlink/af_netlink.c:1563 [inline] netlink_sendmsg+0xa16/0xda0 net/netlink/af_netlink.c:1898 sock_sendmsg_nosec net/socket.c:775 [inline] __sock_sendmsg net/socket.c:790 [inline] ____sys_sendmsg+0xa4d/0xbe0 net/socket.c:2684 ___sys_sendmsg+0x190/0x1e0 net/socket.c:2738 __sys_sendmsg+0x160/0x210 net/socket.c:2770 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x115/0x870 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 6002: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 kasan_save_free_info+0x3b/0x70 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x5f/0x80 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2700 [inline] slab_free mm/slub.c:6310 [inline] kmem_cache_free+0x127/0x6b0 mm/slub.c:6437 kfree_skbmem+0x19a/0x210 net/core/skbuff.c:1139 __kfree_skb net/core/skbuff.c:1206 [inline] sk_skb_reason_drop+0x10f/0x1b0 net/core/skbuff.c:1244 kfree_skb_reason include/linux/skbuff.h:1323 [inline] kfree_skb include/linux/skbuff.h:1332 [inline] do_one_broadcast net/netlink/af_netlink.c:1476 [inline] netlink_broadcast_filtered+0xa91/0xf20 net/netlink/af_netlink.c:1539 netlink_broadcast net/netlink/af_netlink.c:1563 [inline] netlink_sendmsg+0xa16/0xda0 net/netlink/af_netlink.c:1898 sock_sendmsg_nosec net/socket.c:775 [inline] __sock_sendmsg net/socket.c:790 [inline] ____sys_sendmsg+0xa4d/0xbe0 net/socket.c:2684 ___sys_sendmsg+0x190/0x1e0 net/socket.c:2738 __sys_sendmsg+0x160/0x210 net/socket.c:2770 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x115/0x870 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888054692dc0 which belongs to the cache skbuff_head_cache of size 240 The buggy address is located 176 bytes to the right of allocated 240-byte region [ffff888054692dc0, ffff888054692eb0) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x54692 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000000 ffff888020284640 dead000000000100 dead000000000122 raw: 0000000000000000 00000008000c000c 00000000f5000000 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x1d2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 14476, tgid 14476 (syz.0.2282), ts 737176659585, free_ts 737175197118 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1859 prep_new_page mm/page_alloc.c:1867 [inline] get_page_from_freelist+0xf48/0x3530 mm/page_alloc.c:3946 __alloc_frozen_pages_noprof+0x299/0x2dc0 mm/page_alloc.c:5304 alloc_slab_page mm/slub.c:3289 [inline] allocate_slab mm/slub.c:3404 [inline] new_slab+0xa2/0x670 mm/slub.c:3447 refill_objects+0xe3/0x430 mm/slub.c:7241 refill_sheaf mm/slub.c:2827 [inline] __pcs_replace_empty_main+0x375/0x660 mm/slub.c:4692 alloc_from_pcs mm/slub.c:4790 [inline] slab_alloc_node mm/slub.c:4924 [inline] kmem_cache_alloc_noprof+0x47a/0x6d0 mm/slub.c:4946 skb_clone+0x190/0x400 net/core/skbuff.c:2110 dev_queue_xmit_nit+0x255/0xa60 net/core/dev.c:2575 xmit_one net/core/dev.c:3885 [inline] dev_hard_start_xmit+0x2f5/0x760 net/core/dev.c:3905 sch_direct_xmit+0x1b2/0xc70 net/sched/sch_generic.c:372 __dev_xmit_skb net/core/dev.c:4211 [inline] __dev_queue_xmit+0x278a/0x4940 net/core/dev.c:4833 dev_queue_xmit include/linux/netdevice.h:3436 [inline] neigh_hh_output include/net/neighbour.h:544 [inline] neigh_output include/net/neighbour.h:558 [inline] ip_finish_output2+0xf4a/0x2400 net/ipv4/ip_output.c:236 __ip_finish_output.part.0+0x444/0x6f0 net/ipv4/ip_output.c:314 __ip_finish_output net/ipv4/ip_output.c:302 [inline] ip_finish_output net/ipv4/ip_output.c:324 [inline] NF_HOOK_COND include/linux/netfilter.h:307 [inline] ip_output+0x39b/0xc10 net/ipv4/ip_output.c:437 dst_output include/net/dst.h:470 [inline] ip_local_out+0x193/0x1f0 net/ipv4/ip_output.c:131 page last free pid 14463 tgid 14462 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1406 [inline] __free_frozen_pages+0x79f/0x1090 mm/page_alloc.c:2950 tlb_batch_list_free mm/mmu_gather.c:161 [inline] tlb_finish_mmu+0x27d/0x810 mm/mmu_gather.c:552 exit_mmap+0x454/0xa00 mm/mmap.c:1313 __mmput+0x12a/0x410 kernel/fork.c:1182 mmput+0x67/0x80 kernel/fork.c:1205 exit_mm kernel/exit.c:610 [inline] do_exit+0x8b1/0x2ae0 kernel/exit.c:992 do_group_exit+0xd5/0x2a0 kernel/exit.c:1147 get_signal+0x1ec7/0x21e0 kernel/signal.c:3038 arch_do_signal_or_restart+0x91/0x7e0 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:66 [inline] exit_to_user_mode_loop+0x139/0x6f0 kernel/entry/common.c:101 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:318 [inline] do_syscall_64+0x666/0x870 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff888054692e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888054692e80: fb fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc >ffff888054692f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888054692f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888054693000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ---------------- Code disassembly (best guess): 0: 83 f9 08 cmp $0x8,%ecx 3: 73 25 jae 0x2a 5: 85 c9 test %ecx,%ecx 7: 74 0f je 0x18 9: 8a 06 mov (%rsi),%al b: 88 07 mov %al,(%rdi) d: 48 ff c7 inc %rdi 10: 48 ff c6 inc %rsi 13: 48 ff c9 dec %rcx 16: 75 f1 jne 0x9 18: e9 bd 9d 04 00 jmp 0x49dda 1d: 66 66 2e 0f 1f 84 00 data16 cs nopw 0x0(%rax,%rax,1) 24: 00 00 00 00 28: 66 90 xchg %ax,%ax * 2a: 48 8b 06 mov (%rsi),%rax <-- trapping instruction 2d: 48 89 07 mov %rax,(%rdi) 30: 48 83 c6 08 add $0x8,%rsi 34: 48 83 c7 08 add $0x8,%rdi 38: 83 e9 08 sub $0x8,%ecx 3b: 74 db je 0x18 3d: 83 f9 08 cmp $0x8,%ecx