rpms/kernel/devel linux-2.6.3-printopen.patch,1.3,1.4

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Tue Mar 22 05:31:38 UTC 2005


Update of /cvs/dist/rpms/kernel/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv9321

Modified Files:
	linux-2.6.3-printopen.patch 
Log Message:
fix stack usage.


linux-2.6.3-printopen.patch:
 linux-2.6.11/fs/exec.c               |   10 ++++++++++
 linux-2.6.11/include/linux/jiffies.h |    2 +-
 linux-2.6.3/fs/open.c                |   18 ++++++++++++------
 linux/fs/namei.c                     |    9 +++++++++
 linux/fs/open.c                      |    7 +++++++
 5 files changed, 39 insertions(+), 7 deletions(-)

Index: linux-2.6.3-printopen.patch
===================================================================
RCS file: /cvs/dist/rpms/kernel/devel/linux-2.6.3-printopen.patch,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- linux-2.6.3-printopen.patch	22 Mar 2005 03:12:56 -0000	1.3
+++ linux-2.6.3-printopen.patch	22 Mar 2005 05:31:30 -0000	1.4
@@ -81,10 +81,10 @@
  			fd_install(fd, f);
 +			{
 +				static unsigned long prev_jiffies;
-+				static char buf[4096];
++				static char buf[1024];
 +				char *p;
 +				p = d_path(f->f_dentry, f->f_vfsmnt,
-+				                                buf, PAGE_SIZE - 1);
++				                                buf, 1023);
 +				if (jiffies < 180 * HZ)
 +					printk(KERN_ERR "[%2d.%02d] [+%2d.%02d] %s\n", jiffies / HZ, jiffies % HZ,
 +					(jiffies-prev_jiffies)/HZ, (jiffies-prev_jiffies) % HZ,
@@ -102,11 +102,11 @@
  
 +	{
 +		static unsigned long prev_jiffies;
-+		static char buf[4096];
++		static char buf[1024];
 +		char *p;
-+		p = d_path(file->f_dentry, file->f_vfsmnt, buf, PAGE_SIZE - 1);
++		p = d_path(file->f_dentry, file->f_vfsmnt, buf, 1023);
 +		if (jiffies < 180 * HZ)
-+			printk(KERN_ERR "(%2d.%02d) [+%2d.%02d] %s\n", jiffies / HZ, jiffies+                   (jiffies-prev_jiffies)/HZ, (jiffies-prev_jiffies) % HZ, p);
++			printk(KERN_ERR "(%2d.%02d) [+%2d.%02d] %s\n", jiffies / HZ, jiffies+(jiffies-prev_jiffies)/HZ, (jiffies-prev_jiffies) % HZ, p);
 +		prev_jiffies = jiffies;
 +	}
 +




More information about the fedora-cvs-commits mailing list