From 4d0bb33f5970f747671d51f873d16ef2f238b143 Mon Sep 17 00:00:00 2001 From: Jeremy Cline Date: Apr 29 2019 16:46:30 +0000 Subject: s390x build failure fix for RDMA --- diff --git a/0001-RDMA-uverbs-Fix-compilation-error-on-s390-and-mips-p.patch b/0001-RDMA-uverbs-Fix-compilation-error-on-s390-and-mips-p.patch new file mode 100644 index 0000000..ef6a724 --- /dev/null +++ b/0001-RDMA-uverbs-Fix-compilation-error-on-s390-and-mips-p.patch @@ -0,0 +1,41 @@ +From d79a26b99f5f40db6863b1973750fd1d134d99b4 Mon Sep 17 00:00:00 2001 +From: Leon Romanovsky +Date: Mon, 29 Apr 2019 13:00:14 +0300 +Subject: [PATCH] RDMA/uverbs: Fix compilation error on s390 and mips platforms + +Most platforms ignore parameter provided to ZERO_PAGE macro, +hence wrong parameter was used and missed. This caused to compilation +error like presented below. + +drivers/infiniband/core/uverbs_main.c: In function 'rdma_umap_fault': +drivers/infiniband/core/uverbs_main.c:898:28: error: 'struct vm_fault' has no member named 'vm_start' + vmf->page = ZERO_PAGE(vmf->vm_start); + ^~ +Cc: stable@vger.kernel.org +Cc: Geert Uytterhoeven +Cc: Doug Ledford +Cc: Jason Gunthorpe +Fixes: 67f269b37f9b ("RDMA/ucontext: Fix regression with disassociate") +Signed-off-by: Heiko Carstens +Signed-off-by: Leon Romanovsky +Signed-off-by: Doug Ledford +--- + drivers/infiniband/core/uverbs_main.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/infiniband/core/uverbs_main.c b/drivers/infiniband/core/uverbs_main.c +index db20b6e0f253..d6408bbe94ed 100644 +--- a/drivers/infiniband/core/uverbs_main.c ++++ b/drivers/infiniband/core/uverbs_main.c +@@ -895,7 +895,7 @@ static vm_fault_t rdma_umap_fault(struct vm_fault *vmf) + + /* 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->vma->vm_start); + get_page(vmf->page); + return 0; + } +-- +2.20.1 + diff --git a/kernel.spec b/kernel.spec index 6dc5b1a..d046870 100644 --- a/kernel.spec +++ b/kernel.spec @@ -581,6 +581,9 @@ Patch508: KEYS-Make-use-of-platform-keyring-for-module-signature.patch # CVE-2019-3900 rhbz 1698757 1702940 Patch524: net-vhost_net-fix-possible-infinite-loop.patch +# S390x build failure fix +Patch525: 0001-RDMA-uverbs-Fix-compilation-error-on-s390-and-mips-p.patch + # END OF PATCH DEFINITIONS %endif