Re: shm bug introduced with pagecache in 2.3.11

Andrea Arcangeli (andrea@suse.de)
Tue, 9 Nov 1999 16:52:37 +0100 (CET)


On 9 Nov 1999, Christoph Rohland wrote:

> swap_duplicate
> read_swap_cache_async
> swapin_readahead
> shm_nopage
> handle_mm_fault
> ...

Hmm, are you sure you reproduced it in UP as you stated in the previous
email? The above trace seems the effect of this SMP race condition:

--- 2.3.26/mm/memory.c Sun Nov 7 17:33:38 1999
+++ /tmp/memory.c Tue Nov 9 16:46:02 1999
@@ -282,7 +282,9 @@
free_page_and_swap_cache(mem_map+nr);
return 1;
}
+ lock_kernel();
swap_free(pte_to_swp_entry(page));
+ unlock_kernel();
return 0;
}

Andrea

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