Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 323160 Details for
Bug 434244
x11-drivers/nvidia-drivers-173* and hardened-sources
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to make nvidia-drivers-173* work with hardened-sources
nvidia-drivers-grsecurity.patch (text/plain), 1.66 KB, created by
Martin Väth
on 2012-09-07 19:56:58 UTC
(
hide
)
Description:
Patch to make nvidia-drivers-173* work with hardened-sources
Filename:
MIME Type:
Creator:
Martin Väth
Created:
2012-09-07 19:56:58 UTC
Size:
1.66 KB
patch
obsolete
>--- usr/src/nv/nv.c >+++ usr/src/nv/nv.c >@@ -389,7 +389,11 @@ > > /* character driver entry points */ > >+#ifndef __no_const > static struct file_operations nv_fops = { >+#else >+static file_operations_no_const nv_fops = { >+#endif > .owner = THIS_MODULE, > .poll = nv_kern_poll, > #if defined(NV_FILE_OPERATIONS_HAS_IOCTL) >@@ -1103,7 +1103,7 @@ static int __init nvidia_init_module(voi > NV_SPIN_LOCK_INIT(&km_lock); > #endif > >- NV_KMEM_CACHE_CREATE(nv_stack_t_cache, "nv_stack_t", nv_stack_t); >+ NV_KMEM_CACHE_CREATE(nv_stack_t_cache, "nv_stack_t", nv_stack_t, SLAB_USERCOPY); > if (nv_stack_t_cache == NULL) > { > nv_printf(NV_DBG_ERRORS, "NVRM: stack cache allocation failed!\n"); >@@ -1218,7 +1218,7 @@ static int __init nvidia_init_module(voi > } > #endif > >- NV_KMEM_CACHE_CREATE(nv_pte_t_cache, "nv_pte_t", nv_pte_t); >+ NV_KMEM_CACHE_CREATE(nv_pte_t_cache, "nv_pte_t", nv_pte_t, 0); > if (nv_pte_t_cache == NULL) > { > rc = -ENOMEM; >--- usr/src/nv/nv-linux.h >+++ usr/src/nv/nv-linux.h >@@ -700,10 +700,10 @@ extern nv_spinlock_t km_lock; > 0, 0, NULL, NULL); \ > } > #elif (NV_KMEM_CACHE_CREATE_ARGUMENT_COUNT == 5) >-#define NV_KMEM_CACHE_CREATE(kmem_cache, name, type) \ >+#define NV_KMEM_CACHE_CREATE(kmem_cache, name, type, flags) \ > { \ > kmem_cache = kmem_cache_create(name, sizeof(type), \ >- 0, 0, NULL); \ >+ 0, flags, NULL); \ > } > #else > #error "NV_KMEM_CACHE_CREATE_ARGUMENT_COUNT value unrecognized!"
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 434244
:
323160