================================================================== BUG: KASAN: slab-out-of-bounds in tls_get_ctx include/net/tls.h:493 [inline] BUG: KASAN: slab-out-of-bounds in tls_sw_has_ctx_rx include/net/tls.h:601 [inline] BUG: KASAN: slab-out-of-bounds in ____sk_skb_adjust_room net/core/filter.c:3673 [inline] BUG: KASAN: slab-out-of-bounds in sk_skb_adjust_room+0x35e/0x590 net/core/filter.c:3650 Read of size 8 at addr ffff88807d6db780 by task syz.0.85/4493 CPU: 1 PID: 4493 Comm: syz.0.85 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 Call Trace: dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106 print_address_description+0x60/0x2d0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xdf/0x130 mm/kasan/report.c:451 tls_get_ctx include/net/tls.h:493 [inline] tls_sw_has_ctx_rx include/net/tls.h:601 [inline] ____sk_skb_adjust_room net/core/filter.c:3673 [inline] sk_skb_adjust_room+0x35e/0x590 net/core/filter.c:3650 bpf_prog_e15ab8bd9cea3c06+0x19/0x5b4 bpf_dispatcher_nop_func include/linux/bpf.h:890 [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+0x329/0x9a0 net/core/skmsg.c:1230 unix_read_sock+0x10a/0x2d0 net/unix/af_unix.c:2432 sk_psock_verdict_data_ready+0x167/0x1d0 net/core/skmsg.c:1253 unix_stream_sendmsg+0x7d1/0xc90 net/unix/af_unix.c:2110 sock_sendmsg_nosec net/socket.c:706 [inline] __sock_sendmsg net/socket.c:718 [inline] __sys_sendto+0x46d/0x620 net/socket.c:2073 __do_sys_sendto net/socket.c:2085 [inline] __se_sys_sendto net/socket.c:2081 [inline] __x64_sys_sendto+0xda/0xf0 net/socket.c:2081 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:0x7f67de75e199 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:00007f67dc9b6028 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 00007f67de9e5fa0 RCX: 00007f67de75e199 RDX: 0000000000000004 RSI: 0000200000000800 RDI: 0000000000000004 RBP: 00007f67de7f58e0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f67de9e6038 R14: 00007f67de9e5fa0 R15: 00007fff912768c8 Allocated by task 4493: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] __kasan_slab_alloc+0x92/0xc0 mm/kasan/common.c:467 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x4c/0x380 mm/slab.h:519 slab_alloc_node mm/slub.c:3225 [inline] slab_alloc mm/slub.c:3233 [inline] kmem_cache_alloc+0x15d/0x280 mm/slub.c:3238 sk_prot_alloc+0x57/0x210 net/core/sock.c:1859 sk_alloc+0x2f/0x310 net/core/sock.c:1921 unix_create1+0xad/0x610 net/unix/af_unix.c:-1 unix_create+0x139/0x1f0 net/unix/af_unix.c:929 __sock_create+0x473/0x910 net/socket.c:1496 sock_create net/socket.c:1552 [inline] __sys_socketpair+0x1bd/0x540 net/socket.c:1652 __do_sys_socketpair net/socket.c:1705 [inline] __se_sys_socketpair net/socket.c:1702 [inline] __x64_sys_socketpair+0x97/0xb0 net/socket.c:1702 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 ffff88807d6db000 which belongs to the cache UNIX-STREAM of size 1920 The buggy address is located 0 bytes to the right of 1920-byte region [ffff88807d6db000, ffff88807d6db780) The buggy address belongs to the page: page:ffffea0001f5b600 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88807d6de800 pfn:0x7d6d8 head:ffffea0001f5b600 order:3 compound_mapcount:0 compound_pincount:0 memcg:ffff88805f8d6801 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 dead000000000122 ffff888146365500 raw: ffff88807d6de800 0000000080100003 00000001ffffffff ffff88805f8d6801 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 4027, ts 51093134326, free_ts 51069574109 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x24f6/0x2670 mm/page_alloc.c:4192 __alloc_pages+0x1ee/0x480 mm/page_alloc.c:5501 alloc_slab_page mm/slub.c:1780 [inline] allocate_slab mm/slub.c:1917 [inline] new_slab+0xc0/0x4b0 mm/slub.c:1980 ___slab_alloc+0x807/0xdd0 mm/slub.c:3013 __slab_alloc mm/slub.c:3100 [inline] slab_alloc_node mm/slub.c:3191 [inline] slab_alloc mm/slub.c:3233 [inline] kmem_cache_alloc+0xf0/0x280 mm/slub.c:3238 sk_prot_alloc+0x57/0x210 net/core/sock.c:1859 sk_alloc+0x2f/0x310 net/core/sock.c:1921 unix_create1+0xad/0x610 net/unix/af_unix.c:-1 unix_stream_connect+0x308/0xf80 net/unix/af_unix.c:1352 __sys_connect_file net/socket.c:1933 [inline] __sys_connect+0x3cb/0x450 net/socket.c:1950 __do_sys_connect net/socket.c:1960 [inline] __se_sys_connect net/socket.c:1957 [inline] __x64_sys_connect+0x76/0x80 net/socket.c:1957 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 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3317 free_unref_page+0x8f/0x2a0 mm/page_alloc.c:3396 free_slab mm/slub.c:2020 [inline] discard_slab mm/slub.c:2026 [inline] __unfreeze_partials+0x188/0x1e0 mm/slub.c:2512 put_cpu_partial+0x12d/0x190 mm/slub.c:2592 qlist_free_all+0x35/0x90 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x150/0x160 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0x2f/0xc0 mm/kasan/common.c:444 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x4c/0x380 mm/slab.h:519 slab_alloc_node mm/slub.c:3225 [inline] slab_alloc mm/slub.c:3233 [inline] __kmalloc+0x189/0x340 mm/slub.c:4408 kmalloc include/linux/slab.h:612 [inline] kzalloc include/linux/slab.h:738 [inline] tomoyo_encode2 security/tomoyo/realpath.c:45 [inline] tomoyo_encode+0x28a/0x550 security/tomoyo/realpath.c:80 tomoyo_realpath_from_path+0x5a2/0x5e0 security/tomoyo/realpath.c:288 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_check_open_permission+0x1eb/0x410 security/tomoyo/file.c:771 security_file_open+0x5e/0xa0 security/security.c:1730 do_dentry_open+0x321/0xf90 fs/open.c:813 do_open fs/namei.c:3659 [inline] path_openat+0x2718/0x2fb0 fs/namei.c:3793 do_filp_open+0x1df/0x400 fs/namei.c:3820 Memory state around the buggy address: ffff88807d6db680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88807d6db700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88807d6db780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88807d6db800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88807d6db880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================