Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp133604ybh; Mon, 20 Jul 2020 12:14:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxw1zsCffkt72qyiXR8gFvLm8l1ZWZTas4SP9xppcu8OdqVsJkWjx6w2/qEPSQvF39/JQJk X-Received: by 2002:a17:906:8d5:: with SMTP id o21mr4562140eje.155.1595272484003; Mon, 20 Jul 2020 12:14:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595272483; cv=none; d=google.com; s=arc-20160816; b=hoWJrB6x+y1lhx1/c5ofybDz8xwsAMoL1jeKrOwvqe+E9gWW8FcbqXfiKfvQuXBYCe HfUQ/034Ynn5KzOA9bInn5rV/Ma2/98IhY36S1njo6zPyQoovEi8cZIAkyUDvDsDmPL0 qawFG33SVi5NqZgPSo/GfvMfBBbz1PUue7vtvJImDeo81q5rzU2w+PpeMn18Q7ZVUg+X ZWVdY1Z2dskuvFeNuN/QhhajiBT4/EzP/8RDG09C1T68taiusg4y3dr/yDxovdpim0nU Bfw64oxuMEyjZ9iUmDT9p5lCAWNqpsGM9KxnVttYeqb6O/77yYaKicBiSMOBuLWO9CEM O3Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=WylN1Cj3LOSdkBRmrWLiHT2rztw/WNSt3x3wuynGsY0=; b=xWyZbnhEqwnF2XFUM+9YVTauJ9c3kkHhIk7piUu/YnqHr9RjS3TZYyXlvwbHbGNd+K dQ4HoY9V0IgdA43d9yG0KxycGzQHc7QuHYjObDOZSQ/tKbmLUe4OeshzvLbu1ixyh7xn iv4PDoNRghtLVYZbzkyQ9jYPcXS/Xf/FIujrLI0CQgOkqDarHCVXjxgrhOQPjmjr73P3 bLkklQUZKQFO5GEF2wbvhXHld2tKQCmuUgN88tTMBkfW9J0cqlXBJQnE2jhh+WUdjd0m 52chwxeb+9ecWXDl61VwWpbaeaRVg/wVHaHyYZLnJIFOKSGmH3ooDrwOO5nwIK9gp4xK AuLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lBXDlQsr; 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 ca17si10928919ejb.533.2020.07.20.12.14.20; Mon, 20 Jul 2020 12:14:43 -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=@kernel.org header.s=default header.b=lBXDlQsr; 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 S1729027AbgGTTNz (ORCPT + 99 others); Mon, 20 Jul 2020 15:13:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:36562 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728771AbgGTTNy (ORCPT ); Mon, 20 Jul 2020 15:13:54 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9A46C2176B; Mon, 20 Jul 2020 19:13:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595272434; bh=hLXOHhr7/G2lqFQDj4nvPKc453bOQlXUJx/UKuZzRJ8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lBXDlQsr8NG7GoGgB4PpDI4UZSCPnnMRA1YjX9aKE4sQ74fC+ItEdKkJeXt+EBrRb /XjQijor7OKyNKRyAgRAoVuNsAdQamO54Hpuu4xf82HH8V0jPXs1UNoJmWfemtqUlV +ooY2xvQuzZ0RMEbUFMkTGD7/aOmJV9BlObs+au4= Date: Mon, 20 Jul 2020 21:14:03 +0200 From: "gregkh@linuxfoundation.org" To: Atish Patra Cc: "naresh.kamboju@linaro.org" , "stable@vger.kernel.org" , "walken@google.com" , "palmerdabbelt@google.com" , "linux-kernel@vger.kernel.org" , "zong.li@sifive.com" , "lkft-triage@lists.linaro.org" Subject: Re: [PATCH 5.7 233/244] RISC-V: Acquire mmap lock before invoking walk_page_range Message-ID: <20200720191403.GB1529125@kroah.com> References: <20200720152825.863040590@linuxfoundation.org> <20200720152836.926007002@linuxfoundation.org> <194a70d4428b96b59594efc5cae7ed26f6da45b3.camel@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <194a70d4428b96b59594efc5cae7ed26f6da45b3.camel@wdc.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 20, 2020 at 06:50:10PM +0000, Atish Patra wrote: > On Mon, 2020-07-20 at 23:11 +0530, Naresh Kamboju wrote: > > RISC-V build breaks on stable-rc 5.7 branch. > > build failed with gcc-8, gcc-9 and gcc-9. > > > > Sorry for the compilation issue. > > mmap_read_lock was intrdouced in the following commit. > > commit 9740ca4e95b4 > Author: Michel Lespinasse > Date: Mon Jun 8 21:33:14 2020 -0700 > > mmap locking API: initial implementation as rwsem wrappers > > The following two commits replaced the usage of mmap_sem rwsem calls > with mmap_lock. > > d8ed45c5dcd4 (mmap locking API: use coccinelle to convert mmap_sem > rwsem call sites) > 89154dd5313f (mmap locking API: convert mmap_sem call sites missed by > coccinelle) > > The first commit is not present in stale 5.7-y for obvious reasons. > > Do we need to send a separate patch only for stable branch with > mmap_sem ? I am not sure if that will cause a conflict again in future. I do not like taking odd backports, and would rather take the real patch that is upstream. I will drop this patch from the tree now, so everyone can figure out what they want to do in the future :) thanks, greg k-h