Bugzilla – Attachment 16073 Details for
Bug 48728
VUL-0: CVE-2003-0985: kernel: mremap bug
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
mremap-check (9.0-i386)
mremap-check (text/plain), 673 bytes, created by
Thomas Biege
on 2004-02-19 23:33:50 UTC
(
hide
)
Description:
mremap-check (9.0-i386)
Filename:
MIME Type:
Creator:
Thomas Biege
Created:
2004-02-19 23:33:50 UTC
Size:
673 bytes
patch
obsolete
>diff -urNp linux-2.4.21/mm/mremap.c linux-2.4.21.SUSE/mm/mremap.c >--- linux-2.4.21/mm/mremap.c 2003-12-17 15:03:32.000000000 +0100 >+++ linux-2.4.21.SUSE/mm/mremap.c 2003-12-17 15:31:55.000000000 +0100 >@@ -274,6 +274,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