Re: data-race in set_console / vt_ioctl

From: Greg KH
Date: Fri Aug 19 2022 - 03:06:42 EST


On Thu, Aug 18, 2022 at 09:17:00PM -0400, Abhishek Shah wrote:
> Hi all,
>
> We found a data race involving the *vt_dont_switch* variable. Upon further
> investigation, we see that this racing variable controls whether the
> callbacks will be scheduled in the console (see here
> <https://elixir.bootlin.com/linux/v5.18-rc5/source/drivers/tty/vt/vt.c#L3032>),
> but we are not sure of its security implications. Please let us know what
> you think.

Again, any patch that you might have to resolve this would be great, as
that's the easiest thing to review.

thanks,

greg k-h