Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 313515 Details for
Bug 457858
CVE-2008-3275 Linux kernel local filesystem DoS
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Proposed backported patch for RHEL-5.3
CVE-2008-3275-rhel5.patch (text/plain), 2.27 KB, created by
Eugene Teo (Security Response)
on 2008-08-06 02:28:12 UTC
(
hide
)
Description:
Proposed backported patch for RHEL-5.3
Filename:
MIME Type:
Creator:
Eugene Teo (Security Response)
Created:
2008-08-06 02:28:12 UTC
Size:
2.27 KB
patch
obsolete
>This is for bz#457866 (CVE-2008-3275). > >Backport of upstream commit d70b67c8bc72ee23b55381bd6a884f4796692f77 > >Lookup can install a child dentry for a deleted directory. This keeps >the directory dentry alive, and the inode pinned in the cache and on >disk, even after all external references have gone away. > >This isn't a big problem normally, since memory pressure or umount >will clear out the directory dentry and its children, releasing the >inode. But for UBIFS this causes problems because its orphan area can >overflow. > >Fix this by returning ENOENT for all lookups on a S_DEAD directory >before creating a child dentry. > >Thanks to Zoltan Sogor for noticing this while testing UBIFS, and >Artem for the excellent analysis of the problem and testing. > >Brew build: >http://brewweb.devel.redhat.com/brew/taskinfo?taskID=1420810 > >Test status: >Booted on x86_64. Tested with reproducer. No reoccurrence of the problem. > >Signed-off-by: Eugene Teo <eteo@redhat.com> >--- > fs/namei.c | 18 ++++++++++++++++-- > 1 file changed, 16 insertions(+), 2 deletions(-) > >diff -uprN linux-2.6.18.noarch.default/fs/namei.c linux-2.6.18.noarch/fs/namei.c >--- linux-2.6.18.noarch.default/fs/namei.c 2008-08-04 17:33:06.000000000 +0800 >+++ linux-2.6.18.noarch/fs/namei.c 2008-08-05 11:28:01.000000000 +0800 >@@ -485,7 +485,13 @@ static struct dentry * real_lookup(struc > */ > result = d_lookup(parent, name); > if (!result) { >- struct dentry * dentry = d_alloc(parent, name); >+ struct dentry *dentry; >+ >+ /* Don't create child dentry for a dead directory. */ >+ result = ERR_PTR(-ENOENT); >+ if (IS_DEADDIR(dir)) >+ goto out_unlock; >+ dentry = d_alloc(parent, name); > result = ERR_PTR(-ENOMEM); > if (dentry) { > result = dir->i_op->lookup(dir, dentry, nd); >@@ -494,6 +500,7 @@ static struct dentry * real_lookup(struc > else > result = dentry; > } >+out_unlock: > mutex_unlock(&dir->i_mutex); > return result; > } >@@ -1275,7 +1282,14 @@ static struct dentry * __lookup_hash(str > > dentry = cached_lookup(base, name, nd); > if (!dentry) { >- struct dentry *new = d_alloc(base, name); >+ struct dentry *new; >+ >+ /* Don't create child dentry for a dead directory. */ >+ dentry = ERR_PTR(-ENOENT); >+ if (IS_DEADDIR(inode)) >+ goto out; >+ >+ new = d_alloc(base, name); > dentry = ERR_PTR(-ENOMEM); > if (!new) > goto out;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 457858
:
313417
|
313514
| 313515