Re: [PATCH] MIPS: reset all task's asid to 0 after asid_cache(cpu) overflows

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



+		if (!asid) {		/* fix version if needed */
+			struct task_struct *p;
+
+			for_each_process(p) {
+				if ((p->mm))
+					cpu_context(cpu, p->mm) = 0;
+			}
  It is not safe. When the processor is executing these codes, another processor is freeing task_struct, setting p->mm to NULL, and freeing mm_struct.
  I committed a patch to solve this problem.Please see https://patchwork.linux-mips.org/patch/13789/.





[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux