diff options
| author | Xiaomeng Tong <[email protected]> | 2022-03-14 12:29:21 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-03-18 13:35:01 +0000 |
| commit | b31c41339f4f8a833cb9dc509f87aab6a159ffe4 (patch) | |
| tree | d7c026b19d3de366b23647c0150a687d550faadb /tools/bpf/bpftool/prog.c | |
| parent | serial: 8250: fix XOFF/XON sending when DMA is used (diff) | |
| download | kernel-b31c41339f4f8a833cb9dc509f87aab6a159ffe4.tar.gz kernel-b31c41339f4f8a833cb9dc509f87aab6a159ffe4.zip | |
vt_ioctl: fix potential spectre v1 in VT_DISALLOCATE
In VT_ACTIVATE an almost identical code path has been patched
with array_index_nospec. In the VT_DISALLOCATE path, the arg is
the user input from a system call argument and lately used as a index
for vc_cons[index].d access, which can be reached through path like
vt_disallocate->vc_busy or vt_disallocate->vc_deallocate.
For consistency both code paths should have the same mitigations
applied. Also, the code style is adjusted as suggested by Jiri.
Reviewed-by: Jiri Slaby <[email protected]>
Signed-off-by: Xiaomeng Tong <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions
