diff options
| author | Paulo Alcantara <pc@manguebit.org> | 2026-09-20 16:09:30 -0300 |
|---|---|---|
| committer | Paulo Alcantara <pc@manguebit.org> | 2026-09-30 14:23:08 -0300 |
| commit | da4fe97fb6c730d9c94a115c7bfa6f98e0d578d0 (patch) | |
| tree | 02bc03e81700a6fb3dd1843b330a0ebca5d2b77b /tools/lib/python/kdoc/parse_data_structs.py | |
| parent | 35024595f641e790e24609f3f046e1667e3b280a (diff) | |
| download | linux-next-da4fe97fb6c730d9c94a115c7bfa6f98e0d578d0.tar.gz linux-next-da4fe97fb6c730d9c94a115c7bfa6f98e0d578d0.zip | |
smb: client: discard post-EOF pagecache when extending a file via zero range
smb3_zero_range() removed the pagecache only for the range being zeroed,
so when it extends the file the folio straddling the old EOF - which may
hold data dirtied past EOF through an mmap - was never dropped and became
visible as file content once the file was extended.
Lower the discard boundary to the smaller of the zero-range offset and the
old EOF.
Fixes: 72c419d9b073 ("cifs: fix smb3_zero_range so it can expand the file-size when required")
Reviewed-by: David Howells <dhowells@redhat.com>
Reviewed-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Paulo Alcantara <pc@manguebit.org>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Cc: Shyam Prasad N <sprasad@microsoft.com>
Cc: Tom Talpey <tom@talpey.com>
Cc: Bharath SM <bharathsm@microsoft.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/lib/python/kdoc/parse_data_structs.py')
0 files changed, 0 insertions, 0 deletions
