================================================================== BUG: KASAN: slab-out-of-bounds in tls_get_ctx include/net/tls.h:507 [inline] BUG: KASAN: slab-out-of-bounds in tls_sw_has_ctx_rx include/net/tls.h:615 [inline] BUG: KASAN: slab-out-of-bounds in ____sk_skb_adjust_room net/core/filter.c:3646 [inline] BUG: KASAN: slab-out-of-bounds in sk_skb_adjust_room+0x389/0x5c0 net/core/filter.c:3623 Read of size 8 at addr ffff88810cbc5a28 by task syz.5.57/496 CPU: 0 PID: 496 Comm: syz.5.57 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/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+0x10f/0x150 mm/kasan/report.c:444 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report_generic.c:309 tls_get_ctx include/net/tls.h:507 [inline] tls_sw_has_ctx_rx include/net/tls.h:615 [inline] ____sk_skb_adjust_room net/core/filter.c:3646 [inline] sk_skb_adjust_room+0x389/0x5c0 net/core/filter.c:3623 bpf_prog_e15ab8bd9cea3c06+0x19/0x684 bpf_dispatcher_nop_func include/linux/bpf.h:786 [inline] __bpf_prog_run include/linux/filter.h:628 [inline] bpf_prog_run include/linux/filter.h:635 [inline] bpf_prog_run_pin_on_cpu include/linux/filter.h:652 [inline] sk_psock_verdict_recv+0x245/0x7f0 net/core/skmsg.c:1233 unix_read_sock+0x108/0x2d0 net/unix/af_unix.c:2439 unix_stream_read_sock+0x61/0x90 net/unix/af_unix.c:2615 sk_psock_verdict_data_ready+0x167/0x1d0 net/core/skmsg.c:1256 unix_stream_sendmsg+0x7d1/0xc90 net/unix/af_unix.c:2117 sock_sendmsg_nosec net/socket.c:704 [inline] __sock_sendmsg net/socket.c:716 [inline] __sys_sendto+0x46d/0x620 net/socket.c:2063 __do_sys_sendto net/socket.c:2075 [inline] __se_sys_sendto net/socket.c:2071 [inline] __x64_sys_sendto+0xe5/0x100 net/socket.c:2071 x64_sys_call+0x178/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:45 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:0x7ff15cc2bb19 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:00007ff15b683028 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 00007ff15ceb1fa0 RCX: 00007ff15cc2bb19 RDX: 0000000000000004 RSI: 0000200000000540 RDI: 0000000000000005 RBP: 00007ff15ccc3b70 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ff15ceb2038 R14: 00007ff15ceb1fa0 R15: 00007fff04445878 Allocated by task 496: 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_slab_alloc+0xb7/0xe0 mm/kasan/common.c:466 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+0xf7/0x260 mm/slub.c:3260 sk_prot_alloc+0x5f/0x320 net/core/sock.c:1861 sk_alloc+0x38/0x430 net/core/sock.c:1927 unix_create1+0xb4/0x610 net/unix/af_unix.c:-1 unix_create+0x149/0x200 net/unix/af_unix.c:933 __sock_create+0x38d/0x7a0 net/socket.c:1486 sock_create net/socket.c:1542 [inline] __sys_socketpair+0x1a1/0x590 net/socket.c:1642 __do_sys_socketpair net/socket.c:1695 [inline] __se_sys_socketpair net/socket.c:1692 [inline] __x64_sys_socketpair+0x9b/0xb0 net/socket.c:1692 x64_sys_call+0x36/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:54 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 ffff88810cbc5500 which belongs to the cache UNIX-STREAM of size 1216 The buggy address is located 104 bytes to the right of 1216-byte region [ffff88810cbc5500, ffff88810cbc59c0) The buggy address belongs to the page: page:ffffea000432f100 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10cbc4 head:ffffea000432f100 order:2 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 0000000000000000 0000000100000001 ffff8881081eac00 raw: 0000000000000000 00000000800c000c 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 86, ts 3485138834, free_ts 3484719206 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x192/0x1b0 mm/page_alloc.c:2610 prep_new_page+0x1c/0x110 mm/page_alloc.c:2616 get_page_from_freelist+0x2d42/0x2dd0 mm/page_alloc.c:4492 __alloc_pages+0x1a2/0x460 mm/page_alloc.c:5829 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1937 [inline] new_slab+0xa0/0x4d0 mm/slub.c:2000 ___slab_alloc+0x3ac/0x840 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+0x138/0x260 mm/slub.c:3260 sk_prot_alloc+0x5f/0x320 net/core/sock.c:1861 sk_alloc+0x38/0x430 net/core/sock.c:1927 unix_create1+0xb4/0x610 net/unix/af_unix.c:-1 unix_create+0x149/0x200 net/unix/af_unix.c:933 __sock_create+0x38d/0x7a0 net/socket.c:1486 sock_create net/socket.c:1542 [inline] __sys_socket+0xec/0x190 net/socket.c:1584 __do_sys_socket net/socket.c:1593 [inline] __se_sys_socket net/socket.c:1591 [inline] __x64_sys_socket+0x7a/0x90 net/socket.c:1591 x64_sys_call+0x8c5/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:42 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1477 [inline] free_pcp_prepare mm/page_alloc.c:1549 [inline] free_unref_page_prepare+0x5fa/0x600 mm/page_alloc.c:3540 free_unref_page+0xae/0x540 mm/page_alloc.c:3622 free_the_page mm/page_alloc.c:808 [inline] __free_pages+0x6c/0x100 mm/page_alloc.c:5905 free_pages+0x82/0x90 mm/page_alloc.c:5916 __stack_depot_save+0x453/0x480 lib/stackdepot.c:358 kasan_save_stack mm/kasan/common.c:39 [inline] kasan_set_track+0x5b/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: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:1728 [inline] slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1754 slab_free mm/slub.c:3526 [inline] kfree+0xc4/0x270 mm/slub.c:4588 skb_free_head net/core/skbuff.c:656 [inline] skb_release_data+0x7bd/0xa20 net/core/skbuff.c:678 skb_release_all net/core/skbuff.c:743 [inline] __kfree_skb net/core/skbuff.c:757 [inline] consume_skb+0xab/0x1f0 net/core/skbuff.c:934 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x874/0xa30 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x879/0xb80 net/netlink/af_netlink.c:1923 sock_sendmsg_nosec net/socket.c:704 [inline] __sock_sendmsg net/socket.c:716 [inline] ____sys_sendmsg+0x5be/0x8f0 net/socket.c:2436 Memory state around the buggy address: ffff88810cbc5900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88810cbc5980: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc >ffff88810cbc5a00: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 ^ ffff88810cbc5a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88810cbc5b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================