Package Details: lkrg-dkms 0.9.8-1

Git Clone URL: (read-only, click to copy)
Package Base: lkrg-dkms
Description: Linux Kernel Runtime Guard (DKMS)
Upstream URL:
Licenses: GPL2
Submitter: rgacogne
Maintainer: rgacogne
Last Packager: rgacogne
Votes: 11
Popularity: 1.33
First Submitted: 2020-03-16 16:39 (UTC)
Last Updated: 2024-03-01 09:45 (UTC)

Latest Comments

1 2 3 Next › Last »

rgacogne commented on 2024-05-21 15:06 (UTC)

@ruonim: Would you mind looking at dmesg right after getting this error? It should tell us more about what is going on. It would be very useful if you could tell us the exact version of the kernel you are running.

ruonim commented on 2024-05-21 05:10 (UTC)

modprobe: ERROR: could not insert 'lkrg': No buffer space available

rgacogne commented on 2023-12-06 19:17 (UTC)

@dubster: You are completely right, it should be fixed now! Many thanks!

dubster commented on 2023-12-06 16:59 (UTC)

Awesome, thanks for getting this updated @rgacogne!

The one thing I'll note is that the systemd service (when installed by a package) might need to be installed in /usr/lib/systemd/system. I believe that /etc/systemd/system is for admin user management, but packages install files into /usr/lib/systemd/system.

You can see an example of this in the mullvad-vpn package:

MartinX3 commented on 2023-12-06 14:37 (UTC) (edited on 2023-12-06 14:37 (UTC) by MartinX3)

Seems to be related to the zen kernel.

rgacogne commented on 2023-12-06 14:36 (UTC)

It works as expected for me on 6.6.4-arch1-1:

● lkrg.service - Linux Kernel Runtime Guard
     Loaded: loaded (/etc/systemd/system/lkrg.service; enabled; preset: disabled)
     Active: active (exited) since Wed 2023-12-06 14:40:24 CET; 55min ago
   Main PID: 33300 (code=exited, status=0/SUCCESS)
        CPU: 409ms

systemd[1]: Starting Linux Kernel Runtime Guard...
modprobe[33300]: insmod /lib/modules/6.6.4-arch1-1/updates/dkms/lkrg.ko.zst
systemd[1]: Finished Linux Kernel Runtime Guard.

MartinX3 commented on 2023-12-06 14:33 (UTC)

Service errors out:

Starting Linux Kernel Runtime Guard...
modprobe: ERROR: could not insert 'lkrg': No buffer space available
modprobe[5095]: insmod /lib/modules/6.6.4-zen1-1-zen/updates/dkms/lkrg.ko.zst
lkrg.service: Main process exited, code=exited, status=1/FAILURE
lkrg.service: Failed with result 'exit-code'.
Failed to start Linux Kernel Runtime Guard.

rgacogne commented on 2023-12-06 13:59 (UTC)

@dubster: I just added the systemd service and the default configuration file to the package. I'm not going to enable the LKRG service automatically, though, as per Arch policy. Thanks for the hint!

dubster commented on 2023-12-05 22:07 (UTC)

Until the package is fixed, anyone wanting to use the kernel module + systemd service should execute something like the following after installing this package.

# Add execution permissions to the bundled installation scripts
sudo chmod +x /usr/src/lkrg-0.9.7/scripts/bootup/
sudo chmod +x /usr/src/lkrg-0.9.7/scripts/bootup/systemd/

# Invoke said installation script, which installs the systemd service and sysctl file
sudo /usr/src/lkrg-0.9.7/scripts/bootup/bootup/

You should see something like the following in terms of output:

 [*] Executing LKRG's bootup installation script
  [+] Systemd detected
       Installing lkrg.service file under /etc/systemd/system directory
       To start lkrg.service please use: systemctl start lkrg
       To enable lkrg.service on bootup please use: systemctl enable lkrg.service
       Installing 01-lkrg.conf file under /etc/sysctl.d directory
  [+] Done!

Then, to start the service and enable it on boot, run:

sudo systemctl enable --now lkrg.service

dubster commented on 2023-12-03 19:11 (UTC) (edited on 2023-12-03 19:12 (UTC) by dubster)

This package doesn't actually do much right now - it only installs the lkrg module, but the PKGBUILD doesn't install the systemd service, nor the sysctl conf file.



sysctl conf:

At the very least, we need the systemd service to be enabled so that the lkrg module actually loads properly on boot.

The way things are now, we just build and install the module. It never actually loads on reboot though.