Re: [PATCH] drm: Fix FD ownership check in drm_master_check_perm()

2023-12-07 Thread Lingkai Dong
Thank you all! Regards, Lingkai From: Christian König Sent: Thursday, December 7, 2023 1:55 PM To: Tvrtko Ursulin ; Linus Walleij ; Lingkai Dong ; Tvrtko Ursulin Cc: nd ; dri-devel@lists.freedesktop.org Subject: Re: [PATCH] drm: Fix FD ownership check in

Re: [PATCH] drm: Fix FD ownership check in drm_master_check_perm()

2023-12-07 Thread Christian König
Am 07.12.23 um 11:22 schrieb Tvrtko Ursulin: On 07/12/2023 10:18, Christian König wrote: Am 07.12.23 um 11:12 schrieb Linus Walleij: On Wed, Dec 6, 2023 at 2:52 PM Lingkai Dong wrote: The DRM subsystem keeps a record of the owner of a DRM device file descriptor using thread group ID (TGID

Re: [PATCH] drm: Fix FD ownership check in drm_master_check_perm()

2023-12-07 Thread Linus Walleij
On Wed, Dec 6, 2023 at 2:52 PM Lingkai Dong wrote: > The DRM subsystem keeps a record of the owner of a DRM device file > descriptor using thread group ID (TGID) instead of process ID (PID), to > ensures all threads within the same userspace process are considered the > owner. However, the DRM ma

Re: [PATCH] drm: Fix FD ownership check in drm_master_check_perm()

2023-12-07 Thread Tvrtko Ursulin
On 07/12/2023 10:18, Christian König wrote: Am 07.12.23 um 11:12 schrieb Linus Walleij: On Wed, Dec 6, 2023 at 2:52 PM Lingkai Dong wrote: The DRM subsystem keeps a record of the owner of a DRM device file descriptor using thread group ID (TGID) instead of process ID (PID), to ensures all

Re: [PATCH] drm: Fix FD ownership check in drm_master_check_perm()

2023-12-07 Thread Christian König
Am 07.12.23 um 11:12 schrieb Linus Walleij: On Wed, Dec 6, 2023 at 2:52 PM Lingkai Dong wrote: The DRM subsystem keeps a record of the owner of a DRM device file descriptor using thread group ID (TGID) instead of process ID (PID), to ensures all threads within the same userspace process are co

Re: [PATCH] drm: Fix FD ownership check in drm_master_check_perm()

2023-12-07 Thread Linus Walleij
On Wed, Dec 6, 2023 at 2:52 PM Lingkai Dong wrote: > The DRM subsystem keeps a record of the owner of a DRM device file > descriptor using thread group ID (TGID) instead of process ID (PID), to > ensures all threads within the same userspace process are considered the > owner. However, the DRM ma