Re: [PATCH] riscv: fix locking violation in page fault handler

From: Andreas Schwab
Date: Tue May 07 2019 - 10:36:55 EST


On Mai 07 2019, Nikolay Borisov <nborisov@xxxxxxxx> wrote:

> On 7.05.19 Ð. 17:12 Ñ., Andreas Schwab wrote:
>> On Mai 07 2019, Nikolay Borisov <nborisov@xxxxxxxx> wrote:
>>
>>> At the very least the code under
>>> no_context label could go into it's own function since it just kills the
>>> process and never returns?
>>
>> This is not true.
>
> Be more specific, according to do_task_dead after the last __schedule is
> called the calling context is no more?

/* Are we prepared to handle this kernel fault? */
if (fixup_exception(regs))
return;

Andreas.

--
Andreas Schwab, SUSE Labs, schwab@xxxxxxx
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."