summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sched-migration.py
diff options
context:
space:
mode:
authorNicolas Pitre <nico@fluxnic.net>2020-03-29 05:25:11 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-04-23 16:46:30 +0300
commit9a98e7a80f95378c9ee0c644705e3b5aa54745f1 (patch)
tree0cb2689f274fa61f093e60a89f4f1c47b4aca8b3 /tools/perf/scripts/python/sched-migration.py
parent66bb1c9518e623235cbaa7832c919eb4fe586cae (diff)
downloadlinux-9a98e7a80f95378c9ee0c644705e3b5aa54745f1.tar.xz
vt: don't use kmalloc() for the unicode screen buffer
Even if the actual screen size is bounded in vc_do_resize(), the unicode buffer is still a little more than twice the size of the glyph buffer and may exceed MAX_ORDER down the kmalloc() path. This can be triggered from user space. Since there is no point having a physically contiguous buffer here, let's avoid the above issue as well as reducing pressure on high order allocations by using vmalloc() instead. Signed-off-by: Nicolas Pitre <nico@fluxnic.net> Cc: <stable@vger.kernel.org> Acked-by: Sam Ravnborg <sam@ravnborg.org> Link: https://lore.kernel.org/r/nycvar.YSQ.7.76.2003282214210.2671@knanqh.ubzr Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions