fbcon: Prevent that screen size is smaller than font size
We need to prevent that users configure a screen size which is smaller than the currently selected font size. Otherwise rendering chars on the screen will access memory outside the graphics memory region. This patch adds a new function fbcon_modechange_possible() which implements this check and which later may be extended with other checks if necessary. The new function is called from the FBIOPUT_VSCREENINFO ioctl handler in fbmem.c, which will return -EINVAL if userspace asked for a too small screen size. Signed-off-by:Helge Deller <deller@gmx.de> Reviewed-by:
Geert Uytterhoeven <geert@linux-m68k.org> Cc: stable@vger.kernel.org # v5.4+
Loading
-
mentioned in commit cc980efa
-
mentioned in commit 2823b388
-
mentioned in commit eddac17c
-
mentioned in commit 7e178536
-
mentioned in commit b5ef90fe
-
mentioned in commit f7f59dec
-
mentioned in commit 66d4f17d
-
mentioned in commit f0e38b94
-
mentioned in commit 24187989
-
mentioned in commit 2983eb27
-
mentioned in commit d873698d
-
mentioned in commit 6ff34f74
-
mentioned in commit 663dbd7e
-
mentioned in commit 06dfbf19
-
mentioned in commit 93d26cbe
-
mentioned in commit 087c78fc
-
mentioned in commit 797d8203
-
mentioned in commit bc575a1e
-
mentioned in commit 73394ab5
Please sign in to comment