summaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2019-04-10 13:49:11 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-07-03 14:13:43 +0300
commitfac9c64326dd2176d59a97a7046b34de3edce2f9 (patch)
tree5b7d1d5e6d37fe279243d7da83b14d29555e57d3 /lib/mpi/mpiutil.c
parentbb3fb093b41f10315e93ca2974164243958a6f51 (diff)
downloadlinux-fac9c64326dd2176d59a97a7046b34de3edce2f9.tar.xz
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 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions