Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp92234ybt; Thu, 18 Jun 2020 19:17:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKk3t+hZ5jMAuFrb95VRyW4eIYSzSpM0HpUNLul+mjr+o5gITfwrtq37oo5J8wVb04mwdu X-Received: by 2002:a17:906:86c5:: with SMTP id j5mr1627030ejy.88.1592533053168; Thu, 18 Jun 2020 19:17:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592533053; cv=none; d=google.com; s=arc-20160816; b=PW9mncbOyQ3YOZn8rzDGYHJxsTovg+sTSVCGvgjQsiB4O6qSO34YwHr+1nHRtpt6QA 8SuxzzNsWNvWeufwBxyd5xfqeMETDV1eLNTJPAcPeErV5/IqVX0bIIH78Y4xDg8OIiw5 8KSpYgUmUOLvELU+XFlgrkI87yEN0o6owOF3RAaFU0XywznvcGu12wUUg9jmKWT5Z4uK Ne0XiuO4y4+BbBC79xIropvBJxDv6VIi8O85UvRguGYWdHg1yZc5wZMLjMbreUgFGmNh 4Vrd1LT4X2vt7ux48IT6kmw/ikvkIrrDErRnVKoAXORq6tG5Ve7vfYNQgGk3szMznqK6 pHfg== 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=mnyBIrnucXjD5JasGEDGQEAckoj03t5PdbNPiajQJmM=; b=I8eEFltL2t9GBqCpdTvZwnR20ud8AQBtj6IZNBVURuvROOdWgXveS8Dh7UC1sH++DX S9wj9367hrziVlICqD3XQYfYD8Vdw8bUD6eZCCrxdlZYK15cE7Uv0V9I1NBOuI3YK8Dp Wuz+cCCwCqaOMwmR1tFCmcwCHdIlg8JXKRjVi11vOimhfcLIuc10/6VpJqwxBKQd2a+b vN14dEnbihSzaBzpwtfMpjvuNl62wqO6tv3L0uZO40NP26OLlpvjPgVZo1ZDLnt4omvL ES2zbu43s5T/UtcbpRQfQTZ/768OvT367v9+WyqPKVCtu57/NhM788eDTAi5Zy8/w+eL lBNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@atishpatra.org header.s=google header.b="TnyG/qjo"; 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 dn21si4101892ejc.19.2020.06.18.19.17.11; Thu, 18 Jun 2020 19:17:33 -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=@atishpatra.org header.s=google header.b="TnyG/qjo"; 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 S1730339AbgFSBeN (ORCPT + 99 others); Thu, 18 Jun 2020 21:34:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727045AbgFSBeM (ORCPT ); Thu, 18 Jun 2020 21:34:12 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C6A4C06174E for ; Thu, 18 Jun 2020 18:34:11 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id g21so3144508wmg.0 for ; Thu, 18 Jun 2020 18:34:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=atishpatra.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mnyBIrnucXjD5JasGEDGQEAckoj03t5PdbNPiajQJmM=; b=TnyG/qjo0RAHRQjUcx6Gty6PDkFh59iqCgsaAgn/9KAcWhyHVEV+EQfqif2tN1tFsi le4LCUxAD0eC8bOVQvHEflfKUFqAoba7Ma/G02zOfpIkr6sSEQXQcw/rj5LXUZOdAXdB qMbOTwa52sVtmHzNdXJtWZlkz/HFY2/aYEnsg= 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=mnyBIrnucXjD5JasGEDGQEAckoj03t5PdbNPiajQJmM=; b=LZKH3zQNJiF8O466h7X/9x+zUf61Bda1V7z+Z3VJnD8xbUcBmiHvVH6NC2QhBN0QKp ebWLuwBY8BTEwxV4iNkz1D75l4D9UzSU+B9c3HfxVqybRHVpe7liQSjOpMbm8aZNbjf9 hveSNWKS+5GpTxBX2S8hjfoZOIkLZZ4RvyXtv6OOmTRVPlC2DjLuFTqSTNe7VTicKpMa u6YJiAnXuC95TDErB6TL5WfjfgvxyhyGJLKEkH6A2386UGYRNTQmffxBbo0GdVPkT61R k6mq5xn2vio1r3B6cn0l1J9O0YEgdlXh9XHkVrmr6XPp9vT1cGU1Fr8mG1yzgAxdDyU2 f86Q== X-Gm-Message-State: AOAM531AbUZSD6gwCKpEwedNxuQ+bZU2xKEkQboDLUVk94RjveA99wY0 icl9TEgcJenL7Oht6+/U8puvzQF9HXxY6iGRFt+c X-Received: by 2002:a1c:2e0e:: with SMTP id u14mr1074278wmu.55.1592530450229; Thu, 18 Jun 2020 18:34:10 -0700 (PDT) MIME-Version: 1.0 References: <20200617203732.2076611-1-atish.patra@wdc.com> In-Reply-To: From: Atish Patra Date: Thu, 18 Jun 2020 18:33:59 -0700 Message-ID: Subject: Re: [PATCH] RISC-V: Acquire mmap lock before invoking walk_page_range To: Palmer Dabbelt Cc: Michel Lespinasse , Albert Ou , LKML , Daniel Jordan , Atish Patra , Paul Walmsley , Andrew Morton , Mike Rapoport , linux-riscv , Zong Li 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 7:29 PM Zong Li wrote: > > On Thu, Jun 18, 2020 at 8:01 AM Michel Lespinasse wrote: > > > > On Wed, Jun 17, 2020 at 1:38 PM Atish Patra wrote: > > > As per walk_page_range documentation, mmap lock should be acquired by the > > > caller before invoking walk_page_range. mmap_assert_locked gets triggered > > > without that. The details can be found here. > > > > > > http://lists.infradead.org/pipermail/linux-riscv/2020-June/010335.html > > > > > > Fixes: 395a21ff859c(riscv: add ARCH_HAS_SET_DIRECT_MAP support) > > > Signed-off-by: Atish Patra > > > > Thanks for the fix. > > > > Reviewed-by: Michel Lespinasse > > It also looks good to me. Thanks for the fix. > > Reviewed-by: Zong Li > Hi Palmer, Can you include this one in rc2 PR as well ? Anybody who gets this issue with their rootfs can't use rc1 without turning off DEBUG_VM. -- Regards, Atish