From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7DF2CC433DB for ; Fri, 12 Mar 2021 09:18:18 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C113B64FE0 for ; Fri, 12 Mar 2021 09:18:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C113B64FE0 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arndb.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=LoV6PIlbxZWZuguvTkYAsTFnTtcNu2YkqNu/6TpPYeE=; b=ZQRaBWU7LSZBq+2/H70n3gdaM 2CXgCZYwmtYRg40Sp9IQoaLgVB/nDh9J6MJ1YL5DGjOQnLCo8OuR0z3zTOp9vL/QTi/KLcgq5Zosl SUONM/E1PVn7RzeQdhHtq/GSzWmE29TRfe1HcjWuneUYaOoFnVoXsUV24UUB0JLGCfLx1dDXoi/25 EZzjoioFYAC9J3ehmYj6cl/DmtQ+dZNwjHR0B+IIl5g7tiIdFtp2O8rNcXaJh21mT+Y+xS490+qad akOa5wWsNCORb2Rrq23ha+8aZ7xjg4d3oAylK/RrYMu9vLZf9NNcN8Nlbg53WXyD+MiS47MBzBobF x+PdS64yQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lKduO-00AzBh-SM; Fri, 12 Mar 2021 09:16:38 +0000 Received: from mout.kundenserver.de ([212.227.17.13]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lKduE-00Az9L-JR for linux-arm-kernel@lists.infradead.org; Fri, 12 Mar 2021 09:16:30 +0000 Received: from mail-oi1-f169.google.com ([209.85.167.169]) by mrelayeu.kundenserver.de (mreue106 [213.165.67.113]) with ESMTPSA (Nemesis) id 1Mzy6q-1lhO3V467i-00x4sb for ; Fri, 12 Mar 2021 10:16:24 +0100 Received: by mail-oi1-f169.google.com with SMTP id o22so16435940oic.3 for ; Fri, 12 Mar 2021 01:16:23 -0800 (PST) X-Gm-Message-State: AOAM533K6T1SDwFE53OLv5SPqAYeMPl0lIYJxUv3Ww6p+mnw5KJ+zPRd jQ4Ry7l7T8PgJFZdOCE9z2WTSzOpoXON6NKqdnA= X-Google-Smtp-Source: ABdhPJzmaVJ1BJErR0dLY0ZxkdxZtpByDi2BzxzHbvs2pmhYjuIxfSu88HTZsMy7qzRtHS5rf9KAplSRmoOlQnAR19o= X-Received: by 2002:aca:5945:: with SMTP id n66mr1452819oib.11.1615540582581; Fri, 12 Mar 2021 01:16:22 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Arnd Bergmann Date: Fri, 12 Mar 2021 10:16:06 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: arm64 syzbot instances To: Dmitry Vyukov Cc: Mark Rutland , Marc Zyngier , Will Deacon , Ard Biesheuvel , Linux ARM , syzkaller , LKML , John Garry , Peter Maydell , =?UTF-8?B?QWxleCBCZW5uw6ll?= X-Provags-ID: V03:K1:tYQGZKJaNhydbf4/+HTZ07OQYicV486LU83w8jEd7hx5zezcWIp 4PTqJ+cu65YhCLYtrGo4iYRn70qWEIfms6WcymjIDF5uQuBo+cU2HkAYyPt/AaqK3ExN49O ldf/Y4DsWlMpf8hEO4VGkHxMOvzWcV3rzuOlIMOhj+uctCnkQA2VJ3AIaNlLWTDKPVb+DCe yABA9qSs+ZMHdQxgPcGOA== X-UI-Out-Filterresults: notjunk:1;V03:K0:WKY1CVuIW18=:BwmBjnMn6qnivlvOnrTJNY Gynk8A1RFxVMLiBb7SjXBonXjF+IPsvuCvncrWd9PyNqbM638hBoeOf8AJkGmv89c8HD8HbdH 7IvflEtmANnSEZPs8RA0yQQucDC52iPsQlFoB04NUrmXXvGM3djdpzzTS+yzMuQP4m29B5gUY vQJrjxxXpvJOKiO5NMms6W7P5jMbDnV0b6kcZVGB5V69ykkWEz/mXPxfeLkhXWTt92pg/jWST Dq5+YsdDOA64xbjnNioqUOqlqd3Km0VU4A4yFdSg5q0HfD9BXVfBbs04Kjh1GpRTed7HY/8To qWoJLzdUsDRnTMUH9wDPD8e/+btAjS3j8ezRqvib+RYvEUI3LrUj6YH3Qre3q0LGBHA41cVls BrjeGuE3ghEWfvXnqgQvT8y3QYyt1JbhpYrQVkF3J48FJgTcEz9c4icXuc6DLnIC0cIEBU4xH D5lxMgVgVletv4K7w9Nl6i1GuMbH8o+8x4lzktpuVIqREZPF+fccFw/IzmHEDFkQSeNV8eVfS doRg3T7tyPiZixErXbI61F0tKj2BstJq0MF0CZyfDP3IUHQr4fj/g3fDXwX1CNA8A== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210312_091626_948249_B664AC97 X-CRM114-Status: GOOD ( 30.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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. Arnd _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel