-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux: zpl_tmpfile: ensure ACL init succeeds before d_tmpfile #16625
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice find. This should be fine on all supported kernels but let's let the CI confirm that.
As it turns out, this along with #16612 is insufficient, now I see the VERIFY tripped, the igrab in zget still can work out to NULL. So it's not fixing my problem :-D |
|
Oh I like this one, from alma9:
|
Inode should be linked to dentry and hashed only after both zpl_xattr_security_init and zpl_init_acl were successful, which apparently isn't always true for example when memory is tight. Signed-off-by: Pavel Snajdr <[email protected]>
Did this end up fixing your crashes? |
@satmandu nope, current progress here #16324 (comment) |
Motivation and Context
Other than #16612, this is the only place I see where trouble similar to #16608 could arise. One hint pointing to tmpfile is that the crashes are now way more frequent with 6.10 kernel, which introduced O_TMPFILE support for overlayfs, which agrees with that with our workload, if there's a general bug with O_TMPFILE, we'd be hitting it lot more often.
I'm not sure all the supported kernel versions will be okay with these modifications, I'm posting this as a draft to let the bots chew on it to find out.
Description
Linux: zpl_tmpfile: ensure ACL init succeeds before d_tmpfile
Inode should be linked to dentry and hashed only after both
zpl_xattr_security_init and zpl_init_acl were successful, which
apparently isn't always true for example when memory is tight.
How Has This Been Tested?
Still waiting for vpsAdminOS container templates build to complete, if it does, then this fixes #16608. The major PITA here is that it takes 8.5hrs for it to fail currently :D
Types of changes
Checklist:
Signed-off-by
.