diff options
| author | Jani Nikula <[email protected]> | 2021-12-22 10:16:54 +0200 |
|---|---|---|
| committer | Jani Nikula <[email protected]> | 2021-12-23 12:05:42 +0200 |
| commit | 980f42e7d57464af190d05b9cc0bc21846734f48 (patch) | |
| tree | 6110f89a827cac9b965bd0e02d58b0c195c40fc5 /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | 825ca9ed1c9f5516b30292bb1c7ab648c2a01b92 (diff) | |
drm/i915/bios: fix slab-out-of-bounds access
If VBT size is not a multiple of 4, the last 4-byte store will be out of
bounds of the allocated buffer. Spotted with KASAN. Round up the
allocation size.
v2: Use round_up() intead of roundup() as it's a power of 2 (Thomas)
Reported-by: Thomas Hellström <[email protected]>
Fixes: a36e7dc0af1c ("drm/i915/dg1: Read OPROM via SPI controller")
Cc: Clint Taylor <[email protected]>
Cc: Lucas De Marchi <[email protected]>
Reviewed-by: Thomas Hellström <[email protected]>
Signed-off-by: Jani Nikula <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions