Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Fri, 5 Jun 2020 02:40:28 +0200
From: Jacek <wampir990@...il.com>
To: lkrg-users@...ts.openwall.com
Subject: [p_lkrg] [kretprobe] register_kretprobe() for <ttwu_do_wakeup>
 failed! [err=-22]

Hi

How do I fix error in my kernel config:


Kernel version:

Linux version 5.7.0-g2 (root@...ek) (gcc version 9.3.0 (Gentoo Hardened
9.3.0 p2), GNU ld (Gentoo 2.33.1 p2) 2.33.1) #3 SMP PREEMPT Thu Jun 4
20:41:32 CEST 2020

My kernel config:     https://pastebin.com/raw/iTuzR97w

LKRG version:

# root ~> cat /ssdtmp/lkrg-main/.git/ORIG_HEAD
5ddb0617194e55b2fe723f2c218b9c8d50cedb71

Modinfo:

filename:       /lib/modules/5.7.0-g2/extra/p_lkrg.ko
license:        GPL v2
description:    pi3's Linux kernel Runtime Guard
author:         Adam 'pi3' Zabrocki (http://pi3.com.pl)
srcversion:     B1DF6F54F2541DEC0B0408B

Modprobe:

# root ~> modprobe -v p_lkrg

insmod /lib/modules/5.7.0-g2/extra/p_lkrg.ko
modprobe: ERROR: could not insert 'p_lkrg': No buffer space available

DMESG:

[ 7119.684878] [p_lkrg] Loading LKRG...
[ 7119.684884] [p_lkrg] System does NOT support SMAP. LKRG can't enforce
SMAP validation :(
[ 7119.696473] Freezing user space processes ... (elapsed 0.002 seconds)
done.
[ 7119.699455] OOM killer disabled.
[ 7119.699482] [p_lkrg] 4/23 UMH paths were whitelisted...
[ 7123.308289] [p_lkrg] [kretprobe] register_kretprobe() for
<ttwu_do_wakeup> failed! [err=-22]
[ 7123.308290] [p_lkrg] ERROR: Can't hook ttwu_do_wakeup :(
[ 7128.945363] [p_lkrg] Can't initialize exploit detection features!
Exiting...
[ 7128.969295] OOM killer enabled.
[ 7128.969297] Restarting tasks ... done.


[p_lkrg] [kretprobe] register_kretprobe() for <ttwu_do_wakeup> failed!

What is it and how do I fix it?


System does NOT support SMAP. LKRG can't enforce SMAP validation :( ?

System or CPU?

I have  Intel i5-4590S.

Cpu flags:

fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36
clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb
rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology
nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx
est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe
popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm
cpuid_fault invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi
flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2
erms invpcid xsaveopt dtherm ida arat pln pts md_clear flush_l1d

 

Cheers






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.