aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/unix_bpf.c
diff options
context:
space:
mode:
authorAntonio Borneo <[email protected]>2023-11-07 11:05:20 +0000
committerLinus Walleij <[email protected]>2023-11-14 13:41:48 +0000
commitedd48fd9d45370d6c8ba0dd834fcc51ff688cc87 (patch)
tree9a2e82b83425bbd40d05152bc26278d490fb3e1c /net/unix/unix_bpf.c
parentpinctrl: stm32: Add check for devm_kcalloc (diff)
downloadkernel-edd48fd9d45370d6c8ba0dd834fcc51ff688cc87.tar.gz
kernel-edd48fd9d45370d6c8ba0dd834fcc51ff688cc87.zip
pinctrl: stm32: fix array read out of bound
The existing code does not verify if the "tentative" index exceeds the size of the array, causing out of bound read. Issue identified with kasan. Check the index before using it. Signed-off-by: Antonio Borneo <[email protected]> Fixes: 32c170ff15b0 ("pinctrl: stm32: set default gpio line names using pin names") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions