summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Yamin <plasmaroo@gentoo.org>2004-05-28 22:20:39 +0000
committerTim Yamin <plasmaroo@gentoo.org>2004-05-28 22:20:39 +0000
commitc831edfc8061b61ad4828d344bb547c64717f409 (patch)
tree7bf1ed79fa48acb2a330c6a4ddb84ce0be446783 /sys-kernel/ck-sources/files/ck-sources-2.6.4.CAN-2004-0181.patch
parentFixed BUG #51281 (again). (diff)
downloadhistorical-c831edfc8061b61ad4828d344bb547c64717f409.tar.gz
historical-c831edfc8061b61ad4828d344bb547c64717f409.tar.bz2
historical-c831edfc8061b61ad4828d344bb547c64717f409.zip
Added patches for the CAN-2004-0075, CAN-2004-0181, CAN-2004-0228, CAN-2004-0229, CAN-2004-0394, and CAN-2004-0427 vulnerabilities. Bugs #47881 and #51844. Old versions of sources removed.
Diffstat (limited to 'sys-kernel/ck-sources/files/ck-sources-2.6.4.CAN-2004-0181.patch')
-rw-r--r--sys-kernel/ck-sources/files/ck-sources-2.6.4.CAN-2004-0181.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/sys-kernel/ck-sources/files/ck-sources-2.6.4.CAN-2004-0181.patch b/sys-kernel/ck-sources/files/ck-sources-2.6.4.CAN-2004-0181.patch
new file mode 100644
index 000000000000..4f4742b992f0
--- /dev/null
+++ b/sys-kernel/ck-sources/files/ck-sources-2.6.4.CAN-2004-0181.patch
@@ -0,0 +1,39 @@
+--- linux-2.6.3/fs/jfs/jfs_logmgr.c.zy62.orig 2004-02-17 20:57:59.000000000 -0700
++++ linux-2.6.3/fs/jfs/jfs_logmgr.c 2004-04-02 16:57:38.000000000 -0700
+@@ -1702,7 +1702,7 @@
+ lbuf = kmalloc(sizeof(struct lbuf), GFP_KERNEL);
+ if (lbuf == 0)
+ goto error;
+- lbuf->l_ldata = (char *) __get_free_page(GFP_KERNEL);
++ lbuf->l_ldata = (char *) get_zeroed_page(GFP_KERNEL);
+ if (lbuf->l_ldata == 0) {
+ kfree(lbuf);
+ goto error;
+--- linux-2.6.3/fs/jfs/jfs_metapage.c.zy62.orig 2004-02-17 20:57:20.000000000 -0700
++++ linux-2.6.3/fs/jfs/jfs_metapage.c 2004-04-02 16:29:03.000000000 -0700
+@@ -341,6 +341,10 @@
+ }
+ mp->data = kmap(mp->page) + page_offset;
+ }
++
++ if (new)
++ memset(mp->data, 0, PSIZE);
++
+ jfs_info("__get_metapage: returning = 0x%p", mp);
+ return mp;
+
+--- linux-2.6.3/fs/jfs/super.c.zy62.orig 2004-02-17 20:57:48.000000000 -0700
++++ linux-2.6.3/fs/jfs/super.c 2004-04-02 17:57:02.903281078 -0700
+@@ -549,11 +549,11 @@
+
+ if ((flags & (SLAB_CTOR_VERIFY | SLAB_CTOR_CONSTRUCTOR)) ==
+ SLAB_CTOR_CONSTRUCTOR) {
++ memset(jfs_ip, 0, sizeof(struct jfs_inode_info));
+ INIT_LIST_HEAD(&jfs_ip->anon_inode_list);
+ init_rwsem(&jfs_ip->rdwrlock);
+ init_MUTEX(&jfs_ip->commit_sem);
+ init_rwsem(&jfs_ip->xattr_sem);
+- jfs_ip->atlhead = 0;
+ jfs_ip->active_ag = -1;
+ #ifdef CONFIG_JFS_POSIX_ACL
+ jfs_ip->i_acl = JFS_ACL_NOT_CACHED;