Re: [PATCH] media: mediatek: vcodec: NUL-terminate debugfs input

From: Nicolas Dufresne

Date: Mon Nov 30 2026 - 13:33:03 EST



On Thu, 29 Oct 2026 13:30:23 +0800, Jiale Yao wrote:
> mtk_vdec_dbgfs_write() allows userspace to overwrite every byte in the
> persistent debugfs buffer. The read handler later searches that buffer with
> strstr(), which can read past its end when no NUL remains.
>
> Reserve one byte and terminate the copied input at the updated file
> position before releasing the debugfs lock.
>
> [...]

Applied, thanks!

[1/1] media: mediatek: vcodec: NUL-terminate debugfs input
commit: 4e17155a121b7073e38dca501d0b6792bd6b90df

Best regards,
--
Nicolas Dufresne <nicolas.dufresne@xxxxxxxxxxxxx>