<div dir="auto"><div>Scanner is a uintptr-t as part of loop that determines size of memory. <div dir="auto">I am not sure if I can post this block of code since it is almost solution to one of the features.</div><div dir="auto"><br></div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 24 Oct 2020, 08:15 Káně, Vojtěch, <<a href="mailto:vojtech.kane@gbl.cz">vojtech.kane@gbl.cz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I realized it doesn't even have to be the stack pointer, your kernel<br>
end will shift in memory if you add the dprintk call.<br>
<br>
Vojta Káně<br>
<br>
On Sat, 24 Oct 2020 at 08:02, Káně, Vojtěch <<a href="mailto:vojtech.kane@gbl.cz" target="_blank" rel="noreferrer">vojtech.kane@gbl.cz</a>> wrote:<br>
><br>
> I can't access your code, so just a quick thought.<br>
><br>
> Doesn't `scanner` depend somehow on the stack pointer? If it does, it<br>
> might end up aligned by chance if you add the dprintk call and not<br>
> aligned otherwise, which makes the CPU crash.<br>
><br>
> Vojta<br>
_______________________________________________<br>
NSWI004 mailing list<br>
<a href="mailto:NSWI004@d3s.mff.cuni.cz" target="_blank" rel="noreferrer">NSWI004@d3s.mff.cuni.cz</a><br>
<a href="https://d3s.mff.cuni.cz/mailman/listinfo/nswi004" rel="noreferrer noreferrer" target="_blank">https://d3s.mff.cuni.cz/mailman/listinfo/nswi004</a><br>
</blockquote></div></div></div>