Helge Deller
d78bd6cc68
fbcon: Fix null-ptr-deref in soft_cursor
syzbot repored this bug in the softcursor code:
BUG: KASAN: null-ptr-deref in soft_cursor+0x384/0x6b4 drivers/video/fbdev/core/softcursor.c:70
Read of size 16 at addr 0000000000000200 by task kworker/u4:1/12
CPU: 0 PID: 12 Comm: kworker/u4:1 Not tainted 6.4.0-rc3-syzkaller-geb0f1697d729 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
Workqueue: events_power_efficient fb_flashcursor
Call trace:
dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:233
show_stack+0x2c/0x44 arch/arm64/kernel/stacktrace.c:240
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106
print_report+0xe4/0x514 mm/kasan/report.c:465
kasan_report+0xd4/0x130 mm/kasan/report.c:572
kasan_check_range+0x264/0x2a4 mm/kasan/generic.c:187
__asan_memcpy+0x3c/0x84 mm/kasan/shadow.c:105
soft_cursor+0x384/0x6b4 drivers/video/fbdev/core/softcursor.c:70
bit_cursor+0x113c/0x1a64 drivers/video/fbdev/core/bitblit.c:377
fb_flashcursor+0x35c/0x54c drivers/video/fbdev/core/fbcon.c:380
process_one_work+0x788/0x12d4 kernel/workqueue.c:2405
worker_thread+0x8e0/0xfe8 kernel/workqueue.c:2552
kthread+0x288/0x310 kernel/kthread.c:379
ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:853
This fix let bit_cursor() bail out early when a font bitmap
isn't available yet.
Signed-off-by: Helge Deller <deller@gmx.de>
Reported-by: syzbot+d910bd780e6efac35869@syzkaller.appspotmail.com
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Cc: stable@kernel.org
2023-05-27 19:18:59 +02:00
..
2023-05-20 07:02:12 +02:00
2023-05-27 19:18:59 +02:00
2023-03-16 16:18:17 +01:00
2023-05-20 07:02:12 +02:00
2023-03-16 16:18:16 +01:00
2022-11-16 13:26:25 +01:00
2023-05-27 08:18:18 +02:00
2023-04-24 11:48:30 +02:00
2023-04-24 11:48:33 +02:00
2023-03-16 16:18:16 +01:00
2023-04-24 11:48:31 +02:00
2023-05-19 16:10:39 +02:00
2023-01-09 09:57:51 +01:00
2022-11-16 13:26:25 +01:00
2022-11-24 11:05:43 +10:00
2023-04-05 19:42:46 -07:00
2023-04-24 11:48:33 +02:00
2023-05-11 15:22:15 +02:00
2021-02-24 13:38:31 -08:00
2023-03-16 16:18:17 +01:00
2022-07-18 07:54:17 +02:00
2023-05-11 15:22:15 +02:00
2022-11-16 13:26:25 +01:00
2022-11-16 13:26:25 +01:00
2022-07-18 07:56:18 +02:00
2023-05-11 15:22:15 +02:00
2022-06-20 20:19:50 +02:00
2022-02-16 10:54:42 +01:00
2023-03-16 16:18:17 +01:00
2022-05-03 16:04:22 +02:00
2023-03-16 16:18:17 +01:00
2022-11-16 13:26:25 +01:00
2023-04-24 11:48:29 +02:00
2023-04-24 11:48:29 +02:00
2023-05-11 15:22:15 +02:00
2023-02-28 09:20:04 +01:00
2022-11-16 13:26:25 +01:00
2023-04-24 11:48:29 +02:00
2023-04-24 11:48:29 +02:00
2023-05-11 15:22:15 +02:00
2022-11-24 11:05:43 +10:00
2023-04-24 11:48:29 +02:00
2022-07-18 07:54:20 +02:00
2023-04-24 11:48:29 +02:00
2023-04-24 11:48:29 +02:00
2023-04-24 11:48:29 +02:00
2022-07-18 07:54:20 +02:00
2023-04-24 11:48:29 +02:00
2023-05-11 15:22:15 +02:00
2023-04-24 11:48:29 +02:00
2023-04-24 11:48:30 +02:00
2023-04-24 11:48:30 +02:00
2022-11-16 13:26:25 +01:00
2023-04-24 11:48:30 +02:00
2023-05-11 15:22:16 +02:00
2023-04-24 11:48:30 +02:00
2023-05-11 15:22:16 +02:00
2023-04-05 19:42:46 -07:00
2022-11-16 13:26:25 +01:00
2023-05-27 19:14:26 +02:00
2023-04-24 11:48:30 +02:00
2023-05-20 07:02:12 +02:00
2023-04-24 11:48:30 +02:00
2023-05-11 15:22:16 +02:00
2023-02-01 17:23:38 +01:00
2023-05-11 15:22:16 +02:00
2023-04-24 11:48:30 +02:00
2023-04-24 11:48:31 +02:00
2022-11-16 13:26:25 +01:00
2023-04-24 11:48:31 +02:00
2023-04-24 11:48:31 +02:00
2023-05-11 15:22:16 +02:00
2023-05-11 15:22:16 +02:00
2022-12-14 20:01:50 +01:00
2022-11-16 13:26:25 +01:00
2023-04-24 11:48:33 +02:00
2022-11-16 13:26:25 +01:00
2023-04-24 11:48:31 +02:00
2022-04-19 16:29:03 +02:00
2023-04-24 11:48:31 +02:00
2023-04-24 11:48:31 +02:00
2022-07-18 07:54:20 +02:00
2023-04-24 11:48:31 +02:00
2023-04-24 11:48:32 +02:00
2022-11-16 13:26:25 +01:00
2023-05-11 15:22:16 +02:00
2020-09-25 16:34:50 +02:00
2023-04-24 11:48:32 +02:00
2023-04-24 11:48:32 +02:00
2023-04-24 11:48:32 +02:00
2022-11-16 13:26:25 +01:00
2023-04-24 11:48:32 +02:00
2022-11-16 13:26:25 +01:00
2022-12-14 20:01:50 +01:00
2023-05-27 08:18:18 +02:00
2022-11-16 13:26:25 +01:00
2022-06-04 15:47:03 +02:00
2023-05-20 22:48:46 +02:00
2022-11-16 13:26:25 +01:00
2022-08-24 22:06:15 +02:00
2022-11-16 13:26:25 +01:00
2023-04-24 11:48:32 +02:00
2022-11-16 13:26:25 +01:00
2023-03-14 18:49:39 +01:00
2022-11-16 13:26:25 +01:00
2023-05-20 21:12:07 +02:00
2023-04-24 11:48:32 +02:00
2023-05-11 15:22:16 +02:00
2023-04-24 11:48:32 +02:00
2023-05-11 15:22:17 +02:00
2023-04-24 11:48:32 +02:00
2023-04-24 11:48:33 +02:00
2022-11-16 13:26:25 +01:00
2023-04-27 16:36:55 -07:00
2023-04-27 16:36:55 -07:00
2023-01-12 17:02:20 -06:00
2023-04-24 11:48:33 +02:00