Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp909830ybh; Wed, 11 Mar 2020 13:19:40 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtn5l8XE8Sn2unFZGZFkPw4m+dRYT2DewyGuB0RQX6tATgeVNCHMMzFTx8WDccJw7yXCNQt X-Received: by 2002:aca:4c57:: with SMTP id z84mr305419oia.53.1583957979949; Wed, 11 Mar 2020 13:19:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583957979; cv=none; d=google.com; s=arc-20160816; b=MmjBq/csr7KpisCyCg+gayWWpetodzffoEw4AmDR+mRW3JOi8D9MNlJ4GZ8bmre/c/ cVPovvi/KIxGf5YtwQNBlq6eFZhQvzkl0P+ymy/BPhpY/PFceGtyMRnTQZslfdPP9jxz hqH3y4cVZhAqDAdSic14eaHs+R36a+D9xK+hdQe6XCEcEQzYvaBceVNHJXzZDUmvHuPR lLFGK2YezdQ88ClqMPsoap2+PJIIkr5vDk7qOgcqIvlbUY9sM3xFppZbCkAAqDWKxS9p x5HEuZy7ZUr0ra4IkScAAZgAYLQOVw+TQuZI6XwnHA0F92GqDzuxFV+hQMg6NgYOHawo u6dQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ZKXahtc0FlTZeL7zOtqKZNqmkQrt4iKIm1PTCqu/+wU=; b=oSS/HMhI5u/ak4T9tLaAfb17fIUs6D43WJpTxPRPtfVVHWiYJA/IbYrrOYZ1DGr8h5 mbSRr3hib5UnBhFkNTnpncKCkA/TcpuY8lta0ZE0cV7iZTBsTahQGkypfVjxDvRjHhnX XvPoPe5SpB0kHrMi5CYTgDMtctghDRUxwUGIdxMlefM4eh5CJ5v1SNEHtLBURYrrKPHK 0o6w2CzrVUKGmCeusKqH/r1TEYIpPjrHTMSTeYGrTBAw3t04WGYaGRSj9ZeWtUPNWpmU lMD5NCs03LmnGqXwj3nB/nGPa/sWo53qRGyElVpPlH/5Oo6njlq+x9WjfRNjFzrj7jmP a5Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=qMJWR3aF; 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 h25si614647ooa.9.2020.03.11.13.19.27; Wed, 11 Mar 2020 13:19:39 -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=qMJWR3aF; 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 S1731179AbgCKUSL (ORCPT + 99 others); Wed, 11 Mar 2020 16:18:11 -0400 Received: from mail-vs1-f68.google.com ([209.85.217.68]:42143 "EHLO mail-vs1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731057AbgCKUSL (ORCPT ); Wed, 11 Mar 2020 16:18:11 -0400 Received: by mail-vs1-f68.google.com with SMTP id i25so2216660vsq.9 for ; Wed, 11 Mar 2020 13:18:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=ZKXahtc0FlTZeL7zOtqKZNqmkQrt4iKIm1PTCqu/+wU=; b=qMJWR3aFXzF07vzUAeObLN8nvsVXIhhwuS/ETZe0hwpwgELLJZFdxQYsA3j29YTXia bf53A9CSRlqVA9/456aWVQMrCR74rO8InGTsKWWRRslrqEtCQkegKRSec1jRNXXREQIz Fq+3hxKsSewE7oed37dY4oxTsdnM2Q3CVWm75QsqusMNZahZdSAUdhFCoHFd9kO3CxZr +CvMsy8lioq86VeppNwfzr9bY4DNAhfUjV7bL/uEnzDAxEe/jRZXuJDZ8K1uKuoDwAkK /7+GV6ajRdgrxmXFmKEqJ9HrR6dNNJohf2UL0eETpUrqaZtVzyE0iLmYOfxIviCYklkL 9iaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=ZKXahtc0FlTZeL7zOtqKZNqmkQrt4iKIm1PTCqu/+wU=; b=hq22zYz1Yysn3OHuW/akY5PyCariTZHrSxMtKwzu3ock34xkQ5tTBNhypUXiH9OquJ Wcm+yT+5OphTY6mrZZocKuLPJfOKTigw1c5NOuaTGOKYda2/M0kNCFEXpxUKOA4R4eqJ DT0DvrkVGwSEZEdq9MaLG1C7zka1N3luEglz0vLGcIXoRwKfboSHnSOk8VQ6qCJ+1EoJ 3IeMyzPluU3YuDKz/TKTVYyZPtKhzgkYJZNMVJaVNAYyoDXA7dnGFHc902yGhtY2iyMd tU5SLR7vGI3TX97oAF+AHZqk5fZmIP2VhLMEeXJfmVdugzKbltZVYYtLbtMt19NmxiTV 17kA== X-Gm-Message-State: ANhLgQ3PNy2EvEBLZ7K+I8LZzCMtnbA1T+L60P0y6LK3Obifd90MVakC C165hDngIlJArBKqNS4+VpdiljpjqNdIprRViLovAA== X-Received: by 2002:a67:2f97:: with SMTP id v145mr3252421vsv.63.1583957889897; Wed, 11 Mar 2020 13:18:09 -0700 (PDT) MIME-Version: 1.0 References: <000000000000eb546f0570e84e90@google.com> <20180713145811.683ffd0043cac26a5a5af725@linux-foundation.org> <5f715c98-2b81-4eee-be3c-11cbc1bc36a8@googlegroups.com> In-Reply-To: <5f715c98-2b81-4eee-be3c-11cbc1bc36a8@googlegroups.com> From: Dmitry Vyukov Date: Wed, 11 Mar 2020 21:17:58 +0100 Message-ID: Subject: Re: unexpected kernel reboot (3) To: syzbot , syzkaller-bugs , LKML , Jim Mattson 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 Monday, July 16, 2018 at 12:10:07 PM UTC+2, Dmitry Vyukov wrote: >> >> On Fri, Jul 13, 2018 at 11:58 PM, Andrew Morton >> wrote: >> > On Fri, 13 Jul 2018 14:39:02 -0700 syzbot wrote: >> > >> >> Hello, >> >> >> >> syzbot found the following crash on: >> > >> > hm, I don't think I've seen an "unexpected reboot" report before. >> > >> > Can you expand on specifically what happened here? Did the machine >> > simply magically reboot itself? Or did an external monitor whack it, >> > or... >> >> We put some user-space workload (not involving reboot syscall), and >> the machine suddenly rebooted. We don't know what triggered the >> reboot, we only see the consequences. We've seen few such bugs before, >> e.g.: >> https://syzkaller.appspot.com/bug?id=4f1db8b5e7dfcca55e20931aec0ee707c5cafc99 >> Usually it involves KVM. Potentially it's a bug in the outer >> kernel/VMM, it may or may not be present in tip kernel. >> >> >> > Does this test distinguish from a kernel which simply locks up? >> >> Yes. If you look at the log: >> >> https://syzkaller.appspot.com/x/log.txt?x=17c6a6d0400000 >> >> We've booted the machine, started running a program, and them boom! it >> reboots without any other diagnostics. It's not a hang. >> >> >> >> >> HEAD commit: 1e4b044d2251 Linux 4.18-rc4 >> >> git tree: upstream >> >> console output: https://syzkaller.appspot.com/x/log.txt?x=17c6a6d0400000 >> >> kernel config: https://syzkaller.appspot.com/x/.config?x=25856fac4e580aa7 >> >> dashboard link: https://syzkaller.appspot.com/bug?extid=cce9ef2dd25246f815ee This happened 10K+ times. If GCE VM is rebooted by doing something with KVM subsystem, I assume it's a GCE bug (?). +Jim >> >> compiler: gcc (GCC) 8.0.1 20180413 (experimental) >> >> syzkaller repro:https://syzkaller.appspot.com/x/repro.syz?x=165012c2400000 >> >> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1571462c400000 >> > >> > I assume the "C reproducer" is irrelevant here. >> > >> > Is it reproducible? >> >> Yes, it is reproducible and the C reproducer is relevant. >> If syzbot provides a reproducer, it means that it booted a clean >> machine, run the provided program (nothing else besides typical init >> code and ssh/scp invocation) and that's the kernel output it observed >> running this exact program. >> However in this case, the exact setup can be relevant. syzbot uses GCE >> VMs, it may or may not reproduce with other VMMs/physical hardware, >> sometimes such bugs depend on exact CPU type. >> >> >> >> IMPORTANT: if you fix the bug, please add the following tag to the commit: >> >> Reported-by: syzbot+cce9ef2dd25246f815ee@syzkaller.appspotmail.com >> >> >> >> output_len: 0x00000000092459b0 >> >> kernel_total_size: 0x000000000a505000 >> >> trampoline_32bit: 0x000000000009d000 >> >> >> >> Decompressing Linux... Parsing ELF... done. >> >> Booting the kernel. >> >> [ 0.000000] Linux version 4.18.0-rc4+ (syzkaller@ci) (gcc version 8.0.1 >> >> 20180413 (experimental) (GCC)) #138 SMP Mon Jul 9 10:45:11 UTC 2018 >> >> [ 0.000000] Command line: BOOT_IMAGE=/vmlinuz root=/dev/sda1 >> >> console=ttyS0 earlyprintk=serial vsyscall=native rodata=n >> >> ftrace_dump_on_oops=orig_cpu oops=panic panic_on_warn=1 nmi_watchdog=panic >> >> panic=86400 workqueue.watchdog_thresh=140 kvm-intel.nested=1 >> >> >> >> ... >> >> >> >> regulatory database >> >> [ 4.519364] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' >> >> [ 4.520839] platform regulatory.0: Direct firmware load for >> >> regulatory.db failed with error -2 >> >> [ 4.522155] cfg80211: failed to load regulatory.db >> >> [ 4.522185] ALSA device list: >> >> [ 4.523499] #0: Dummy 1 >> >> [ 4.523951] #1: Loopback 1 >> >> [ 4.524389] #2: Virtual MIDI Card 1 >> >> [ 4.825991] input: ImExPS/2 Generic Explorer Mouse as >> >> /devices/platform/i8042/serio1/input/input4 >> >> [ 4.829533] md: Waiting for all devices to be available before autodetect >> >> [ 4.830562] md: If you don't use raid, use raid=noautodetect >> >> [ 4.835237] md: Autodetecting RAID arrays. >> >> [ 4.835882] md: autorun ... >> >> [ 4.836364] md: ... autorun DONE. >> > >> > Can we assume that the failure occurred in or immediately after the MD code, >> > or might some output have been truncated? >> > >> > It would be useful to know what the kernel was initializing immediately >> > after MD. Do you have a kernel log for the same config when the kerenl >> > didn't fail? Or maybe enable initcall_debug? >> > >> > -- >> > 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/20180713145811.683ffd0043cac26a5a5af725%40linux-foundation.org. >> > For more options, visit https://groups.google.com/d/optout.