diff options
author | Tim Yamin <plasmaroo@gentoo.org> | 2004-06-01 16:45:42 +0000 |
---|---|---|
committer | Tim Yamin <plasmaroo@gentoo.org> | 2004-06-01 16:45:42 +0000 |
commit | 67c5d55e4f0d24dd62b12f4ce639feb984073c3b (patch) | |
tree | 637c68c7f5e411db9d6a18a9e1b24951b62fa5d1 /sys-kernel/gentoo-sources/files/gentoo-sources-2.4.CAN-2004-0181.patch | |
parent | stable on ia64 (Manifest recommit) (diff) | |
download | gentoo-2-67c5d55e4f0d24dd62b12f4ce639feb984073c3b.tar.gz gentoo-2-67c5d55e4f0d24dd62b12f4ce639feb984073c3b.tar.bz2 gentoo-2-67c5d55e4f0d24dd62b12f4ce639feb984073c3b.zip |
Added patches for the CAN-2004-0075, CAN-2004-0133, CAN-2004-0181, CAN-2004-0394, and CAN-2004-0427 vulnerabilities. Bug #47881.
Diffstat (limited to 'sys-kernel/gentoo-sources/files/gentoo-sources-2.4.CAN-2004-0181.patch')
-rw-r--r-- | sys-kernel/gentoo-sources/files/gentoo-sources-2.4.CAN-2004-0181.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-sources/files/gentoo-sources-2.4.CAN-2004-0181.patch b/sys-kernel/gentoo-sources/files/gentoo-sources-2.4.CAN-2004-0181.patch new file mode 100644 index 000000000000..5f7f1441b268 --- /dev/null +++ b/sys-kernel/gentoo-sources/files/gentoo-sources-2.4.CAN-2004-0181.patch @@ -0,0 +1,38 @@ +--- linux-2.4.22/fs/jfs/jfs_logmgr.c.jfs-sec 2004-03-23 12:30:35.000000000 -0700 ++++ linux-2.4.22/fs/jfs/jfs_logmgr.c 2004-03-23 13:01:51.000000000 -0700 +@@ -1693,7 +1693,7 @@ + if (lbuf == 0) + goto error; + lbuf->l_bh.b_data = lbuf->l_ldata = +- (char *) __get_free_page(GFP_KERNEL); ++ (char *) get_zeroed_page(GFP_KERNEL); + if (lbuf->l_ldata == 0) { + kfree(lbuf); + goto error; +--- linux-2.4.22/fs/jfs/jfs_metapage.c.jfs-sec 2004-03-23 12:30:48.000000000 -0700 ++++ linux-2.4.22/fs/jfs/jfs_metapage.c 2004-03-23 13:01:51.000000000 -0700 +@@ -375,6 +375,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.4.22/fs/jfs/super.c.jfs-sec 2004-03-23 12:31:10.000000000 -0700 ++++ linux-2.4.22/fs/jfs/super.c 2004-03-23 13:01:51.000000000 -0700 +@@ -423,10 +423,10 @@ + + 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); +- jfs_ip->atlhead = 0; + jfs_ip->active_ag = -1; + } + } |