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

Nicolas Dufresne nicolas.dufresne at collabora.com
Mon Nov 30 10:29:52 PST 2026


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 at collabora.com>



More information about the linux-arm-kernel mailing list