Commit 93e3d00a authored by Trond Myklebust's avatar Trond Myklebust Committed by Chris Wright

[PATCH] Normal user can panic NFS client with direct I/O (CVE-2006-0555)

This is CVE-2006-0555 and SGI bug 946529.  A normal user can panic an
NFS client and cause a local DoS with 'judicious'(?) use of O_DIRECT.
Signed-off-by: default avatarChris Wright <chrisw@sous-sol.org>
parent 8dcd7c19
...@@ -106,6 +106,11 @@ nfs_get_user_pages(int rw, unsigned long user_addr, size_t size, ...@@ -106,6 +106,11 @@ nfs_get_user_pages(int rw, unsigned long user_addr, size_t size,
result = get_user_pages(current, current->mm, user_addr, result = get_user_pages(current, current->mm, user_addr,
page_count, (rw == READ), 0, page_count, (rw == READ), 0,
*pages, NULL); *pages, NULL);
if (result >= 0 && result < page_count) {
nfs_free_user_pages(*pages, result, 0);
*pages = NULL;
result = -EFAULT;
}
up_read(&current->mm->mmap_sem); up_read(&current->mm->mmap_sem);
} }
return result; return result;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment