Files
twx-linux/mm
Hugh Dickins 4879e0dfe9 holepunch: fix mmap_sem i_mutex deadlock
sys_madvise has down_write of mmap_sem, then madvise_remove calls
vmtruncate_range which takes i_mutex and i_alloc_sem: no, we can
easily devise deadlocks from that ordering.

madvise_remove drop mmap_sem while calling vmtruncate_range: luckily,
since madvise_remove doesn't split or merge vmas, it's easy to handle
this case with a NULL prev, without restructuring sys_madvise.  (Though
sad to retake mmap_sem when it's unlikely to be needed, and certainly
down_read is sufficient for MADV_REMOVE, unlike the other madvices.)

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
2007-05-04 00:54:25 +02:00
..
2007-01-23 16:46:22 +01:00
2006-03-02 08:33:07 -08:00
2006-08-08 11:58:01 +02:00
2007-03-08 08:01:53 +01:00
2006-02-08 07:52:58 -08:00
2006-03-17 07:51:25 -08:00