diff options
| author | Will Deacon <[email protected]> | 2019-04-10 10:49:11 +0000 |
|---|---|---|
| committer | Will Deacon <[email protected]> | 2019-04-26 12:57:49 +0000 |
| commit | 8e4e0ac02b449297b86498ac24db5786ddd9f647 (patch) | |
| tree | fb89e32a00cffd6f64c652571bd51aa783472c4a /lib/test_stackinit.c | |
| parent | arm64: futex: Bound number of LDXR/STXR loops in FUTEX_WAKE_OP (diff) | |
| download | kernel-8e4e0ac02b449297b86498ac24db5786ddd9f647.tar.gz kernel-8e4e0ac02b449297b86498ac24db5786ddd9f647.zip | |
arm64: futex: Avoid copying out uninitialised stack in failed cmpxchg()
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 <[email protected]>
Diffstat (limited to 'lib/test_stackinit.c')
0 files changed, 0 insertions, 0 deletions
