summaryrefslogtreecommitdiff
path: root/drivers/isdn
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@osdl.org>2007-01-04 01:44:45 +0100
committerAdrian Bunk <bunk@stusta.de>2007-01-04 01:44:45 +0100
commit7c876d457b5c7e949032a4ac7aec64af0136d52a (patch)
treeb1f16947a5739a423a59c54f19551f0ac69753a7 /drivers/isdn
parent571525bb8f82493d0332aa8e31776a9fdc607b3b (diff)
Fix incorrect user space access locking in mincore() (CVE-2006-4814)
Doug Chapman noticed that mincore() will doa "copy_to_user()" of the result while holding the mmap semaphore for reading, which is a big no-no. While a recursive read-lock on a semaphore in the case of a page fault happens to work, we don't actually allow them due to deadlock schenarios with writers due to fairness issues. Doug and Marcel sent in a patch to fix it, but I decided to just rewrite the mess instead - not just fixing the locking problem, but making the code smaller and (imho) much easier to understand. Also included are two fixes for the original patch including one by Oleg Nesterov. Signed-off-by: Linus Torvalds <torvalds@osdl.org> Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'drivers/isdn')
0 files changed, 0 insertions, 0 deletions