Linux CIFS filesystem development
 help / color / mirror / Atom feed
* [PATCH 0/2] smb/client: fix emulated insert range handling
@ 2026-08-13 13:21 Huiwen He
  2026-08-13 13:21 ` [PATCH 1/2] smb/client: validate new EOF for insert range Huiwen He
  2026-08-13 13:21 ` [PATCH 2/2] smb/client: mark file sparse before emulating " Huiwen He
  0 siblings, 2 replies; 3+ messages in thread
From: Huiwen He @ 2026-08-13 13:21 UTC (permalink / raw)
  To: smfrench, linkinjeon, pc, ronniesahlberg, sprasad, tom, bharathsm,
	senozhatsky, dhowells, chenxiaosong
  Cc: linux-cifs

From: Huiwen He <hehuiwen@kylinos.cn>

This series fixes two issues in the SMB3 FALLOC_FL_INSERT_RANGE
emulation.

Patch 1 fixes missing new EOF validation, which allowed RLIMIT_FSIZE to
be bypassed.

Patch 2 preserves hole semantics for inserted ranges, fixing xfstests
generic/064 against Samba and ksmbd.

In my Windows Server testing, aligned 64 KiB and 128 KiB insert ranges
were reported as holes, but generic/064 still fails because it uses
4 KiB inserts. Azure Files may not pass the test because it does not
support sparse files.

Thanks,
Huiwen

Huiwen He (2):
  smb/client: validate new EOF for insert range
  smb/client: mark file sparse before emulating insert range

 fs/smb/client/smb2ops.c | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-08-13 13:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-13 13:21 [PATCH 0/2] smb/client: fix emulated insert range handling Huiwen He
2026-08-13 13:21 ` [PATCH 1/2] smb/client: validate new EOF for insert range Huiwen He
2026-08-13 13:21 ` [PATCH 2/2] smb/client: mark file sparse before emulating " Huiwen He

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox