mbox series

[0/2] couple of sparc 32 mm fixes

Message ID 20210616104534.1614087-1-npiggin@gmail.com
Headers show
Series couple of sparc 32 mm fixes | expand

Message

Nicholas Piggin June 16, 2021, 10:45 a.m. UTC
I was able to test patch 2 in SMP qemu and verify there were cases
where a cpu's active_mm does not have that CPU set in the mm_cpumask
before the patch, and do not observe it afterwards.

I haven't observed any actual corruption from the bugs, but I didn't
stress it much, and only what qemu can do.

Thanks,
Nick

Nicholas Piggin (2):
  sparc32: remove mm_cpumask clearing to fix kthread_use_mm race
  sparc32: fix mm_cpumask maintenance causing missing TLB flushing

 arch/sparc/include/asm/switch_to_32.h | 1 -
 arch/sparc/mm/srmmu.c                 | 9 ++++-----
 2 files changed, 4 insertions(+), 6 deletions(-)