Page 1 of 1

Windows Kernel-Mode Drivers written in Rust

Posted: Thu Jan 17, 2019 6:26 am
by Quim
Could be this useful to kernel development?
https://github.com/pravic/winapi-kmd-rs

Re: Windows Kernel-Mode Drivers written in Rust

Posted: Thu Jan 17, 2019 9:01 am
by Quim
Quim wrote:
Thu Jan 17, 2019 6:26 am
Could be this useful to kernel development?
https://github.com/pravic/winapi-kmd-rs
It seems that someone asked about ReactOS compatibility:
https://github.com/pravic/winapi-kmd-rs/issues/7

Re: Windows Kernel-Mode Drivers written in Rust

Posted: Thu Jan 17, 2019 10:14 am
by ThFabba
1) It would require shipping a Rust toolchain with RosBE
2) It would require us to maintain a separate set of API headers

So, unlikely. Although if it becomes more widespread, maybe some day it will make sense.

Re: Windows Kernel-Mode Drivers written in Rust

Posted: Thu Jan 17, 2019 5:14 pm
by PurpleGurl
Or, unless someone here is willing to convert them to C and/or ASM, though C is to goto language for us.

Re: Windows Kernel-Mode Drivers written in Rust

Posted: Thu Jan 17, 2019 10:04 pm
by ThFabba
Those are all example drivers (to demonstrate it's possible to write WDM drivers in Rust), so they have no value if you convert them.

Re: Windows Kernel-Mode Drivers written in Rust

Posted: Thu Jan 24, 2019 8:40 am
by erkinalp
Kernel written in Rust may exploit the WinAPI fact HANDLEs do not need to correspond to actual memory addresses.

Re: Windows Kernel-Mode Drivers written in Rust

Posted: Fri Jan 25, 2019 12:05 am
by hbelusca
erkinalp wrote:
Thu Jan 24, 2019 8:40 am
Kernel written in Rust may exploit the WinAPI fact HANDLEs do not need to correspond to actual memory addresses.
AAAAAaaaaaand ....... ?