nvidia pax patch reject 367.57
Posted: Sat Oct 15, 2016 9:57 am
Hi,
I got the following problem using https://www.grsecurity.net/~paxguy1/nvi ... -pax.patch
The kernel/nvidia-uvm/uvm_common.c.rej file:
I compiled the driver ignoring the reject and modprobing failed, I could not get it to work
I would be very happy if you could help me out!
Thanks for the hard work!
I got the following problem using https://www.grsecurity.net/~paxguy1/nvi ... -pax.patch
- Code: Select all
patch -p1 < /tmp/build/grsec-nvidia-201610151158/nvidia-graphics-drivers-367-367.57/debian/pax.patch
patching file kernel/common/inc/nv-linux.h
Hunk #1 succeeded at 1309 (offset 1 line).
patching file kernel/common/inc/nv-modeset-interface.h
patching file kernel/common/inc/nv-register-module.h
patching file kernel/nvidia/nv.c
Hunk #1 succeeded at 658 (offset 4 lines).
patching file kernel/nvidia/nv-chrdev.c
patching file kernel/nvidia/nv-instance.c
patching file kernel/nvidia/nv-mmap.c
Hunk #1 succeeded at 102 (offset -11 lines).
patching file kernel/nvidia/nv-modeset-interface.c
patching file kernel/nvidia-drm/nvidia-drm-drv.c
Hunk #1 succeeded at 596 (offset 4 lines).
Hunk #2 succeeded at 653 (offset 4 lines).
Hunk #3 succeeded at 662 (offset 4 lines).
patching file kernel/nvidia-modeset/nvidia-modeset-linux.c
Hunk #1 succeeded at 322 (offset 5 lines).
Hunk #2 succeeded at 354 (offset 5 lines).
Hunk #3 succeeded at 689 (offset 5 lines).
Hunk #4 succeeded at 704 (offset 5 lines).
patching file kernel/nvidia-uvm/uvm8_global.c
patching file kernel/nvidia-uvm/uvm8_gpu_semaphore.c
patching file kernel/nvidia-uvm/uvm8_hal.h
Hunk #1 succeeded at 316 (offset 6 lines).
patching file kernel/nvidia-uvm/uvm8_mmu.h
patching file kernel/nvidia-uvm/uvm_common.c
Hunk #1 succeeded at 42 (offset -9 lines).
Hunk #2 FAILED at 174.
1 out of 2 hunks FAILED -- saving rejects to file kernel/nvidia-uvm/uvm_common.c.rej
patching file kernel/nvidia-uvm/uvm_full_fault_buffer.h
patching file kernel/nvidia-uvm/uvm_linux.h
Hunk #1 succeeded at 420 (offset -88 lines).
The kernel/nvidia-uvm/uvm_common.c.rej file:
- Code: Select all
--- kernel/nvidia-uvm/uvm_common.c 2016-07-12 06:52:17.000000000 +0200
+++ kernel/nvidia-uvm/uvm_common.c 2016-07-16 22:45:59.878812524 +0200
@@ -174,8 +173,10 @@ static NV_STATUS uvmSetupGpuProvider(voi
{
NV_STATUS status = NV_OK;
- g_exportedUvmOps.startDevice = uvm_gpu_event_start_device;
- g_exportedUvmOps.stopDevice = uvm_gpu_event_stop_device;
+ static struct UvmOpsUvmEvents g_exportedUvmOps = {
+ .startDevice = uvm_gpu_event_start_device,
+ .stopDevice = uvm_gpu_event_stop_device,
+ };
// call RM to exchange the function pointers.
status = nvUvmInterfaceRegisterUvmCallbacks(&g_exportedUvmOps);
I compiled the driver ignoring the reject and modprobing failed, I could not get it to work
I would be very happy if you could help me out!
Thanks for the hard work!