Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 81666 Details for
Bug 125438
Kernel: Local DoS - normal user can panic NFS client with direct I/O (CVE-2006-0555)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
nfs-client-directio-panic-with-compile-fix.patch
nfs-client-directio-panic-with-compile-fix.patch (text/plain), 800 bytes, created by
RumpletonBongworth
on 2006-03-07 20:44:19 UTC
(
hide
)
Description:
nfs-client-directio-panic-with-compile-fix.patch
Filename:
MIME Type:
Creator:
RumpletonBongworth
Created:
2006-03-07 20:44:19 UTC
Size:
800 bytes
patch
obsolete
>--- linux-2.6.14.7.orig/fs/nfs/direct.c 2005-10-27 19:02:08.000000000 -0500 >+++ linux-2.6.14.7/fs/nfs/direct.c 2006-03-07 23:41:30.000000000 -0500 >@@ -57,6 +57,7 @@ > #define NFSDBG_FACILITY NFSDBG_VFS > #define MAX_DIRECTIO_SIZE (4096UL << PAGE_SHIFT) > >+static void nfs_free_user_pages(struct page **pages, int npages, int do_dirty); > static kmem_cache_t *nfs_direct_cachep; > > /* >@@ -107,6 +108,15 @@ > page_count, (rw == READ), 0, > *pages, NULL); > up_read(¤t->mm->mmap_sem); >+ /* >+ * If we got fewer pages than expected from get_user_pages(), >+ * the user buffer runs off the end of a mapping; return EFAULT. >+ */ >+ if (result >= 0 && result < page_count) { >+ nfs_free_user_pages(*pages, result, 0); >+ *pages = NULL; >+ result = -EFAULT; >+ } > } > return result; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 125438
: 81666