mm/usercopy: Switch to using lm_alias
authorLaura Abbott <labbott@redhat.com>
Tue, 10 Jan 2017 21:35:45 +0000 (13:35 -0800)
committerWill Deacon <will.deacon@arm.com>
Wed, 11 Jan 2017 13:56:50 +0000 (13:56 +0000)
commit46f6236aa1c48e06b10a2fe0386ac4114b438622
treec935d6d0772a5b4e78bc9e7cf2ff4f6011b67fa2
parent5c6a84a3f4558a6115fef1b59343c7ae56b3abc3
mm/usercopy: Switch to using lm_alias

The usercopy checking code currently calls __va(__pa(...)) to check for
aliases on symbols. Switch to using lm_alias instead.

Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
mm/usercopy.c