linamh/sys-kernel/win4lin-sources/files/win4lin-sources-2.6.cmdlineLeak.patch
2022-11-19 21:49:12 +01:00

13 lines
281 B
Diff

--- linux-2.6.7/fs/proc/base.c~ 2004-08-05 10:35:04.411443536 +0200
+++ linux-2.6.7/fs/proc/base.c 2004-08-05 10:35:04.412443384 +0200
@@ -330,6 +330,9 @@
if (!mm)
goto out;
+ if (!mm->arg_end)
+ goto out;
+
len = mm->arg_end - mm->arg_start;
if (len > PAGE_SIZE)