Description
In the Linux kernel, the following vulnerability has been resolved: smb: client: don't write back through O_DIRECT handles Writeback uses the first writable handle of the inode, which may have been opened with O_DIRECT. Such handles are opened with FILE_NO_INTERMEDIATE_BUFFERING, for which Windows rejects any unaligned I/O with STATUS_INVALID_PARAMETER. Writeback of partly dirty pages and of the unaligned tail of a file through one of them fails, so netfs ends it with the folios clean and the data never reaches the server. xfstests generic/051, where fsstress mixes both kinds of opens, loses about 1% of its writes this way: smb3_write_err: ... offset=0xde90d7 len=0xbd0b rc=-22 All the rejected writes in a network capture were unaligned writes on a no-buffering handle; none of the aligned ones, and none of the unaligned ones on regular handles, were. Prefer a handle that was not opened with O_DIRECT, and use one that was only if there is no other.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
1013e760d10e614dc10b5624ce9fc41563ba2e65 to < 0c17b9275fa515e9a3348fbedfe722f4c8e0fdc9affected1013e760d10e614dc10b5624ce9fc41563ba2e65 to < 0e85145af984f7cae2aadaa694cb8612009027acaffected0b35d1a29b76aa077057a0dd5197c230bd9e4e9faffected64304f5ae2f37d54072b208d53fb692ef941d168affectedcfcdf66ca4b73f84009ae944ebd3ae48a5fa63f9affected3bb7084cc031ff8c1cdbb1c50cbe3e1940eab268affected18a89a10b26b325da5eb03cbd275f835a4a704f5affectedcc6985ec8f095aaa9b1b9f4bee1d292e772ca468affected3.16.52 to < 3.17affected3.18.73 to < 3.19affected4.1.46 to < 4.2affected4.4.90 to < 4.5affected4.9.53 to < 4.10affected4.13.5 to < 4.14affected
Linux Linux
Default version status: affected
4.14affected0 to < 4.14unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected