[PATCH RESEND v2 09/30] smb: client: let procfs copy in writes

sashiko-bot at kernel.org sashiko-bot at kernel.org
Thu Nov 5 11:57:46 PST 2026


> Implement ->proc_write_buf() for the files in /proc/fs/cifs so procfs
> copies in what is written before it pins the entry, and parse what was
> written from that copy. Writes larger than PAGE_SIZE - 1 bytes fail with
> -EINVAL now, SecurityFlags never took more than 11 bytes. Empty writes
> to cifsFYI and dfscache fail with -EINVAL too, they looked at a byte
> that wasn't written before. kstrtoint_from_user() looked at the first
> 34 bytes of a write to cifs_debug_dirs and the smbdirect files, now the
> whole write is parsed.
> 
> Signed-off-by: Christian Brauner (Amutable) <brauner at kernel.org>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261104-work-procfs-fs-v2-0-319e0f9a8aae@kernel.org?part=9




More information about the kexec mailing list