aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/llvm-utils.c
diff options
context:
space:
mode:
authorHerbert Xu <[email protected]>2016-11-21 07:34:00 +0000
committerHerbert Xu <[email protected]>2016-11-22 07:02:24 +0000
commit8acf7a106326eb94e143552de81f34308149121c (patch)
tree4d96cad9eef7f8f4eb502c3766cfa03f813460e3 /tools/perf/util/llvm-utils.c
parentcrypto: algif_hash - Fix NULL hash crash with shash (diff)
downloadkernel-8acf7a106326eb94e143552de81f34308149121c.tar.gz
kernel-8acf7a106326eb94e143552de81f34308149121c.zip
crypto: algif_hash - Fix result clobbering in recvmsg
Recently an init call was added to hash_recvmsg so as to reset the hash state in case a sendmsg call was never made. Unfortunately this ended up clobbering the result if the previous sendmsg was done with a MSG_MORE flag. This patch fixes it by excluding that case when we make the init call. Fixes: a8348bca2944 ("algif_hash - Fix NULL hash crash with shash") Reported-by: Patrick Steinhardt <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'tools/perf/util/llvm-utils.c')
0 files changed, 0 insertions, 0 deletions