Re: [PATCH v2 1/3] vt: avoid a VLA in the unicode screen scroll function

Greg Kroah-Hartman <[email protected]> Sat, 21 Jul 2018 09:20:43 +0200
Newsgroups org.kernel.vger.linux-console,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On Thu, Jul 19, 2018 at 12:05:25AM -0400, Nicolas Pitre wrote:
> 
> The nr argument is typically small: most often nr == 1. However this
> could be abused with a very large explicit scroll in a resized screen.
> Make the code scroll lines by performing an array rotation operation to
> avoid the need for a large temporary space.
> 
> Requested-by: Kees Cook <[email protected]>
> Suggested-by: Adam Borowski <[email protected]>
> Signed-off-by: Nicolas Pitre <[email protected]>

I've now applied this v2 of the patch, thanks for this.

greg k-h