On Wed, May 24, 2017 at 10:56:49AM +0100, Mark Rutland wrote: > commit 55de49f9aa17b0b2b144dd2af587177b9aadf429 upstream. > > Our compat swp emulation holds the compat user address in an unsigned > int, which it passes to __user_swpX_asm(). When a 32-bit value is passed > in a register, the upper 32 bits of the register are unknown, and we > must extend the value to 64 bits before we can use it as a base address. > > This patch casts the address to unsigned long to ensure it has been > suitably extended, avoiding the potential issue, and silencing a related > warning from clang. > > Fixes: bd35a4adc413 ("arm64: Port SWP/SWPB emulation support from arm") > Cc: <stable@xxxxxxxxxxxxxxx> # 3.19.x- > Acked-by: Will Deacon <will.deacon@xxxxxxx> > Signed-off-by: Mark Rutland <mark.rutland@xxxxxxx> > Signed-off-by: Catalin Marinas <catalin.marinas@xxxxxxx> > --- > arch/arm64/kernel/armv8_deprecated.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Now applied, thanks. greg k-h