diff options
| author | Paulo Alcantara <pc@manguebit.org> | 2026-03-08 00:20:16 +0300 |
|---|---|---|
| committer | Steve French <stfrench@microsoft.com> | 2026-03-11 01:21:42 +0300 |
| commit | 4a7d2729dc99437dbb880a64c47828c0d191b308 (patch) | |
| tree | a8d36e71b3217c384a24c5bcd0d353ba32c7be57 /include/linux/workqueue.h | |
| parent | 1f318b96cc84d7c2ab792fcc0bfd42a7ca890681 (diff) | |
| download | linux-4a7d2729dc99437dbb880a64c47828c0d191b308.tar.xz | |
smb: client: fix atomic open with O_DIRECT & O_SYNC
When user application requests O_DIRECT|O_SYNC along with O_CREAT on
open(2), CREATE_NO_BUFFER and CREATE_WRITE_THROUGH bits were missed in
CREATE request when performing an atomic open, thus leading to
potentially data integrity issues.
Fix this by setting those missing bits in CREATE request when
O_DIRECT|O_SYNC has been specified in cifs_do_create().
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
Reviewed-by: David Howells <dhowells@redhat.com>
Acked-by: Henrique Carvalho <henrique.carvalho@suse.com>
Cc: Tom Talpey <tom@talpey.com>
Cc: linux-cifs@vger.kernel.org
Cc: stable@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'include/linux/workqueue.h')
0 files changed, 0 insertions, 0 deletions
