Manfred Schlaegl
c18638e37d
fbdev: fbmem: fix memory access if logo is bigger than the screen
[ Upstream commit a5399db139 ]
There is no clipping on the x or y axis for logos larger that the framebuffer
size. Therefore: a logo bigger than screen size leads to invalid memory access:
[ 1.254664] Backtrace:
[ 1.254728] [<c02714e0>] (cfb_imageblit) from [<c026184c>] (fb_show_logo+0x620/0x684)
[ 1.254763] r10:00000003 r9:00027fd8 r8:c6a40000 r7:c6a36e50 r6:00000000 r5:c06b81e4
[ 1.254774] r4:c6a3e800
[ 1.254810] [<c026122c>] (fb_show_logo) from [<c026c1e4>] (fbcon_switch+0x3fc/0x46c)
[ 1.254842] r10:c6a3e824 r9:c6a3e800 r8:00000000 r7:c6a0c000 r6:c070b014 r5:c6a3e800
[ 1.254852] r4:c6808c00
[ 1.254889] [<c026bde8>] (fbcon_switch) from [<c029c8f8>] (redraw_screen+0xf0/0x1e8)
[ 1.254918] r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:c070d5a0 r5:00000080
[ 1.254928] r4:c6808c00
[ 1.254961] [<c029c808>] (redraw_screen) from [<c029d264>] (do_bind_con_driver+0x194/0x2e4)
[ 1.254991] r9:00000000 r8:00000000 r7:00000014 r6:c070d5a0 r5:c070d5a0 r4:c070d5a0
So prevent displaying a logo bigger than screen size and avoid invalid
memory access.
Signed-off-by: Manfred Schlaegl <manfred.schlaegl@ginzinger.com>
Signed-off-by: Martin Kepplinger <martin.kepplinger@ginzinger.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-04-05 22:29:12 +02:00
..
2018-11-21 09:26:00 +01:00
2019-04-05 22:29:12 +02:00
2018-02-22 15:43:55 +01:00
2016-09-27 11:08:15 +03:00
2016-09-07 11:16:05 +03:00
2016-09-27 11:16:35 +03:00
2016-09-27 11:43:24 +03:00
2016-08-30 12:00:15 +03:00
2014-07-01 13:32:30 +03:00
2018-02-25 11:05:44 +01:00
2015-06-03 12:41:50 +03:00
2018-09-26 08:36:32 +02:00
2019-01-23 08:10:55 +01:00
2015-12-15 15:41:23 +02:00
2016-09-27 11:16:35 +03:00
2016-03-03 13:38:29 +02:00
2015-11-06 17:50:42 -08:00
2018-09-26 08:36:32 +02:00
2014-06-24 10:55:13 +03:00
2016-03-09 14:57:51 +01:00
2016-08-30 11:54:23 +03:00
2016-08-11 17:54:54 +03:00
2016-11-03 12:20:14 +02:00
2016-08-11 17:54:54 +03:00
2018-03-22 09:17:48 +01:00
2015-06-23 16:23:30 -07:00
2016-09-27 11:16:35 +03:00
2015-08-25 09:59:45 +02:00
2016-09-27 11:16:35 +03:00
2016-02-26 13:28:35 +02:00
2018-02-22 15:43:49 +01:00
2016-02-26 13:28:35 +02:00
2014-07-30 14:10:39 +02:00
2017-12-20 10:07:27 +01:00
2015-12-15 15:41:23 +02:00
2014-10-20 16:21:51 +02:00
2014-10-20 16:21:51 +02:00
2014-10-20 16:21:51 +02:00
2016-02-26 13:28:35 +02:00
2016-08-30 12:06:12 +03:00
2016-08-02 19:35:05 -04:00
2014-10-20 16:21:51 +02:00
2015-09-30 10:33:57 +03:00
2016-02-26 13:06:11 +02:00
2016-02-26 13:06:11 +02:00
2014-10-20 16:21:51 +02:00
2014-10-20 16:21:51 +02:00
2014-10-20 16:21:51 +02:00
2014-10-20 16:21:51 +02:00
2014-08-26 12:48:34 +03:00
2019-02-12 19:44:56 +01:00
2014-10-20 16:21:51 +02:00
2017-08-06 18:59:48 -07:00
2015-03-23 14:29:40 +11:00
2017-12-20 10:07:27 +01:00
2014-09-30 13:06:01 +03:00
2016-05-27 15:26:11 -07:00
2018-11-10 07:42:45 -08:00
2016-03-09 14:57:51 +01:00
2014-05-23 13:51:10 +03:00
2014-10-20 16:21:51 +02:00
2015-12-09 12:57:06 +02:00
2016-03-09 14:57:51 +01:00
2019-04-03 06:24:14 +02:00
2014-10-20 16:21:51 +02:00
2015-10-08 12:19:39 +03:00
2016-09-27 11:16:35 +03:00
2016-09-27 11:16:35 +03:00
2014-10-20 16:21:51 +02:00
2015-06-07 15:28:57 +02:00
2016-04-30 14:01:37 -07:00
2016-09-27 11:16:35 +03:00
2016-02-05 16:29:28 -06:00
2016-05-10 11:42:25 +03:00
2016-10-15 09:26:12 -07:00
2014-10-20 16:21:51 +02:00
2016-09-27 11:05:29 +03:00
2016-02-16 14:52:43 +02:00
2016-08-30 11:57:21 +03:00
2016-08-30 11:59:33 +03:00
2016-02-26 12:16:58 +02:00
2015-06-03 12:41:49 +03:00
2016-03-09 14:57:51 +01:00
2016-01-29 13:34:07 +02:00
2016-09-27 10:55:02 +03:00
2014-10-20 16:21:51 +02:00
2015-03-23 14:29:40 +11:00
2016-09-27 11:16:35 +03:00
2015-06-03 12:41:52 +03:00
2016-02-26 13:06:11 +02:00
2017-11-15 15:53:11 +01:00
2016-10-18 14:13:37 -07:00
2015-08-10 12:25:43 +03:00
2018-11-10 07:42:43 -08:00
2018-09-26 08:36:32 +02:00
2015-12-15 15:41:24 +02:00
2016-09-27 11:16:35 +03:00
2016-08-11 17:54:55 +03:00
2016-08-11 17:54:55 +03:00
2016-03-09 14:57:51 +01:00
2015-08-25 09:59:45 +02:00
2016-03-09 14:57:51 +01:00
2014-12-05 16:30:25 +00:00
2018-05-30 07:50:35 +02:00
2014-10-20 16:21:51 +02:00
2015-04-07 16:24:15 +03:00
2014-12-18 20:28:33 -08:00
2016-09-27 11:21:36 +03:00
2016-02-26 13:28:35 +02:00
2018-03-24 11:00:21 +01:00
2015-08-07 15:05:01 -07:00
2016-09-27 11:16:35 +03:00
2016-09-27 11:47:37 +03:00
2016-09-27 11:41:30 +03:00
2015-08-10 23:07:05 -04:00
2016-03-03 13:36:51 +02:00
2016-03-03 13:36:51 +02:00
2016-03-03 13:36:51 +02:00
2014-10-20 16:21:51 +02:00
2016-09-27 11:16:35 +03:00
2015-11-10 10:00:09 -08:00
2018-03-24 11:00:21 +01:00
2018-07-03 11:23:16 +02:00
2014-09-30 13:06:01 +03:00
2015-06-16 09:42:11 +03:00
2018-04-13 19:48:10 +02:00
2016-09-27 11:16:35 +03:00
2015-01-13 13:35:04 +02:00
2015-08-25 09:59:45 +02:00
2014-10-20 16:21:51 +02:00
2014-10-20 16:21:51 +02:00
2017-04-21 09:31:21 +02:00
2014-10-20 16:21:51 +02:00