Re: [PATCH resend] vt: fix potential race in VT_WAITACTIVE handler

From: Antonino A. Daplas
Date: Sun Apr 01 2007 - 19:39:56 EST


On Sun, 2007-04-01 at 14:43 +0200, Michal Januszewski wrote:
> From: Michal Januszewski <spock@xxxxxxxxxx>
>
> On a multiprocessor machine the VT_WAITACTIVE ioctl call may return 0
> if fg_console has already been updated in redraw_screen() but the
> console switch itself hasn't been completed. Fix this by checking
> fg_console in vt_waitactive() with the console sem held.
>
> Signed-off-by: Michal Januszewski <spock@xxxxxxxxxx>
Acked-by: Antonino Daplas <adaplas@xxxxxxx>

Andrew,

Drop the old version I sent to you.

Tony


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/