Helge Deller
af93e82197
fbcon: Prevent that screen size is smaller than font size
...
commit e64242caef upstream.
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+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2022-07-12 16:30:47 +02:00
..
2022-06-14 18:11:59 +02:00
2021-08-08 09:04:07 +02:00
2022-03-16 13:21:46 +01:00
2022-06-14 18:12:03 +02:00
2021-09-15 09:47:27 +02:00
2022-05-09 09:03:28 +02:00
2022-05-25 09:14:34 +02:00
2022-06-14 18:11:24 +02:00
2022-03-19 13:40:15 +01:00
2021-07-14 16:53:48 +02:00
2022-04-15 14:18:01 +02:00
2022-05-25 09:14:38 +02:00
2021-09-15 09:47:39 +02:00
2022-06-14 18:11:34 +02:00
2021-09-26 14:07:10 +02:00
2021-09-30 10:09:25 +02:00
2021-11-17 09:48:25 +01:00
2022-06-16 13:23:32 +02:00
2022-06-22 14:11:12 +02:00
2022-06-25 12:44:35 +02:00
2021-08-18 08:57:03 +02:00
2022-07-07 17:36:49 +02:00
2022-05-25 09:14:38 +02:00
2022-06-14 18:11:33 +02:00
2021-10-27 09:54:27 +02:00
2021-09-15 09:47:33 +02:00
2022-04-27 13:50:45 +02:00
2022-07-12 16:30:47 +02:00
2021-11-17 09:48:20 +01:00
2022-01-20 09:19:17 +01:00
2021-09-12 08:56:38 +02:00
2022-02-01 17:24:39 +01:00
2022-02-23 11:59:56 +01:00
2022-01-27 09:19:43 +01:00
2021-09-15 09:47:26 +02:00
2021-09-22 12:26:37 +02:00
2022-06-22 14:11:12 +02:00
2022-03-23 09:12:07 +01:00
2021-08-18 08:57:01 +02:00
2021-12-01 09:23:35 +01:00
2022-04-15 14:18:32 +02:00
2021-08-18 08:57:02 +02:00
2022-05-09 09:03:22 +02:00
2022-07-02 16:28:50 +02:00
2021-12-08 09:01:10 +01:00
2021-09-26 14:07:05 +02:00
2021-11-17 09:48:17 +01:00
2021-09-22 12:26:20 +02:00
2021-11-17 09:48:16 +01:00
2022-06-14 18:11:42 +02:00
2022-05-25 09:14:32 +02:00
2021-10-09 14:39:49 +02:00
2022-01-05 12:37:44 +01:00
2021-08-26 08:36:22 -04:00
2021-09-22 12:26:43 +02:00
2022-06-22 14:11:17 +02:00
2022-05-15 19:54:46 +02:00
2021-08-18 08:57:03 +02:00
2022-05-18 09:47:24 +02:00
2022-04-15 14:17:56 +02:00
2022-04-15 14:18:35 +02:00
2022-06-14 18:12:02 +02:00
2021-12-08 09:01:08 +01:00
2021-09-03 10:08:12 +02:00
2021-09-03 10:08:12 +02:00
2021-06-30 08:47:55 -04:00
2021-09-22 12:26:43 +02:00
2021-09-26 14:07:05 +02:00
2022-04-15 14:18:15 +02:00
2022-01-20 09:19:18 +01:00
2022-06-22 14:11:16 +02:00
2022-02-05 12:35:36 +01:00
2022-02-05 12:35:36 +01:00
2022-06-14 18:11:24 +02:00
2022-06-22 14:11:19 +02:00
2022-06-29 08:58:45 +02:00
2021-06-30 08:47:52 -04:00
2021-11-17 09:48:44 +01:00
2022-04-27 13:50:48 +02:00
2022-06-06 08:33:48 +02:00
2022-06-22 14:11:16 +02:00
2021-09-22 12:26:41 +02:00
2022-05-25 09:14:38 +02:00
2022-02-16 12:52:50 +01:00
2022-03-02 11:41:04 +01:00
2021-09-26 14:07:10 +02:00
2021-09-16 12:56:13 +02:00
2022-06-22 14:11:15 +02:00
2022-03-08 19:07:48 +01:00
2021-07-14 16:53:08 +02:00
2022-03-16 13:21:48 +01:00
2021-12-29 12:23:34 +01:00
2022-03-16 13:21:48 +01:00
2021-12-14 14:49:02 +01:00