diff options
| author | Paulo Alcantara <[email protected]> | 2025-09-17 19:03:22 +0000 |
|---|---|---|
| committer | Steve French <[email protected]> | 2025-09-18 01:33:44 +0000 |
| commit | 93ed9a2951308db374cba4562533dde97bac70d3 (patch) | |
| tree | 792b78e41420e2b6bb9742599d49a69c4b52d58d /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
| parent | smb: client: let recv_done verify data_offset, data_length and remaining_data... (diff) | |
| download | kernel-93ed9a2951308db374cba4562533dde97bac70d3.tar.gz kernel-93ed9a2951308db374cba4562533dde97bac70d3.zip | |
smb: client: fix filename matching of deferred files
Fix the following case where the client would end up closing both
deferred files (foo.tmp & foo) after unlink(foo) due to strstr() call
in cifs_close_deferred_file_under_dentry():
fd1 = openat(AT_FDCWD, "foo", O_WRONLY|O_CREAT|O_TRUNC, 0666);
fd2 = openat(AT_FDCWD, "foo.tmp", O_WRONLY|O_CREAT|O_TRUNC, 0666);
close(fd1);
close(fd2);
unlink("foo");
Fixes: e3fc065682eb ("cifs: Deferred close performance improvements")
Signed-off-by: Paulo Alcantara (Red Hat) <[email protected]>
Reviewed-by: Enzo Matsumiya <[email protected]>
Cc: Frank Sorenson <[email protected]>
Cc: David Howells <[email protected]>
Cc: [email protected]
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions
