OSDN Git Service

ext: Avoid printk floods in the face of directory
authorEric Sandeen <sandeen@redhat.com>
Sun, 9 Nov 2008 14:26:51 +0000 (15:26 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 9 Nov 2008 14:26:51 +0000 (15:26 +0100)
commitb85ad79e46390c2774a7dc2056a2a719ae97a5ac
treea54bdd282ed8812c43858caf48af5e287b6fb9c8
parent311062f20565862e7e57c75f85a07084e562633b
ext: Avoid printk floods in the face of directory

This is a trivial backport of the following upstream commits:

bd39597cbd42a784105a04010100e27267481c67 (ext2)
cdbf6dba28e8e6268c8420857696309470009fd9 (ext3)

This addresses CVE-2008-3528

ext[23]: Avoid printk floods in the face of directory corruption

Note: some people thinks this represents a security bug, since it
might make the system go away while it is printing a large number of
console messages, especially if a serial console is involved.  Hence,
it has been assigned CVE-2008-3528, but it requires that the attacker
either has physical access to your machine to insert a USB disk with a
corrupted filesystem image (at which point why not just hit the power
button), or is otherwise able to convince the system administrator to
mount an arbitrary filesystem image (at which point why not just
include a setuid shell or world-writable hard disk device file or some
such).  Me, I think they're just being silly. --tytso

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: linux-ext4@vger.kernel.org
Cc: Eugene Teo <eugeneteo@kernel.sg>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
[w@1wt.eu: backport from 2.6-stable to 2.4. Removed all ext4 references]
Signed-off-by: Willy Tarreau <w@1wt.eu>
fs/ext2/dir.c
fs/ext3/dir.c