Re: Nasty memory scribble in console.c

Martin Mares (mj@albireo.ucw.cz)
Mon, 20 Jul 1998 12:18:14 +0200


> I've found a nasty bug in console.c yesterday. My system oopsed during boot,
> while running SVGATextMode. The oops happened in kill_pg_info, and ebx
> contained 0x07200720 (twice video_erase_char) instead of a pointer to a
> process structure. It turns out that this bit in vc_resize
>
> if (scr_end > nl)
> scr_memsetw((void *) nl, video_erase_char, scr_end - nl);
>
> makes no sense if vgacon is used, because scr_end will point to VGA memory
> and nl points to kmalloced memory. The patch below corrects the problem.

Thanks a lot (I was just going to debug the resize code ;-]).

Including it in my console changes.

Have a nice fortnight

-- 
Martin `MJ' Mares   <mj@ucw.cz>   http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
"return(ENOTOBACCO); /* Read on an empty pipe */"

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html