aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorMike Marciniszyn <[email protected]>2021-10-12 13:55:19 -0400
committerJason Gunthorpe <[email protected]>2021-10-13 13:26:04 -0300
commitd39bf40e55e666b5905fdbd46a0dced030ce87be (patch)
tree5d74bc4459cfbf5e0bda3ce9173be3ef0318c528 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parent1ab52ac1e9bc9391f592c9fa8340a6e3e9c36286 (diff)
IB/qib: Protect from buffer overflow in struct qib_user_sdma_pkt fields
Overflowing either addrlimit or bytes_togo can allow userspace to trigger a buffer overflow of kernel memory. Check for overflows in all the places doing math on user controlled buffers. Fixes: f931551bafe1 ("IB/qib: Add new qib driver for QLogic PCIe InfiniBand adapters") Link: https://lore.kernel.org/r/[email protected] Reported-by: Ilja Van Sprundel <[email protected]> Reviewed-by: Dennis Dalessandro <[email protected]> Signed-off-by: Mike Marciniszyn <[email protected]> Signed-off-by: Dennis Dalessandro <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions