OSDN Git Service

CVE-2008-3275 Linux kernel local filesystem DoS
authorEugene Teo <eugeneteo@kernel.sg>
Tue, 14 Oct 2008 07:04:08 +0000 (15:04 +0800)
committerWilly Tarreau <w@1wt.eu>
Sun, 19 Oct 2008 19:57:43 +0000 (21:57 +0200)
commitf23e4db5d0462de3a3e74686d7e1a4b708bef002
tree9ab9657b835800e55b1a487e7344331153e8d9ab
parent59a1f6d68cdd824f303554922a77ddaf0a2a887e
CVE-2008-3275 Linux kernel local filesystem DoS

This is a backport for CVE-2008-3275.

"Lookup can install a child dentry for a deleted directory.  This keeps
the directory dentry alive, and the inode pinned in the cache and on
disk, even after all external references have gone away.

This isn't a big problem normally, since memory pressure or umount
will clear out the directory dentry and its children, releasing the
inode.  But for UBIFS this causes problems because its orphan area can
overflow.

Fix this by returning ENOENT for all lookups on a S_DEAD directory
before creating a child dentry."

Signed-off-by: Eugene Teo <eugeneteo@kernel.sg>
[ WT: problem and fix confirmed on ramfs using method described
  at http://lkml.org/lkml/2008/7/2/83 ]
Signed-off-by: Willy Tarreau <w@1wt.eu>
fs/namei.c