Skip to content

Commit

Permalink
FAQ: Add Q&A about kernel lockdown (#2532)
Browse files Browse the repository at this point in the history
add kernel lockdown and solution to turn it off.
  • Loading branch information
jgehrcke authored and yonghong-song committed Sep 26, 2019
1 parent 115b959 commit ac29d09
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions FAQ.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ Q: hello_world.py still fails with:
Exception: Failed to load BPF program hello
A: sudo

Q: hello_world.py fails with
bpf: Failed to load program: Operation not permitted
despite running as root, and strace shows each `bpf()` system call failing with an EPERM.
A: The so-called Kernel lockdown might be the root cause. Try disabling it with the so-called
sysrq mechanism:
echo 1 > /proc/sys/kernel/sysrq
echo x > /proc/sysrq-trigger
Also see https://github.com/iovisor/bcc/issues/2525

Q: How do I fulfill the Linux kernel version requirement?
A: You need to obtain a recent version of the Linux source code
(please look at the README for the exact version), enable the
Expand Down

0 comments on commit ac29d09

Please sign in to comment.