Bugzilla – Attachment 16692 Details for
Bug 51125
VUL-0: CVE-2004-0181: kernel: jfs info leak
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
jfs_leak.patch
jfs_leak.patch (text/plain), 1.62 KB, created by
Thomas Biege
on 2004-03-16 17:13:56 UTC
(
hide
)
Description:
jfs_leak.patch
Filename:
MIME Type:
Creator:
Thomas Biege
Created:
2004-03-16 17:13:56 UTC
Size:
1.62 KB
patch
obsolete
>diff -urp linux-2.6.4-rc3/fs/jfs/jfs_logmgr.c linux/fs/jfs/jfs_logmgr.c >--- linux-2.6.4-rc3/fs/jfs/jfs_logmgr.c 2004-03-15 11:05:48.000000000 -0600 >+++ linux/fs/jfs/jfs_logmgr.c 2004-03-15 11:09:24.000000000 -0600 >@@ -1811,7 +1811,7 @@ static int lbmLogInit(struct jfs_log * l > 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; >diff -urp linux-2.6.4-rc3/fs/jfs/jfs_metapage.c linux/fs/jfs/jfs_metapage.c >--- linux-2.6.4-rc3/fs/jfs/jfs_metapage.c 2004-03-15 11:05:48.000000000 -0600 >+++ linux/fs/jfs/jfs_metapage.c 2004-03-15 11:07:08.000000000 -0600 >@@ -341,6 +341,10 @@ struct metapage *__get_metapage(struct i > } > mp->data = kmap(mp->page) + page_offset; > } >+ >+ if (new) >+ memset(mp->data, 0, PSIZE); >+ > jfs_info("__get_metapage: returning = 0x%p", mp); > return mp; > >diff -urp linux-2.6.4-rc3/fs/jfs/super.c linux/fs/jfs/super.c >--- linux-2.6.4-rc3/fs/jfs/super.c 2004-03-15 11:05:48.000000000 -0600 >+++ linux/fs/jfs/super.c 2004-03-15 12:59:19.621715192 -0600 >@@ -548,11 +548,11 @@ static void init_once(void *foo, kmem_ca > > 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;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 51125
: 16692