[PATCH RESEND v2 23/26] ALSA: info: let procfs copy in writes

sashiko-bot at kernel.org sashiko-bot at kernel.org
Thu Nov 5 11:49:55 PST 2026


> Implement ->proc_write_buf() for data and text entries so procfs copies
> in what is written before it pins the entry.
> 
> Data entries take writes a page at a time with PROC_ENTRY_SHORT_WRITES.
> They used to get the whole write at once. ->write() of struct
> snd_info_entry_ops gets the kernel copy and opl4, its only user, writes
> it to the sample memory without bouncing it through a vmalloc() buffer
> of its own.
> 
> Text entries take up to SND_INFO_TEXT_WRITE_MAX bytes at once like
> before. A single write that is larger fails with -EINVAL from procfs
> instead of -EIO now.
> 
> 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-drivers-v2-0-245e54e87116@kernel.org?part=23




More information about the kexec mailing list