netlink: 'syz-executor7': attribute type 1 has an invalid length. ================================================================== BUG: KASAN: slab-out-of-bounds in setup_udp_tunnel_sock+0x3ee/0x5f0 net/ipv4/udp_tunnel.c:69 dst_release: dst:00000000d53d0d0f refcnt:-1 Write of size 1 at addr ffff8801d013b798 by task syz-executor3/6242 CPU: 1 PID: 6242 Comm: syz-executor3 Not tainted 4.16.0-rc2+ #253 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x194/0x24d lib/dump_stack.c:53 print_address_description+0x73/0x250 mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report+0x23b/0x360 mm/kasan/report.c:412 __asan_report_store1_noabort+0x17/0x20 mm/kasan/report.c:435 setup_udp_tunnel_sock+0x3ee/0x5f0 net/ipv4/udp_tunnel.c:69 l2tp_tunnel_create+0x1354/0x17f0 net/l2tp/l2tp_core.c:1596 pppol2tp_connect+0x14b1/0x1dd0 net/l2tp/l2tp_ppp.c:707 SYSC_connect+0x213/0x4a0 net/socket.c:1640 SyS_connect+0x24/0x30 net/socket.c:1621 do_syscall_64+0x280/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x453e69 RSP: 002b:00007fab15301c68 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 00007fab153026d4 RCX: 0000000000453e69 RDX: 000000000000002e RSI: 00000000200000c0 RDI: 0000000000000013 RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 000000000000005c R14: 00000000006f0940 R15: 0000000000000000 Allocated by task 6242: save_stack+0x43/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:552 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:489 kmem_cache_alloc+0x12e/0x760 mm/slab.c:3541 sk_prot_alloc+0x65/0x2a0 net/core/sock.c:1469 sk_alloc+0x105/0x1440 net/core/sock.c:1529 inet_create+0x47c/0xf50 net/ipv4/af_inet.c:320 __sock_create+0x4d4/0x850 net/socket.c:1285 sock_create net/socket.c:1325 [inline] SYSC_socket net/socket.c:1355 [inline] SyS_socket+0xeb/0x1d0 net/socket.c:1335 do_syscall_64+0x280/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x42/0xb7 Freed by task 27000: save_stack+0x43/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] __kasan_slab_free+0x11a/0x170 mm/kasan/kasan.c:520 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:527 __cache_free mm/slab.c:3485 [inline] kmem_cache_free+0x83/0x2a0 mm/slab.c:3743 sk_prot_free net/core/sock.c:1510 [inline] __sk_destruct+0x628/0x920 net/core/sock.c:1594 sk_destruct+0x47/0x80 net/core/sock.c:1602 __sk_free+0xf1/0x2b0 net/core/sock.c:1613 sk_free+0x2a/0x40 net/core/sock.c:1624 sock_put include/net/sock.h:1659 [inline] sk_common_release+0x1f0/0x2f0 net/core/sock.c:3030 raw_close+0x2b/0x30 net/ipv4/raw.c:718 inet_release+0xed/0x1c0 net/ipv4/af_inet.c:427 sock_release+0x8d/0x1e0 net/socket.c:594 sock_close+0x16/0x20 net/socket.c:1149 __fput+0x327/0x7e0 fs/file_table.c:209 ____fput+0x15/0x20 fs/file_table.c:243 task_work_run+0x199/0x270 kernel/task_work.c:113 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0x9bb/0x1ad0 kernel/exit.c:865 do_group_exit+0x149/0x400 kernel/exit.c:968 get_signal+0x73a/0x16d0 kernel/signal.c:2469 do_signal+0x90/0x1e90 arch/x86/kernel/signal.c:809 exit_to_usermode_loop+0x258/0x2f0 arch/x86/entry/common.c:162 prepare_exit_to_usermode arch/x86/entry/common.c:196 [inline] syscall_return_slowpath arch/x86/entry/common.c:265 [inline] do_syscall_64+0x6e5/0x940 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 The buggy address belongs to the object at ffff8801d013b280 which belongs to the cache RAW of size 1304 The buggy address is located 0 bytes to the right of 1304-byte region [ffff8801d013b280, ffff8801d013b798) The buggy address belongs to the page: page:ffffea0007404e80 count:1 mapcount:0 mapping:ffff8801d013a140 index:0x0 compound_mapcount: 0 flags: 0x2fffc0000008100(slab|head) raw: 02fffc0000008100 ffff8801d013a140 0000000000000000 0000000100000005 raw: ffffea0006b3dc20 ffffea00076372a0 ffff8801d6be81c0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801d013b680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8801d013b700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8801d013b780: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8801d013b800: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ffff8801d013b880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================