Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2727535pxf; Sun, 21 Mar 2021 04:57:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybrVVdDhKtLY2KXup62Okb2HbPtCt4+1ZYy+m2+mYEevaJpvWDUNGAduj+5uaGz1Du7J6V X-Received: by 2002:a17:906:2dda:: with SMTP id h26mr14023540eji.163.1616327843851; Sun, 21 Mar 2021 04:57:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616327843; cv=none; d=google.com; s=arc-20160816; b=iYtwLhBjVSypJjsmZud6Rz6UqVogh/W1zbWYEsXh+lfz6QJYgmhOVPaVaQlTDAjz2D OiFGaWemP6+gZeE2gl3pZbXus3RaiklyELqGBn+6CNzvMxQvk2BGZtPMtcm/YC8nfZme fWQKTDTRzjDjppFDpYeFIGpc5eq1BSJpC3U83nBA7tBCaTwFufxmogWj2oAm81cvhO0R AtmEBPApmPLj3RWnZWwLrOriK90TOW78+Gu5aHuF08VH3aFlbnS4ZY+shPu3qAzS6P4A gPJmFgFryqWFZkFoN+bhY0bCKNnhWVql1jBWpm3CNWrnBS38uOAd2zj9lT5OE5Jcfe4o djWg== 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; bh=G3yCIWYnC6C9ESsicQJcrtaV1oTo0OiJJq5hXwteIAE=; b=UPmTputRf3GAH5CngWqV9sxaYklFcTMWhORjfce3JkET/2/2c82V7xl9I3dlAn4243 R1pzApZLXtcjTifgYK9wgB6G9dx6yExNxij47SZ5ZvEA59RPV/+sgU//Fo3oUdm3Zp/z fHfTBLIhBNkMMkfrXGrocySxvFVxPrOVWcq5C4adjLRjRzYytasqlzZhHILnCR+f+1v7 2YuSiGeJpHKIZrEghX13x4FgHQC1Ug7gdJwJknYBcnjXXTTSYWPTmKGW+Xx8pQ2TnzfS bkCX08k3SFf4IOnKQuc1aem2SJPR16AKJfBS8xRCrjM0KteEBPjwFYBLboOVfuFs/Y6D tzCw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y21si8983951edo.16.2021.03.21.04.57.01; Sun, 21 Mar 2021 04:57:23 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229941AbhCULxe (ORCPT + 99 others); Sun, 21 Mar 2021 07:53:34 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:34317 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229835AbhCULxR (ORCPT ); Sun, 21 Mar 2021 07:53:17 -0400 Received: from mail-oi1-f178.google.com ([209.85.167.178]) by mrelayeu.kundenserver.de (mreue106 [213.165.67.113]) with ESMTPSA (Nemesis) id 1MBmDy-1lXp3v1Bvw-00CCOl for ; Sun, 21 Mar 2021 12:53:15 +0100 Received: by mail-oi1-f178.google.com with SMTP id c16so1186569oib.3 for ; Sun, 21 Mar 2021 04:53:15 -0700 (PDT) X-Gm-Message-State: AOAM5303s31v8lxvyuWZD7KR2Q13dA+qGVRUDPv3PXXUiOWQPbhLBmn0 wUWqPkXH8ND4SPUz3RKdYienrRq/Opm/JoHvbcI= X-Received: by 2002:a05:6808:313:: with SMTP id i19mr6541428oie.67.1616327594034; Sun, 21 Mar 2021 04:53:14 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Arnd Bergmann Date: Sun, 21 Mar 2021 12:52:57 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: arm64 syzbot instances To: Peter Maydell Cc: Dmitry Vyukov , Mark Rutland , Marc Zyngier , Will Deacon , Ard Biesheuvel , Linux ARM , syzkaller , LKML , John Garry , =?UTF-8?B?QWxleCBCZW5uw6ll?= Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:hWf95woDn4Oki4P0tPlrC1sAIg/cU5g1H2+1pkHzwbuV4T22z7C MxVjc+OK3lIJnuiUwyWWqNoQqNed/hkX8kSbTpPFTyzhjXOxow68oPuuaxFdfbXJn391X9T 2DQ70I7iGDxdCML9wBRo0mTE+nhIr5Vfy6MqdFixOzQyhK1WkQ6r84aPikxVRRuh8btmT9H F3kmUqtmPnhWG4xMP8aNQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:56kzO+ltDWw=:s21faXoEJCTf8hserHl06G pAtEq0xyLTFBC+v1+3uLyPLg1/CnPjxKe5kbSccWBNiV6Z0UvQDtfa5gemqFuayVzbdcZ2ZQt bODU6j7INoAOsKPIcs4oge4YX3DtOLQpGF9a+TDlpfggH058KoogyhIWFDTa6HHQQfeQAxbkt wiHpQpTQwbNoz1n2Mr9eTMQXN75/GRQHHJqzP2T57gvdspF/eCPIV0CG2d6baK5aqz7u96Z5i chUndEqpJ31oSs7lGN9mX5PPUOpI4zVSxO9qDi1kWFedwwYacQM4/GjWpiJUenXVJ1MziILoq InRZe4rGE0NZT1sNy+sXlFy2tAVbym0mhBySpbs+0bWUZw0kUKEChliZISAOsDCyLtTtJ+BEI Mi5KvVQpZeZHQtlM76Vl5hn53zsMk3+JCa2PvyBnhemjvF130LI/U81wPJkIVW2S/uibHkei+ aehRb9314EldovVxh6XaTrX3a/p1Nn1GDM6eFhS2KC76GbvusUAAC0+Qpmx+q1BMKRXmyWmj0 IGUJeq//hW5pyDKBRQ+hdwM8WZHICdescIGm6pEKTLwsbTM2GnnU2S4zK2zt+M+ZQ== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 20, 2021 at 9:43 PM Peter Maydell wrote: > > On Fri, 12 Mar 2021 at 09:16, Arnd Bergmann wrote: > > 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. > > Do you have a reference to the bit of the PCI spec that mandates > this -1/discard behaviour for attempted access to places where > there isn't actually a PCI device mapped ? The spec is pretty > long and hard to read... > > (Knowing to what extent this behaviour is mandatory for all > PCI systems/host controllers vs just "it would be nice if the > gpex host controller worked this way" would help in figuring > out where in QEMU to change.) Sorry, I don't. I can probably find something in there myself, but in the end it comes down to Linux drivers relying on this behavior for ISA devices since the start. On an old-style x86 PC, this is the only method for finding out if a device is present or not, since there is no description in the firmware that lists them. PCIe devices remain backwards compatible with the old ISA bus, so the old behavior must generally be kept possible. I don't think a specification for the ISA bus exists at all, and I found nothing in the related LPC specification about reading from an unknown device. https://tldp.org/HOWTO/Plug-and-Play-HOWTO-6.html#ss6.12 states the behavior of the ISA I/O ports and how Linux drivers rely on that. Is that enough for you? Arnd