Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <63a5f2a3-e02c-08a9-9cb8-4b0d0fd7dddb@gmail.com>
Date: Wed, 5 Aug 2020 19:49:25 +0200
From: Mikhail Morfikov <mmorfikov@...il.com>
To: lkrg-users@...ts.openwall.com
Subject: Re: lkrg: Fix build LKRG for kernel 5.8+

On 05/08/2020 19.46, Mikhail Morfikov wrote:
> On 05/08/2020 18.27, Solar Designer wrote:
>> On Wed, Aug 05, 2020 at 05:12:54PM +0200, Mikhail Morfikov wrote:
>>> It looks like that lkrg for 5.8 also can't be built:
>>
>> Oops.  That's what I get for improvising without testing on more than
>> one system.  Mikhail Klementev would rightly remind us that we should
>> start using his https://github.com/jollheef/out-of-tree or some other
>> Continuous Integration setup.
>>
>> Build on new kernels should be fixed now.  I tested on two systems this
>> time. ;-)  Please test it on Linux 5.8, which I don't have anywhere yet.
>>
>> commit 8d926b99fea47fa01e1d563b2ae71fb21cc42867
>> Author: Solar Designer <solar@...nwall.com>
>> Date:   Wed Aug 5 18:19:32 2020 +0200
>>
>>     Fix build with non-RHEL kernels broken with the previous commit
>>
>> commit b459b334e6a1020732541840957ffefb2d1873df
>> Author: Solar Designer <solar@...nwall.com>
>> Date:   Tue Aug 4 21:48:36 2020 +0200
>>
>>     Don't include linux/cryptohash.h on recent kernels
>>     
>>     This fixes LKRG build on Linux 5.8+, which renamed that header file.  Thanks to
>>     Andy Lavr for reporting this problem and suggesting a (different) fix, which
>>     made us revisit our use of that header file.
>>     
>>     We only need that header file on older kernels (< 4.4.72 or < RHEL 7.4) for the
>>     one use of md5_transform() in get_random_long().  On newer kernels, we simply
>>     use the kernel-provided get_random_long().  Further, 5.8's crypto/sha.h doesn't
>>     declare md5_transform() anyway (linux/cryptohash.h on much older kernels did).
>>
>> Thanks,
>>
>> Alexander
>>
> 
> I got another error:
> 
> # cat /var/lib/dkms/lkrg/0.8.1+git20200805/build/make.log
> DKMS make.log for lkrg-0.8.1+git20200805 for kernel 5.8.0-amd64 (x86_64)
> 2020-08-05T19:41:47 CEST
> make: Entering directory '/usr/src/linux-headers-5.8.0-amd64'
>   AR      /var/lib/dkms/lkrg/0.8.1+git20200805/build/built-in.a
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/ksyms/p_resolve_ksym.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/hashing/p_lkrg_fast_hash.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/comm_channel/p_comm_channel.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/integrity_timer/p_integrity_timer.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/kmod/p_kmod.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/database/CPU.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/database/arch/x86/p_x86_metadata.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/database/arch/x86/p_switch_idt/p_switch_idt.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/database/arch/arm64/p_arm64_metadata.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/database/arch/arm/p_arm_metadata.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/database/arch/p_arch_metadata.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/database/JUMP_LABEL/p_arch_jump_label_transform/p_arch_jump_label_transform.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/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.8.1+git20200805/build/src/modules/database/p_database.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/notifiers/p_notifiers.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/self-defense/hiding/p_hiding.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/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.8.1+git20200805/build/src/modules/exploit_detection/syscalls/p_install.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/p_sys_execve/p_sys_execve.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/p_sys_execveat/p_sys_execveat.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/p_call_usermodehelper/p_call_usermodehelper.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/p_call_usermodehelper_exec/p_call_usermodehelper_exec.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/p_do_exit/p_do_exit.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/p_wake_up_new_task/p_wake_up_new_task.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/p_sys_setuid/p_sys_setuid.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/p_sys_setreuid/p_sys_setreuid.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/p_sys_setresuid/p_sys_setresuid.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/p_sys_setfsuid/p_sys_setfsuid.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/p_sys_setgid/p_sys_setgid.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/p_sys_setregid/p_sys_setregid.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/p_sys_setresgid/p_sys_setresgid.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/p_sys_setfsgid/p_sys_setfsgid.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/p_set_current_groups/p_set_current_groups.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/p_generic_permission/p_generic_permission.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/p_sel_write_enforce/p_sel_write_enforce.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/p_seccomp/p_seccomp.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/p_sys_unshare/p_sys_unshare.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/p_sys_setns/p_sys_setns.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/caps/p_sys_capset/p_sys_capset.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/caps/p_cap_task_prctl/p_cap_task_prctl.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/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.8.1+git20200805/build/src/modules/exploit_detection/syscalls/keyring/p_sys_add_key/p_sys_add_key.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/keyring/p_sys_request_key/p_sys_request_key.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/keyring/p_sys_keyctl/p_sys_keyctl.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/p_sys_ptrace/p_sys_ptrace.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/compat/p_compat_sys_execve/p_compat_sys_execve.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/compat/p_compat_sys_execveat/p_compat_sys_execveat.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/compat/p_compat_sys_keyctl/p_compat_sys_keyctl.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/compat/p_compat_sys_ptrace/p_compat_sys_ptrace.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/compat/p_compat_sys_capset/p_compat_sys_capset.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/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.8.1+git20200805/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.8.1+git20200805/build/src/modules/exploit_detection/syscalls/__x32/p_x32_sys_execve/p_x32_sys_execve.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/__x32/p_x32_sys_execveat/p_x32_sys_execveat.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/__x32/p_x32_sys_keyctl/p_x32_sys_keyctl.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/__x32/p_x32_sys_ptrace/p_x32_sys_ptrace.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/override/p_override_creds/p_override_creds.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/override/p_revert_creds/p_revert_creds.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/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.8.1+git20200805/build/src/modules/exploit_detection/syscalls/pCFI/p_mark_inode_dirty/p_mark_inode_dirty.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/pCFI/p_schedule/p_schedule.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/pCFI/p___queue_work/p___queue_work.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/pCFI/p_lookup_fast/p_lookup_fast.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/p_ttwu_do_wakeup/p_ttwu_do_wakeup.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/p_capable/p_capable.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/syscalls/p_scm_send/p_scm_send.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/modules/exploit_detection/p_exploit_detection.o
>   CC [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/src/p_lkrg_main.o
>   LD [M]  /var/lib/dkms/lkrg/0.8.1+git20200805/build/p_lkrg.o
>   MODPOST /var/lib/dkms/lkrg/0.8.1+git20200805/build/Module.symvers
> ERROR: modpost: "native_write_cr4" [/var/lib/dkms/lkrg/0.8.1+git20200805/build/p_lkrg.ko] undefined!
> make[1]: *** [scripts/Makefile.modpost:111: /var/lib/dkms/lkrg/0.8.1+git20200805/build/Module.symvers] Error 1
> make[1]: *** Deleting file '/var/lib/dkms/lkrg/0.8.1+git20200805/build/Module.symvers'
> make: *** [Makefile:1681: modules] Error 2
> make: Leaving directory '/usr/src/linux-headers-5.8.0-amd64'
> 
> 

At least it builds for 5.7.12 again. :)



Download attachment "signature.asc" of type "application/pgp-signature" (229 bytes)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.