RE: [PATCH] MIPS: Remove race window in page fault handling

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

 



Hi

Good point. Would adding !cpu_has_ic_fills_f_dc as an extra condition in set_pte_at be sufficient to address your concern ?

BR,
 Lars

> -----Original Message-----
> From: David Daney [mailto:ddaney.cavm@xxxxxxxxx]
> Sent: den 2 juni 2014 18:48
> To: Lars Persson
> Cc: linux-mips@xxxxxxxxxxxxxx; Lars Persson
> Subject: Re: [PATCH] MIPS: Remove race window in page fault handling
> 
> On 05/31/2014 03:36 AM, Lars Persson wrote:
> > Multicore MIPSes without I/D hardware coherency suffered from a race
> > condition in the page fault handler. The page table entry was
> > published before any pending lazy D-cache flush was committed, hence
> > it allowed execution of stale page cache data by other VPEs in the
> system.
> >
> 
> Shouldn't this only be done on machines that suffer from the problem?
> 
> There are many SMP MIPS machines that don't need this, so they
> shouldn't have to pay the price for doing this.
> 
> David Daney
> 
> 



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

  Powered by Linux