lkml.org 
[lkml]   [1999]   [Dec]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] BAD data corruption in -pre5 - it's really urgent.
	Linus, there is a problem with -pre{4,5} - it's partially my
fault, since I just left the thing in FYI status (I intended to submit the
patch when I will be sure that it works). Please, apply the following to
fs/buffer.c:

@@ -1449,6 +1449,8 @@
err = copy_from_user(kaddr+from, buf, to-from);
if (to < zeroto)
memset(kaddr+to, 0, zeroto-to);
+ else
+ zeroto = to;
if (err < 0)
goto out;
/*
Explanation: zeroto is left 0 if there is no new buffers partially written
within a page. In that case it fails to dirty any buffer - with obvious
results. Fixed variant (that's what was posted for testing on l-k) didn't
bring any bug reports so far. Ouch...
Al

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.160 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site