Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp942188pxb; Tue, 9 Feb 2021 17:27:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJx5qZkDOJ9rRygp7FaC0jAnpZUUCxaUQ+G1iq9G97xoVKujVDi7wyYXY6Yhkdkl9zjp3XwW X-Received: by 2002:a17:906:c00c:: with SMTP id e12mr486798ejz.103.1612920476098; Tue, 09 Feb 2021 17:27:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612920476; cv=none; d=google.com; s=arc-20160816; b=Wf6yE/t2rnl45cey3doZGLepdNOjaiQmDCl18rVOpRq6gAEjmgMhxuq99bU1VMnkqf HKjbDT9qU0legkStiOre43vlYFGZxnB7kdKMUBRjH8p/3H/9Lz3D3ft2f4H9fG72j+dh P6fykECqQ6UdToGZCbQ70JeEszhBy+g/juODlst1CA2uFw8zcTvVNuSNMcIxeggQ2sqN VhkvdON6ttrw/km5CswifFokklKqO4hyRwM67/jq88uYrVtfo5+HZfzWv63W4AFZXvEC XdQylpLyFGhFkb74/uTzt29h7zoxjvcAoZVd7kHQgvgMgHZixoSrnQVYScterjj/WfZ+ A2hw== 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=2vMkVRm2x4zbU65Zq94duQZfZU4RCzVVhgNBmR6/9hQ=; b=UWLfakVSM+/8y+Lk/Cof03Fi7Td1BrLKgeYoEeTOcpapmHLCXCgv9kvaqh1uDSMb+/ 7LIk4xQH33+qrFMMT+glg01lKVwwkUryriIGqTetEnkd7+SD3AJt8eO7cD3nckNfb4nX qQLriXPM143mVqKtzIvJSWyMbPQVEEZEEo/t6yb92Mp5Cad/uAZNFj+aQJXInQmSFIGl bT+0Xx0svS8gqmhtXSJyhjtHCAjLKLTkcXoYKp38HvT1X0Xtl67S25bCmX/7z+sWCoAg cQ82gJ5zp8FR8rNFaBCIEfjGdISB1Gelx8xevIg+3b/wU0hIvT1Dpf60GXgEeySKLmIj gFqw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-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 h5si252322ejg.296.2021.02.09.17.27.23; Tue, 09 Feb 2021 17:27:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-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-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-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 S234659AbhBJB0X (ORCPT + 99 others); Tue, 9 Feb 2021 20:26:23 -0500 Received: from mail-il1-f199.google.com ([209.85.166.199]:34015 "EHLO mail-il1-f199.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234561AbhBJBY7 (ORCPT ); Tue, 9 Feb 2021 20:24:59 -0500 Received: by mail-il1-f199.google.com with SMTP id c16so777993ile.1 for ; Tue, 09 Feb 2021 17:24:43 -0800 (PST) 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=2vMkVRm2x4zbU65Zq94duQZfZU4RCzVVhgNBmR6/9hQ=; b=OS/9JZu3r0WDAsH9j1sGqC3S0805pWw/TuUjamd1Y2XRPNOT+t5dR1LdQZjmZkYDnn TAZpt69cVzm/7qXNeZ/2TgNa92vzcbyFw2zJSHum2S/wHt2HqSAOL7USiskhULQG/ivp WA+/wxJhjm7a+Zo4tdGysZlzjcG/THVTSFivWQf/DNmFLZoTeQEdfQFhM+jDOW47rUlo 4WsFAiiTX5au+o37yv+UQJhs74HU7Rm9l5XmkPL+ryDXMD6NLgw2LB6OOw4192Y5qSQR mqMShF44rSkENUqEb5T1pC7giX+Nh/vYC/Wd/TlQD3Q2Etc6u1QhfQJGJcHp94diDBc3 vZIA== X-Gm-Message-State: AOAM530u39mpwQK8Xfj/2hnk5RZfuOe5lkt9P4ysT65DTrlmEUzTa3SS osk6EqAb0t+zhhUnL8da0Sm0DhvonDy5G/zeGBJocA3wFDdd MIME-Version: 1.0 X-Received: by 2002:a92:dd0a:: with SMTP id n10mr619114ilm.191.1612920258517; Tue, 09 Feb 2021 17:24:18 -0800 (PST) Date: Tue, 09 Feb 2021 17:24:18 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000000f622105baf14335@google.com> Subject: UBSAN: shift-out-of-bounds in xprt_do_reserve From: syzbot To: anna.schumaker@netapp.com, bfields@fieldses.org, chuck.lever@oracle.com, davem@davemloft.net, kuba@kernel.org, linux-kernel@vger.kernel.org, linux-nfs@vger.kernel.org, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com, trond.myklebust@hammerspace.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: dd86e7fa Merge tag 'pci-v5.11-fixes-2' of git://git.kernel.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=105930c4d00000 kernel config: https://syzkaller.appspot.com/x/.config?x=266a5362c89c8127 dashboard link: https://syzkaller.appspot.com/bug?extid=f3a0fa110fd630ab56c8 compiler: Debian clang version 11.0.1-2 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=17ba3038d00000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15cf0d64d00000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+f3a0fa110fd630ab56c8@syzkaller.appspotmail.com ================================================================================ UBSAN: shift-out-of-bounds in net/sunrpc/xprt.c:658:14 shift exponent 536870976 is too large for 64-bit type 'unsigned long' CPU: 1 PID: 8411 Comm: syz-executor902 Not tainted 5.11.0-rc6-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+0x137/0x1be lib/dump_stack.c:120 ubsan_epilogue lib/ubsan.c:148 [inline] __ubsan_handle_shift_out_of_bounds+0x432/0x4d0 lib/ubsan.c:395 xprt_calc_majortimeo net/sunrpc/xprt.c:658 [inline] xprt_init_majortimeo net/sunrpc/xprt.c:686 [inline] xprt_request_init net/sunrpc/xprt.c:1805 [inline] xprt_do_reserve+0x751/0x770 net/sunrpc/xprt.c:1815 __rpc_execute+0x1e1/0xb00 net/sunrpc/sched.c:891 rpc_run_task+0x5a4/0x740 net/sunrpc/clnt.c:1140 rpc_call_sync net/sunrpc/clnt.c:1169 [inline] rpc_ping net/sunrpc/clnt.c:2682 [inline] rpc_create_xprt+0x2f3/0x700 net/sunrpc/clnt.c:477 rpc_create+0x5df/0x8a0 net/sunrpc/clnt.c:593 nfs_create_rpc_client+0x5a0/0x740 fs/nfs/client.c:536 nfs_init_client+0x53/0xf0 fs/nfs/client.c:653 nfs_init_server fs/nfs/client.c:692 [inline] nfs_create_server+0x82d/0x2130 fs/nfs/client.c:996 nfs_try_get_tree+0x385/0x1040 fs/nfs/super.c:939 vfs_get_tree+0x86/0x270 fs/super.c:1496 do_new_mount fs/namespace.c:2881 [inline] path_mount+0x17ad/0x2a00 fs/namespace.c:3211 do_mount fs/namespace.c:3224 [inline] __do_sys_mount fs/namespace.c:3432 [inline] __se_sys_mount+0x28c/0x320 fs/namespace.c:3409 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x43ef89 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:00007ffe0a856338 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 000000000043ef89 RDX: 0000000020fb5ffc RSI: 0000000020000080 RDI: 00000000200000c0 RBP: 0000000000402f70 R08: 000000002000a000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000403000 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. syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches