Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp436618yba; Fri, 3 May 2019 04:51:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCzFSoLLscZVjAi0hFwhjacAdakO7LN5A9zp9dInqYCAVCwGRdfRiIbssZZWoeMwKGmNU7 X-Received: by 2002:a17:902:7885:: with SMTP id q5mr9738335pll.12.1556884264039; Fri, 03 May 2019 04:51:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556884264; cv=none; d=google.com; s=arc-20160816; b=GU01vDxfDdOSiD6mWSAQLes9ix6dBfGO94pOueB2GeF3y6ijaRLATZJ7WlAlAlc75y rdM1JXKV5VXm4qSo/RtJR30MN2EY9XNyqx1Px0NJnnId13lXQaebCWtUr1aSeMzZOPyi t4JGQ4G/TA/hs94tvBtrDI2uY4esMaBEF7Knsrgk04mubKBH3g39/vnj0+Rcv6aP6470 wxbvugnber5DrNcLwumbKlN0Fd+BQKDfce+camGghjIeLOkVLE9xFQqmLEZjxN/yGV/z sp5L5DZT+5/QgjDSY5QJ2/o0LiY/kvaQDAO5hKp4CNu5xArrBddm5KEUG9K17WUxeH0F EmkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=6OsBse6XY3j/6nL7xKML/WXW2RStcq2ZYrbfM66VulY=; b=ywgabu6m6KzbHJe6dldhM+2fdaHFvk81UdiT8r0o7Gg6TGt3eMrvrlSOpSb+XRBDux BFrO+FPAY4gH1Ap3YrnpZIkaWj5u4gALWD9J9NZF5WABdWioKUhigadIGDVLbE22nGNJ 6D+Qw83mmuyY/LKGoZwxU1Atxu1ey1S/8ZCowSnBawi7wfh9kdvgklPJyNurISQ4hCj2 E6AvQ3sITaP7r7jRXofsYlja98Q//vqo4HM0pwfXTm683G8eWeCUXQ4QsXWwjDyrnT2b X2u1kzLZwqSvPP/oqVuAFQBa++1gLF737jMOYuvOxRkCQ5xB6llcojCW9kn8zb8wax2R gFGg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i9si1976604pfj.226.2019.05.03.04.50.48; Fri, 03 May 2019 04:51:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727765AbfECLsT (ORCPT + 99 others); Fri, 3 May 2019 07:48:19 -0400 Received: from mx2.suse.de ([195.135.220.15]:42134 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727394AbfECLsT (ORCPT ); Fri, 3 May 2019 07:48:19 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 4698FAD7B; Fri, 3 May 2019 11:48:18 +0000 (UTC) Received: by unicorn.suse.cz (Postfix, from userid 1000) id EDC08E0117; Fri, 3 May 2019 13:48:17 +0200 (CEST) Date: Fri, 3 May 2019 13:48:17 +0200 From: Michal Kubecek To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Andrea Arcangeli , Jason Gunthorpe , Leon Romanovsky Subject: Re: [PATCH 5.0 25/89] RDMA/ucontext: Fix regression with disassociate Message-ID: <20190503114817.GB15275@unicorn.suse.cz> References: <20190430113609.741196396@linuxfoundation.org> <20190430113611.189238783@linuxfoundation.org> <20190503114716.GA15275@unicorn.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190503114716.GA15275@unicorn.suse.cz> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 03, 2019 at 01:47:16PM +0200, Michal Kubecek wrote: > On Tue, Apr 30, 2019 at 01:38:16PM +0200, Greg Kroah-Hartman wrote: > > From: Jason Gunthorpe > > > > commit 67f269b37f9b4d52c5e7f97acea26c0852e9b8a1 upstream. > > > > When this code was consolidated the intention was that the VMA would > > become backed by anonymous zero pages after the zap_vma_pte - however this > > very subtly relied on setting the vm_ops = NULL and clearing the VM_SHARED > > bits to transform the VMA into an anonymous VMA. Since the vm_ops was > > removed this broke. > > > > Now userspace gets a SIGBUS if it touches the vma after disassociation. > > > > Instead of converting the VMA to anonymous provide a fault handler that > > puts a zero'd page into the VMA when user-space touches it after > > disassociation. > > > > Cc: stable@vger.kernel.org > > Suggested-by: Andrea Arcangeli > > Fixes: 5f9794dc94f5 ("RDMA/ucontext: Add a core API for mmaping driver IO memory") > > Signed-off-by: Jason Gunthorpe > > Signed-off-by: Leon Romanovsky > > Signed-off-by: Jason Gunthorpe > > Signed-off-by: Greg Kroah-Hartman > > > > --- > > This commit breaks build on s390 and mips, please pick also commit > 6a5c5d26c4c6 ("rdma: fix build errors on s390 and MIPS due to bad > ZERO_PAGE use"). Oops, it's already there as 71/89, I managed to overlook it. Sorry for the noise. Michal Kubecek