[PATCH v3 1/6] drm: add DRM_SET_NAME ioctl
Dmitry Osipenko
dmitry.osipenko at collabora.com
Tue Sep 24 23:28:26 UTC 2024
On 9/23/24 21:18, Dmitry Osipenko wrote:
> On 9/23/24 21:09, Dmitry Osipenko wrote:
>>> Sure, I can do that if others prefer this way too.
>> Note that in the other email I suggested to use strndup_user(), that
>> will remove the name-length limitation, but then the name var will
>> remain to be a string pointer. To me best option would be to replicate
>> how dma_buf_set_name works.
>
> My bad, strndup_user() is also size-limited. Then the point about static
> string remains.
To clarify a bit further, I'm fine with both variants. Having a
consistent solution across kernel is also good if it's good enough. I.e.
replicating the whole dma_buf_set_name using the name pointer is okay to
me, though not having string pointers is more robust in general. Choose
what you like more.
--
Best regards,
Dmitry
More information about the amd-gfx
mailing list