News for hackers. Stuff that matters.
Re:Uefi-jitfuck – A JIT Brainfuck compiler running on x86_64... by andyjohnson0 on Tuesday July 24, 2018 @09:15AM (#17600689)
I wasn't aware that UEFI provided an execution environment. Are applications sandboxed or restricted in any way?
Re:Uefi-jitfuck – A JIT Brainfuck compiler running on x86_64... by georgyo on Tuesday July 24, 2018 @09:43AM (#17600909)
They have a lot of power, and plugging something like a thunderbolt device in can load an option ROM that runs there [1]. It is one of the reasons linuxboot is such an important project [2]. There is a great talk on why linuxboot is required [3].

[1] https://trmm.net/Thunderstrike [2] https://www.linuxboot.org [3] https://trmm.net/LinuxBoot_34c3

Re:Uefi-jitfuck – A JIT Brainfuck compiler running on x86_64... by detaro on Tuesday July 24, 2018 @09:19AM (#17600711)
No, they are not. Which makes sense, given it's intended for things like bootloaders, hardware diagnostics, etc which will need full access to the system.
Re:Uefi-jitfuck – A JIT Brainfuck compiler running on x86_64... by aeorgnoieang on Tuesday July 24, 2018 @10:07AM (#17601119)
Did you mean something by "execution environment" that wouldn't allow arbitrary programs to run but would allow bootloaders? I'd imagine the simplest way to run bootloaders would be to just run them like anything else.
Re:Uefi-jitfuck – A JIT Brainfuck compiler running on x86_64... by josteink on Tuesday July 24, 2018 @09:31AM (#17600796)
UEFI execution environment is definitely there.

And it’s mainly used to execute OS-loaders.

Some firmwares even come with a MS-DOS like UEFI shell.

Re:Uefi-jitfuck – A JIT Brainfuck compiler running on x86_64... by gmueckl on Tuesday July 24, 2018 @10:36AM (#17601382)
The UEFI shell is just another regular UEFI binary. If you put it in the place where bootloaders are expected to live, the UEFI ROM should be able to start it like a regular OS.
Re:Uefi-jitfuck – A JIT Brainfuck compiler running on x86_64... by matheusmoreira on Tuesday July 24, 2018 @09:35AM (#17600835)
They run in ring -2. Proprietary software with networking stacks, file systems, device drivers, web servers, all running in a mode more privileged than the operating system. There's also the Intel Management Engine with pretty much the same features but running in ring -3.

https://www.youtube.com/watch?v=iffTJ1vPCSo

Re:Uefi-jitfuck – A JIT Brainfuck compiler running on x86_64... by als0 on Tuesday July 24, 2018 @09:42AM (#17600897)
Only SMM drivers run in the proverbial "ring -2". Ordinary UEFI apps run at the same privilege level as the host OS (0), just like any bootloader.