r/kernel • • Oct 19 '26

binfmt_pe: PE & ELF Linux Kernel Loader

The concept of Linux running Windows apps is becoming true.
With the use of Reverse-Engineering, Coding, Creativity and of course AI. We managed to be able to get the Linux Kernel running its first Windows Executable NATIVELY.

More information at: https://github.com/EisaWando/Native-Windows-Executables-on-Linux

0 Upvotes

10 comments sorted by

View all comments

6

u/FloweyTheFlower420 Oct 19 '26

why not use wine? why bother putting this in the kernel? I don't see any benefits to adding PE support to the kernel.

1

u/Jolly_Landscape_3038 Oct 19 '26

Making the Kernel natively recognizing windows executables and running them on that level gives huge performance boots, as well as supporting games and software that are specific kernel dependent. for example: a game like fc27 wont even boot on linux even while using wine, because the anticheat is made to only accept windows operating systems. And with an idea and concept like this, we can bypass that problem completely and have more people switch to linux and finish MicroSlop's monopoly over operating systems' marker.

4

u/torsten_dev Oct 19 '26 edited Oct 19 '26

You'd have to replicate a bunch of the work already done by Wine inside the kernel for marginal benefits. This would also increase the kernel attack surface massively for no reason.

I fail to see how this would get anti cheat to work on an open source user compilable kernel.

0

u/Jolly_Landscape_3038 Oct 19 '26

I agree with you, however the plan is to attract as many as software companies to invest in the Linux community. And about the attack surface, you are right about it but having a team with worldwide devs and cyber security experts would really help keeping the project and people safe.
In addition for that, our project wont stand still by itself, it will lean on some other opensourced projects like Wine to translate many functions and features to give a final and working result.

4

u/torsten_dev Oct 19 '26

The worldwide developers and experts use Wine and Linux. They're not looking at some massive out of tree AI slop module.

Having the kernel read the magic PE bytes and hand it to wine to handle is like a 50 line project. Anything more is strictly unnecessary.

0

u/Jolly_Landscape_3038 Oct 19 '26

I respect you pov, and ik that things like this aint making sense at first. However when it will be able to open a window, draw pixels or do simple things windows is able to do easily then it would be an interesting concept.