[NSWI004] dprintk makes my code stable

Jura Pelc jirik.pelc1998 at gmail.com
Sat Oct 24 09:02:45 CEST 2020


Scanner is a uintptr-t as part of loop that determines size of memory.
I am not sure if I can post this block of code since it is almost solution
to one of the features.



On Sat, 24 Oct 2020, 08:15 Káně, Vojtěch, <vojtech.kane at gbl.cz> wrote:

> 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
> _______________________________________________
> NSWI004 mailing list
> NSWI004 at d3s.mff.cuni.cz
> https://d3s.mff.cuni.cz/mailman/listinfo/nswi004
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://d3s.mff.cuni.cz/pipermail/nswi004/attachments/20201024/75b1b50d/attachment-0001.htm>


More information about the NSWI004 mailing list