Files
android_kernel_xiaomi_sm8450/arch/arm64/include/asm
Nick Desaulniers 82cd588052 arm64: avoid overflow in VA_START and PAGE_OFFSET
The bitmask used to define these values produces overflow, as seen by
this compiler warning:

arch/arm64/kernel/head.S:47:8: warning:
      integer overflow in preprocessor expression
  #elif (PAGE_OFFSET & 0x1fffff) != 0
         ^~~~~~~~~~~
arch/arm64/include/asm/memory.h:52:46: note:
      expanded from macro 'PAGE_OFFSET'
  #define PAGE_OFFSET             (UL(0xffffffffffffffff) << (VA_BITS -
1))
                                      ~~~~~~~~~~~~~~~~~~  ^

It would be preferrable to use GENMASK_ULL() instead, but it's not set
up to be used from assembly (the UL() macro token pastes UL suffixes
when not included in assembly sources).

Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Suggested-by: Yury Norov <ynorov@caviumnetworks.com>
Suggested-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
2017-08-04 15:06:35 +01:00
..
2014-04-18 11:40:33 +02:00
2017-07-20 12:31:04 +02:00
2017-03-20 16:17:02 +00:00
2012-09-17 13:42:21 +01:00
2016-09-09 11:41:13 +01:00
2016-11-07 18:15:21 +00:00
2014-11-05 09:03:25 +01:00
2017-07-10 16:32:36 -07:00
2017-03-28 18:23:23 -04:00
2012-09-17 13:42:04 +01:00
2016-03-04 18:19:17 +00:00
2017-02-06 19:00:23 +00:00
2012-09-17 13:41:56 +01:00
2016-11-16 18:05:10 +00:00
2015-05-19 15:27:42 +01:00
2014-11-28 10:24:59 +00:00
2014-07-10 11:06:00 +01:00
2016-08-25 18:00:29 +01:00
2017-04-17 12:52:22 -04:00
2017-04-17 12:52:22 -04:00
2016-11-07 18:15:21 +00:00
2012-09-17 13:42:09 +01:00