-
Notifications
You must be signed in to change notification settings - Fork 486
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
"Could not acquire EC lock" with kernel 5.3.0-24 #800
Comments
After a bit of tinkering, the workaround works again. I don't know what broke it momentarily! |
The issue is back... The workaround doesn't work anymore!
I guess something has changed in a recent kernel update (?). |
I do confirm this has to do with a recent kernel update! Fresh boot with kernel 5.3.0-24 :
Fresh boot with kernel 5.3.0-23 :
|
I have replied in #414. I should probably have done this here. Sorry. |
@YtvwlD hey, thanks for dropping by. Let's continue here, because the other issue is closed. |
Thank you for pointing me to the relevant portion of the code. This seems to be a conceptual issue: You can't directly access hardware from userspace anymore. You'll need to have a small kernel module that exposes that small bit of functionality you actually need. Edit: This project seems to be built on the promise to access the EC OS-independent in user-space. One workaround I could think of is adding a kernel module that exposes just the embedded controller without validating anything. This would still decrease the security a bit but much less than lifting lockdown. |
Is there another solution apart from the kernel module? In case it's the only one, I started working on a small module which basically take most of its code from |
Well, yes. But the last part is being (partly) being handled by (some?) distributions, see eg. https://wiki.ubuntu.com/UEFI/SecureBoot for Ubuntu. |
Didn't knew that we can generate keys on the fly. If it's the case, then it should be trivial to make it work with DKMS. |
I just have a question for the kernel module: how we should expose the EC file? Through |
I finally finished to write the kernel module (here). However, I don't know how to modify NBFC so it doesn't access directly to |
@musikid To add support for your kernel module to NBFC, you have to create an EC plugin. Let me know if you need help writing a plugin for your module or if I should write the plugin for you. |
It should be trivial to write a new plugin, I think I can handle it myself. Thanks for the help though! |
@musikid I just took a quick look at your update-secureboot-policy --new-key # this won't do anything if one already exists
update-secureboot-policy --enroll-key # this should pop up a wizard guiding the key enrollment process
dkms add -m $MODULE_NAME -v "$VERSION"
dkms install -m $MODULE_NAME -v "$VERSION" # dkms will sign the module automatically |
@YtvwlD It seems that |
Debian does, too. But yeah, there seems to be no automatic process for combining DKMS and Secure Boot on either Fedora or openSUSE - someone using one of those distros could probably open an issue there and ask for that. |
@hirschmann I finally finished the module and the plug-in. I made the installation process of the module as simple as possible. Should I send a pull request? |
Yeah sure, a PR would be great! |
|
This issue is stale because it has been open more than 180 days with no activity. If nobody comments within 7 days, this issue will be closed |
What's the status on this issue? Has any progress been made? I do not want to disable secure boot, (it's not up to me) but I would like to use nbfc to control fan speeds. This still seems to be an issue with Ubuntu's current LTS version 20.0.04 on an Acer Nitro5. |
I have written a module to circumvent this problem. I have also written an alternative to NBFC specifically for Linux, since it's rather hard to build it on this platform if anyone is interested. |
Looks like an odd coincidence as the bug was closed yesterday...
But the problem described here : "'Could not acquire EC lock' on Ubuntu 18.04 LTS" #472
is back with kernel 5.3.0-24-generic (at least on Ubuntu).
The workaround described doesnt work anymore and NBFC cannot start.
The text was updated successfully, but these errors were encountered: