aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/net/af_unix/unix_connect.c
diff options
context:
space:
mode:
authorBastien Curutchet <bastien.curutchet@bootlin.com>2024-07-11 10:18:37 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2024-07-11 17:48:54 +0200
commit16198eef11c1929374381d7f6271b4bf6aa44615 (patch)
tree0f631006be8d9c0107dcfcccf79d1d027102b5e3 /tools/testing/selftests/net/af_unix/unix_connect.c
parent63d20a94f24fc1cbaf44d0e7c0e0a8077fde0aef (diff)
mmc: davinci_mmc: Prevent transmitted data size from exceeding sgm's length
No check is done on the size of the data to be transmiited. This causes a kernel panic when this size exceeds the sg_miter's length. Limit the number of transmitted bytes to sgm->length. Cc: stable@vger.kernel.org Fixes: ed01d210fd91 ("mmc: davinci_mmc: Use sg_miter for PIO") Signed-off-by: Bastien Curutchet <bastien.curutchet@bootlin.com> Link: https://lore.kernel.org/r/20240711081838.47256-2-bastien.curutchet@bootlin.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'tools/testing/selftests/net/af_unix/unix_connect.c')
0 files changed, 0 insertions, 0 deletions