diff options
| author | Will Deacon <will.deacon@arm.com> | 2019-04-10 11:49:11 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-07-03 13:14:49 +0200 |
| commit | 436869e0cd6dd700a9d93c551d08401fd0a94d40 (patch) | |
| tree | cb29c6f0f60d173797e9e69d034483e211c4e00d /include | |
| parent | ba6340a7297fdb36550fa7800500eadc8278c062 (diff) | |
arm64: futex: Avoid copying out uninitialised stack in failed cmpxchg()
commit 8e4e0ac02b449297b86498ac24db5786ddd9f647 upstream.
Returning an error code from futex_atomic_cmpxchg_inatomic() indicates
that the caller should not make any use of *uval, and should instead act
upon on the value of the error code. Although this is implemented
correctly in our futex code, we needlessly copy uninitialised stack to
*uval in the error case, which can easily be avoided.
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
