Re: [Intel-gfx] [PATCH v2] drm/i915: Fix the race between the GEM close and debugfs

2020-09-17 Thread Sasha Levin
Hi [This is an automated email] This commit has been processed because it contains a -stable tag. The stable tag indicates that it's relevant for the following trees: all The bot has tested the following trees: v5.8.9, v5.4.65, v4.19.145, v4.14.198, v4.9.236, v4.4.236. v5.8.9: Build OK!

[Intel-gfx] [PATCH v2] drm/i915: Fix the race between the GEM close and debugfs

2020-09-14 Thread Nikunj A. Dadhania
As we close GEM object and set file_priv to -EBADF which is protected by ctx->mutex, populating the GEM debugfs info is not protected and results in the crash shown below. Make sure to protect the access to file_priv using ctx->mutex to avoid race. BUG: unable to handle page fault for address: