Issue #440 has been reported by J Nky.
---------------------------------------- Bug #440: superiotool tells you to run it as root and stops even when ran as root https://ticket.coreboot.org/issues/440
* Author: J Nky * Status: New * Priority: Normal * Target version: none * Start date: 2022-11-24 * Affected versions: 4.15 * Affected OS: ubuntu 22.10 ---------------------------------------- On ubuntu 22.10:
**sudo superiotool** iopl: Function not implemented Superiotool must be run as root.
superiotool tells you to run it as root and stops even when ran as root
Issue #440 has been updated by Nicholas Chin.
Ah, iopl is deprecated and I guess more systems have started removing it. I remember someone having the same issue with nvramtool before, but I guess I never got around to posting a patch to fix it. It should be replaced with ioperm.
That error message is printed if iopl returns an error, and I guess the assumption was that if it errored you most likely didn't have the permissions to call it. But now the issue is that iopl isn't implemented in the first place.
---------------------------------------- Bug #440: superiotool tells you to run it as root and stops even when ran as root https://ticket.coreboot.org/issues/440#change-1279
* Author: J Nky * Status: New * Priority: Normal * Target version: none * Start date: 2022-11-24 * Affected versions: 4.15 * Affected OS: ubuntu 22.10 ---------------------------------------- On ubuntu 22.10:
**sudo superiotool** iopl: Function not implemented Superiotool must be run as root.
superiotool tells you to run it as root and stops even when ran as root
Issue #440 has been updated by Nicholas Chin.
I uploaded a patch, could you test it out? https://review.coreboot.org/c/coreboot/+/69981
---------------------------------------- Bug #440: superiotool tells you to run it as root and stops even when ran as root https://ticket.coreboot.org/issues/440#change-1280
* Author: J Nky * Status: New * Priority: Normal * Target version: none * Start date: 2022-11-24 * Affected versions: 4.15 * Affected OS: ubuntu 22.10 ---------------------------------------- On ubuntu 22.10:
**sudo superiotool** iopl: Function not implemented Superiotool must be run as root.
superiotool tells you to run it as root and stops even when ran as root
Issue #440 has been updated by J Nky.
Nicholas Chin wrote in #note-2:
I uploaded a patch, could you test it out? https://review.coreboot.org/c/coreboot/+/69981
Unfortunately I have no idea how to do it. I'm having like 2 brain cells at most and all I can do is to get already built package using `apt install` :)
---------------------------------------- Bug #440: superiotool tells you to run it as root and stops even when ran as root https://ticket.coreboot.org/issues/440#change-1282
* Author: J Nky * Status: New * Priority: Normal * Target version: none * Start date: 2022-11-24 * Affected versions: 4.15 * Affected OS: ubuntu 22.10 ---------------------------------------- On ubuntu 22.10:
**sudo superiotool** iopl: Function not implemented Superiotool must be run as root.
superiotool tells you to run it as root and stops even when ran as root
Issue #440 has been updated by Nicholas Chin.
J Nky wrote in #note-3:
Unfortunately I have no idea how to do it. I'm having like 2 brain cells at most and all I can do is to get prebuilt package using `apt install` :)
Hmm, so I'm assuming you are using superiotool from the coreboot-utils package? In that case, try these steps: 1. Install the following packages using apt: `sudo apt install build-essential git` 2. Download the coreboot source code: `git clone https://review.coreboot.org/coreboot%60 3. Go to the superiotool source: `cd coreboot/util/superiotool` 4. Download my patch: `git fetch https://review.coreboot.org/coreboot refs/changes/81/69981/4 && git checkout -b change-69981 FETCH_HEAD` 5. Compile superiotool: `make` 6. Try running superiotool again `sudo ./superiotool`
---------------------------------------- Bug #440: superiotool tells you to run it as root and stops even when ran as root https://ticket.coreboot.org/issues/440#change-1283
* Author: J Nky * Status: New * Priority: Normal * Target version: none * Start date: 2022-11-24 * Affected versions: 4.15 * Affected OS: ubuntu 22.10 ---------------------------------------- On ubuntu 22.10:
**sudo superiotool** iopl: Function not implemented Superiotool must be run as root.
superiotool tells you to run it as root and stops even when ran as root
Issue #440 has been updated by J Nky.
Hmm, so I'm assuming you are using superiotool from the coreboot-utils package?
Yes. Thanks to your instructions and after installation of `libpci-dev` i was able to build it.
Now i get this when i trying to run it:
``` root@LAPTOP:~/coreboot/util/superiotool# sudo ./superiotool ioperm: Function not implemented Superiotool must be run as root. ```
---------------------------------------- Bug #440: superiotool tells you to run it as root and stops even when ran as root https://ticket.coreboot.org/issues/440#change-1284
* Author: J Nky * Status: New * Priority: Normal * Target version: none * Start date: 2022-11-24 * Affected versions: 4.15 * Affected OS: ubuntu 22.10 ---------------------------------------- On ubuntu 22.10:
**sudo superiotool** iopl: Function not implemented Superiotool must be run as root.
superiotool tells you to run it as root and stops even when ran as root
Issue #440 has been updated by Nicholas Chin.
Hmm, that's interesting. I'll have to look into this further.
---------------------------------------- Bug #440: superiotool tells you to run it as root and stops even when ran as root https://ticket.coreboot.org/issues/440#change-1285
* Author: J Nky * Status: New * Priority: Normal * Target version: none * Start date: 2022-11-24 * Affected versions: 4.15 * Affected OS: ubuntu 22.10 ---------------------------------------- On ubuntu 22.10:
**sudo superiotool** iopl: Function not implemented Superiotool must be run as root.
superiotool tells you to run it as root and stops even when ran as root
Issue #440 has been updated by Nicholas Chin.
J Nky wrote in #note-5:
But I only tested it on WSL2. Later I will try on Ubuntu itself.
UPD: Exactly the same on Ubuntu 22.10.
Ah, I'm not surprised that iopl or ioperm are apparently not implemented in WSL2, but if it's still doing that in an Ubuntu install on the hardware then that is strange. I just tried it on Ubuntu 22.10 in a VM, but I don't seem to get that error, even when using iopl. What laptop are you running this on? Just in case there's some hardware dependent thing going on.
---------------------------------------- Bug #440: superiotool tells you to run it as root and stops even when ran as root https://ticket.coreboot.org/issues/440#change-1286
* Author: J Nky * Status: New * Priority: Normal * Target version: none * Start date: 2022-11-24 * Affected versions: 4.15 * Affected OS: ubuntu 22.10 ---------------------------------------- On ubuntu 22.10:
**sudo superiotool** iopl: Function not implemented Superiotool must be run as root.
superiotool tells you to run it as root and stops even when ran as root
Issue #440 has been updated by J Nky.
Nicholas Chin wrote in #note-7:
What laptop are you running this on? Just in case there's some hardware dependent thing going on.
Asus Zenbook 13 UM325UA
---------------------------------------- Bug #440: superiotool tells you to run it as root and stops even when ran as root https://ticket.coreboot.org/issues/440#change-1287
* Author: J Nky * Status: New * Priority: Normal * Target version: none * Start date: 2022-11-24 * Affected versions: 4.15 * Affected OS: ubuntu 22.10 ---------------------------------------- On ubuntu 22.10:
**sudo superiotool** iopl: Function not implemented Superiotool must be run as root.
superiotool tells you to run it as root and stops even when ran as root
Issue #440 has been updated by J Nky.
Do you need any more additional information to help you solve this problem?
---------------------------------------- Bug #440: superiotool tells you to run it as root and stops even when ran as root https://ticket.coreboot.org/issues/440#change-1291
* Author: J Nky * Status: New * Priority: Normal * Target version: none * Start date: 2022-11-24 * Affected versions: 4.15 * Affected OS: ubuntu 22.10 ---------------------------------------- On ubuntu 22.10:
**sudo superiotool** iopl: Function not implemented Superiotool must be run as root.
superiotool tells you to run it as root and stops even when ran as root
Issue #440 has been updated by Nicholas Chin.
J Nky wrote in #note-9:
Do you need any more additional information to help you solve this problem?
Not at the moment, I want to experiment/research a bit more later to see if I can reproduce the issue, and I'm a bit short on time right now.
---------------------------------------- Bug #440: superiotool tells you to run it as root and stops even when ran as root https://ticket.coreboot.org/issues/440#change-1292
* Author: J Nky * Status: New * Priority: Normal * Target version: none * Start date: 2022-11-24 * Affected versions: 4.15 * Affected OS: ubuntu 22.10 ---------------------------------------- On ubuntu 22.10:
**sudo superiotool** iopl: Function not implemented Superiotool must be run as root.
superiotool tells you to run it as root and stops even when ran as root
Issue #440 has been updated by Nicholas Chin.
J Nky wrote in #note-9:
Do you need any more additional information to help you solve this problem?
Could you run `uname -r` and post the result so that I can see what kernel you are running? Could you also check if the file `/proc/config.gz` (contains the config for the kernel) exists, and if so, could you post it? From what I've found, the iopl and ioperm system calls are controlled by the same kernel config option, so if both don't work that might suggest that this option is disabled in the kernel.
---------------------------------------- Bug #440: superiotool tells you to run it as root and stops even when ran as root https://ticket.coreboot.org/issues/440#change-1330
* Author: J Nky * Status: New * Priority: Normal * Target version: none * Start date: 2022-11-24 * Affected versions: 4.15 * Affected OS: ubuntu 22.10 ---------------------------------------- On ubuntu 22.10:
**sudo superiotool** iopl: Function not implemented Superiotool must be run as root.
superiotool tells you to run it as root and stops even when ran as root
Issue #440 has been updated by J Nky.
Nicholas Chin wrote in #note-11:
Could you run `uname -r` and post the result so that I can see what kernel you are running? Could you also check if the file `/proc/config.gz` (contains the config for the kernel) exists, and if so, could you post it? From what I've found, the iopl and ioperm system calls are controlled by the same kernel config option, so if both don't work that might suggest that this option is disabled in the kernel.
**On Ubuntu 22.10 in WSL2:**
``` uname -r 5.10.102.1-microsoft-standard-WSL2 ```
`/proc/config.gz`: ``` # CONFIG_X86_IOPL_IOPERM is not set ```
**On Ubuntu 22.10 Desktop:**
``` uname -r 5.19.0-21-generic ```
`/proc/config.gz` does not exist
Thank you.
---------------------------------------- Bug #440: superiotool tells you to run it as root and stops even when ran as root https://ticket.coreboot.org/issues/440#change-1333
* Author: J Nky * Status: New * Priority: Normal * Target version: none * Start date: 2022-11-24 * Affected versions: 4.15 * Affected OS: ubuntu 22.10 ---------------------------------------- On ubuntu 22.10:
**sudo superiotool** iopl: Function not implemented Superiotool must be run as root.
superiotool tells you to run it as root and stops even when ran as root
Issue #440 has been updated by Martin Roth.
Status changed from New to Response Needed
I'm not able to reproduce it on a genuine linux system. I don't think it's surprising that it wouldn't work on WSL as windows probably doesn't let the WSL linux kernel get close to real hardware.
Can anyone else reproduce this issue?
---------------------------------------- Bug #440: superiotool tells you to run it as root and stops even when ran as root https://ticket.coreboot.org/issues/440#change-1363
* Author: J Nky * Status: Response Needed * Priority: Normal * Target version: none * Start date: 2022-11-24 * Affected versions: 4.15 * Affected OS: ubuntu 22.10 ---------------------------------------- On ubuntu 22.10:
**sudo superiotool** iopl: Function not implemented Superiotool must be run as root.
superiotool tells you to run it as root and stops even when ran as root
Issue #440 has been updated by Nicholas Chin.
J Nky wrote in #note-12:
Nicholas Chin wrote in #note-11:
Could you run `uname -r` and post the result so that I can see what kernel you are running? Could you also check if the file `/proc/config.gz` (contains the config for the kernel) exists, and if so, could you post it? From what I've found, the iopl and ioperm system calls are controlled by the same kernel config option, so if both don't work that might suggest that this option is disabled in the kernel.
**On Ubuntu 22.10 Desktop:**
uname -r 5.19.0-21-generic
`/proc/config.gz` does not exist
Thank you.
Apparently on Ubuntu the config can be found under `/boot/config-5.19.0-21-generic`. Could you check that? That said, when I check that file on a live Ubuntu 21.10 ISO with that same kernel, `CONFIG_X86_IOPL_IOPERM` is enabled...
---------------------------------------- Bug #440: superiotool tells you to run it as root and stops even when ran as root https://ticket.coreboot.org/issues/440#change-1365
* Author: J Nky * Status: Response Needed * Priority: Normal * Target version: none * Start date: 2022-11-24 * Affected versions: 4.15 * Affected OS: ubuntu 22.10 ---------------------------------------- On ubuntu 22.10:
**sudo superiotool** iopl: Function not implemented Superiotool must be run as root.
superiotool tells you to run it as root and stops even when ran as root
Issue #440 has been updated by Nicholas Chin.
J Nky wrote in #note-5:
Hmm, so I'm assuming you are using superiotool from the coreboot-utils package?
Yes. Thanks to your instructions and after installation of `libpci-dev` i was able to build it.
Now i get this when i trying to run it:
root@LAPTOP:~/coreboot/util/superiotool# sudo ./superiotool ioperm: Function not implemented Superiotool must be run as root.
But I only tested it on WSL2. Later I will try on Ubuntu itself.
UPD: Exactly the same on Ubuntu 22.10.
When you tested it on an actual Ubuntu 22.10 install, did it return "Function not implemented" or "Operation not permitted"?
---------------------------------------- Bug #440: superiotool tells you to run it as root and stops even when ran as root https://ticket.coreboot.org/issues/440#change-1367
* Author: J Nky * Status: Response Needed * Priority: Normal * Target version: none * Start date: 2022-11-24 * Affected versions: 4.15 * Affected OS: ubuntu 22.10 ---------------------------------------- On ubuntu 22.10:
**sudo superiotool** iopl: Function not implemented Superiotool must be run as root.
superiotool tells you to run it as root and stops even when ran as root
Issue #440 has been updated by J Nky.
Nicholas Chin wrote in #note-15:
J Nky wrote in #note-5:
Hmm, so I'm assuming you are using superiotool from the coreboot-utils package?
Yes. Thanks to your instructions and after installation of `libpci-dev` i was able to build it.
Now i get this when i trying to run it:
root@LAPTOP:~/coreboot/util/superiotool# sudo ./superiotool ioperm: Function not implemented Superiotool must be run as root.
But I only tested it on WSL2. Later I will try on Ubuntu itself.
UPD: Exactly the same on Ubuntu 22.10.
When you tested it on an actual Ubuntu 22.10 install, did it return "Function not implemented" or "Operation not permitted"?
I used Ubuntu 22.10 from USB stick.
`ioperm: Function not implemented`
---------------------------------------- Bug #440: superiotool tells you to run it as root and stops even when ran as root https://ticket.coreboot.org/issues/440#change-1379
* Author: J Nky * Status: Response Needed * Priority: Normal * Target version: none * Start date: 2022-11-24 * Affected versions: 4.15 * Affected OS: ubuntu 22.10 ---------------------------------------- On ubuntu 22.10:
**sudo superiotool** iopl: Function not implemented Superiotool must be run as root.
superiotool tells you to run it as root and stops even when ran as root
Issue #440 has been updated by Nicholas Chin.
Nicholas Chin wrote in #note-14:
Apparently on Ubuntu the config can be found under `/boot/config-5.19.0-21-generic`. Could you check that? That said, when I check that file on a live Ubuntu 21.10 ISO with that same kernel, `CONFIG_X86_IOPL_IOPERM` is enabled...
Could you also check this file to see the value of `CONFIG_X86_IOPL_IOPERM`?
---------------------------------------- Bug #440: superiotool tells you to run it as root and stops even when ran as root https://ticket.coreboot.org/issues/440#change-1380
* Author: J Nky * Status: Response Needed * Priority: Normal * Target version: none * Start date: 2022-11-24 * Affected versions: 4.15 * Affected OS: ubuntu 22.10 ---------------------------------------- On ubuntu 22.10:
**sudo superiotool** iopl: Function not implemented Superiotool must be run as root.
superiotool tells you to run it as root and stops even when ran as root