Re: [PATCH v2 -tip] x86/percpu: Use C for arch_raw_cpu_ptr()

From: Nadav Amit
Date: Tue Oct 17 2023 - 18:29:27 EST




> On Oct 18, 2023, at 1:06 AM, Nadav Amit <namit@xxxxxxxxxx> wrote:
>
>
>
>> On Oct 18, 2023, at 12:53 AM, Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
>>
>>
>> but none of this should even matter, because by the time we actually
>> *schedule* that thread, we'll set active_mm to the right thing.
>>
>> Can anybody see what's up?
>
> Could it be related to exec_mmap() -> exec_mm_release() -> mm_release() -> deactivate_mm() ?

I am probably completely wrong. Sorry for the noise.