aboutsummaryrefslogtreecommitdiffstats
path: root/net/tls/tls_main.c
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2017-06-23 01:57:55 +0000
committerDavid S. Miller <[email protected]>2017-06-23 18:10:05 +0000
commit926f38e9744b2ee6d92085c28ebb50744e9e1182 (patch)
tree8bece0c7338621cebdf5978d5ebce396a2309ac2 /net/tls/tls_main.c
parentbpf: possibly avoid extra masking for narrower load in verifier (diff)
downloadkernel-926f38e9744b2ee6d92085c28ebb50744e9e1182.tar.gz
kernel-926f38e9744b2ee6d92085c28ebb50744e9e1182.zip
tcp: fix out-of-bounds access in ULP sysctl
KASAN reports out-of-bound access in proc_dostring() coming from proc_tcp_available_ulp() because in case TCP ULP list is empty the buffer allocated for the response will not have anything printed into it. Set the first byte to zero to avoid strlen() going out-of-bounds. Fixes: 734942cc4ea6 ("tcp: ULP infrastructure") Signed-off-by: Jakub Kicinski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tls/tls_main.c')
0 files changed, 0 insertions, 0 deletions