Vector35 / binaryninja-api

Public API, examples, documentation and issues for Binary Ninja
https://binary.ninja/
MIT License
942 stars 213 forks source link

Linux kernel type library #5782

Open xusheng6 opened 4 months ago

xusheng6 commented 4 months ago

When analyzing Linux kernel modules, it would be great if we have the type libraries, so that code like this becomes more readable:

Screenshot 2024-07-21 at 5 04 32 PM

Most importantly, it helps us know what these callback functions do:

Screenshot 2024-07-21 at 5 05 07 PM

checker.ko.zip

https://app.hackthebox.com/challenges/SEPC

plafosse commented 4 months ago

We've discussed this internally and it's about an impossible task. We certainly couldn't ship any type libraries, as the Linux Kernel provides zero guarantees of compatibility. The only solution would be to generate them on behalf of our customers given a k-config and kernel source.