[NSWI004] dprintk makes my code stable

Káně, Vojtěch vojtech.kane at gbl.cz
Sat Oct 24 08:14:57 CEST 2020


I realized it doesn't even have to be the stack pointer, your kernel
end will shift in memory if you add the dprintk call.

Vojta Káně

On Sat, 24 Oct 2020 at 08:02, Káně, Vojtěch <vojtech.kane at gbl.cz> wrote:
>
> I can't access your code, so just a quick thought.
>
> Doesn't `scanner` depend somehow on the stack pointer? If it does, it
> might end up aligned by chance if you add the dprintk call and not
> aligned otherwise, which makes the CPU crash.
>
> Vojta


More information about the NSWI004 mailing list