[Devel] [PATCH vz7 1/2] tty/vt: use kvmalloc for screenbuffer allocation

Andrey Ryabinin aryabinin at virtuozzo.com
Tue May 8 16:18:21 MSK 2018



On 05/08/2018 03:27 PM, Oleg Babin wrote:
> Console driver allocates a screenbuffer with kmalloc(). The
> size of the buffer can be up to 32768 bytes which is the 3rd
> memory order.
> 
> Use kvmalloc() for screenbuffer allocation to fallback to vmalloc()
> in case of high order page is not available at the moment.
> 
> https://jira.sw.ru/browse/HCI-53
> Signed-off-by: Oleg Babin <obabin at virtuozzo.com>

Reviewed-by: Andrey Ryabinin <aryabinin at virtuozzo.com>

In addition to this will 32b2921e6a7461fe63b71217067a6cf4bddb132f as well,
otherwise it's become too easy for userspace to consume gigabytes of vmalloc.


More information about the Devel mailing list