Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 650482 - x11-drivers/nvidia-drivers-390.42 has an outdated pax_kernel patch
Summary: x11-drivers/nvidia-drivers-390.42 has an outdated pax_kernel patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-14 13:09 UTC by Alex Efros
Modified: 2019-01-16 10:32 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
nvidia-drivers-390.42-pax.patch (nvidia-drivers-390.42-pax.patch,14.79 KB, patch)
2018-03-14 13:09 UTC, Alex Efros
Details | Diff
Pax patch ported to nvidia-drivers-396.54 (nvidia-drivers-396.54-pax.patch,14.73 KB, patch)
2018-10-28 09:04 UTC, Miroslaw Mieszczak
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Efros 2018-03-14 13:09:25 UTC
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
Comment 1 Norman Shulman 2018-03-14 20:49:07 UTC
Removing

        eapply "${FILESDIR}"/${PN}-375.20-pax.patch

from the ebuild lets me build a working driver.
Comment 2 Miroslaw Mieszczak 2018-10-28 09:04:15 UTC
Created attachment 553466 [details, diff]
Pax patch ported to nvidia-drivers-396.54
Comment 3 Miroslaw Mieszczak 2018-10-28 09:08:29 UTC
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.
Comment 4 Larry the Git Cow gentoo-dev 2019-01-16 10:32:27 UTC
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(-)