[NSWI004] dprintk makes my code stable
Káně, Vojtěch
vojtech.kane at gbl.cz
Sat Oct 24 09:40:22 CEST 2020
I agree sharing the full code would be against the rules, so just treat it
as a quick thought you can check before getting a proper answer by the
teachers – alignment.
Vojta Káně
On Sat, 24 Oct 2020, 09:03 Jura Pelc, <jirik.pelc1998 at gmail.com> wrote:
> 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
>>
> _______________________________________________
> 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/c9f46d67/attachment.htm>
More information about the NSWI004
mailing list