summaryrefslogtreecommitdiff
path: root/arch/arm64/lib/tishift.S
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2018-05-21 19:44:57 +0300
committerWill Deacon <will.deacon@arm.com>2018-05-21 21:00:36 +0300
commit32c3fa7cdf0c4a3eb8405fc3e13398de019e828b (patch)
treec13d37eb4fc773988d2c37ff555f2f817a66884d /arch/arm64/lib/tishift.S
parent771c577c23bac90597c685971d7297ea00f99d11 (diff)
downloadlinux-32c3fa7cdf0c4a3eb8405fc3e13398de019e828b.tar.xz
arm64: lse: Add early clobbers to some input/output asm operands
For LSE atomics that read and write a register operand, we need to ensure that these operands are annotated as "early clobber" if the register is written before all of the input operands have been consumed. Failure to do so can result in the compiler allocating the same register to both operands, leading to splats such as: Unable to handle kernel paging request at virtual address 11111122222221 [...] x1 : 1111111122222222 x0 : 1111111122222221 Process swapper/0 (pid: 1, stack limit = 0x000000008209f908) Call trace: test_atomic64+0x1360/0x155c where x0 has been allocated as both the value to be stored and also the atomic_t pointer. This patch adds the missing clobbers. Cc: <stable@vger.kernel.org> Cc: Dave Martin <dave.martin@arm.com> Cc: Robin Murphy <robin.murphy@arm.com> Reported-by: Mark Salter <msalter@redhat.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/lib/tishift.S')
0 files changed, 0 insertions, 0 deletions