summaryrefslogtreecommitdiff
path: root/include/uapi/linux/rseq.h
diff options
context:
space:
mode:
authorMika Kuoppala <mika.kuoppala@linux.intel.com>2026-03-04 23:17:28 +0200
committerMatthew Brost <matthew.brost@intel.com>2026-03-12 07:10:58 -0700
commit635e3eba1ebcd5b92856e975e1d3859b487dc88b (patch)
tree355e92ec62c1839167c45a4bab3438c88500bec4 /include/uapi/linux/rseq.h
parent2b484419700a0f563c695312374eb8cd5264b82c (diff)
downloadlwn-635e3eba1ebcd5b92856e975e1d3859b487dc88b.tar.gz
lwn-635e3eba1ebcd5b92856e975e1d3859b487dc88b.zip
drm/xe: Fix overflow in guc_ct_snapshot_capture
snapshot->ctb is u32*, so pointer arithmetic on it scales the byte offset from xe_bo_size() by 4, overshooting the intended start of the g2h portion and writing past the allocated buffer. Fix this by using void * to get the arithmetic right and prevent future mishaps. v2: s/u8/void for memcpy and iosys_map consistency (Matt) Fixes: af3de6cf06f9 ("drm/xe: Split H2G and G2H into separate buffer objects") Cc: Matthew Brost <matthew.brost@intel.com> Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com> Cc: intel-xe@lists.freedesktop.org Signed-off-by: Mika Kuoppala <mika.kuoppala@linux.intel.com> Reviewed-by: Matthew Brost <matthew.brost@intel.com> Signed-off-by: Matthew Brost <matthew.brost@intel.com> Link: https://patch.msgid.link/20260304211728.249104-1-mika.kuoppala@linux.intel.com
Diffstat (limited to 'include/uapi/linux/rseq.h')
0 files changed, 0 insertions, 0 deletions