summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorWang Zihan <jiyu03@qq.com>2026-05-03 03:46:15 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-07-31 15:17:23 +0200
commite62745dd1172e475c101de3f11e39bf192d35ae5 (patch)
tree985615e161d63d659c6de815ad7ee10e02e20678 /tools/perf/scripts/python
parent8200871327d1bd4c08daf248a8693a3093982fa4 (diff)
vt: add mode validation in vt_setactivate
The vt_setactivate() function accepts any mode value without validation, while VT_SETMODE correctly rejects invalid values (only VT_AUTO and VT_PROCESS are valid). This allows users to set invalid mode values (e.g., 0xFF) which bypasses VT_PROCESS signal handling and causes undefined VT switching behavior. Fix this by adding the same validation as VT_SETMODE. Signed-off-by: Wang Zihan <jiyu03@qq.com> Link: https://patch.msgid.link/tencent_6A7DAE2E1288663D23AACBE2950D6E535007@qq.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions