netlink: 32 bytes leftover after parsing attributes in process `syz-executor.3'. ================================================================== BUG: KASAN: stack-out-of-bounds in nla_type include/net/netlink.h:1130 [inline] BUG: KASAN: stack-out-of-bounds in xfrm_xlate32_attr net/xfrm/xfrm_compat.c:410 [inline] BUG: KASAN: stack-out-of-bounds in xfrm_xlate32 net/xfrm/xfrm_compat.c:532 [inline] BUG: KASAN: stack-out-of-bounds in xfrm_user_rcv_msg_compat+0xe89/0x1070 net/xfrm/xfrm_compat.c:577 Read of size 2 at addr ffffc9000c40755a by task syz-executor.3/25396 CPU: 0 PID: 25396 Comm: syz-executor.3 Tainted: G W 5.13.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:96 print_address_description.constprop.0.cold+0xf/0x309 mm/kasan/report.c:233 __kasan_report mm/kasan/report.c:419 [inline] kasan_report.cold+0x83/0xdf mm/kasan/report.c:436 nla_type include/net/netlink.h:1130 [inline] xfrm_xlate32_attr net/xfrm/xfrm_compat.c:410 [inline] xfrm_xlate32 net/xfrm/xfrm_compat.c:532 [inline] xfrm_user_rcv_msg_compat+0xe89/0x1070 net/xfrm/xfrm_compat.c:577 xfrm_user_rcv_msg+0x556/0x8b0 net/xfrm/xfrm_user.c:2774 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2504 xfrm_netlink_rcv+0x6b/0x90 net/xfrm/xfrm_user.c:2824 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline] netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1340 netlink_sendmsg+0x85b/0xda0 net/netlink/af_netlink.c:1929 sock_sendmsg_nosec net/socket.c:702 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:722 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2385 ___sys_sendmsg+0xf3/0x170 net/socket.c:2439 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2468 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0x65/0xf0 arch/x86/entry/common.c:178 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:203 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf7f22549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f551c5fc EFLAGS: 00000296 ORIG_RAX: 0000000000000172 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000200000c0 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 addr ffffc9000c40755a is located in stack of task syz-executor.3/25396 at offset 346 in frame: xfrm_user_rcv_msg_compat+0x0/0x1070 include/net/netlink.h:1173 this frame has 2 objects: [32, 40) 'pos' [64, 320) 'attrs' Memory state around the buggy address: ffffc9000c407400: f1 f1 f1 f1 00 f2 f2 f2 00 00 00 00 00 00 00 00 ffffc9000c407480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc9000c407500: 00 00 00 00 00 00 00 00 f3 f3 f3 f3 f3 f3 f3 f3 ^ ffffc9000c407580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc9000c407600: f1 f1 f1 f1 f1 f1 00 00 00 00 00 00 f2 f2 f2 f2 ==================================================================