Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 26198 Details for
Bug 42024
Linux kernel do_mremap VMA limit local privilege escalation vulnerability
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
mremap patch for kernel 2.4.19
mremap-2.4.19-CAN-2004-0077.patch (text/plain), 814 bytes, created by
antiher0
on 2004-02-23 14:17:26 UTC
(
hide
)
Description:
mremap patch for kernel 2.4.19
Filename:
MIME Type:
Creator:
antiher0
Created:
2004-02-23 14:17:26 UTC
Size:
814 bytes
patch
obsolete
>--- linux-2.4.19-gentoo-r10/mm/mremap.c 2004-02-23 14:26:57.000000000 -0600 >+++ linux-2.4.19-gentoo-r10/mm/mremap.c 2004-02-23 14:30:30.000000000 -0600 >@@ -268,7 +268,9 @@ > if ((addr <= new_addr) && (addr+old_len) > new_addr) > goto out; > >- do_munmap(current->mm, new_addr, new_len, 1); >+ ret = do_munmap(current->mm, new_addr, new_len, 1); >+ if (ret && new_len) >+ goto out; > } > > /* >@@ -276,9 +278,11 @@ > * the unnecessary pages.. > * do_munmap does all the needed commit accounting > */ >- ret = addr; > if (old_len >= new_len) { >- do_munmap(current->mm, addr+new_len, old_len - new_len, 1); >+ ret = do_munmap(current->mm, addr+new_len, old_len - new_len, 1); >+ if (ret && old_len != new_len) >+ goto out; >+ ret = addr; > if (!(flags & MREMAP_FIXED) || (new_addr == addr)) > goto out; > }
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 42024
:
25878
|
25879
|
25949
|
25950
|
26198