-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't get hello_world.py to work on Fedora 30 #2525
Comments
Your config seems okay. From the strace output, I did not see any issues. Maybe have to play it by myself to find out why... |
Thanks for the feedback.
That would be much appreciated. However, towards a quick turnaround, I would also be really happy to debug things a little further myself. Curious: did anyone ever test the bcc examples with a 5.2.x kernel? Would be good to know for sure that it's just about my system specifics, and not so much about the cutting edge kernel version itself. |
You mean except for the EPERM, right? :-) I mean, we probably agree that this EPERM is the symptom, and that we do not know where it comes from, right? This snippet is the first
|
I checked with the above output from strace and it looks okay. |
Tried with manually build bcc, it seems working for me.
|
I needed to lift the kernel lockdown to get this working. We can be very thankful to @deg00 for providing this hint over here: #1532 (comment) I have documented the problem & solution here, in a quick blog post: This PR adds a corresponding FAQ entry: #2532 Context: kernel lockdown was seemingly introduced in 4.17, and is activated on many (all?) newer Fedora installations. I am closing this as resolved. Thank you @yonghong-song for the splendid help. Open questions:
|
In the discussion about the lockdown patch, Linus wrote:
Now, that's exactly what happened here! |
|
I do not have 'lockdown' in my dmesg. |
Hindsight...: my
Most likely you were not affected because in your VM setup you do not have secure boot enabled (not even sure if that's possible). So really what happened here between the two of us is most likely this quite annoying scenario predicted by Linus:
|
Hey. Environment: Fedora 30, SELinux disabled, kernel 5.2.15, see:
I do run things as root:
I have tried both, bcc built from source (head of master from today) as well as from the Fedora 30 package repository. The following output is from bcc installed via the latter:
I used
strace
to see what exactly fails how. Here's the relevant output excerpt:This seems somewhat similar to #1532 which has no definite resolution.
Does the following configuration look OK to you?
I would very much appreciate some further debugging help from here.
The text was updated successfully, but these errors were encountered: