Skip to content
Commit 8792f961 authored by Samuel Ortiz's avatar Samuel Ortiz Committed by Linus Torvalds
Browse files

VT ioctl race fix



When calling the RELDISP VT ioctl, we are reading vt_newvt while the
console workqueue could be messing with it (through change_console()).  We
fix this race by taking the console semaphore before reading vt_newvt.

Signed-off-by: default avatarSamuel Ortiz <sameo@openedhand.com>
Acked-by: default avatarAntonino Daplas <adaplas@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 4047727e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment