SOURCES (LINUX_2_6): linux-2.6-secunia-17786-1.patch (NEW) - fix p...

pluto pluto at pld-linux.org
Tue Nov 29 19:44:13 CET 2005


Author: pluto                        Date: Tue Nov 29 18:44:13 2005 GMT
Module: SOURCES                       Tag: LINUX_2_6
---- Log message:
- fix part of http://secunia.com/advisories/17786/
  the rest of advisory is already fixed in 2.6.14.3.
  The use of "printk()" in the "time_out_leases()" function
  in "/fs/locks.c" can consume a large amount of kernel log space.
  This can be exploited by local users to cause a DoS by generating
  a large number of broken leases.

---- Files affected:
SOURCES:
   linux-2.6-secunia-17786-1.patch (NONE -> 1.1.2.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/linux-2.6-secunia-17786-1.patch
diff -u /dev/null SOURCES/linux-2.6-secunia-17786-1.patch:1.1.2.1
--- /dev/null	Tue Nov 29 19:44:13 2005
+++ SOURCES/linux-2.6-secunia-17786-1.patch	Tue Nov 29 19:44:08 2005
@@ -0,0 +1,17 @@
+[PATCH] VFS: local denial-of-service with file leases
+
+Remove time_out_leases() printk that's easily triggered by users.
+
+Signed-off-by: Chris Wright <chrisw at osdl.org>
+Signed-off-by: Trond Myklebust <Trond.Myklebust at netapp.com>
+
+--- a/fs/locks.c 600d1fbe35710e98fb6d9d2d95de816b59f029b8
++++ b/fs/locks.c 250ef53d25ef8cfce06e333b83a746ef2577aa3d
+@@ -1105,7 +1105,6 @@ static void time_out_leases(struct inode
+ 			before = &fl->fl_next;
+ 			continue;
+ 		}
+-		printk(KERN_INFO "lease broken - owner pid = %d\n", fl->fl_pid);
+ 		lease_modify(before, fl->fl_type & ~F_INPROGRESS);
+ 		if (fl == *before)	/* lease_modify may have freed fl */
+ 			before = &fl->fl_next;
================================================================



More information about the pld-cvs-commit mailing list