diff options
| author | Edward Adam Davis <[email protected]> | 2025-06-18 07:31:57 +0000 |
|---|---|---|
| committer | Konstantin Komarov <[email protected]> | 2025-06-23 17:23:04 +0000 |
| commit | d99208b91933fd2a58ed9ed321af07dacd06ddc3 (patch) | |
| tree | e9131bc36eca6128799f7d1803fe4cc97a87e8f8 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | |
| parent | fs/ntfs3: Add sanity check for file name (diff) | |
| download | kernel-d99208b91933fd2a58ed9ed321af07dacd06ddc3.tar.gz kernel-d99208b91933fd2a58ed9ed321af07dacd06ddc3.zip | |
fs/ntfs3: cancle set bad inode after removing name fails
The reproducer uses a file0 on a ntfs3 file system with a corrupted i_link.
When renaming, the file0's inode is marked as a bad inode because the file
name cannot be deleted.
The underlying bug is that make_bad_inode() is called on a live inode.
In some cases it's "icache lookup finds a normal inode, d_splice_alias()
is called to attach it to dentry, while another thread decides to call
make_bad_inode() on it - that would evict it from icache, but we'd already
found it there earlier".
In some it's outright "we have an inode attached to dentry - that's how we
got it in the first place; let's call make_bad_inode() on it just for shits
and giggles".
Fixes: 78ab59fee07f ("fs/ntfs3: Rework file operations")
Reported-by: [email protected]
Closes: https://syzkaller.appspot.com/bug?extid=1aa90f0eb1fc3e77d969
Signed-off-by: Edward Adam Davis <[email protected]>
Signed-off-by: Konstantin Komarov <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions
