[PATCH 2.5.73-mm1] Make sure truncate fix has no race

From: Dave McCracken (dmccr@us.ibm.com)
Date: Fri Jun 27 2003 - 11:13:19 EST


Paul McKenney pointed out that reading the truncate sequence number in
do_no_page might not be entirely safe if the ->nopage callout takes no
locks. The simple solution is to move the read before the unlock of
page_table_lock. Here's a patch that does it.

Dave McCracken

======================================================================
Dave McCracken IBM Linux Base Kernel Team 1-512-838-3059
dmccr@us.ibm.com T/L 678-3059



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jun 30 2003 - 22:00:26 EST