Package Details: lkrg-dkms 0.9.3-1

Git Clone URL: https://aur.archlinux.org/lkrg-dkms.git (read-only, click to copy)
Package Base: lkrg-dkms
Description: Linux Kernel Runtime Guard (DKMS)
Upstream URL: https://lkrg.org/
Licenses: GPL2
Submitter: rgacogne
Maintainer: rgacogne
Last Packager: rgacogne
Votes: 6
Popularity: 0.27
First Submitted: 2020-03-16 16:39 (UTC)
Last Updated: 2022-04-21 14:33 (UTC)

Latest Comments

itoffshore commented on 2021-11-06 20:19 (UTC) (edited on 2021-11-06 20:22 (UTC) by itoffshore)

using lkrg-dkms-git now builds successfully on 5.14 kernels thanks to this commit on master

which gave me:

filename:       /lib/modules/5.14.16-hardened1-1-hardened/kernel/drivers/misc/p_lkrg.ko.zst

For anyone interested in signed Out of Tree kernel modules - I made Arch Sign Modules - I use it to sign nvidia / zfs / lkrg modules.

rgacogne commented on 2021-09-10 08:27 (UTC)

I'm afraid 0.9.1 doesn't build with 5.14+, and that's the more recent version of LKRG. You can switch to lkrg-dkms-git which uses the git repository and thus will get support for 5.14 more quickly, but as far as I know it doesn't work with 5.14 yet either.

scry3r commented on 2021-09-09 21:50 (UTC) (edited on 2021-09-09 21:51 (UTC) by scry3r)

I try to install this module on arch-based disatro and have same error

DKMS make.log for lkrg-0.9.1 for kernel 5.14.0-0-MANJARO (x86_64)
п'ятниця, 10 вересня 2021 00:44:21 +0300
make -C /lib/modules/5.14.0-0-MANJARO/build M=/var/lib/dkms/lkrg/0.9.1/build modules
make[1]: Entering directory '/usr/lib/modules/5.14.0-0-MANJARO/build'
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/comm_channel/p_comm_channel.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/ksyms/p_resolve_ksym.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/hashing/p_lkrg_fast_hash.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/integrity_timer/p_integrity_timer.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/database/CPU.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/kmod/p_kmod.o
/var/lib/dkms/lkrg/0.9.1/build/src/modules/hashing/p_lkrg_fast_hash.c: In function ‘p_lkrg_siphash’:
/var/lib/dkms/lkrg/0.9.1/build/src/modules/hashing/p_lkrg_fast_hash.c:68:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
   68 |          b |= ((uint64_t)in[6]) << 48;
      |          ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/lkrg/0.9.1/build/src/modules/hashing/p_lkrg_fast_hash.c:70:7: note: here
   70 |       case 6:
      |       ^~~~
/var/lib/dkms/lkrg/0.9.1/build/src/modules/hashing/p_lkrg_fast_hash.c:71:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
   71 |          b |= ((uint64_t)in[5]) << 40;
      |          ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/lkrg/0.9.1/build/src/modules/hashing/p_lkrg_fast_hash.c:73:7: note: here
   73 |       case 5:
      |       ^~~~
/var/lib/dkms/lkrg/0.9.1/build/src/modules/hashing/p_lkrg_fast_hash.c:74:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
   74 |          b |= ((uint64_t)in[4]) << 32;
      |          ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/lkrg/0.9.1/build/src/modules/hashing/p_lkrg_fast_hash.c:76:7: note: here
   76 |       case 4:
      |       ^~~~
/var/lib/dkms/lkrg/0.9.1/build/src/modules/hashing/p_lkrg_fast_hash.c:77:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
   77 |          b |= ((uint64_t)in[3]) << 24;
      |          ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/lkrg/0.9.1/build/src/modules/hashing/p_lkrg_fast_hash.c:79:7: note: here
   79 |       case 3:
      |       ^~~~
/var/lib/dkms/lkrg/0.9.1/build/src/modules/hashing/p_lkrg_fast_hash.c:80:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
   80 |          b |= ((uint64_t)in[2]) << 16;
      |          ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/lkrg/0.9.1/build/src/modules/hashing/p_lkrg_fast_hash.c:82:7: note: here
   82 |       case 2:
      |       ^~~~
/var/lib/dkms/lkrg/0.9.1/build/src/modules/hashing/p_lkrg_fast_hash.c:83:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
   83 |          b |= ((uint64_t)in[1]) << 8;
      |          ~~^~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/lkrg/0.9.1/build/src/modules/hashing/p_lkrg_fast_hash.c:85:7: note: here
   85 |       case 1:
      |       ^~~~
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/database/arch/x86/p_x86_metadata.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/database/arch/x86/p_switch_idt/p_switch_idt.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/database/arch/arm64/p_arm64_metadata.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/database/arch/arm/p_arm_metadata.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/database/arch/p_arch_metadata.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/database/JUMP_LABEL/p_arch_jump_label_transform/p_arch_jump_label_transform.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/database/JUMP_LABEL/p_arch_jump_label_transform_apply/p_arch_jump_label_transform_apply.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/database/FTRACE/p_ftrace_modify_all_code/p_ftrace_modify_all_code.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/database/FTRACE/p_ftrace_enable_sysctl/p_ftrace_enable_sysctl.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/database/TRACEPOINT/p_arch_static_call_transform/p_arch_static_call_transform.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/database/p_database.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/notifiers/p_notifiers.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/self-defense/hiding/p_hiding.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/p_rb_ed_trees/p_rb_ed_pids/p_rb_ed_pids_tree.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_install.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/exec/p_security_bprm_committing_creds/p_security_bprm_committing_creds.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/exec/p_security_bprm_committed_creds/p_security_bprm_committed_creds.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_call_usermodehelper/p_call_usermodehelper.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_call_usermodehelper_exec/p_call_usermodehelper_exec.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_do_exit/p_do_exit.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_wake_up_new_task/p_wake_up_new_task.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_sys_setuid/p_sys_setuid.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_sys_setreuid/p_sys_setreuid.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_sys_setresuid/p_sys_setresuid.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_sys_setfsuid/p_sys_setfsuid.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_sys_setgid/p_sys_setgid.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_sys_setregid/p_sys_setregid.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_sys_setresgid/p_sys_setresgid.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_sys_setfsgid/p_sys_setfsgid.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_set_current_groups/p_set_current_groups.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_generic_permission/p_generic_permission.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_sel_write_enforce/p_sel_write_enforce.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_seccomp/p_seccomp.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_sys_unshare/p_sys_unshare.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_sys_setns/p_sys_setns.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/caps/p_sys_capset/p_sys_capset.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/caps/p_cap_task_prctl/p_cap_task_prctl.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/keyring/p_key_change_session_keyring/p_key_change_session_keyring.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/keyring/p_sys_add_key/p_sys_add_key.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/keyring/p_sys_request_key/p_sys_request_key.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/keyring/p_sys_keyctl/p_sys_keyctl.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_security_ptrace_access/p_security_ptrace_access.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/compat/p_compat_sys_keyctl/p_compat_sys_keyctl.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/compat/p_compat_sys_capset/p_compat_sys_capset.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/compat/p_compat_sys_add_key/p_compat_sys_add_key.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/compat/p_compat_sys_request_key/p_compat_sys_request_key.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/__x32/p_x32_sys_keyctl/p_x32_sys_keyctl.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/override/p_override_creds/p_override_creds.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/override/p_revert_creds/p_revert_creds.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/override/overlayfs/p_ovl_create_or_link/p_ovl_create_or_link.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/pCFI/p_mark_inode_dirty/p_mark_inode_dirty.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/pCFI/p_schedule/p_schedule.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/pCFI/p___queue_work/p___queue_work.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/pCFI/p_lookup_fast/p_lookup_fast.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_capable/p_capable.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_scm_send/p_scm_send.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/p_selinux_state.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/p_exploit_detection.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/p_lkrg_main.o
/var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/p_exploit_detection.c: In function ‘p_iterate_lkrg_tasks_paranoid’:
/var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/p_exploit_detection.c:1198:49: error: ‘struct task_struct’ has no member named ‘state’; did you mean ‘__state’?
 1198 |             if (p_is_ed_task(p_task) && p_task->state != TASK_DEAD) {
      |                                                 ^~~~~
      |                                                 __state
/var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/p_exploit_detection.c: In function ‘p_validate_task_f’:
/var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/p_exploit_detection.c:1638:19: error: ‘struct task_struct’ has no member named ‘state’; did you mean ‘__state’?
 1638 |       if (p_task->state != TASK_DEAD) {
      |                   ^~~~~
      |                   __state
make[2]: *** [scripts/Makefile.build:271: /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/p_exploit_detection.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1851: /var/lib/dkms/lkrg/0.9.1/build] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.14.0-0-MANJARO/build'
make: *** [Makefile:97: all] Error 2
[max@mksredmibook ~]$ cat /var/lib/dkms/lkrg/0.9.1/build/make.log | xclip
[max@mksredmibook ~]$ cat /var/lib/dkms/lkrg/0.9.1/build/make.log >xclip
[max@mksredmibook ~]$ cat /var/lib/dkms/lkrg/0.9.1/build/make.log | xclip
[max@mksredmibook ~]$ cat /var/lib/dkms/lkrg/0.9.1/build/make.log
DKMS make.log for lkrg-0.9.1 for kernel 5.14.0-0-MANJARO (x86_64)
п'ятниця, 10 вересня 2021 00:44:21 +0300
make -C /lib/modules/5.14.0-0-MANJARO/build M=/var/lib/dkms/lkrg/0.9.1/build modules
make[1]: Entering directory '/usr/lib/modules/5.14.0-0-MANJARO/build'
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/comm_channel/p_comm_channel.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/ksyms/p_resolve_ksym.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/hashing/p_lkrg_fast_hash.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/integrity_timer/p_integrity_timer.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/database/CPU.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/kmod/p_kmod.o
/var/lib/dkms/lkrg/0.9.1/build/src/modules/hashing/p_lkrg_fast_hash.c: In function ‘p_lkrg_siphash’:
/var/lib/dkms/lkrg/0.9.1/build/src/modules/hashing/p_lkrg_fast_hash.c:68:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
   68 |          b |= ((uint64_t)in[6]) << 48;
      |          ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/lkrg/0.9.1/build/src/modules/hashing/p_lkrg_fast_hash.c:70:7: note: here
   70 |       case 6:
      |       ^~~~
/var/lib/dkms/lkrg/0.9.1/build/src/modules/hashing/p_lkrg_fast_hash.c:71:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
   71 |          b |= ((uint64_t)in[5]) << 40;
      |          ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/lkrg/0.9.1/build/src/modules/hashing/p_lkrg_fast_hash.c:73:7: note: here
   73 |       case 5:
      |       ^~~~
/var/lib/dkms/lkrg/0.9.1/build/src/modules/hashing/p_lkrg_fast_hash.c:74:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
   74 |          b |= ((uint64_t)in[4]) << 32;
      |          ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/lkrg/0.9.1/build/src/modules/hashing/p_lkrg_fast_hash.c:76:7: note: here
   76 |       case 4:
      |       ^~~~
/var/lib/dkms/lkrg/0.9.1/build/src/modules/hashing/p_lkrg_fast_hash.c:77:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
   77 |          b |= ((uint64_t)in[3]) << 24;
      |          ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/lkrg/0.9.1/build/src/modules/hashing/p_lkrg_fast_hash.c:79:7: note: here
   79 |       case 3:
      |       ^~~~
/var/lib/dkms/lkrg/0.9.1/build/src/modules/hashing/p_lkrg_fast_hash.c:80:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
   80 |          b |= ((uint64_t)in[2]) << 16;
      |          ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/lkrg/0.9.1/build/src/modules/hashing/p_lkrg_fast_hash.c:82:7: note: here
   82 |       case 2:
      |       ^~~~
/var/lib/dkms/lkrg/0.9.1/build/src/modules/hashing/p_lkrg_fast_hash.c:83:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
   83 |          b |= ((uint64_t)in[1]) << 8;
      |          ~~^~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/lkrg/0.9.1/build/src/modules/hashing/p_lkrg_fast_hash.c:85:7: note: here
   85 |       case 1:
      |       ^~~~
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/database/arch/x86/p_x86_metadata.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/database/arch/x86/p_switch_idt/p_switch_idt.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/database/arch/arm64/p_arm64_metadata.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/database/arch/arm/p_arm_metadata.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/database/arch/p_arch_metadata.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/database/JUMP_LABEL/p_arch_jump_label_transform/p_arch_jump_label_transform.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/database/JUMP_LABEL/p_arch_jump_label_transform_apply/p_arch_jump_label_transform_apply.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/database/FTRACE/p_ftrace_modify_all_code/p_ftrace_modify_all_code.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/database/FTRACE/p_ftrace_enable_sysctl/p_ftrace_enable_sysctl.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/database/TRACEPOINT/p_arch_static_call_transform/p_arch_static_call_transform.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/database/p_database.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/notifiers/p_notifiers.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/self-defense/hiding/p_hiding.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/p_rb_ed_trees/p_rb_ed_pids/p_rb_ed_pids_tree.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_install.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/exec/p_security_bprm_committing_creds/p_security_bprm_committing_creds.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/exec/p_security_bprm_committed_creds/p_security_bprm_committed_creds.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_call_usermodehelper/p_call_usermodehelper.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_call_usermodehelper_exec/p_call_usermodehelper_exec.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_do_exit/p_do_exit.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_wake_up_new_task/p_wake_up_new_task.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_sys_setuid/p_sys_setuid.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_sys_setreuid/p_sys_setreuid.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_sys_setresuid/p_sys_setresuid.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_sys_setfsuid/p_sys_setfsuid.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_sys_setgid/p_sys_setgid.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_sys_setregid/p_sys_setregid.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_sys_setresgid/p_sys_setresgid.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_sys_setfsgid/p_sys_setfsgid.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_set_current_groups/p_set_current_groups.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_generic_permission/p_generic_permission.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_sel_write_enforce/p_sel_write_enforce.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_seccomp/p_seccomp.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_sys_unshare/p_sys_unshare.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_sys_setns/p_sys_setns.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/caps/p_sys_capset/p_sys_capset.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/caps/p_cap_task_prctl/p_cap_task_prctl.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/keyring/p_key_change_session_keyring/p_key_change_session_keyring.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/keyring/p_sys_add_key/p_sys_add_key.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/keyring/p_sys_request_key/p_sys_request_key.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/keyring/p_sys_keyctl/p_sys_keyctl.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_security_ptrace_access/p_security_ptrace_access.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/compat/p_compat_sys_keyctl/p_compat_sys_keyctl.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/compat/p_compat_sys_capset/p_compat_sys_capset.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/compat/p_compat_sys_add_key/p_compat_sys_add_key.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/compat/p_compat_sys_request_key/p_compat_sys_request_key.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/__x32/p_x32_sys_keyctl/p_x32_sys_keyctl.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/override/p_override_creds/p_override_creds.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/override/p_revert_creds/p_revert_creds.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/override/overlayfs/p_ovl_create_or_link/p_ovl_create_or_link.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/pCFI/p_mark_inode_dirty/p_mark_inode_dirty.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/pCFI/p_schedule/p_schedule.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/pCFI/p___queue_work/p___queue_work.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/pCFI/p_lookup_fast/p_lookup_fast.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_capable/p_capable.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/syscalls/p_scm_send/p_scm_send.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/p_selinux_state.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/p_exploit_detection.o
  CC [M]  /var/lib/dkms/lkrg/0.9.1/build/src/p_lkrg_main.o
/var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/p_exploit_detection.c: In function ‘p_iterate_lkrg_tasks_paranoid’:
/var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/p_exploit_detection.c:1198:49: error: ‘struct task_struct’ has no member named ‘state’; did you mean ‘__state’?
 1198 |             if (p_is_ed_task(p_task) && p_task->state != TASK_DEAD) {
      |                                                 ^~~~~
      |                                                 __state
/var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/p_exploit_detection.c: In function ‘p_validate_task_f’:
/var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/p_exploit_detection.c:1638:19: error: ‘struct task_struct’ has no member named ‘state’; did you mean ‘__state’?
 1638 |       if (p_task->state != TASK_DEAD) {
      |                   ^~~~~
      |                   __state
make[2]: *** [scripts/Makefile.build:271: /var/lib/dkms/lkrg/0.9.1/build/src/modules/exploit_detection/p_exploit_detection.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1851: /var/lib/dkms/lkrg/0.9.1/build] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.14.0-0-MANJARO/build'
make: *** [Makefile:97: all] Error 2

rgacogne commented on 2021-03-22 08:35 (UTC)

Thank you for reporting the issue! Unfortunately there has not been any release recently and I can't keep backporting more and more patches as they simply don't apply anymore. I will reach out to upstream to ask if a new version could be released. In the meantime I just pushed lkrg-dkms-git which uses the latest git commit.

yekm commented on 2021-03-22 08:25 (UTC)

# tail -n 20 /var/lib/dkms/lkrg/0.8.1/build/make.log
  CC [M]  /var/lib/dkms/lkrg/0.8.1/build/src/modules/exploit_detection/syscalls/p_capable/p_capable.o
  CC [M]  /var/lib/dkms/lkrg/0.8.1/build/src/modules/exploit_detection/syscalls/p_scm_send/p_scm_send.o
  CC [M]  /var/lib/dkms/lkrg/0.8.1/build/src/modules/exploit_detection/p_exploit_detection.o
  CC [M]  /var/lib/dkms/lkrg/0.8.1/build/src/p_lkrg_main.o
/var/lib/dkms/lkrg/0.8.1/build/src/modules/exploit_detection/p_exploit_detection.c: In function ‘p_dump_seccomp’:
/var/lib/dkms/lkrg/0.8.1/build/src/modules/exploit_detection/p_exploit_detection.c:505:36: error: ‘TIF_SECCOMP’ undeclared (first use in this function); did you mean ‘SYS_SECCOMP’?
  505 |    if (test_tsk_thread_flag(p_task,TIF_SECCOMP))
      |                                    ^~~~~~~~~~~
      |                                    SYS_SECCOMP
/var/lib/dkms/lkrg/0.8.1/build/src/modules/exploit_detection/p_exploit_detection.c:505:36: note: each undeclared identifier is reported only once for each function it appears in
/var/lib/dkms/lkrg/0.8.1/build/src/modules/exploit_detection/p_exploit_detection.c: In function ‘p_cmp_tasks’:
/var/lib/dkms/lkrg/0.8.1/build/src/modules/exploit_detection/p_exploit_detection.c:1187:42: error: ‘TIF_SECCOMP’ undeclared (first use in this function); did you mean ‘SYS_SECCOMP’?
 1187 |       if (test_tsk_thread_flag(p_current,TIF_SECCOMP) != p_orig->p_ed_task.p_sec.flag) {
      |                                          ^~~~~~~~~~~
      |                                          SYS_SECCOMP
make[2]: *** [scripts/Makefile.build:279: /var/lib/dkms/lkrg/0.8.1/build/src/modules/exploit_detection/p_exploit_detection.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1806: /var/lib/dkms/lkrg/0.8.1/build] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.11.8-arch1-1/build'
make: *** [Makefile:98: all] Error 2