Created attachment 523896 [details, diff] nvidia-drivers-390.42-pax.patch I've updated https://www.grsecurity.net/~paxguy1/nvidia-drivers-387.12-pax.patch to apply to 390.42 - the change is trivial and doesn't affect the code. If 390.42 doesn't need extra code changes then this patch should be enough. To apply it from /etc/portage/patches/ instead of embedded patch run: USE=-pax_kernel emerge nvidia-drivers * Applying nvidia-drivers-375.20-pax.patch ... 1 out of 4 hunks FAILED -- saving rejects to file kernel/nvidia-modeset/nvidia-modeset-linux.c.rej The text leading up to this was: -------------------------- |diff -urp work.orig/kernel/nvidia-uvm/uvm_full_fault_buffer.h work/kernel/nvidia-uvm/uvm_full_fault_buffer.h |--- work.orig/kernel/nvidia-uvm/uvm_full_fault_buffer.h 2016-11-27 21:56:50.399642330 +0100 |+++ work/kernel/nvidia-uvm/uvm_full_fault_buffer.h 2016-11-27 21:54:23.975709978 +0100 -------------------------- No file to patch. Skipping patch. 2 out of 2 hunks ignored [ !! ] * ERROR: x11-drivers/nvidia-drivers-390.42::gentoo failed (prepare phase): * patch -p1 failed with /var/tmp/portage/x11-drivers/nvidia-drivers-390.42/files/nvidia-drivers-375.20-pax.patch
Removing eapply "${FILESDIR}"/${PN}-375.20-pax.patch from the ebuild lets me build a working driver.
Created attachment 553466 [details, diff] Pax patch ported to nvidia-drivers-396.54
Please close the bugs: 600156, 593624, 629062, 633738 as these bugs mention the same - outdate pax patch. and keep only one bug, where there will be presented latest port of pax patch for nvidia drivers.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=421d7dc6fb791f8edde480dc6d989ade59c54710 commit 421d7dc6fb791f8edde480dc6d989ade59c54710 Author: Jeroen Roovers <jer@gentoo.org> AuthorDate: 2019-01-16 10:24:43 +0000 Commit: Jeroen Roovers <jer@gentoo.org> CommitDate: 2019-01-16 10:32:11 +0000 x11-drivers/nvidia-drivers: Drop USE=pax_kernel Closes: https://bugs.gentoo.org/551366 Closes: https://bugs.gentoo.org/593624 Closes: https://bugs.gentoo.org/600156 Closes: https://bugs.gentoo.org/629062 Closes: https://bugs.gentoo.org/633738 Closes: https://bugs.gentoo.org/650482 Package-Manager: Portage-2.3.56, Repoman-2.3.12 Signed-off-by: Jeroen Roovers <jer@gentoo.org> .../files/nvidia-drivers-331.13-pax-usercopy.patch | 52 --- .../files/nvidia-drivers-337.12-pax-constify.patch | 25 -- .../files/nvidia-drivers-375.20-pax.patch | 406 --------------------- x11-drivers/nvidia-drivers/metadata.xml | 4 - .../nvidia-drivers/nvidia-drivers-340.107.ebuild | 12 +- .../nvidia-drivers/nvidia-drivers-390.87.ebuild | 11 +- .../nvidia-drivers/nvidia-drivers-410.93.ebuild | 9 +- .../nvidia-drivers/nvidia-drivers-415.25.ebuild | 9 +- .../nvidia-drivers/nvidia-drivers-415.27.ebuild | 9 +- 9 files changed, 7 insertions(+), 530 deletions(-)