Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3176828pxf; Mon, 15 Mar 2021 03:36:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy458YRXzzawgrYcL+NkBhI5r1bNoJsrMOoCWAmtbqHM96MK5EOqhDlxzNhaCnvrf58Thca X-Received: by 2002:aa7:da46:: with SMTP id w6mr29474417eds.40.1615804607735; Mon, 15 Mar 2021 03:36:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615804607; cv=none; d=google.com; s=arc-20160816; b=BZtZ4CfTusVFKJQRJu+eSDX71i4iTA2NVNIcUhMSpQzbwzho5hptq35mPc4icFR2UT gUHRGUuvdOxFHwlrRK1+on84aKNEiKnqEgXUcTnThPTvDuWD7gQ7VfUm3m1TDqfg78DH yq3R6d+jWqM1hbat4ePNWMFuaVaiqqggxjRqXIrx0j8Nkx/6feA8tyKVlXR8OcvWhPeI 4iUq+QF8areUg0G4OHFehN0MqBOs1isEEDaIA42H5BqG/J0BGJBhnnS9WU4vz8j5/8iM p9Q9g7iepsSqF6TYueuIPj4Oh2PnHRdHgEVDYtBISKWiuiU6MInvJn5YWZ3KLY0B7poK uHIw== 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=Oj3gkISQvzX18ve66XyOC8TkVVIvr6zfjGYpR+G+oBo=; b=lxsmujyPs9BrzjbfBhTL4QWk/tsLtQyAiMcOnqvoQ4QsolhXguLIMTMdfkGwvjvldO NZnab3o8aOVh7/OOnZ/eABnkXCgINAlvrf1mVzZz42A+p5vt6dQyhAnWbGEzJafRleJm M3ximQLLZe3ybAKeFRvVm2VbqH4LYsNOdw8IB+xT8bBppqIj26ElJYhKV00uzkpoioSD iyfx1bFlst7W+PSKWnFzrCjdH5zF5fFGRQBS3ZJpf5ps0UFXHD2rkPly3oMzWt6ZOmfP v+gayK3/7Sx/wkOzan4wwdveeNA7yh4NshLJLAeQRf1/LsxyXFAp0tx3PebTKHmIqOkY iInQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=gBkZsQIv; 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 ds7si1414513ejc.214.2021.03.15.03.36.24; Mon, 15 Mar 2021 03:36:47 -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=@google.com header.s=20161025 header.b=gBkZsQIv; 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 S229623AbhCOKfJ (ORCPT + 99 others); Mon, 15 Mar 2021 06:35:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229720AbhCOKev (ORCPT ); Mon, 15 Mar 2021 06:34:51 -0400 Received: from mail-qv1-xf29.google.com (mail-qv1-xf29.google.com [IPv6:2607:f8b0:4864:20::f29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E3E7C061574 for ; Mon, 15 Mar 2021 03:34:51 -0700 (PDT) Received: by mail-qv1-xf29.google.com with SMTP id h3so7465830qvh.8 for ; Mon, 15 Mar 2021 03:34:51 -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 :cc; bh=Oj3gkISQvzX18ve66XyOC8TkVVIvr6zfjGYpR+G+oBo=; b=gBkZsQIvurZhYsAr2X62O6XOW5n2qf3SIJwCbmE4qRW5OVBPaaYoQojtA5qGv+P4D7 J5ESkix3Ek+4x+pHemIehDaEiBkO+jsBfUzSni1dLZ70uQPw6ztcJaNwHM3BrVXvFC+H nUvZHSOoKZcB/E7ySPrwHUGGjuSaAbngrAysbL/lVTVoWYlRmnQbw7qslyrRfVXO2Nt+ TPyOtGMPNsCh1Fc9bWCXlAQ7OcYLTOeFjL4bI+qfSQXz4jnb6k1x3DwKgwbUx/YHGAnD BjHx3I8WYo7KY0KVcpL4i7BjR/fPTuaeL5WyYo3OpFKgo6Orx+/SyCrNAO37kT5mHRwa efxQ== 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=Oj3gkISQvzX18ve66XyOC8TkVVIvr6zfjGYpR+G+oBo=; b=K1WEjK9aBpt1NPXZadwY2p7f5eHf9u2xoGMIFg4er6kkpNId00cUPYdbG4dHJgmSIS YaqDaC7Og5Z1vzzj9LuhhRVJCeXzjFzN/Aj7VCvnjYx1qh9O3EzQ1yAnmN5eqn6Zbiek 21Ei96y4YsCO2oBNK/SDeQqLO1iaUn3Nw3P+ykzl8N9m8wlvdhehV+dZdkC3PXQ23GXK F2nLOPRVoWwelzSTZaljf65m5fAlo/xqp17xoit6J/yBQEwwG7z5OH/ZnSyzhCcHPO+J XsxHke2zqkMwJMv/x05RfsNImK8CDSNhqA8s9z4L2ihSJner/eDTIkbCjndjKyeaG20t DsLA== X-Gm-Message-State: AOAM532qjPToxrT9L02Yg3SvuXybO6bLfThBJHpbg0fGTQHAhleDix4o Zlb0LaqA6jqnGxqmILVhsECjklPeLJMOdBB69HFm0g== X-Received: by 2002:ad4:410d:: with SMTP id i13mr9792315qvp.44.1615804489956; Mon, 15 Mar 2021 03:34:49 -0700 (PDT) MIME-Version: 1.0 References: <48347b4d-9194-16f2-95a0-c3eb55ca9a80@huawei.com> <56d33822-e577-c8a8-673b-675d6920c379@huawei.com> In-Reply-To: <56d33822-e577-c8a8-673b-675d6920c379@huawei.com> From: Dmitry Vyukov Date: Mon, 15 Mar 2021 11:34:38 +0100 Message-ID: Subject: Re: arm64 syzbot instances To: John Garry Cc: Arnd Bergmann , Mark Rutland , Marc Zyngier , Will Deacon , Ard Biesheuvel , Linux ARM , syzkaller , LKML , Peter Maydell , =?UTF-8?B?QWxleCBCZW5uw6ll?= , Jiahui Cen Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 15, 2021 at 11:31 AM John Garry wrote: > > On 15/03/2021 10:01, Dmitry Vyukov wrote: > > On Mon, Mar 15, 2021 at 10:45 AM John Garry wrote: > >>>> It does not happen too often on syzbot so far, so let's try to do the > >>>> right thing first. > >>>> I've filed:https://bugs.launchpad.net/qemu/+bug/1918917 > >>>> with a link to this thread. To be fair, I don't fully understand what > >>>> I am talking about, I hope I proxied your description properly. > >>> Thanks, looks good. I provided a little more detail in a comment there. > >>> > >>> Arnd > >>> . > >>> > >> From looking at the bug report, my impression is that this is a qemu > >> issue, as the logical IO space is mapped to the PCI host bridge IO > >> space, and qemu does not handle accesses to that CPU addressable region > >> at all. As Arnd said. > >> > >> However, we really should not be accessing logical IO ports 0 or 0x2f8 > >> at all via ttyS3 if not enumerated from PCI device at that logical IO > >> port. That is what I think anyway, as who knows what device - if any - > >> really exists at that location. That is why I had this patch to just > >> stop accesses to legacy IO port regions on arm64: > >> > >> https://lore.kernel.org/lkml/1610729929-188490-2-git-send-email-john.garry@huawei.com/ > > Hi John, > > > > Thanks for the info. > > > > The patch is from January, but it's not merged yet, right? > > It will fix the crash we see, right? > > . > > It's not merged, and it probably would solve this issue. But following > discussion with Arnd when it was originally posted, I still need to do > some analysis whether it is the proper thing to do. OK, I will tell syzbot about the fixing patch. > However, as mentioned, the fundamental issue looks like qemu IO port > access, so it would be good to check that first. I've filed https://bugs.launchpad.net/qemu/+bug/1918917 for qemu. > On a related topic, I will cc colleague Jiahui Cen, who I think was > doing some work arm on qemu support in a related area, so may share some > experience here. > > Jiahui Cen did have a patch to fix logical PIO code from this work [0], > which is not merged, but I don't think would help here. I will cc you on it. > > Thanks, > John > > [0] > https://lore.kernel.org/lkml/006ad6ce-d6b2-59cb-8209-aca3f6e53fec@huawei.com/