Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vt: Clear selection before changing the font
When changing the console font with ioctl(KDFONTOP) the new font size can be bigger than the previous font. A previous selection may thus now be outside of the new screen size and thus trigger out-of-bounds accesses to graphics memory if the selection is removed in vc_do_resize(). Prevent such out-of-memory accesses by dropping the selection before the various con_font_set() console handlers are called. Reported-by: [email protected] Cc: stable <[email protected]> Tested-by: Khalid Masum <[email protected]> Signed-off-by: Helge Deller <[email protected]> Link: https://lore.kernel.org/r/YuV9apZGNmGfjcor@p100 Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information