[PATCH v2 1/2] drm: Add GPU reset sysfs event

Simon Ser contact at emersion.fr
Tue Mar 15 07:25:31 UTC 2022


On Tuesday, March 15th, 2022 at 08:13, Dave Airlie <airlied at gmail.com> wrote:

> Just one thing comes to mind reading this, racy PID reuse.
>
> process 1234 does something bad to GPU.
> process 1234 dies in parallel to sysfs notification being sent.
> other process 1234 reuses the pid
> new process 1234 gets destroyed by receiver of sysfs notification.

This is a more general problem with PIDs. One solution is pidfd.


More information about the amd-gfx mailing list