Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1172679pxf; Fri, 12 Mar 2021 03:48:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJz8xwhezdo+PelQGgiz9Ex21axV5DfQNNCPX1T2cKYIHOyDjgAvgRah5Inl7tzHBy9GvP7d X-Received: by 2002:aa7:c150:: with SMTP id r16mr13334941edp.96.1615549724194; Fri, 12 Mar 2021 03:48:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615549724; cv=none; d=google.com; s=arc-20160816; b=pZ+pu8Sw2jGFGTTKZ+yXKxy4oIxoIQAdjK+cnmpFM9LAy95Y4+t+TCyMvBDGdTqjBd a62kTWw57qbtosfNaL5mth8ORL3z6vFq08c+PStq8FZVgESnT2thg/cbGb5jixnj49As 3XrgYEoYHQTcv+yV6JLOmogMnl56SDC1Co7iLNXu2f3GA86iuL1Ff4iB3Mp4cPGFenQO 3LO/54wIKx+5OWAZFXJo/ZzH6QlKnbC1mc25KajdEwu334RDNNi6Co5xDn+ijR2WYYIE oGFJgOq3Iml3myYT/In7slbDpS792Hezhq7i68afPUm7ALbLpYiTUO2LZ6Md/E7hHcoa h84g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=iWKvAGiRnhLquHQ+RPB+OyLtA9yjx7WsA3FQ83tQqko=; b=aDeDC5pH9M6YixL6mVIotSh49F+YyV7mQSa9bMcNOYsnz92CLUxxhP+CsNzWK/9cHr AOcrifmFEFb3PvUBebczo8Pv0/xLRb7Kl7F6QqqcdNfu5v1LRUfz8yeQoifl0RPJy/HN F5UmXSrVS1aukrPbi/FiF5uvKOzDOjX7oCXgbglAgiSKF4xANwAQPVH8h8WWaUHj3D+T tQTt6c1uV1//yBuZgXLodh3UokYobaFIXGB+K7g543ynyAOpxKNLdwmNa3cY9kgnKVlm uIrJjuialQ7/L9d+SyxL1VRH6+0g20b0gXWsZa4vLrg8PmL9fNOGgEY8s73U0GP28rta pT8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=i9hsJeYi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id bx8si4219074edb.517.2021.03.12.03.48.21; Fri, 12 Mar 2021 03:48:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=i9hsJeYi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S232798AbhCLJVz (ORCPT + 99 others); Fri, 12 Mar 2021 04:21:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232556AbhCLJVx (ORCPT ); Fri, 12 Mar 2021 04:21:53 -0500 Received: from mail-qv1-xf36.google.com (mail-qv1-xf36.google.com [IPv6:2607:f8b0:4864:20::f36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81285C061574 for ; Fri, 12 Mar 2021 01:21:53 -0800 (PST) Received: by mail-qv1-xf36.google.com with SMTP id l15so3932490qvl.4 for ; Fri, 12 Mar 2021 01:21:53 -0800 (PST) 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 :cc; bh=iWKvAGiRnhLquHQ+RPB+OyLtA9yjx7WsA3FQ83tQqko=; b=i9hsJeYi3+tzFRPk4krMWWUhY1HpCXJ0D/YqqWplkPZ2mshdNt/WIXmi+BMURFm1ek 92NGQ+s4yWP7DFNJuyl+jZigA/1AeNotVlYOoDPTR+9LnmYcb4Wfdb3R1Dv4qmtOn6l6 rsMUj6tLWLT3jlu0Bbry0rsNqjVBfsfOeMnlFzqNfPykfZLdducmdgds4R4FIOHxFNIp 0USmI4pKBnBB48q7R3HDmZ1fH2ceUFf+HheRR6sJOAdz4i+WcDG4eqXD499MjW2HcGwE qVi4+JyE5GA8XY2z+4XxoPVVCxWzYP0FWzxXJspDQwQW5TjXSf8q0rPrroG/FC5lc5PM jtqQ== 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:cc; bh=iWKvAGiRnhLquHQ+RPB+OyLtA9yjx7WsA3FQ83tQqko=; b=EcdV4GBUmNazwW4X9vIw9GtD0eON0useqlDIY5lK5DTuJPIsWXiyaS2INZdhb7CN9C ym3OffS6xGLZgheIFFSqvrbwDuczf9tPkml8mYdcUd2B4XElay5MSgE/Fqlb7ZZvpGOU D4/2dNsKD9YlGe+HnVWaZaHjWB5Whb1kCh5SkXgZaWExPKpNfSn0vtL/JWBlTPU4B/8p qRl6UgeTV2SL4SWroeTRKbMZ1RQy2t3dsSyWQ2ROomQzaf4OK3yg30ulvafaSv0LZodq a9wS0/UeGEgOs6ttmYxV9eec6tsOHlgj2oqi61XJ3JHnV6+yrFrWZQVNaSQmv322TrO9 ZwKg== X-Gm-Message-State: AOAM533szvGjYP1eKyiXo4tp7Xyqjy+eQ0lHSo9hdkqGDo+KIm2AyZP9 hga9e1RmvhXvjFlIJ7FsjiJgjgEXyHLZ2mmIKH1/kQ== X-Received: by 2002:a0c:8304:: with SMTP id j4mr11587575qva.18.1615540912497; Fri, 12 Mar 2021 01:21:52 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Dmitry Vyukov Date: Fri, 12 Mar 2021 10:21:41 +0100 Message-ID: Subject: Re: arm64 syzbot instances To: Arnd Bergmann Cc: Mark Rutland , Marc Zyngier , Will Deacon , Ard Biesheuvel , Linux ARM , syzkaller , LKML , John Garry , Peter Maydell , =?UTF-8?B?QWxleCBCZW5uw6ll?= Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 12, 2021 at 10:16 AM Arnd Bergmann wrote: > > On Fri, Mar 12, 2021 at 9:46 AM Dmitry Vyukov wrote: > > On Fri, Mar 12, 2021 at 9:40 AM Arnd Bergmann wrote: > > > On Thu, Mar 11, 2021 at 6:57 PM Dmitry Vyukov wrote: > > > a) accessing a legacy ISA/LPC port should not result in an oops, > > > but should instead return values with all bits set. There could > > > be a ratelimited console warning about broken drivers, but we > > > can't assume that all drivers work correctly, as some ancient > > > PC style drivers still rely on this. > > > John Garry has recently worked on a related bugfix, so maybe > > > either this is the same bug he encountered (and hasn't merged > > > yet), or if his fix got merged there is still a remaining problem. > > > > b) It should not be possible to open /dev/ttyS3 if the device is > > > not initialized. What is the output of 'cat /proc/tty/driver/serial' > > > on this machine? Do you see any messages from the serial > > > driver in the boot log? > > > Unfortunately there are so many different ways to probe devices > > > in the 8250 driver that I don't know where this comes from. > > > Your config file has > > > CONFIG_SERIAL_8250_PNP=y > > > CONFIG_SERIAL_8250_NR_UARTS=32 > > > CONFIG_SERIAL_8250_RUNTIME_UARTS=4 > > > CONFIG_SERIAL_8250_EXTENDED=y > > > I guess it's probably the preconfigured uarts that somehow > > > become probed without initialization, but it could also be > > > an explicit device incorrectly described by qemu. > > > > > > Here is fool boot log, /proc/tty/driver/serial and the crash: > > https://gist.githubusercontent.com/dvyukov/084890d9b4aa7cd54f468e652a9b5881/raw/54c12248ff6a4885ba6c530d56b3adad59bc6187/gistfile1.txt > > Ok, so there are four 8250 ports, and none of them are initialized, > while the console is on /dev/ttyAMA0 using a different driver. > > I'm fairly sure this is a bug in the kernel then, not in qemu. > > > I also see that the PCI I/O space gets mapped to a physical address: > [ 3.974309][ T1] pci-host-generic 4010000000.pcie: IO > 0x003eff0000..0x003effffff -> 0x0000000000 > > So it's probably qemu that triggers the 'synchronous external > abort' when accessing the PCI I/O space, which in turn hints > towards a bug in qemu. Presumably it only returns data from > I/O ports that are actually mapped to a device when real hardware > is supposed to return 0xffffffff when reading from unused I/O ports. > This would be separate from the work that John did, which only > fixed the kernel for accessing I/O port ranges that do not have > a corresponding MMU mapping to hardware ports. Will John's patch fix this crash w/o any changes in qemu? That would be good enough for syzbot. Otherwise we need to report the issue to qemu.