summaryrefslogtreecommitdiffstats
path: root/samples/bpf/sockex3_user.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2018-05-29 16:11:28 +0300
committerMimi Zohar <zohar@linux.vnet.ibm.com>2018-05-31 10:13:24 -0400
commita41d80acfa2764e9b1ce49aa303a263e609d91f7 (patch)
tree245f661c84f72a7f4dcb787f798c771971ac79ea /samples/bpf/sockex3_user.c
parent72acd64df4561593d2ec3227b4aca9b0d7ded50e (diff)
downloadlinux-stable-a41d80acfa2764e9b1ce49aa303a263e609d91f7.tar.gz
linux-stable-a41d80acfa2764e9b1ce49aa303a263e609d91f7.tar.bz2
linux-stable-a41d80acfa2764e9b1ce49aa303a263e609d91f7.zip
EVM: prevent array underflow in evm_write_xattrs()
If the user sets xattr->name[0] to NUL then we would read one character before the start of the array. This bug seems harmless as far as I can see but perhaps it would trigger a warning in KASAN. Fixes: fa516b66a1bf ("EVM: Allow runtime modification of the set of verified xattrs") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Diffstat (limited to 'samples/bpf/sockex3_user.c')
0 files changed, 0 insertions, 0 deletions