netlink: 1996 bytes leftover after parsing attributes in process `syz-executor576'. sch_tbf: burst 549 is lower than device lo mtu (65550) ! ================================================================== BUG: KASAN: slab-out-of-bounds in __tcp_hdrlen include/linux/tcp.h:31 [inline] BUG: KASAN: slab-out-of-bounds in tcp_hdrlen include/linux/tcp.h:36 [inline] BUG: KASAN: slab-out-of-bounds in skb_gso_transport_seglen+0x344/0x360 net/core/skbuff.c:5266 Read of size 2 at addr ffff8880a6d1765c by task syz-executor576/7127 CPU: 0 PID: 7127 Comm: syz-executor576 Not tainted 5.7.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x188/0x20d lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xd3/0x315 mm/kasan/report.c:382 __kasan_report.cold+0x35/0x4d mm/kasan/report.c:511 kasan_report+0x33/0x50 mm/kasan/common.c:625 __tcp_hdrlen include/linux/tcp.h:31 [inline] tcp_hdrlen include/linux/tcp.h:36 [inline] skb_gso_transport_seglen+0x344/0x360 net/core/skbuff.c:5266 skb_gso_mac_seglen net/core/skbuff.c:5310 [inline] skb_gso_validate_mac_len+0x85/0x290 net/core/skbuff.c:5381 tbf_enqueue+0x1f2/0x990 net/sched/sch_tbf.c:233 __dev_xmit_skb net/core/dev.c:3710 [inline] __dev_queue_xmit+0x154a/0x30a0 net/core/dev.c:4021 packet_snd net/packet/af_packet.c:2979 [inline] packet_sendmsg+0x23cc/0x5ce0 net/packet/af_packet.c:3004 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:672 __sys_sendto+0x220/0x330 net/socket.c:2000 __do_sys_sendto net/socket.c:2012 [inline] __se_sys_sendto net/socket.c:2008 [inline] __ia32_sys_sendto+0xdb/0x1b0 net/socket.c:2008 do_syscall_32_irqs_on arch/x86/entry/common.c:337 [inline] do_fast_syscall_32+0x270/0xe90 arch/x86/entry/common.c:396 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 Allocated by task 7127: save_stack+0x1b/0x40 mm/kasan/common.c:49 set_track mm/kasan/common.c:57 [inline] __kasan_kmalloc mm/kasan/common.c:495 [inline] __kasan_kmalloc.constprop.0+0xbf/0xd0 mm/kasan/common.c:468 __kmalloc_reserve.isra.0+0x39/0xe0 net/core/skbuff.c:142 __alloc_skb+0xef/0x5a0 net/core/skbuff.c:210 alloc_skb include/linux/skbuff.h:1083 [inline] alloc_skb_with_frags+0x92/0x560 net/core/skbuff.c:5772 sock_alloc_send_pskb+0x734/0x890 net/core/sock.c:2265 packet_alloc_skb net/packet/af_packet.c:2827 [inline] packet_snd net/packet/af_packet.c:2922 [inline] packet_sendmsg+0x1947/0x5ce0 net/packet/af_packet.c:3004 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:672 __sys_sendto+0x220/0x330 net/socket.c:2000 __do_sys_sendto net/socket.c:2012 [inline] __se_sys_sendto net/socket.c:2008 [inline] __ia32_sys_sendto+0xdb/0x1b0 net/socket.c:2008 do_syscall_32_irqs_on arch/x86/entry/common.c:337 [inline] do_fast_syscall_32+0x270/0xe90 arch/x86/entry/common.c:396 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 Freed by task 6967: save_stack+0x1b/0x40 mm/kasan/common.c:49 set_track mm/kasan/common.c:57 [inline] kasan_set_free_info mm/kasan/common.c:317 [inline] __kasan_slab_free+0xf7/0x140 mm/kasan/common.c:456 __cache_free mm/slab.c:3426 [inline] kfree+0x109/0x2b0 mm/slab.c:3757 tomoyo_supervisor+0x34d/0xee0 security/tomoyo/common.c:2149 tomoyo_audit_path_log security/tomoyo/file.c:168 [inline] tomoyo_path_permission security/tomoyo/file.c:587 [inline] tomoyo_path_permission+0x257/0x360 security/tomoyo/file.c:573 tomoyo_check_open_permission+0x336/0x370 security/tomoyo/file.c:777 tomoyo_file_open security/tomoyo/tomoyo.c:319 [inline] tomoyo_file_open+0xa3/0xd0 security/tomoyo/tomoyo.c:314 security_file_open+0x6e/0x410 security/security.c:1548 do_dentry_open+0x358/0x1290 fs/open.c:784 do_open fs/namei.c:3229 [inline] path_openat+0x1e59/0x27d0 fs/namei.c:3346 do_filp_open+0x192/0x260 fs/namei.c:3373 do_sys_openat2+0x585/0x7d0 fs/open.c:1148 do_sys_open+0xc3/0x140 fs/open.c:1164 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 The buggy address belongs to the object at ffff8880a6d17400 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 92 bytes to the right of 512-byte region [ffff8880a6d17400, ffff8880a6d17600) The buggy address belongs to the page: page:ffffea00029b45c0 refcount:1 mapcount:0 mapping:00000000bdc4e33c index:0x0 flags: 0xfffe0000000200(slab) raw: 00fffe0000000200 ffffea00028c6ac8 ffffea00028dca48 ffff8880aa000a80 raw: 0000000000000000 ffff8880a6d17000 0000000100000004 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a6d17500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880a6d17580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880a6d17600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880a6d17680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880a6d17700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================