aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorZack Rusin <[email protected]>2024-04-25 19:27:48 +0000
committerZack Rusin <[email protected]>2024-04-30 16:54:07 +0000
commita37ef7613c00f2d72c8fc08bd83fb6cc76926c8c (patch)
tree8c174de28603258e3f4fd102161460206295870c /net/unix/af_unix.c
parentdrm/nouveau/gsp: Use the sg allocator for level 2 of radix3 (diff)
downloadkernel-a37ef7613c00f2d72c8fc08bd83fb6cc76926c8c.tar.gz
kernel-a37ef7613c00f2d72c8fc08bd83fb6cc76926c8c.zip
drm/vmwgfx: Fix invalid reads in fence signaled events
Correctly set the length of the drm_event to the size of the structure that's actually used. The length of the drm_event was set to the parent structure instead of to the drm_vmw_event_fence which is supposed to be read. drm_read uses the length parameter to copy the event to the user space thus resuling in oob reads. Signed-off-by: Zack Rusin <[email protected]> Fixes: 8b7de6aa8468 ("vmwgfx: Rework fence event action") Reported-by: [email protected] # ZDI-CAN-23566 Cc: David Airlie <[email protected]> CC: Daniel Vetter <[email protected]> Cc: Zack Rusin <[email protected]> Cc: Broadcom internal kernel review list <[email protected]> Cc: [email protected] Cc: [email protected] Cc: <[email protected]> # v3.4+ Reviewed-by: Maaz Mombasawala <[email protected]> Reviewed-by: Martin Krastev <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions