Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 467206 Details for
Bug 612804
app-emulation/vmware-workstation: out-of-bounds memory access (VMSA-2017-0005)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
308-4.09-00-user-pages.patch
308-4.09-00-user-pages.patch (text/plain), 1.51 KB, created by
Manfred Knick
on 2017-03-16 15:17:43 UTC
(
hide
)
Description:
308-4.09-00-user-pages.patch
Filename:
MIME Type:
Creator:
Manfred Knick
Created:
2017-03-16 15:17:43 UTC
Size:
1.51 KB
patch
obsolete
>--- ./vmci-only/linux/vmciKernelIf.c 2017-02-23 12:19:59.706822502 +0100 >+++ ./vmci-only/linux/vmciKernelIf.c.new 2017-02-23 13:12:09.382997502 +0100 >@@ -2056,7 +2056,11 @@ > #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0) > retval = get_user_pages((VA)produceUVA, > produceQ->kernelIf->numPages, >+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0) >+ FOLL_WRITE, >+#else > 1, 0, >+#endif > produceQ->kernelIf->u.h.headerPage, > NULL); > #else >@@ -2083,7 +2087,11 @@ > (VA)consumeUVA, > #endif > consumeQ->kernelIf->numPages, >+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0) >+ FOLL_WRITE, >+#else > 1, 0, >+#endif > consumeQ->kernelIf->u.h.headerPage, > NULL); > if (retval < consumeQ->kernelIf->numPages) { >--- ./vmci-only/linux/driver.c 2017-02-23 12:19:59.645822499 +0100 >+++ ./vmci-only/linux/driver.c.new 2017-02-23 12:30:38.845858240 +0100 >@@ -1468,7 +1468,9 @@ > int retval; > > down_read(¤t->mm->mmap_sem); >-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0) >+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0) >+ retval = get_user_pages(addr, 1, FOLL_WRITE, &page, NULL); >+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0) > retval = get_user_pages(addr, 1, 1, 0, &page, NULL); > #else > retval = get_user_pages(current, current->mm, addr,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 612804
:
467200
| 467206 |
467208