[PATCH] selinux: KASAN: slab-out-of-bounds in xattr_getsecurity

2018-05-25 Thread Sachin Grover
of the string, it would result in a panic. To fix this, add the actual length of the string to the security context instead of the length passed by the userspace process. Signed-off-by: Sachin Grover <sgro...@codeaurora.org> --- security/selinux/ss/services.c | 2 +- 1 file changed, 1 insertion

[PATCH] selinux: KASAN: slab-out-of-bounds in xattr_getsecurity

2018-05-25 Thread Sachin Grover
of the string, it would result in a panic. To fix this, add the actual length of the string to the security context instead of the length passed by the userspace process. Signed-off-by: Sachin Grover --- security/selinux/ss/services.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git