Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: fa516b6 ("EVM: Allow runtime modification of the set of verified xattrs") Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Mimi Zohar <[email protected]>
- Loading branch information