================================================================== BUG: KASAN: slab-out-of-bounds in __tcp_hdrlen include/linux/tcp.h:31 [inline] BUG: KASAN: slab-out-of-bounds in qdisc_pkt_len_segs_init+0x7f7/0xa30 net/core/dev.c:4142 Read of size 2 at addr ffff88815277f474 by task syz.3.7520/3845 CPU: 0 UID: 0 PID: 3845 Comm: syz.3.7520 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 __tcp_hdrlen include/linux/tcp.h:31 [inline] qdisc_pkt_len_segs_init+0x7f7/0xa30 net/core/dev.c:4142 __dev_queue_xmit+0x27f/0x37f0 net/core/dev.c:4784 dev_queue_xmit include/linux/netdevice.h:3436 [inline] br_dev_queue_push_xmit+0x370/0x4b0 net/bridge/br_forward.c:53 NF_HOOK+0x360/0x3f0 include/linux/netfilter.h:318 br_forward_finish+0xd3/0x130 net/bridge/br_forward.c:66 NF_HOOK+0x360/0x3f0 include/linux/netfilter.h:318 __br_forward+0x397/0x540 net/bridge/br_forward.c:115 deliver_clone net/bridge/br_forward.c:131 [inline] maybe_deliver net/bridge/br_forward.c:191 [inline] br_flood+0x3e6/0x8d0 net/bridge/br_forward.c:245 br_handle_frame_finish+0x1175/0x1990 net/bridge/br_input.c:229 nf_hook_bridge_pre net/bridge/br_input.c:313 [inline] br_handle_frame+0x81b/0x1510 net/bridge/br_input.c:442 __netif_receive_skb_core+0x989/0x30b0 net/core/dev.c:6091 __netif_receive_skb_list_core+0x24d/0x830 net/core/dev.c:6279 __netif_receive_skb_list net/core/dev.c:6346 [inline] netif_receive_skb_list_internal+0x995/0xcf0 net/core/dev.c:6437 gro_normal_list include/net/gro.h:523 [inline] gro_flush_normal include/net/gro.h:531 [inline] napi_complete_done+0x299/0x730 net/core/dev.c:6805 gro_cell_poll+0x5ab/0x5d0 net/core/gro_cells.c:74 __napi_poll+0xaa/0x330 net/core/dev.c:7727 napi_poll net/core/dev.c:7790 [inline] net_rx_action+0x61d/0xf50 net/core/dev.c:7947 handle_softirqs+0x225/0x840 kernel/softirq.c:622 do_softirq+0x76/0xd0 kernel/softirq.c:523 __local_bh_enable_ip+0xf8/0x130 kernel/softirq.c:450 local_bh_enable include/linux/bottom_half.h:33 [inline] tun_rx_batched+0x616/0x790 drivers/net/tun.c:-1 tun_get_user+0x2b04/0x4350 drivers/net/tun.c:1986 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2032 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x612/0xba0 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f195399ce59 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:00007f195487a028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f1953c15fa0 RCX: 00007f195399ce59 RDX: 000000000000fdef RSI: 00002000000002c0 RDI: 0000000000000004 RBP: 00007f1953a32d6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f1953c16038 R14: 00007f1953c15fa0 R15: 00007ffcda309928 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x152400 head: order:10 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x57ff00000000040(head|node=1|zone=2|lastcpupid=0x7ff) page_type: f8(unknown) raw: 057ff00000000040 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 head: 057ff00000000040 0000000000000000 dead000000000122 0000000000000000 head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 head: 057ff0000000000a ffffffffffff0001 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000400 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 10, migratetype Unmovable, gfp_mask 0x429c0(GFP_NOWAIT|__GFP_IO|__GFP_FS|__GFP_ZERO|__GFP_COMP), pid 31145, tgid 31143 (syz.4.6234), ts 721649803525, free_ts 721306707095 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x22d/0x280 mm/page_alloc.c:1853 prep_new_page mm/page_alloc.c:1861 [inline] get_page_from_freelist+0x24ae/0x2530 mm/page_alloc.c:3941 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5221 alloc_pages_mpol+0x212/0x380 mm/mempolicy.c:2490 ___kmalloc_large_node+0x4c/0x120 mm/slub.c:5237 __kmalloc_large_node_noprof+0x18/0x90 mm/slub.c:5268 __do_kmalloc_node mm/slub.c:5284 [inline] __kvmalloc_node_noprof+0x77/0x890 mm/slub.c:6833 kvmalloc_array_node_noprof include/linux/slab.h:1216 [inline] __ptr_ring_init_queue_alloc_noprof include/linux/ptr_ring.h:497 [inline] ptr_ring_resize_multiple_bh_noprof include/linux/ptr_ring.h:656 [inline] skb_array_resize_multiple_bh_noprof include/linux/skb_array.h:208 [inline] pfifo_fast_change_tx_queue_len+0x123/0xa50 net/sched/sch_generic.c:941 qdisc_change_tx_queue_len net/sched/sch_generic.c:1412 [inline] dev_qdisc_change_tx_queue_len+0x3b8/0x530 net/sched/sch_generic.c:1459 netif_change_tx_queue_len+0x184/0x290 net/core/dev.c:9931 do_setlink+0xf9c/0x4670 net/core/rtnetlink.c:3230 rtnl_group_changelink net/core/rtnetlink.c:3855 [inline] __rtnl_newlink net/core/rtnetlink.c:4023 [inline] rtnl_newlink+0x148e/0x1bd0 net/core/rtnetlink.c:4151 rtnetlink_rcv_msg+0x802/0xc00 net/core/rtnetlink.c:7068 netlink_rcv_skb+0x226/0x4a0 net/netlink/af_netlink.c:2556 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x7bb/0x940 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x813/0xb40 net/netlink/af_netlink.c:1900 page last free pid 31109 tgid 31109 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1397 [inline] __free_frozen_pages+0xc0d/0xd20 mm/page_alloc.c:2938 vfree+0x1fd/0x330 mm/vmalloc.c:3472 xskq_destroy+0x40/0x60 net/xdp/xsk_queue.c:64 xsk_release+0x6ff/0x980 net/xdp/xsk.c:1363 __sock_release net/socket.c:722 [inline] sock_close+0xad/0x220 net/socket.c:1515 __fput+0x418/0xa50 fs/file_table.c:510 task_work_run+0x1d9/0x270 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:67 [inline] exit_to_user_mode_loop+0x193/0x6b0 kernel/entry/common.c:98 __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+0x353/0x580 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88815277f300: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ffff88815277f380: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe >ffff88815277f400: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ^ ffff88815277f480: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ffff88815277f500: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ==================================================================