diff options
author | Jan H. Schönherr <jschoenh@amazon.de> | 2017-09-04 17:00:50 +0300 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2017-09-04 17:00:50 +0300 |
commit | b9a58de545858ac9ee67745cdea6d94cc322938e (patch) | |
tree | 3bffbb1a4cad0c988e36620e9934421bb031d6c5 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 58ec01cebafd4b9fc039c12c744013e9c71ec802 (diff) | |
download | linux-b9a58de545858ac9ee67745cdea6d94cc322938e.tar.xz |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions