[ 47.042454] Lockdown: Xorg: raw io port access is restricted; see man kernel_lockdown.7
I think it's still SecureBoot, but what is it this time? Can anyone help
NVIDIA is a major pain in the ass with Linux. Which is why I do notActually this is more Linux being a major pain in the ass to Nvidia.
use them.
Hi,
Christian wrote:
[ 47.042454] Lockdown: Xorg: raw io port access is restricted; see man kernel_lockdown.7At least the above log snippet seems to be related to SecureBoot.
I think it's still SecureBoot, but what is it this time? Can anyone help
In
https://manpages.debian.org/bookworm/manpages/kernel_lockdown.7.en.html
i see
"On an EFI-enabled x86 or arm64 machine, lockdown will be automatically
enabled if the system boots in EFI Secure Boot mode.
Coverage
When lockdown is in effect, a number of features are disabled or have
their use restricted. This includes special device files and kernel
services that allow direct access of the kernel image:"
[...]
NOTES
The Kernel Lockdown feature is enabled by CONFIG_SECURITY_LOCKDOWN_LSM.
The lsm=lsm1,...,lsmN command line parameter controls the sequence of
the initialization of Linux Security Modules. It must contain the
string lockdown to enable the Kernel Lockdown feature. If the command
line parameter is not specified, the initialization falls back to the
value of the deprecated security= command line parameter and further
to the value of CONFIG_LSM."
So i guess you have to look into your boot configuration for kernel
parameter "lockdown".
On
https://bbs.archlinux.org/viewtopic.php?id=290866
i see this statement by espritlibre:
"Re: Secure boot and Nvidia
i have secure boot enabled, but lockdown disabled (for another
reason). loading the nvidia module does taint the kernel, but loads
and work just fine with prime-run on a hybrid systme. i'm not signing
OOT modules, just kernel and efi stuff."
(Whatever "prime-run" might be ...)
Have a nice day :)
Thomas
Hello out there, I have an issue with my new Debian installation. I
choose stable for now, to keep it simple. So used the stable
installation ISO to install Debian on a MSI Z690-A with a Intel Core
I7-14700 and a GeForce RTX 4060Ti. The Nouveau driver did not work with
this card so I installed the Nvidia driver and everything to build it.
Then I created my MOK key and enrolled them. So the nvidia-current
module is signed now and is getting loaded as nvidia_drm, nvidia_modeset
and nvidia. But something still prevents the X server from starting:
[ 304.354] (II) NVIDIA GLX Module 535.183.01 Sun May 12 19:37:53 UTC
2024
[ 304.355] (II) NVIDIA: The X server supports PRIME Render Offload.
[ 308.891] (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA GPU at PCI:1:0:0. Please
[ 308.891] (EE) NVIDIA(GPU-0): check your system's kernel log for additional error
[ 308.891] (EE) NVIDIA(GPU-0): messages and refer to Chapter 8:
Common Problems in the
[ 308.891] (EE) NVIDIA(GPU-0): README for additional information.
[ 308.891] (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA
graphics device!
[ 308.891] (EE) NVIDIA(0): Failing initialization of X screen
According to your log messages The NVIDIA card fails to initialize before X fails. NVIDIA is a major pain in the ass with Linux. Which is why I do not use them.
[ 308.891] (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA
graphics device!
[ 308.891] (EE) NVIDIA(0): Failing initialization of X screen
Did the installer have graphics when you installed it? You could try
booting from the live USB image for bookworm and trixie and see how that works out. If your graphics card is really new then you may have to run Trixie to support it.
[ 308.891] (II) UnloadModule: "nvidia"
[ 308.891] (II) UnloadSubModule: "glxserver_nvidia"
[ 308.891] (II) Unloading glxserver_nvidia
and dmesg gives me this:
[ 40.344811] nvidia: module license 'NVIDIA' taints kernel.
[ 40.344811] Disabling lock debugging due to kernel taint
....
[ 46.716241] NVRM: GPU 0000:01:00.0: RmInitAdapter failed!
(0x23:0x65:1426)
[ 46.716422] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device
minor number 0
....
[ 47.042454] Lockdown: Xorg: raw io port access is restricted; see man
kernel_lockdown.7
[ 51.092248] NVRM: GPU 0000:01:00.0: RmInitAdapter failed!
(0x23:0x65:1426)
[ 51.092330] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device
minor number 0
[ 55.097874] NVRM: GPU 0000:01:00.0: RmInitAdapter failed!
(0x23:0x65:1426)
[ 55.097953] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device
minor number 0
the last two lines repeats 1000++ times
I think it's still SecureBoot, but what is it this time? Can anyone help
Thank you in advance
BR Chris
29 Oct 2024 17:38:39 Timothy M Butterworth <timothy.m.butterworth@gmail.com>:signed modules. You can look up some things like disabling debugfs to restore some of lockdowns security. I think kernel memory access is kept disabled.
NVIDIA is a major pain in the ass with Linux. Which is why I do notActually this is more Linux being a major pain in the ass to Nvidia.
use them.
When secure boot is enabled lockdown is automatically enabled. Really debian should provide an Nvidia package that explains the issue, sets lockdown none and runs update-grub. Unfortunately I don't believe the kernel allows just enabling raw io to even
On Wed, Oct 30, 2024 at 10:58 AM Christian <chris@argonautx.net> wrote:
Hi Thomas, thank you for your help. So far I couldn't see anything in my
cmdline which is kernel_lockdown related. And I grep'ed the whole /etc
and /boot directory recursively. Nothing. And neither in the dmesg,
there is no "lsm=" line. Only in the kernel .config is
CONFIG_SECURITY_LOCKDOWN=y, enabled. So yes the kernel supports it.
Debian Live boot system couldn't either boot up my new PC, but Ubuntu
did. WIth Ubuntu I was able to boot it with Desktop and everthing, but
they used Nouveu driver.
Try booting with Trixie (testing), https://www.debian.org/CD/live/ It may just be that the stable kernel is simply too old for your hardware. I am currently running Trixie and have not had any problems with it. If you do install Trixie and it asks you if you want to install accesibility tools... select NO! Otherwise it will install and run everything and you will waste lots of time figuring out how to disable them.
And dmesg dumped this out:
[ 0.209551] LSM: initializing
lsm=lockdown,capability,landlock,yama,apparmor,ima,evm
I couldn't find out where this parameters are set. Even on the Ubuntu
Live system I didn't find a file with just one single line with the
words lsm= or lockdown (case insensitive)
Thank you
BR Christian
Hi,man kernel_lockdown.7
Christian wrote:
[ 47.042454] Lockdown: Xorg: raw io port access is restricted; see
https://manpages.debian.org/bookworm/manpages/kernel_lockdown.7.en.htmlI think it's still SecureBoot, but what is it this time? Can anyone help >>> At least the above log snippet seems to be related to SecureBoot.In
i seeautomatically
"On an EFI-enabled x86 or arm64 machine, lockdown will be
enabled if the system boots in EFI Secure Boot mode.CONFIG_SECURITY_LOCKDOWN_LSM.
Coverage
When lockdown is in effect, a number of features are disabled or have >>> their use restricted. This includes special device files and kernel >>> services that allow direct access of the kernel image:"
[...]
NOTES
The Kernel Lockdown feature is enabled by
The lsm=lsm1,...,lsmN command line parameter controls the sequenceof
the initialization of Linux Security Modules. It must contain thecommand
string lockdown to enable the Kernel Lockdown feature. If the
line parameter is not specified, the initialization falls back tothe
value of the deprecated security= command line parameter and further >>> to the value of CONFIG_LSM."
So i guess you have to look into your boot configuration for kernel
parameter "lockdown".
On
https://bbs.archlinux.org/viewtopic.php?id=290866
i see this statement by espritlibre:
"Re: Secure boot and Nvidia
i have secure boot enabled, but lockdown disabled (for another
reason). loading the nvidia module does taint the kernel, but loads >>> and work just fine with prime-run on a hybrid systme. i'm not signing >>> OOT modules, just kernel and efi stuff."
(Whatever "prime-run" might be ...)
Have a nice day :)
Thomas
So far I couldn't see anything in my
cmdline which is kernel_lockdown related.
[ 47.042454] Lockdown: Xorg: raw io port access is restricted; see man kernel_lockdown.7
Have you tried disabling secure boot?
So far I couldn't see anything in myIf this means that you already looked into
cmdline which is kernel_lockdown related.
/proc/cmdline
then i am out of ideas why the kernel log reported
[ 47.042454] Lockdown: Xorg: raw io port access is restricted; see man >>> kernel_lockdown.7
Well, it is not clear whether this is really the showstopper for Xorg
on Nvidia's driver. There were error messages before the "Lockdown"
message.
Kevin Chadwick wrote:
Have you tried disabling secure boot?If this is possible then we would at least learn whether Secure Boot is
the origin of the problem or just a red herring.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 12:21:15 |
Calls: | 10,389 |
Calls today: | 4 |
Files: | 14,061 |
Messages: | 6,416,875 |
Posted today: | 1 |