RE: Fix race in the accessed/dirty bit handlers

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

 



>> Have we just been lucky?
>
>Yes. The window is very small. The zapping must happen between the 
>generation of the accessed/dirty fault and the cmpxchg in the 
>dirty/accessed bit handlers. It seems also that most HPC machines do not 
>use swap making it highly unlikely to encounter this race. The other cases 
>where this could occur are probably even rarer.

Thinking about this further ... in most cases the swap path will also
conceal any evidence that this happened, because it will overwrite
the pte with the swap file number and offset of where it stashed
the page ... so "we've been lucky for all these years" theory is
looking quite credible.

-Tony
-
: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Sparc Linux]     [DCCP]     [Linux ARM]     [Yosemite News]     [Linux SCSI]     [Linux x86_64]     [Linux for Ham Radio]

  Powered by Linux