aboutsummaryrefslogtreecommitdiff
path: root/rust/helpers
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <[email protected]>2023-10-05 14:56:47 +0100
committerMaxime Ripard <[email protected]>2023-10-12 10:44:06 +0200
commitb7fd68ab1538e3adb665670414bea440f399fda9 (patch)
tree5c23ec8ae85f915b2f05a40a9e1f9cb85e42f958 /rust/helpers
parent2b7947bd32e243c52870d54141d3b4ea6775e63d (diff)
drm: Do not overrun array in drm_gem_get_pages()
If the shared memory object is larger than the DRM object that it backs, we can overrun the page array. Limit the number of pages we install from each folio to prevent this. Signed-off-by: "Matthew Wilcox (Oracle)" <[email protected]> Reported-by: Oleksandr Natalenko <[email protected]> Tested-by: Oleksandr Natalenko <[email protected]> Link: https://lore.kernel.org/lkml/[email protected]/ Fixes: 3291e09a4638 ("drm: convert drm_gem_put_pages() to use a folio_batch") Cc: [email protected] # 6.5.x Signed-off-by: Maxime Ripard <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'rust/helpers')
0 files changed, 0 insertions, 0 deletions