linux/drivers/video/console
Jan H. Schönherr b9a58de545 vgacon: Prevent faulty bootparams.screeninfo from causing harm
If a zero for the number of colums or rows manages to slip through,
gotoxy() will underflow vc->vc_pos, causing the next action on the
referenced memory to end with a page fault.

Make the check in vgacon_startup() more pessimistic to prevent that.

Signed-off-by: Jan H. Schönherr <jschoenh@amazon.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
2017-09-04 16:00:50 +02:00
..
dummycon.c tty: vt, remove consw->con_bmove 2016-06-25 09:04:48 -07:00
Kconfig fbcon: Make fbcon a built-time depency for fbdev 2017-08-01 17:32:07 +02:00
Makefile fbcon: Make fbcon a built-time depency for fbdev 2017-08-01 17:32:07 +02:00
mdacon.c mdacon: replace MDA_ADDR macro by inline function 2017-06-14 17:40:56 +02:00
newport_con.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
sticon.c tty: vt, cleanup and document con_scroll 2016-10-27 16:37:43 +02:00
sticore.c video: move fbdev to drivers/video/fbdev 2014-04-17 08:10:19 +03:00
vgacon.c vgacon: Prevent faulty bootparams.screeninfo from causing harm 2017-09-04 16:00:50 +02:00