Re: [PATCH RESEND] drm/msm: Truncate the buffer object name if the copy from user failed

2019-03-04 Thread Sean Paul
On Tue, Feb 19, 2019 at 11:40:19AM -0700, Jordan Crouse wrote: > (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

[PATCH RESEND] drm/msm: Truncate the buffer object name if the copy from user failed

2019-02-19 Thread Jordan Crouse
(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