Skip to content

Commit 7223a3a

Browse files
committed
Merge: ovl: Filter invalid inodes with missing lookup function
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/6168 ovl: Filter invalid inodes with missing lookup function JIRA: https://issues.redhat.com/browse/RHEL-72307 CVE: CVE-2024-56570 Signed-off-by: Miklos Szeredi <mszeredi@redhat.com> Approved-by: David Howells <dhowells@redhat.com> Approved-by: Ian Kent <ikent@redhat.com> Approved-by: Carlos Maiolino <cmaiolino@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: Patrick Talbert <ptalbert@redhat.com>
2 parents 555c95f + bf44471 commit 7223a3a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fs/overlayfs/util.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ void ovl_dentry_init_flags(struct dentry *dentry, struct dentry *upperdentry,
171171

172172
bool ovl_dentry_weird(struct dentry *dentry)
173173
{
174+
if (!d_can_lookup(dentry) && !d_is_file(dentry) && !d_is_symlink(dentry))
175+
return true;
176+
174177
return dentry->d_flags & (DCACHE_NEED_AUTOMOUNT |
175178
DCACHE_MANAGE_TRANSIT |
176179
DCACHE_OP_HASH |

0 commit comments

Comments
 (0)