Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp871451imm; Fri, 8 Jun 2018 06:35:23 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJL9WGolFunfD6yDwgtLPGtzrNsX7hGRa9IrPDO/U94LKZGZzs3QOd2GVp0mqgyFqvnwg69 X-Received: by 2002:a65:640d:: with SMTP id a13-v6mr5415878pgv.154.1528464923392; Fri, 08 Jun 2018 06:35:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528464923; cv=none; d=google.com; s=arc-20160816; b=uA0LHU+tUZJodAxrYCkf9ciwW7QAWPbY0b1YpzytIAZPaDeoTpERbdnSc6xgwmVNMG zmFW6LeSdUfVwcm2j5TqATTrUS9dIUZYtvo6x2IH05Hjl10pkIhI4LGXr5ph6MDp41tT 7BlG+dwRSvfOeDYnXiCOc2ENDDuNnAH4CsXWMbTgw7AKrWlB0HYB2RF5o+Mb+OxXx7GE 40zOurDi0Q4O8y6C+MsVZ9au0MWrH3cRacTaeE1MxS36BVXyf8+Z1bdTyquPPP1Rin7Y hrLbdaeH+pqovvozfH51a0UdqFhZWdazEmG2HY6JhpOOR526XfVhhKgKlT2B9wLvhJ/c oGvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=lmKOxpSp+i046D+BW0ji3ZPshUmkSSXneeZh65ztyBk=; b=oHgaNnrINQLJuFoww+FKqynz6rvivxoWvICDwESoIgcqIDNPsjCDCitzFL3bJ0LnHS RJLGrMoyJniSZJNPDmTl3UShAfGJTeWqDOWWAXpMPpZCaVRsj7X+Jy9KSjIeLz/qCdwE h/62+uZtLtk5aMD3ss1U3Tk0X26l6nF59djE7G48o2GlFqny/1bZffG1qcwxR+7MxBtu b5FzEil/ds0pkyzmYrgI3ZbI3/CPQHrmgMvvai62jQTdc6H2nZVcyt4hGINl5EwCgeAT dSaXeI6Ibfm1n0CvkJKMG0sqifW9/e0qJRpqqZtSzfYSHdGRGG/EEjbRRKVXe00qB0qj s2sA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=cZiCqzeN; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m13-v6si13712857pgv.271.2018.06.08.06.35.08; Fri, 08 Jun 2018 06:35:23 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=cZiCqzeN; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752609AbeFHNej (ORCPT + 99 others); Fri, 8 Jun 2018 09:34:39 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:40236 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751133AbeFHNeh (ORCPT ); Fri, 8 Jun 2018 09:34:37 -0400 Received: by mail-pg0-f67.google.com with SMTP id l2-v6so6405725pgc.7 for ; Fri, 08 Jun 2018 06:34:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=lmKOxpSp+i046D+BW0ji3ZPshUmkSSXneeZh65ztyBk=; b=cZiCqzeNTFkRvO5dSn4E0xQpp+4/hB9pfiFkp5I++myq7euR2Bu7qibmv4Q37BlmOQ iKR2IoRR0Aq+fgMMEOjJWM0kE9oBG3msPFV6qwYLYK74NbS/w4yabey0Mq1P3WwlX458 Ak1Jnvgy3I6CzHgbTu8sW2W+VAUmMYOWG3Cqa+zzRKNLVBkTC0VWGiG+mXGzO0BSqlAG LFo+vA7SOhRzlqXkhbKxdgcx2GnzImMXDSEeeLAucsXYJNLdh9wgr8dvG5iikZ1RHkp2 O27WDeL1HNrDdT6TMRg0TqgFetpoz2oNxbf3Xyornh4hJa9OMe4C44w8Q7Maq9jT0y6z EvqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=lmKOxpSp+i046D+BW0ji3ZPshUmkSSXneeZh65ztyBk=; b=f+TuB90DdQ78W5FEuP44wbpT7t2qiqxrsjeYuADU3tnp7IrRHjivL/XoOHOYRGwchp O/IU3LXhBEGPxkkr1ZvtluttFaX//m6+mORfzncmH4nH28R75oJQiBpXht9qONUbaAdZ 4RPtVh/qchpbWfAZcNOv6qumUIdXxlddzcDdIUMDWBuUe92XXJt2xSYKqZ01K1YG8duG cDaRGnF+kiF8HYXbTGZFaQ5wfPtmPLOJ9X2LEiQHvmJRZ8Mk2WpzrDvkllllbyBkbKIa H9eQihW8s0OoOytJ51SxHg1zOqo34a471K7vMWNUfNmwkaQMpZfTPLPnOG8yXT2tp/Bk 01Fg== X-Gm-Message-State: APt69E2cC3sJsx3KhmT4zy1pkRC3wMgKtzf3lh1XFI2PMYk8u5BNWyhU ZDAn0KFpDvyd4tPCW/3Oj+r0uD5OYWN2jYxHRJ74fA== X-Received: by 2002:a63:70a:: with SMTP id 10-v6mr5498083pgh.216.1528464876259; Fri, 08 Jun 2018 06:34:36 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a17:90a:d42:0:0:0:0 with HTTP; Fri, 8 Jun 2018 06:34:15 -0700 (PDT) In-Reply-To: <000000000000bd54dd056e212189@google.com> References: <000000000000bd54dd056e212189@google.com> From: Dmitry Vyukov Date: Fri, 8 Jun 2018 15:34:15 +0200 Message-ID: Subject: Re: WARNING in do_dentry_open To: syzbot , Alexei Starovoitov , Daniel Borkmann , netdev Cc: linux-fsdevel , LKML , syzkaller-bugs , Al Viro Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 8, 2018 at 3:11 PM, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit: 68abbe729567 Merge branch 'akpm' (patches from Andrew) > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=130146af800000 > kernel config: https://syzkaller.appspot.com/x/.config?x=e5a4673d4582131c > dashboard link: https://syzkaller.appspot.com/bug?extid=2e7fcab0f56fdbb330b8 > compiler: gcc (GCC) 8.0.1 20180413 (experimental) > syzkaller repro:https://syzkaller.appspot.com/x/repro.syz?x=1591756f800000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=152236af800000 Looking at the reproducer this seems to be related to bpf. +bpf maintainers > IMPORTANT: if you fix the bug, please add the following tag to the commit: > Reported-by: syzbot+2e7fcab0f56fdbb330b8@syzkaller.appspotmail.com > > random: sshd: uninitialized urandom read (32 bytes read) > random: sshd: uninitialized urandom read (32 bytes read) > random: sshd: uninitialized urandom read (32 bytes read) > random: sshd: uninitialized urandom read (32 bytes read) > random: sshd: uninitialized urandom read (32 bytes read) > WARNING: CPU: 1 PID: 4508 at fs/open.c:778 do_dentry_open+0x4ad/0xe40 > fs/open.c:778 > Kernel panic - not syncing: panic_on_warn set ... > > CPU: 1 PID: 4508 Comm: syz-executor867 Not tainted 4.17.0+ #90 > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS > Google 01/01/2011 > Call Trace: > __dump_stack lib/dump_stack.c:77 [inline] > dump_stack+0x1b9/0x294 lib/dump_stack.c:113 > panic+0x22f/0x4de kernel/panic.c:184 > __warn.cold.8+0x163/0x1b3 kernel/panic.c:536 > report_bug+0x252/0x2d0 lib/bug.c:186 > fixup_bug arch/x86/kernel/traps.c:178 [inline] > do_error_trap+0x1fc/0x4d0 arch/x86/kernel/traps.c:296 > do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316 > invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:992 > RIP: 0010:do_dentry_open+0x4ad/0xe40 fs/open.c:778 > Code: 7b 28 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 > 0f 85 15 08 00 00 48 c7 43 28 00 00 00 00 e8 f3 6d ba ff <0f> 0b e8 ec 6d ba > ff 48 8d 43 18 41 be ed ff ff ff 48 89 45 c0 e9 > RSP: 0018:ffff8801afcaf7c8 EFLAGS: 00010293 > RAX: ffff8801afe08400 RBX: ffff8801b099e0c0 RCX: ffffffff81bfccf6 > RDX: 0000000000000000 RSI: ffffffff81bfcf6d RDI: ffff8801b099e0e8 > RBP: ffff8801afcaf840 R08: ffff8801afe08400 R09: ffffed0036aa2afc > R10: ffffed0036aa2afc R11: ffff8801b55157e3 R12: ffff8801ab28d4b0 > R13: ffff8801ab28d6a8 R14: 0000000000000000 R15: ffff8801b099e13c > vfs_open+0x139/0x230 fs/open.c:908 > do_last fs/namei.c:3370 [inline] > path_openat+0x1717/0x4dc0 fs/namei.c:3511 > do_filp_open+0x249/0x350 fs/namei.c:3545 > do_sys_open+0x56f/0x740 fs/open.c:1101 > __do_sys_openat fs/open.c:1128 [inline] > __se_sys_openat fs/open.c:1122 [inline] > __x64_sys_openat+0x9d/0x100 fs/open.c:1122 > do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 > entry_SYSCALL_64_after_hwframe+0x49/0xbe > RIP: 0033:0x43ff09 > Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 > 0f 83 6b 45 00 00 c3 66 2e 0f 1f 84 00 00 00 00 > RSP: 002b:00007ffe4eafe4f8 EFLAGS: 00000217 ORIG_RAX: 0000000000000101 > RAX: ffffffffffffffda RBX: 2f30656c69662f2e RCX: 000000000043ff09 > RDX: 0000000000000040 RSI: 0000000020000100 RDI: ffffffffffffff9c > RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8 > R10: 0000000000000004 R11: 0000000000000217 R12: 0000000000401830 > R13: 00000000004018c0 R14: 0000000000000000 R15: 0000000000000000 > Dumping ftrace buffer: > (ftrace buffer empty) > Kernel Offset: disabled > Rebooting in 86400 seconds.. > > > --- > This bug 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 bug report. See: > https://goo.gl/tpsmEJ#bug-status-tracking for how to communicate with > syzbot. > syzbot can test patches for this bug, for details see: > https://goo.gl/tpsmEJ#testing-patches > > -- > You received this message because you are subscribed to the Google Groups > "syzkaller-bugs" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to syzkaller-bugs+unsubscribe@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/syzkaller-bugs/000000000000bd54dd056e212189%40google.com. > For more options, visit https://groups.google.com/d/optout.