[ewg] [PATCH] OFED_1_2_c backport patch for ipath needs fix
Ralph Campbell
ralph.campbell at qlogic.com
Thu Aug 16 10:38:36 PDT 2007
While testing the current OFED_1_2_c (1.2.5) install, we
found a problem with one of the backport patches which
causes QP and CQ creation to fail in user verbs.
This patch to the patch fixes the problem and the updated
patch is attached.
The file is the same in all these locations:
2.6.16_sles10/ipath-02-dont-leak-info-to-userspace.patch
2.6.16_sles10_sp1/ipath-02-dont-leak-info-to-userspace.patch
2.6.17/ipath-02-dont-leak-info-to-userspace.patch
2.6.5_sles9_sp3/ipath-02-dont-leak-info-to-userspace.patch
2.6.9_U2/ipath-02-dont-leak-info-to-userspace.patch
2.6.9_U3/ipath-02-dont-leak-info-to-userspace.patch
2.6.9_U4/ipath-02-dont-leak-info-to-userspace.patch
2.6.9_U5/ipath-02-dont-leak-info-to-userspace.patch
Signed-off-by: Ralph Campbell <ralph.campbell at qlogic.com>
diff --git a/kernel_patches/backport/2.6.16_sles10/ipath-02-dont-leak-info-to-userspace.patch b/kernel_patches/backport/2.6.16_sles10/ipath-02-dont-leak-info-to-userspace.patch
index 7ad41de..2c5f8e7 100644
--- a/kernel_patches/backport/2.6.16_sles10/ipath-02-dont-leak-info-to-userspace.patch
+++ b/kernel_patches/backport/2.6.16_sles10/ipath-02-dont-leak-info-to-userspace.patch
@@ -26,7 +26,7 @@ diff -r 8c4252d8d602 drivers/infiniband/hw/ipath/ipath_mmap.c
+ /*
+ * Convert the vmalloc address into a struct page.
+ */
-+ pageptr = (void *)(offset + (vma->vm_pgoff << PAGE_SHIFT));
++ pageptr = (void *)(offset + ip->obj);
+ page = vmalloc_to_page(pageptr);
+ if (!page)
+ goto out;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ipath-02-dont-leak-info-to-userspace.patch
Type: text/x-patch
Size: 1665 bytes
Desc: not available
URL: <http://lists.openfabrics.org/pipermail/ewg/attachments/20070816/07970221/attachment.bin>
More information about the ewg
mailing list