Bug#1052069: ways to proceed?

Andreas Beckmann anbe at debian.org
Sat Nov 4 00:24:59 GMT 2023


On 03/11/2023 22.39, Adam Majer wrote:
> You need to specify ibt=off to kernel at boot time for the older nvidia 
> modules to work. Since the kernel has this protection enabled by 
> default, it will have to be disabled until such time as nvidia bothers 
> to update/recompile these older drivers like they did the recent ones.

Thanks for your test.

Since that protection can be disabled with ibt=off, it should be 
possible to test for the status (not available/enabled/disabled) at 
module load time and fail the load process with an informative error 
message instead of calling into the incompatible code from the blob.

The EoL driver series (e.g. anything predating the 470 series) will not 
see any further updates from NVIDIA. And people still really want to use 
these old drivers for ancient hardware.

...

Maybe that was really simple. Could you try the attached patch?
(apply it to the source in /usr/src/nvidia-tesla-470-* and rebuild the 
dkms module)
Or you could simply install the -dkms package from
https://people.debian.org/~anbe/1052069/

The module should continue to work on 6.1
The module should continue to work on 6.5 booted with ibt=off
The module should fail to load with an error message describing the 
issue on 6.5 with ibt enabled, but without a kernel BUG.


Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0033-refuse-to-load-module-if-IBT-is-enabled.patch
Type: text/x-diff
Size: 1459 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-nvidia-devel/attachments/20231104/20579e4a/attachment.patch>


More information about the pkg-nvidia-devel mailing list