Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4809412yba; Tue, 30 Apr 2019 04:52:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/tb5OgfBvj93pAAnNembYtm00Nhl7QJExMGXKkMgCvpjple1iBPOkOaQ+pC+XpTxp3qdk X-Received: by 2002:aa7:81cf:: with SMTP id c15mr18963257pfn.23.1556625161817; Tue, 30 Apr 2019 04:52:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556625161; cv=none; d=google.com; s=arc-20160816; b=m6yWklFemUDmZbN9jISE4WPV6q2qJequtmwidw/2muTlNGtYDuXhBHKv2Ie3j3KI0Y 6Xe0wkrRn/6ei5oETTP4nK68agbpfc50Mp4C/eHEC56Bukk5vUotV8mHNkqjV663bocx nl/Xpsp8IDHcsXwn0Zy17MWLK3UtTiAxE+kDJQVZdosqzd2zUTO/DXSsQYSfzI9dwquk 5z/LXFzggDOtP/BHgcybqYzrE9+5EvLQd4RnxiFPkBYgTnrBBsjl9Nr6uDdUwFilR5Ds nMvUUA80WoTjsxn8w4c6DSzpYPWVAHvNOj468Dxf7/AcssGE5Sxa41j9kcsMsq0b3+f7 I6fQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ZIdso+ZPVoeyA4fEpZ4+cl0w1BX/pwI5oA+BO+8enec=; b=zVi2xSXelhUi1C7/aW0K4o2XGLOgGTXIb314qiTTTb7Ixar0mLfkOXSojfkEMizadI zXyP1TERslHubPSyWOZD4vtgPb3OFTphVakEAnNdbjfIdw2yvxceWPVscQ643B1jed+Y t13tMaBaN/uFyeoF1GcKaaqDFocl68IjW2vWl1U3macKRPUNhFvijb8Xm/Ix6cachJJa Zn56dq2mtirfEu+KhDbnWX4MmFELuscH0sGa2JzlHgBW+oIZUXB+387m8Lvl/Aq/vuRw HF43TroIRbzK0O7x43O4Osue/3TPJitDGB8OcUzi1ouFqdFykRFJPoOr49L4weEfy07c bHgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hg4QBK3Y; 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 w23si38358586plk.109.2019.04.30.04.52.25; Tue, 30 Apr 2019 04:52:41 -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; dkim=pass header.i=@kernel.org header.s=default header.b=hg4QBK3Y; 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 S1731270AbfD3Luv (ORCPT + 99 others); Tue, 30 Apr 2019 07:50:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:38094 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731261AbfD3Lus (ORCPT ); Tue, 30 Apr 2019 07:50:48 -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 D1C28217D8; Tue, 30 Apr 2019 11:50:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556625048; bh=CRfhy5PxTCVL9VXkS5Q8VufIPIH86Z5u52uJc2DmXaQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hg4QBK3Y0hM4e2OR6Vz4l8oxZUpJ8S++txx7kDDkU+T/m5nU3RItHaFsOTFAmH3RH sYtvNbjylKjC1SoTTuikflPT/z+7Zazi2WDs+RnVoOontvVk6itlsut2WU3fa6niK/ D4T9zkS0WPTwHYQtLWObjMcm/QI0abZ9MuQKXXf0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andrea Arcangeli , Leon Romanovsky , Jason Gunthorpe , Linus Torvalds Subject: [PATCH 5.0 71/89] rdma: fix build errors on s390 and MIPS due to bad ZERO_PAGE use Date: Tue, 30 Apr 2019 13:39:02 +0200 Message-Id: <20190430113613.074939505@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190430113609.741196396@linuxfoundation.org> References: <20190430113609.741196396@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Linus Torvalds commit 6a5c5d26c4c6c3cc486fef0bf04ff9551132611b upstream. The parameter to ZERO_PAGE() was wrong, but since all architectures except for MIPS and s390 ignore it, it wasn't noticed until 0-day reported the build error. Fixes: 67f269b37f9b ("RDMA/ucontext: Fix regression with disassociate") Cc: stable@vger.kernel.org Cc: Andrea Arcangeli Cc: Leon Romanovsky Cc: Jason Gunthorpe Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- drivers/infiniband/core/uverbs_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/infiniband/core/uverbs_main.c +++ b/drivers/infiniband/core/uverbs_main.c @@ -894,7 +894,7 @@ static vm_fault_t rdma_umap_fault(struct /* Read only pages can just use the system zero page. */ if (!(vmf->vma->vm_flags & (VM_WRITE | VM_MAYWRITE))) { - vmf->page = ZERO_PAGE(vmf->vm_start); + vmf->page = ZERO_PAGE(vmf->address); get_page(vmf->page); return 0; }