From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E985DC433E2 for ; Mon, 29 Mar 2021 19:05:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id ACFFB6198F for ; Mon, 29 Mar 2021 19:05:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231321AbhC2TEw (ORCPT ); Mon, 29 Mar 2021 15:04:52 -0400 Received: from mail-il1-f198.google.com ([209.85.166.198]:49607 "EHLO mail-il1-f198.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231319AbhC2TEY (ORCPT ); Mon, 29 Mar 2021 15:04:24 -0400 Received: by mail-il1-f198.google.com with SMTP id t9so1078179ilo.16 for ; Mon, 29 Mar 2021 12:04:24 -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=AVwORS39iJ9xu4q+8QfDhm/bQHx1mmyqlU6NHSMEreI=; b=G4VweeexzHvlUTwd6J0kfoBtL1Dlw2UNlsx/xC66DgntrYASOmIP2Jypqmrjtl+5UI UnQXRN+VS7dfXnDIgtzLwuYygAt4z1eJJDh7fDk0DxblJbKXzZlHLKqAooZWZMGkpZSV sXJTl0cIR97FwBAhhY3SMejq/2yDQ2ol7AGfcE/E10Q+g9TZSBIMHXZL2q7Hs+3faxRx nhKxGKR/W+sBiG3HoJRMsDTAm6OYwHZcZBi39f0KxzypLa3FflU8TvvTQBqxRdpCpXQu bAfMIE4zuwTPZkGyXXWxDQL6TWq/wtXjt2VVgibP+exIZhNUGVwYn0F/PDbEEcv/VK+U FuVg== X-Gm-Message-State: AOAM531I78/2Qy/QRn7vsnJzhMxr8gtlPkBc8ZY+X9KfUTT+2K/ExuAG sfQSQILvgSeXcxiUq3dKaUAraN5rfRckS/UxO4LBqzSJxDm3 X-Google-Smtp-Source: ABdhPJzij+5L3f78ELNrRqdMsg2a8aPkF73j90dz/KGPq1mV6Gr8xbTw5jXKHMWj/ShFwEsD5QrCVm1jB6gG8kHqvp13mi1rkuuL MIME-Version: 1.0 X-Received: by 2002:a02:c72b:: with SMTP id h11mr25049724jao.70.1617044664398; Mon, 29 Mar 2021 12:04:24 -0700 (PDT) Date: Mon, 29 Mar 2021 12:04:24 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000ceb65005beb18c8f@google.com> Subject: [syzbot] WARNING in xfrm_alloc_compat (2) From: syzbot To: davem@davemloft.net, dima@arista.com, 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: 6c996e19 net: change netdev_unregister_timeout_secs min va.. git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=102e5926d00000 kernel config: https://syzkaller.appspot.com/x/.config?x=c0ac79756537274e dashboard link: https://syzkaller.appspot.com/bug?extid=834ffd1afc7212eb8147 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10a7b1aad00000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17ae6b7cd00000 The issue was bisected to: commit 5f3eea6b7e8f58cf5c8a9d4b9679dc19e9e67ba3 Author: Dmitry Safonov Date: Mon Sep 21 14:36:53 2020 +0000 xfrm/compat: Attach xfrm dumps to 64=>32 bit translator bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=10694b3ad00000 final oops: https://syzkaller.appspot.com/x/report.txt?x=12694b3ad00000 console output: https://syzkaller.appspot.com/x/log.txt?x=14694b3ad00000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+834ffd1afc7212eb8147@syzkaller.appspotmail.com Fixes: 5f3eea6b7e8f ("xfrm/compat: Attach xfrm dumps to 64=>32 bit translator") netlink: 208 bytes leftover after parsing attributes in process `syz-executor193'. ------------[ cut here ]------------ unsupported nla_type 356 WARNING: CPU: 1 PID: 8423 at net/xfrm/xfrm_compat.c:280 xfrm_xlate64_attr net/xfrm/xfrm_compat.c:280 [inline] WARNING: CPU: 1 PID: 8423 at net/xfrm/xfrm_compat.c:280 xfrm_xlate64 net/xfrm/xfrm_compat.c:301 [inline] WARNING: CPU: 1 PID: 8423 at net/xfrm/xfrm_compat.c:280 xfrm_alloc_compat+0xf39/0x10d0 net/xfrm/xfrm_compat.c:328 Modules linked in: CPU: 1 PID: 8423 Comm: syz-executor193 Not tainted 5.12.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:xfrm_xlate64_attr net/xfrm/xfrm_compat.c:280 [inline] RIP: 0010:xfrm_xlate64 net/xfrm/xfrm_compat.c:301 [inline] RIP: 0010:xfrm_alloc_compat+0xf39/0x10d0 net/xfrm/xfrm_compat.c:328 Code: de e8 5b d7 c3 f9 84 db 0f 85 b0 f8 ff ff e8 9e d0 c3 f9 8b 74 24 08 48 c7 c7 80 42 76 8a c6 05 39 2e 02 06 01 e8 74 b7 16 01 <0f> 0b e9 8d f8 ff ff e8 7b d0 c3 f9 8b 14 24 48 c7 c7 40 42 76 8a RSP: 0018:ffffc90000fff4b8 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff88801b1554c0 RSI: ffffffff815c4d75 RDI: fffff520001ffe89 RBP: 00000000000000d8 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff815bdb0e R11: 0000000000000000 R12: 00000000ffffffa1 R13: ffff8880248eb8f8 R14: ffff888013256dc0 R15: ffff8880132568c0 FS: 000000000092f300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000200001e0 CR3: 0000000023271000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: xfrm_alloc_userspi+0x66a/0xa30 net/xfrm/xfrm_user.c:1448 xfrm_user_rcv_msg+0x42c/0x8b0 net/xfrm/xfrm_user.c:2812 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2502 xfrm_netlink_rcv+0x6b/0x90 net/xfrm/xfrm_user.c:2824 netlink_unicast_kernel net/netlink/af_netlink.c:1312 [inline] netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1338 netlink_sendmsg+0x856/0xd90 net/netlink/af_netlink.c:1927 sock_sendmsg_nosec net/socket.c:654 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:674 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2350 ___sys_sendmsg+0xf3/0x170 net/socket.c:2404 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2433 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x43f009 Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffe0986bcb8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000400488 RCX: 000000000043f009 RDX: 0000000000000000 RSI: 0000000020000580 RDI: 0000000000000003 RBP: 0000000000402ff0 R08: 0000000000000000 R09: 0000000000400488 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000403080 R13: 0000000000000000 R14: 00000000004ac018 R15: 0000000000400488 --- 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. For information about bisection process see: https://goo.gl/tpsmEJ#bisection syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches