Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp437058ybt; Wed, 17 Jun 2020 05:07:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBHPcVRfcYvK//Rk/9RdCdNFwTW/EfyPdJsI77icQuzPK89GTOc9+snPinqh+ZfLeb/gD8 X-Received: by 2002:a50:f094:: with SMTP id v20mr6820131edl.77.1592395651294; Wed, 17 Jun 2020 05:07:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592395651; cv=none; d=google.com; s=arc-20160816; b=P30doXImz0ajrRTw/Uwn0aJfxAhCvAI/RHiOXSWfTkLqDtHtsZ7cTXAfPV2jkmPE1L +wZHPmVmHQF4SbbxJVqY2g0AQX9Q1gFs3vw1RSJDxnF3cIkl3DqlZMA3XhpuLP90wR6V POFuX/4cZkixkGn5Ad/ZuB5h0RI0qFqI8Y44QzqV+njS8BI7i74UMaEQMuRwfsSMEdwQ PhBKvUvGwCke1HfCeSnDUqO+bsjvxifI1qGOLEJxJFImIbzRwCxg56oNKYgkNl4Ww+eo AptD9d3p4Fooq6P5i67AUwIogkLH95u2nbnc+3l26NFbB5J15iNyS4VAVo0DEXk1xJe0 NNBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ce5ijYOF0B5Aqlf57GOv1H78E2Rpwmzo3WdEJEFGYSE=; b=kUpSGUqgi4G3BaFvN6f6HZ/zqgzG7HCNL8FIG5B3N/dwpIt/uNEMqLuCLw2ndevsvX /iVrJy1t4ssXJXwJWROGV9GQpdr3F6IdJ2P361IcsYiyQaIFCg6EfxP50/mEoVRgNMu0 VBNZ9M/qstf/Iu3Wz0bRXYXY0obNiT0kzcBoSMOLpF0MUaSY/Xj7a/m7MOaX3wARxNVl h63jGJKamq+zSKrCVK7/y4g5uNxaMp4iMFY8ZLk0Lz96MYsOgdib1RUdMl4aAkK1iXaX tyKAEJdJeivuBXo1eUrUCe+Vn0Tkn3sRNyzN+P87fc1oGgnR7hGmc1B6qgRhdbtvDJNB KZDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=QAExVmYq; 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 bm19si12155978edb.59.2020.06.17.05.07.08; Wed, 17 Jun 2020 05:07:31 -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=QAExVmYq; 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 S1726491AbgFQMFI (ORCPT + 99 others); Wed, 17 Jun 2020 08:05:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726044AbgFQMFI (ORCPT ); Wed, 17 Jun 2020 08:05:08 -0400 Received: from mail-yb1-xb42.google.com (mail-yb1-xb42.google.com [IPv6:2607:f8b0:4864:20::b42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73F4BC061573 for ; Wed, 17 Jun 2020 05:05:06 -0700 (PDT) Received: by mail-yb1-xb42.google.com with SMTP id s1so1144590ybo.7 for ; Wed, 17 Jun 2020 05:05:06 -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=ce5ijYOF0B5Aqlf57GOv1H78E2Rpwmzo3WdEJEFGYSE=; b=QAExVmYqjdDJlSzYO0zRvYtLurMgwAeu8aVFVB8OL8VsADCePe+QaZgfl9OkXCKMAQ VKuabSPfs5so+ExviNS0jK0/pg8P+SUO6EisqEr5iBs8D8GfHdHzEXPMQyrTW/GvPWaU S/rpxTYOoPblTuhGcsXkbxUjMFdffWjZaJAH2Yf+MrKACpx9oUwzd7a6Iv6gA4XIx3Ky EP5jCZdtRVa34VO/VJ6okmLDOWuzJ1+ygmLdjT9hXqVNFsvAHysGhxo8YQ4tMhkd7Lkr wrif3VT2UfRTXX5dSLWVZ1RRUUPVoYECIfDkG5oeJD/zmqgSnw5qI33u0VsoZflYnWiZ wFIg== 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=ce5ijYOF0B5Aqlf57GOv1H78E2Rpwmzo3WdEJEFGYSE=; b=YWz0AA2c3sfvw02brwLDdL0onCDzh+cKc8jxK+ms86BIVfVZ/9n9LF7SC8ODjOXgLL /8vf+JK9cIifyHcxUu8bRro5s5cW1lq34H6VbYLKGXew4Z3aCu1aciJIbnZviPqB93cC OzdbhtK43FvAziqRmL9x7L9P1s8bc8+qARfn91ht6w6WvLu8Kt+nn+ph7IqFU6NuQbEh UV+P7y7EuIzYWpxB2mFwy6VD6qZUaFflWzxVr04Pn3eHstAx2Vd0GOn4mcvNEO8EeIkn ABZWvek0GScVcDBYG6bXxq1JSKkTt6BBYj8PVZq4ngtjLZJN+sSrg1MqLp0cJFXK1PNL 3l5A== X-Gm-Message-State: AOAM533x/bbSHhcHUnireQ479XM5YT4hYXRazpy9bgC6TCS2flKXb+dk zPop1Ff0aBxfVTK30ou0adLfybFp+E9i+MmB0paF/g== X-Received: by 2002:a25:7b82:: with SMTP id w124mr11825940ybc.320.1592395505465; Wed, 17 Jun 2020 05:05:05 -0700 (PDT) MIME-Version: 1.0 References: <20200617090247.1680188-1-shorne@gmail.com> In-Reply-To: <20200617090247.1680188-1-shorne@gmail.com> From: Michel Lespinasse Date: Wed, 17 Jun 2020 05:04:52 -0700 Message-ID: Subject: Re: [PATCH] openrisc: Fix boot oops when DEBUG_VM is enabled To: Stafford Horne Cc: LKML , Jonas Bonn , Stefan Kristiansson , Jason Gunthorpe , Steven Price , Thomas Hellstrom , Robin Murphy , Andrew Morton , Vlastimil Babka , Daniel Jordan , openrisc@lists.librecores.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 17, 2020 at 2:03 AM Stafford Horne wrote: > Since v5.8-rc1 OpenRISC Linux fails to boot when DEBUG_VM is enabled. > This has been bisected to commit 42fc541404f2 ("mmap locking API: add > mmap_assert_locked() and mmap_assert_write_locked()"). > > The added locking checks exposed the issue that OpenRISC was not taking > this mmap lock when during page walks for DMA operations. This patch > locks and unlocks the mmap lock for page walking. > > Fixes: 42fc541404f2 ("mmap locking API: add mmap_assert_locked() and mmap_assert_write_locked()" > Cc: Michel Lespinasse > Signed-off-by: Stafford Horne Thanks for the fix. Reviewed-by: Michel Lespinasse