Linus Torvalds 7572395767 Fix possible splice() mmap_sem deadlock
Nick Piggin points out that splice isn't being good about the mmap
semaphore: while two readers can nest inside each others, it does leave
a possible deadlock if a writer (ie a new mmap()) comes in during that
nesting.

Original "just move the locking" patch by Nick, replaced by one by me
based on an optimistic pagefault_disable().  And then Jens tested and
updated that patch.

Reported-by: Nick Piggin <npiggin@suse.de>
Tested-by: Jens Axboe <jens.axboe@oracle.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-10-01 13:17:28 -07:00
..
2007-09-11 17:21:19 -07:00
2007-08-22 19:52:46 -07:00
2007-09-28 15:36:42 -07:00
2007-07-31 15:39:36 -07:00
2007-09-11 17:21:19 -07:00
2007-09-25 08:51:04 -07:00
2007-07-21 17:49:14 -07:00
2007-07-20 08:44:19 -07:00
2007-07-19 10:04:43 -07:00
2007-07-19 10:04:45 -07:00
2007-07-29 17:09:29 -07:00
2007-09-20 13:19:59 -07:00
2007-09-11 11:38:25 -07:00
2007-09-11 17:21:27 -07:00
2007-07-19 10:04:45 -07:00
2007-07-19 10:04:45 -07:00
2007-07-27 08:08:51 +02:00
2007-07-27 15:40:13 -07:00
2007-09-20 13:19:59 -07:00