Re: [PATCH v2 2/2] drm/uapi: add explicit virtgpu context debug name
On 10/18/23 20:04, Gurchetan Singh wrote: > + > + ret = strncpy_from_user(vfpriv->debug_name, > + u64_to_user_ptr(value), > + DEBUG_NAME_MAX_LEN); > + > + if (ret < 0) { >
[PATCH v2 2/2] drm/uapi: add explicit virtgpu context debug name
There are two problems with the current method of determining the virtio-gpu debug name. 1) TASK_COMM_LEN is defined to be 16 bytes only, and this is a Linux kernel idiom (see PR_SET_NAME + PR_GET_NAME). Though, Android/FreeBSD get around this via setprogname(..)/getprogname(..) in libc.