aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2022-06-02 11:02:18 +0000
committerLinus Torvalds <[email protected]>2022-06-02 15:40:56 +0000
commit690b2549b19563ec5ad53e5c82f6a944d910086e (patch)
tree59d93f4cfe6a688fbf9455c88ad2ec776955c90b /tools/bpf/bpftool/prog.c
parentassoc_array: Fix BUG_ON during garbage collect (diff)
downloadkernel-690b2549b19563ec5ad53e5c82f6a944d910086e.tar.gz
kernel-690b2549b19563ec5ad53e5c82f6a944d910086e.zip
i2c: ismt: prevent memory corruption in ismt_access()
The "data->block[0]" variable comes from the user and is a number between 0-255. It needs to be capped to prevent writing beyond the end of dma_buffer[]. Fixes: 5e9a97b1f449 ("i2c: ismt: Adding support for I2C_SMBUS_BLOCK_PROC_CALL") Reported-and-tested-by: Zheyu Ma <[email protected]> Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Mika Westerberg <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions