Alright, I’m out of ideas.
Who’s got a good guide/writeup on compiling kernel modules with KASAN and debugging with gdb?
Drop your links here.
Conversation
Replying to
Usually it's as straightforward as enabling CONFIG_KASAN in the kernel config and rebuilding. The only thing is that you can't only rebuild the module, you have to rebuild the whole kernel.
Replying to
Unfortunately that straightforward change has resulted in a ton of errors/warnings and a lot of reading to try to resolve them with no success yet 😅.
I’m certain it’s possible! I’m just struggling to wrap my head around what I’m doing wrong.
1
1
Will do a writeup once I figure it out. I found a writeup attempting the same thing with detailed notes, but unfortunately the writeup details 6-7 different methods they tried that resulted in failure. I’m extremely happy the wrote it, but there has to be an easier way.
1
1
Show replies

