]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
misc: kgdbts: fix out-of-bounds access in function param_set_kgdbts_var
authorYoung Xiao <YangX92@hotmail.com>
Fri, 12 Apr 2019 07:45:06 +0000 (15:45 +0800)
committerDaniel Thompson <daniel.thompson@linaro.org>
Sun, 12 May 2019 08:50:23 +0000 (09:50 +0100)
commit976643af4ec6d9b4dd45d0c5dd3369c9a92ada07
treef4484ea0710e544435e18959b8802d3befa3b39e
parent9b555c4d784c468b4167eef9ab621b5203e4f479
misc: kgdbts: fix out-of-bounds access in function param_set_kgdbts_var

There is an out-of-bounds access to "config[len - 1]" array when the
variable "len" is zero.

See commit dada6a43b040 ("kgdboc: fix KASAN global-out-of-bounds bug
in param_set_kgdboc_var()") for details.

Signed-off-by: Young Xiao <YangX92@hotmail.com>
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
drivers/misc/kgdbts.c