Skip to contentSkip to conversation

vgacon: Prevent faulty bootparams.screeninfo from causing harm

PATCH Bartlomiej Zolnierkiewicz 1 participant 1 message Sep 4, 2017 Framebuffer layer

lore
Share & tools
lore
#0 lore raw
Quoted 7 lines · Jan H. Schönherr

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.

Patch queued for 4.14, thanks.

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics