Usenet comp.os.linux.announce (1993-2013)
 help / color / mirror / Atom feed
* Bad NFS bug [PATCH]
@ 1993-07-12 13:43 Matthias Urlichs
  0 siblings, 0 replies; only message in thread
From: Matthias Urlichs @ 1993-07-12 13:43 UTC (permalink / raw)


[This patch appears to be against Linux 0.99.pl11 alpha. --mdw]

If your NFS blocksize is a multiple of 2 (the default), this bug can
cause random memory corruption when you're reading data via NFS.

If you can't recompile your kernel, a workaround is to slightly reduce
the block size, eg. rsize=1020. See "man nfs".

diff -rub linux.11A.orig/fs/nfs/proc.c linux.11A/fs/nfs/proc.c
--- linux.11A.orig/fs/nfs/proc.c	Wed Jul  7 11:14:38 1993
+++ linux.11A/fs/nfs/proc.c	Mon Jul 12 04:00:18 1993
@@ -102,7 +102,6 @@
 	if (len > maxlen)
 		return NULL;
 	memcpy(data, (char *) p, len);
-	data[len] = '\0';
 	p += (len + 3) >> 2;
 	return p;
 }

-- 
Gomme's Laws:
       (1) A backscratcher will always find new itches.
       (2) Time accelerates.
       (3) The weather at home improves as soon as you go away.
-- 
Matthias Urlichs -- urlichs@smurf.sub.org -- Phone: NONE; use email or lose.
Schleiermacherstrasse 12 -- 90491 Nuernberg -- Germany || Linux+Mac Consulting

--
Send submissions for comp.os.linux.announce to: linux-announce@tc.cornell.edu


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1993-07-12 13:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-07-12 13:43 Bad NFS bug [PATCH] Matthias Urlichs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox