Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 589370 Details for
Bug 693704
x11-drivers/nvidia-drivers-340.107-r1 patches for recent kernels
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
User Copy Patch
kmem_cache_create_usercopy.patch (text/plain), 1.25 KB, created by
Reuben Martin
on 2019-09-07 21:25:52 UTC
(
hide
)
Description:
User Copy Patch
Filename:
MIME Type:
Creator:
Reuben Martin
Created:
2019-09-07 21:25:52 UTC
Size:
1.25 KB
patch
obsolete
>Author: Andreas Beckmann <anbe@debian.org> >Description: use kmem_cache_create_usercopy on 4.16+ > fixes "Bad or missing usercopy whitelist? Kernel memory exposure attempt > detected from SLUB object 'nvidia_stack_cache'" on linux-image-4.16.0-2-* > or newer that have disabled CONFIG_HARDENED_USERCOPY_FALLBACK >Bug-Debian: #901919, #899998 >Bug: https://devtalk.nvidia.com/default/topic/1031067 > >--- a/kernel/nv-linux.h >+++ b/kernel/nv-linux.h >@@ -757,11 +757,18 @@ extern nv_spinlock_t km_lock; > 0, 0, NULL, NULL); \ > } > #elif (NV_KMEM_CACHE_CREATE_ARGUMENT_COUNT == 5) >+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 16, 0) >+#define NV_KMEM_CACHE_CREATE(kmem_cache, name, type) \ >+ { \ >+ kmem_cache = kmem_cache_create_usercopy(name, sizeof(type), 0, 0, 0, sizeof(type), NULL); \ >+ } >+#else > #define NV_KMEM_CACHE_CREATE(kmem_cache, name, type) \ > { \ > kmem_cache = kmem_cache_create(name, sizeof(type), \ > 0, 0, NULL); \ > } >+#endif > #else > #error "NV_KMEM_CACHE_CREATE_ARGUMENT_COUNT value unrecognized!" > #endif
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 693704
:
589364
|
589366
|
589368
| 589370 |
589372
|
590074
|
597974
|
598862
|
643168
|
643170
|
643172