Re: [RFC PATCH 1/5] kasan: do not open-code addr_has_shadow

2019-02-14 Thread Andrew Donnellan
On 15/2/19 11:04 am, Daniel Axtens wrote: We have a couple of places checking for the existence of a shadow mapping for an address by open-coding the inverse of the check in addr_has_shadow. Replace the open-coded versions with the helper. This will be needed in future to allow architectures to

[RFC PATCH 1/5] kasan: do not open-code addr_has_shadow

2019-02-14 Thread Daniel Axtens
We have a couple of places checking for the existence of a shadow mapping for an address by open-coding the inverse of the check in addr_has_shadow. Replace the open-coded versions with the helper. This will be needed in future to allow architectures to override the layout of the shadow mapping.