2003-06-27 15:59:19

by Dave McCracken

[permalink] [raw]
Subject: [PATCH 2.5.73-mm1] Make sure truncate fix has no race


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
[email protected] T/L 678-3059


Attachments:
(No filename) (489.00 B)
trunc-2.5.73-mm1-1.diff (897.00 B)
Download all attachments