Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3588462pxf; Mon, 22 Mar 2021 09:53:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWzDUlpKaXPxfPHhUuVGFW6oe7KHZM0zbxRdRbBGBAb0T1llTL+GjEVAnaMwy9gVAfvcBf X-Received: by 2002:a05:6402:447:: with SMTP id p7mr514248edw.89.1616431996036; Mon, 22 Mar 2021 09:53:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616431996; cv=none; d=google.com; s=arc-20160816; b=iVvbgpdc9ug/OKHIXzQO7ztv+lxSQEjY2a7014yHTVZX0kn8CWzwA2puXtj5DgY0Ex EIfd75BmchKAqaHalF7UnUNgNxrZDDsLZ+cHnAiVZar+IPKWHnwEjruN6iVL/hd3PoaI JSdsrZMKsAW+yrqK52IO73zeu2pX0UKqOSmngShb3Cofi++SegGFIraPHz5qHUnId2sc /Bt4R0Pas+G4KhU4UB9O4EXZkT4xjmRdXZTRyt9+axo6q0uO4KKycCr/3fu0+dUmbgTJ BpOOzAi9hh0l2ALdM9ElxJnb+kiyU4he0tj4m2pSwi31OgF0J2isWkOpBYYKUnKDuoFc HWfw== 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=jXJ5Sar/Ifz6JJAimj38gRVDAr3OzSV/gaJ8wXJmb9M=; b=oNCSeJUpnv3WDjdSyBwgurFq7cd7QZDwBFxAcejWgvNG6PTJwT40CX/W6gkfdL8UHT /xK5lqRC8+R2F6tFSATVl2gMmmkZTrfg1SduexdXrVaZc+eOIgKskS6/4OTW1l5tJyiK UDjR8CY9QJD6GCq/jqitH5R7mb6vsMnm4oYlUiAuEKpFTbHQtLn6JkSqJOHnZmDeqg01 a07tkcK30BqGjFcv/dVF+I9b3SWSzF/QQi+uK3PxSRNwKOz5op4/cdeyiU9M1P2TcdUs ngrkC/SZoMc2cNS6afTUQzj6iA55qdNbd1gKvkljawXzXqYYiisk1FyuvNQJ7yqXFGSt nmlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LW9du4C9; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e1si9629610ejq.139.2021.03.22.09.52.53; Mon, 22 Mar 2021 09:53:16 -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; dkim=pass header.i=@linaro.org header.s=google header.b=LW9du4C9; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230422AbhCVQub (ORCPT + 99 others); Mon, 22 Mar 2021 12:50:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230027AbhCVQtz (ORCPT ); Mon, 22 Mar 2021 12:49:55 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A702C061574 for ; Mon, 22 Mar 2021 09:49:53 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id r12so22422935ejr.5 for ; Mon, 22 Mar 2021 09:49:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jXJ5Sar/Ifz6JJAimj38gRVDAr3OzSV/gaJ8wXJmb9M=; b=LW9du4C9WPfXG+G3KZi3P6ozsF9gt4VrbAR4Z62UoD7bHlHwHdeQB3vQ53Ci/uZrnM MCj6yCTpxhDpbCzv7Huqey/XxpEVNrkqnz+LIJg8hRLGIeATT4Jyu5l3a98TeAgR0aOk Eqx37cgwY3RQze7KoCi4XrLF3XH19tHN5MKZVnCnB9OD/Nd/fkkpUT54zJ0KEONLiCNy ubuzzVqkcvIrVQgwmRwnPKLJzTtyUzZL5Kmvm57shs3hdriNL/IV6SXe49tenbBIZB6+ kfe2MdDtVqw245DnHwSXblRbUr9RjfFer7rM588aqSzblIgHPG0vU12qMtyRTWM/TiJL JDmg== 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=jXJ5Sar/Ifz6JJAimj38gRVDAr3OzSV/gaJ8wXJmb9M=; b=KsuOKVtt/CUo0EFB4Fi3EUsMV9YZSMyVINyXjTPQy/iGvOoT0SeZIkSvW7HYG6dBNr yRohR/Un73AweZXfZauR0qZELg9vV6nxxkCrPbo9M1QNmM8WDsrahzWtVXaPVXf/1Oed V6ivf501OgkY5uWNYS3arAQN8TwNMw2YRzbuavI7+AccgAZPKb/+cEYfZ8PnINls5PbQ ZB0G1F0uT+xTGqxanNni5LvrBcfxxDNVwCqMLqbGqT6f7HXnVMDVW6Z0stEN3BKIjcgy 0ii/rztYVaRgbhFLBRLKM94+PyFIdL8p/jrGjoaS5dtdnLxQylW620g2kZgFCCpL8hs0 ZWtA== X-Gm-Message-State: AOAM533Yh4gc6oQ2Jk/FB3L7ZHt60NknWI+1v/gLLUQ8kwXHxocP1asC iGHJ5JVxgEyJ1395WrRJwNbGdktfxDvwVCPZ2Lwoig== X-Received: by 2002:a17:906:8a65:: with SMTP id hy5mr753913ejc.250.1616431792272; Mon, 22 Mar 2021 09:49:52 -0700 (PDT) MIME-Version: 1.0 References: <771d89a8-b7e0-6095-b101-e7ae91bcdc85@huawei.com> In-Reply-To: <771d89a8-b7e0-6095-b101-e7ae91bcdc85@huawei.com> From: Peter Maydell Date: Mon, 22 Mar 2021 16:49:24 +0000 Message-ID: Subject: Re: arm64 syzbot instances To: John Garry Cc: Arnd Bergmann , Dmitry Vyukov , Mark Rutland , Marc Zyngier , Will Deacon , Ard Biesheuvel , Linux ARM , syzkaller , LKML , =?UTF-8?B?QWxleCBCZW5uw6ll?= Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 22 Mar 2021 at 16:36, John Garry wrote: > > >> > >> There's apparently a bit in the PCI spec that reads: > >> The host bus bridge, in PC compatible systems, must return all > >> 1's on a read transaction and discard data on a write transaction > >> when terminated with Master-Abort. > >> > >> which obviously applies only to "PC compatible systems". > > > > Right. As far as I can tell, all ARMv8 and most ARMv7 based SoCs > > do this to be more compatible with PC style operating systems like > > Linux, but you are right that the specification here does not > > mandate that, and the older ARMv5 SoCs seem to be compliant > > as well based on this. > >> TBH I'm having difficulty seeing why the kernel should be doing > >> this at all, though. The device tree tells you you have a PCI > >> controller; PCI supports enumeration of devices; you know exactly > >> where everything is mapped because the BARs tell you that. > >> I don't see anything that justifies the kernel in randomly > >> dereferencing areas of the IO or memory windows where it hasn't > >> mapped anything. > > BIOS has described a CPU-addressable PIO region in the PCI hostbridge, > and the kernel has mapped it: > > [ 3.974309][ T1] pci-host-generic 4010000000.pcie: IO > 0x003eff0000..0x003effffff -> 0x0000000000 > > So I don't see why any accesses there should fault. As requested above, do you have the PCI spec reference for why the PIO region is supposed to do -1/discard for parts of the PIO region where the kernel hasn't mapped any devices ? For classic PCI, at least, the spec does not seem to mandate it. thanks -- PMM