diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2020-06-29 10:06:26 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-06-29 10:06:26 -0700 |
commit | 2cfa46dadd203eef88cc70131df7a81ebc34b8ff (patch) | |
tree | 22a5ef040f6407cec847249ace82de3b2af0f5ec /include | |
parent | b6509f6a8c4313c068c69785c001451415969e44 (diff) | |
parent | e04ec0de61c1eb9693179093e83ab8ca68a30d08 (diff) | |
download | lwn-2cfa46dadd203eef88cc70131df7a81ebc34b8ff.tar.gz lwn-2cfa46dadd203eef88cc70131df7a81ebc34b8ff.zip |
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
Pull crypto fixes from Herbert Xu:
"This fixes two race conditions, one in padata and one in af_alg"
* 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
padata: upgrade smp_mb__after_atomic to smp_mb in padata_do_serial
crypto: af_alg - fix use-after-free in af_alg_accept() due to bh_lock_sock()
Diffstat (limited to 'include')
-rw-r--r-- | include/crypto/if_alg.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/crypto/if_alg.h b/include/crypto/if_alg.h index 56527c85d122..088c1ded2714 100644 --- a/include/crypto/if_alg.h +++ b/include/crypto/if_alg.h @@ -29,8 +29,8 @@ struct alg_sock { struct sock *parent; - unsigned int refcnt; - unsigned int nokey_refcnt; + atomic_t refcnt; + atomic_t nokey_refcnt; const struct af_alg_type *type; void *private; |