Bug 15873 - Cp file is corrupted with Cifs mount
Summary: Cp file is corrupted with Cifs mount
Status: NEW
Alias: None
Product: CifsVFS
Classification: Unclassified
Component: kernel fs (show other bugs)
Version: 4.x
Hardware: x64 Linux
: P5 critical
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-24 14:53 UTC by Kugi
Modified: 2025-06-28 01:35 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kugi 2025-06-24 14:53:33 UTC
A bug that causes file to get corrupted when using cp.
When I mount another server and copy file, the copy command completes successfully, but the file is corrupted.

This occurs when a reconnection request is received from a client and the server child process is changed.

I think that writing does not work correctly when the server-side child process is switched due to a reconnect while copying a file.

This occurs due to timing issues with reconnection, is there a way to avoid this file corruption?

Environment:
OS:ubuntu24.04, Redhat8.10
SMB:4.22.2
Comment 1 Kugi 2025-06-28 01:23:34 UTC
There are some other conditions under which this can happen: If there are two mounts between the client and the server, and one of them sends a RST to the server, it will break the connection and may affect the write process of the other mount.