summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Yamin <plasmaroo@gentoo.org>2004-08-10 00:52:17 +0000
committerTim Yamin <plasmaroo@gentoo.org>2004-08-10 00:52:17 +0000
commitb62e891eb77d9b5ec18c6c1032570d7a2ec7aea5 (patch)
tree4ecc48e72694b4bb8e2dab0598613860c6c4f91f /sys-kernel/win4lin-sources/files/win4lin-sources-2.4.26.cmdlineLeak.patch
parentInitial import (Manifest recommit) (diff)
downloadgentoo-2-b62e891eb77d9b5ec18c6c1032570d7a2ec7aea5.tar.gz
gentoo-2-b62e891eb77d9b5ec18c6c1032570d7a2ec7aea5.tar.bz2
gentoo-2-b62e891eb77d9b5ec18c6c1032570d7a2ec7aea5.zip
Version bump for the /proc/cmdline leak vulnerability; bug #59905.
Diffstat (limited to 'sys-kernel/win4lin-sources/files/win4lin-sources-2.4.26.cmdlineLeak.patch')
-rw-r--r--sys-kernel/win4lin-sources/files/win4lin-sources-2.4.26.cmdlineLeak.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys-kernel/win4lin-sources/files/win4lin-sources-2.4.26.cmdlineLeak.patch b/sys-kernel/win4lin-sources/files/win4lin-sources-2.4.26.cmdlineLeak.patch
new file mode 100644
index 000000000000..5f26f7f388f6
--- /dev/null
+++ b/sys-kernel/win4lin-sources/files/win4lin-sources-2.4.26.cmdlineLeak.patch
@@ -0,0 +1,11 @@
+--- linux-2.4/fs/proc/base.c 2004-04-15 07:09:32.000000000 +0100
++++ linux-2.4/fs/proc/base.c.plasmaroo 2004-08-09 23:30:43.869195800 +0100
+@@ -187,7 +187,7 @@ static int proc_pid_cmdline(struct task_
+ if (mm)
+ atomic_inc(&mm->mm_users);
+ task_unlock(task);
+- if (mm) {
++ if (mm && mm->arg_end) {
+ int len = mm->arg_end - mm->arg_start;
+ if (len > PAGE_SIZE)
+ len = PAGE_SIZE;