Received: by 10.192.165.156 with SMTP id m28csp1391125imm; Mon, 16 Apr 2018 21:03:29 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/g4Gj9pcu4pKaUfT1JNX5kNK025yylo8twNXPEchUng5lZ/uuI7NjP+NLonGgPNH9EyqM0 X-Received: by 10.99.109.7 with SMTP id i7mr451078pgc.174.1523937809425; Mon, 16 Apr 2018 21:03:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523937809; cv=none; d=google.com; s=arc-20160816; b=V/2i8R/9P1uzH7HbOQMo97KPCdjrkVhpIaytzkYGplCXKGxaVvypAK6eIR3DvRyuXj YQh2jb7/+6djjxZDwDopSPBCNv/hp8x9gBjUQhYSyLO4YFEZ5MzWxSwK6h6jfHpSgJIJ W1XZyYKh0warX63SMU1ddVj2wdq64hF2zi/76JM1zft32yQYn0bDHKCAl2MyOcSYbIkQ 78mxjMmsMrEi9nTkYslcqAb5wUCDZ6qHqARde6xXo4iCcFkLGD4jHinseqsA3ABYOKQ0 +vmQvYtEEbL5elTwL1Bp/+uPIHdU2eKiSf1fGH7PIRpdW4b1wmmDXMbuBvTnQ7C0blaf 9gPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:from:subject:message-id:date :mime-version:arc-authentication-results; bh=QQ9hWA58S1DXGJdXH6XAopVg9cokOrlifj82oWrlJlk=; b=lCKL6Uk7oRmjCEur7Ooy8tFM2AwLaibmLncMwXRiLacD5qDMjn1q2xoYe/XP4iJ4Na 20HqcxPr5F4AjuLagdqgG3bypGq+8jZdx4ab+nXY1RubhcUVw9sXeZm+KPfUuA9POTYB chiPGl+xmvSIvlTzrLJvPQoGDFykEkKkuAe4B+k1+zi3E0XbBwdCF8LgdQtuB/HaRir1 1xYnCgbqZQB6ij3Z7T5d/aMlh8uAeAx5I7I3+0ydkeCfa3wBTKSBQffkpl7dx2Qxfrca bzsxrdYcw/1AbkTyFtfTBIG4S0jG9qXxP6nTHP89Tq5ulXdhyvh7ENpQsHTIsQzF7bP6 GmEg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id i64si2432869pgc.323.2018.04.16.21.03.14; Mon, 16 Apr 2018 21:03:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1751248AbeDQECE (ORCPT + 99 others); Tue, 17 Apr 2018 00:02:04 -0400 Received: from mail-io0-f200.google.com ([209.85.223.200]:45708 "EHLO mail-io0-f200.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750988AbeDQECC (ORCPT ); Tue, 17 Apr 2018 00:02:02 -0400 Received: by mail-io0-f200.google.com with SMTP id o17so6716285iob.12 for ; Mon, 16 Apr 2018 21:02:02 -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=QQ9hWA58S1DXGJdXH6XAopVg9cokOrlifj82oWrlJlk=; b=p/p3RPNLtoT78VE2urWhRDKeVauVFREnI+3y4oG495W05n8AHpjjGYSitbP/ncWLs9 paYwytPos24C1m3YdSCQNdI8N81VW1JKoAS+lDzCn/6U8HEhJOQPm5vFrD0cyRKXPxzw dtdC6xs5SL8J03iW8Vg6WQvo6Lo3KCveFaSELbtMnNWCBr3FNXhhlu3NqqFx2NOkENdW X+8feXmziE+/gYwl6IQpjtVT09FJQRpyNwIRofrgD1u3X75qMPvShlt1p6vdE5DPUeLq lYmy1Q3qb8k+lqU9lYniRLiDGrrn1niPR+gnkHhKhiNZBkYyaqMX1ARdF26A2HZXuqdg RzVQ== X-Gm-Message-State: ALQs6tDq9mQqASx5u2lYvJxq7wW7D30vbNPvjgeYo8ycA3hFUrlu0n7/ 3L+xyJatXMom6135xRwd0q6obgSHQcED6tYbROf4NZgfw21z MIME-Version: 1.0 X-Received: by 10.107.80.10 with SMTP id e10mr199986iob.33.1523937721663; Mon, 16 Apr 2018 21:02:01 -0700 (PDT) Date: Mon, 16 Apr 2018 21:02:01 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: Subject: general protection fault in encode_rpcb_string From: syzbot To: anna.schumaker@netapp.com, bfields@fieldses.org, davem@davemloft.net, jlayton@kernel.org, linux-kernel@vger.kernel.org, linux-nfs@vger.kernel.org, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com, trond.myklebust@primarydata.com Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot hit the following crash on bpf-next commit 5d1365940a68dd57b031b6e3c07d7d451cd69daf (Thu Apr 12 18:09:05 2018 +0000) Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net syzbot dashboard link: https://syzkaller.appspot.com/bug?extid=4b98281f2401ab849f4b So far this crash happened 2 times on bpf-next. C reproducer: https://syzkaller.appspot.com/x/repro.c?id=6433835633868800 syzkaller reproducer: https://syzkaller.appspot.com/x/repro.syz?id=6407311794896896 Raw console output: https://syzkaller.appspot.com/x/log.txt?id=5861511176126464 Kernel config: https://syzkaller.appspot.com/x/.config?id=-5947642240294114534 compiler: gcc (GCC) 8.0.1 20180413 (experimental) IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+4b98281f2401ab849f4b@syzkaller.appspotmail.com It will help syzbot understand when the bug is fixed. See footer for details. If you forward the report, please keep this part and the footer. RBP: 00000000006dbc50 R08: 000000002000a000 R09: 0000000000003437 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fe464ffed80 R13: 0030656c69662f2e R14: ffffffffffffffff R15: 0000000000000006 kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 0 PID: 1861 Comm: kworker/u4:4 Not tainted 4.16.0+ #2 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: rpciod rpc_async_schedule RIP: 0010:strlen+0x1f/0xa0 lib/string.c:479 RSP: 0018:ffff8801cf75f318 EFLAGS: 00010296 RAX: dffffc0000000000 RBX: ffff8801cf68f200 RCX: ffffffff86a8c407 RDX: 0000000000000000 RSI: ffffffff86a84d7b RDI: 0000000000000000 RBP: ffff8801cf75f330 R08: ffff8801cf7de080 R09: ffffed0039ea3d43 R10: ffffed0039ea3d43 R11: ffff8801cf51ea1f R12: 0000000000000000 R13: 0000000002000000 R14: 0000000000000000 R15: ffff8801cf75f3e0 FS: 0000000000000000(0000) GS:ffff8801db000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f64808a4000 CR3: 00000001b566a000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: strlen include/linux/string.h:267 [inline] encode_rpcb_string+0x23/0x70 net/sunrpc/rpcb_clnt.c:914 rpcb_enc_getaddr+0x146/0x1f0 net/sunrpc/rpcb_clnt.c:940 rpcauth_wrap_req_encode net/sunrpc/auth.c:777 [inline] rpcauth_wrap_req+0x1a8/0x230 net/sunrpc/auth.c:791 rpc_xdr_encode net/sunrpc/clnt.c:1754 [inline] call_transmit+0x8a9/0xfe0 net/sunrpc/clnt.c:1949 __rpc_execute+0x28a/0xfe0 net/sunrpc/sched.c:784 rpc_async_schedule+0x16/0x20 net/sunrpc/sched.c:857 process_one_work+0xc1e/0x1b50 kernel/workqueue.c:2145 worker_thread+0x1cc/0x1440 kernel/workqueue.c:2279 kthread+0x345/0x410 kernel/kthread.c:238 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:411 Code: 37 ff ff ff 0f 1f 84 00 00 00 00 00 48 b8 00 00 00 00 00 fc ff df 55 48 89 fa 48 c1 ea 03 48 89 e5 41 54 49 89 fc 53 48 83 ec 08 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 04 84 c0 75 4d 41 80 3c RIP: strlen+0x1f/0xa0 lib/string.c:479 RSP: ffff8801cf75f318 ---[ end trace bd76ed0378a56845 ]--- --- This bug is generated by a dumb bot. It may contain errors. See https://goo.gl/tpsmEJ for details. Direct all questions to syzkaller@googlegroups.com. syzbot will keep track of this bug report. If you forgot to add the Reported-by tag, once the fix for this bug is merged into any tree, please reply to this email with: #syz fix: exact-commit-title If you want to test a patch for this bug, please reply with: #syz test: git://repo/address.git branch and provide the patch inline or as an attachment. To mark this as a duplicate of another syzbot report, please reply with: #syz dup: exact-subject-of-another-report If it's a one-off invalid bug report, please reply with: #syz invalid Note: if the crash happens again, it will cause creation of a new bug report. Note: all commands must start from beginning of the line in the email body.