Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp774425pxj; Thu, 10 Jun 2021 12:22:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7N4Y9lBQZvZMVXE7slmnaV4vz2DH6HqBhp46YgA+QAHMYnfd9otPblNbNhYRq87Cv2IDA X-Received: by 2002:aa7:d3ca:: with SMTP id o10mr31769edr.197.1623352933468; Thu, 10 Jun 2021 12:22:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623352933; cv=none; d=google.com; s=arc-20160816; b=ri8J+TsDCl3Xyctf5pNbzIZzBTSOhlvR3Z5DRog3MP2TUqEmJModIKdcDbIH8diIlr M/WTR3hzDv/KkQia4Yj05SRRJK+kOq6jndIcgDzCsJSTSO7hzpTgSYltjecIFTx/kUuT gCA2ZS5Cvijyh9p6sxxNUmEoyB/ywKe0Rx86kqvC3NRbQBAp0KcyKrZ/Z2xagRcL+BBg z4HEL9X4MxePDDi9kQfSkkM42kN8Q7jQWpCKWwt2ZrGr6Dm8EFl0S/EdBXDUfenVHOgf E3zV00r+ep5o2KyNofqMct3xZY4LLKVJGOF0egEJyHY451PA8zt6KFO9c6zZ518GQIHQ 0Z3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:date:mime-version; bh=AZmsQXd5CZpxLe8fqTa7gGyaG//gGPqyJgcMYH0vyds=; b=lS2TnnhIr83WXSzkvQb2Rwdoc7BmZF/IXJPbfh4oHS723JVf24rnp+SNOVKu47E7wJ 6T4DHLFbpqd6gR4T6XpIOmNRmH/Ek0ZOwWfLNiOzRYpKy+jxIONOouuaPITWgapYAEcD exaEKtwet6hSA8wwkb23ROzbDYgAe8MEX0AKJSwTA0WOT5nUC+Myu9rMRpoSblZJTY4o u3HJEsvwaJZOilCwnXaKpNhMfAMj7NH+XImHZOzCckVb9ToWQe/oDM/7noSUwSlQh0oQ Dj+KoUblBO4gqfl2JdeVRfKKMZQPGE+4p9lgCk7lucjEGfNwz9nd/Mti7mLXYpvgmnnN wR/g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 3si3209399ejx.158.2021.06.10.12.21.48; Thu, 10 Jun 2021 12:22:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230366AbhFJTVY (ORCPT + 99 others); Thu, 10 Jun 2021 15:21:24 -0400 Received: from mail-io1-f69.google.com ([209.85.166.69]:41573 "EHLO mail-io1-f69.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230217AbhFJTVX (ORCPT ); Thu, 10 Jun 2021 15:21:23 -0400 Received: by mail-io1-f69.google.com with SMTP id y26-20020a6be51a0000b02904b200a26422so12419030ioc.8 for ; Thu, 10 Jun 2021 12:19:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=AZmsQXd5CZpxLe8fqTa7gGyaG//gGPqyJgcMYH0vyds=; b=YpWHsihRN5Jkjr9BX1/vBGqKh5FUSO99jzZkNCIwGX8kbrmnEwCoHgtJZNSw0yzj4W TY6RB0St30jF4nAJ1xVTETo0TmOYwKjXxXpkxUMyn57PzWKzzt5pe/onDmfirY6LLf3C vBIgNwaEijSxCEr20OwlT5ODkuxPw1TEDwlWFSW9i4a3rXNopQUNmTcUVJmXNPEw39re aa82FuZjj7r9e523bxEEuiaQz+1AIrsB7qwR8YwCfMzh924DjfR4v+/65D/FEdbpQot7 Nm7p/V+WxRFEseJA9fK04N6hyILdClFXO0X1F+ggY2X3bagJP1FqzG60nfwBlOrl5NIw Ys7g== X-Gm-Message-State: AOAM532eFHUbzwi/Hnn11nFOrUPukUXqg9fbQc+LzOd4zWAy0dKhGMzM rP3ZMWFbLI63/NPp1AmLd68SHt82xWg7y6Ta1mPXuUVjBzVF MIME-Version: 1.0 X-Received: by 2002:a05:6602:2145:: with SMTP id y5mr112285ioy.4.1623352766662; Thu, 10 Jun 2021 12:19:26 -0700 (PDT) Date: Thu, 10 Jun 2021 12:19:26 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000008a6c05c46e45a4@google.com> Subject: [syzbot] UBSAN: shift-out-of-bounds in xfrm_selector_match From: syzbot To: davem@davemloft.net, herbert@gondor.apana.org.au, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, steffen.klassert@secunet.com, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: 13c62f53 net/sched: act_ct: handle DNAT tuple collision git tree: net console output: https://syzkaller.appspot.com/x/log.txt?x=16635470300000 kernel config: https://syzkaller.appspot.com/x/.config?x=770708ea7cfd4916 dashboard link: https://syzkaller.appspot.com/bug?extid=e4c1dd36fc6b98c50859 Unfortunately, I don't have any reproducer for this issue yet. IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+e4c1dd36fc6b98c50859@syzkaller.appspotmail.com UBSAN: shift-out-of-bounds in ./include/net/xfrm.h:838:23 shift exponent -64 is negative CPU: 0 PID: 12625 Comm: syz-executor.1 Not tainted 5.13.0-rc3-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+0x141/0x1d7 lib/dump_stack.c:120 ubsan_epilogue+0xb/0x5a lib/ubsan.c:148 __ubsan_handle_shift_out_of_bounds.cold+0xb1/0x181 lib/ubsan.c:327 addr4_match include/net/xfrm.h:838 [inline] __xfrm4_selector_match net/xfrm/xfrm_policy.c:201 [inline] xfrm_selector_match.cold+0x35/0x3a net/xfrm/xfrm_policy.c:227 xfrm_state_look_at+0x16d/0x440 net/xfrm/xfrm_state.c:1022 xfrm_state_find+0x16c0/0x4d10 net/xfrm/xfrm_state.c:1096 xfrm_tmpl_resolve_one net/xfrm/xfrm_policy.c:2394 [inline] xfrm_tmpl_resolve+0x2f3/0xd40 net/xfrm/xfrm_policy.c:2439 xfrm_resolve_and_create_bundle+0x123/0x2590 net/xfrm/xfrm_policy.c:2729 xfrm_lookup_with_ifid+0x227/0x20e0 net/xfrm/xfrm_policy.c:3063 xfrm_lookup net/xfrm/xfrm_policy.c:3187 [inline] xfrm_lookup_route+0x36/0x1e0 net/xfrm/xfrm_policy.c:3198 ip_route_output_flow+0x114/0x150 net/ipv4/route.c:2733 udp_sendmsg+0x1a2f/0x2730 net/ipv4/udp.c:1206 inet_sendmsg+0x99/0xe0 net/ipv4/af_inet.c:821 sock_sendmsg_nosec net/socket.c:654 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:674 ____sys_sendmsg+0x331/0x810 net/socket.c:2350 ___sys_sendmsg+0xf3/0x170 net/socket.c:2404 __sys_sendmmsg+0x195/0x470 net/socket.c:2490 __do_sys_sendmmsg net/socket.c:2519 [inline] __se_sys_sendmmsg net/socket.c:2516 [inline] __x64_sys_sendmmsg+0x99/0x100 net/socket.c:2516 do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665d9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fb1023dd188 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665d9 RDX: 000000000800001d RSI: 0000000020007fc0 RDI: 0000000000000003 RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007ffc4542d68f R14: 00007fb1023dd300 R15: 0000000000022000 ================================================================================ --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot.