mm/usercopy: Switch to using lm_alias
authorLaura Abbott <[email protected]>
Tue, 10 Jan 2017 21:35:45 +0000 (13:35 -0800)
committerWill Deacon <[email protected]>
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 <[email protected]>
Tested-by: Mark Rutland <[email protected]>
Acked-by: Kees Cook <[email protected]>
Signed-off-by: Laura Abbott <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
mm/usercopy.c