[Intel-gfx] [PATCH] drm/i915/reset_stats: Only allow root to read reset_stats

Chris Wilson chris at chris-wilson.co.uk
Tue Jan 16 17:27:11 UTC 2018


Quoting Antonio Argenziano (2018-01-16 16:09:35)
> Instead of returning a zero value for non root users, return an EPERM
> error.

What? reset-stats are per-context, private to the client, with the
exception of the global value which is solely protected by capable().
There is a genuine debate over how much information leakage of one
guilty reset in another context should affect an innocent, and we have
tried to limit that to being only those directly affected and have a
requirement to know (i.e they were executing at the time of the reset
and their calculations will have been restarted with perturbed state).
-Chris


More information about the Intel-gfx mailing list