Files
android_kernel_xiaomi_sm8450/drivers/gpu/drm/msm
Jordan Crouse 860433ed2a drm/msm: Truncate the buffer object name if the copy from user failed
(Resend since there was a compile error that I forgot to commit before sending)

If there is a error while doing a copy_from_user() for MSM_INFO_SET_NAME
make sure to truncate the object name so that there isn't a chance that
we'll have random data in the string.

This is on top of [1] reported and fixed by Dan Carpenter.

[1] https://patchwork.freedesktop.org/series/56656/

Fixes: f05c83e774 ("drm/msm: add uapi to get/set debug name")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
2019-02-19 14:54:08 -05:00
..
2018-03-19 06:33:35 -04:00
2019-01-29 10:17:34 -05:00
2019-01-29 10:17:34 -05:00
2018-12-11 13:07:10 -05:00
2018-12-11 13:07:10 -05:00
2014-01-09 14:44:06 -05:00