Bugzilla – Attachment 15548 Details for
Bug 48728
VUL-0: CVE-2003-0985: kernel: mremap bug
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
Patch by Andrea Arcangeli
mremap2 (text/plain), 766 bytes, created by
Olaf Kirch
on 2003-12-18 18:44:22 UTC
(
hide
)
Description:
Patch by Andrea Arcangeli
Filename:
MIME Type:
Creator:
Olaf Kirch
Created:
2003-12-18 18:44:22 UTC
Size:
766 bytes
patch
obsolete
>--- 2.4.23aa1/mm/mremap.c.~1~ 2003-12-13 01:32:30.000000000 +0100 >+++ 2.4.23aa1/mm/mremap.c 2003-12-13 03:30:47.000000000 +0100 >@@ -279,6 +279,13 @@ unsigned long do_mremap(unsigned long ad > > if (new_len > TASK_SIZE || new_addr > TASK_SIZE - new_len) > goto out; >+ /* >+ * Allow new_len == 0 only if new_addr == addr >+ * to preserve truncation in place (that was working >+ * safe and some app may depend on it). >+ */ >+ if (unlikely(!new_len && new_addr != addr)) >+ goto out; > > /* Check if the location we're moving into overlaps the > * old location at all, and fail if it does. >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 48728
:
15547
| 15548 |
16073