drm/tests: shmem: Hold reservation lock around purge
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.166.19.67.0In the Linux kernel, the following vulnerability has been resolved:
drm/tests: shmem: Hold reservation lock around purge
Acquire and release the GEM object's reservation lock around calls to the object's purge operation. The tests use drm_gem_shmem_purge_locked(), which led to errors such as show below.
[ 58.709128] WARNING: CPU: 1 PID: 1354 at drivers/gpu/drm/drm_gem_shmem_helper.c:515 drm_gem_shmem_purge_locked+0x51c/0x740
Only export the new helper drm_gem_shmem_purge() for Kunit tests. This is not an interface for regular drivers.
From the CVE record · Linux
Linux kernel DRM shmem tests called a GEM object's purge operation without holding its reservation lock, causing a kernel warning. The input describes this as a test issue and does not establish an attacker capability, access requirement, or user-interaction requirement.
Engineers running Linux kernel DRM shmem KUnit tests should check whether their kernel includes this fix; affected versions are not specified.