mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 18:43:33 +02:00
Merge patch series "Fix two regressions from start_creating()/start_removing() conversion"
Tyler Hicks <code@tyhicks.com> says:
When running the eCryptfs test suite on v6.19-rc2, I noticed BUG splats
from every test and that the umount utility was segfaulting when tearing
down after a test. Bisection led me to commit f046fbb4d8 ("ecryptfs:
use new start_creating/start_removing APIs").
This patch series addresses that regression and also a mknod problem
spotted during code review.
* patches from https://patch.msgid.link/20251223194153.2818445-1-code@tyhicks.com:
ecryptfs: Release lower parent dentry after creating dir
ecryptfs: Fix improper mknod pairing of start_creating()/end_removing()
Link: https://patch.msgid.link/20251223194153.2818445-1-code@tyhicks.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
commit
78c850021d
|
|
@ -533,6 +533,7 @@ static struct dentry *ecryptfs_mkdir(struct mnt_idmap *idmap, struct inode *dir,
|
|||
fsstack_copy_inode_size(dir, lower_dir);
|
||||
set_nlink(dir, lower_dir->i_nlink);
|
||||
out:
|
||||
dput(lower_dir_dentry);
|
||||
end_creating(lower_dentry);
|
||||
if (d_really_is_negative(dentry))
|
||||
d_drop(dentry);
|
||||
|
|
@ -584,7 +585,7 @@ ecryptfs_mknod(struct mnt_idmap *idmap, struct inode *dir,
|
|||
fsstack_copy_attr_times(dir, lower_dir);
|
||||
fsstack_copy_inode_size(dir, lower_dir);
|
||||
out:
|
||||
end_removing(lower_dentry);
|
||||
end_creating(lower_dentry);
|
||||
if (d_really_is_negative(dentry))
|
||||
d_drop(dentry);
|
||||
return rc;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user