diff options
| author | Nicholas Piggin <[email protected]> | 2018-07-27 21:48:17 +1000 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2018-08-08 00:32:32 +1000 |
| commit | 4231aba000f5a4583dd9f67057aadb68c3eca99d (patch) | |
| tree | d504bc547bb05060595d02e96710a20795707518 /drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c | |
| parent | a0ac3687fb404d59296ecba4642071424d153569 (diff) | |
powerpc/64s: Fix page table fragment refcount race vs speculative references
The page table fragment allocator uses the main page refcount racily
with respect to speculative references. A customer observed a BUG due
to page table page refcount underflow in the fragment allocator. This
can be caused by the fragment allocator set_page_count stomping on a
speculative reference, and then the speculative failure handler
decrements the new reference, and the underflow eventually pops when
the page tables are freed.
Fix this by using a dedicated field in the struct page for the page
table fragment allocator.
Fixes: 5c1f6ee9a31c ("powerpc: Reduce PTE table memory wastage")
Cc: [email protected] # v3.10+
Reviewed-by: Aneesh Kumar K.V <[email protected]>
Signed-off-by: Nicholas Piggin <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c')
0 files changed, 0 insertions, 0 deletions