Re: [PATCH] vc_screen: modify vcs_size() handling in vcs_read()

From: Linus Torvalds
Date: Mon Feb 27 2023 - 15:07:30 EST


On Mon, Feb 27, 2023 at 11:43 AM George Kennedy
<george.kennedy@xxxxxxxxxx> wrote:
>
> Restore the vcs_size() handling in vcs_read() to what
> it had been in previous version.
>
> Suggested-by: Jiri Slaby <jirislaby@xxxxxxxxxx>
> Signed-off-by: George Kennedy <george.kennedy@xxxxxxxxxx>

Please also add a

Fixes: 226fae124b2d ("vc_screen: move load of struct vc_data
pointer in vcs_read() to avoid UAF")

or whatever it was that broke this, so that we have that context to
what the "previous version" actually was.

Linus