aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorMarc Kleine-Budde <[email protected]>2023-09-29 10:23:47 +0200
committerMarc Kleine-Budde <[email protected]>2023-10-05 21:34:13 +0200
commit6411959c10fe917288cbb1038886999148560057 (patch)
tree5569cd7fa8f9cbce1ae030fd35508c46f60c1e1a /tools/testing/selftests/bpf/prog_tests/autoload.c
parentf0e0c809c0be05fe865b9ac128ef3ee35c276021 (diff)
can: dev: can_put_echo_skb(): don't crash kernel if can_priv::echo_skb is accessed out of bounds
If the "struct can_priv::echoo_skb" is accessed out of bounds, this would cause a kernel crash. Instead, issue a meaningful warning message and return with an error. Fixes: a6e4bc530403 ("can: make the number of echo skb's configurable") Link: https://lore.kernel.org/all/20231005-can-dev-fix-can-restart-v2-5-91b5c1fd922c@pengutronix.de Reviewed-by: Vincent Mailhol <[email protected]> Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions