ANDROID: 16K: Fix __MAP_NO_COMPAT overflow
do_mmap() expects a 32-bit flag. Use the highest bit to avoid potential future conflicts from upstream. Bug: 383389337 Bug: 329210993 Bug: 315325080 Bug: 302403436 Test: tools/bazel run //common-modules/virtual-device:virtual_device_i686_dist Change-Id: I30c1213a2c640e1d4040c208353239ac3c04fbd2 Signed-off-by: Kalesh Singh <kaleshsingh@google.com>
This commit is contained in:
committed by
Carlos Llamas
parent
36157a52cd
commit
eb54f19663
@@ -100,7 +100,7 @@ static __always_inline unsigned __page_shift(void)
|
||||
* in ___filemap_fixup()
|
||||
*/
|
||||
#define __VM_NO_COMPAT (_AC(1,ULL) << 63)
|
||||
#define __MAP_NO_COMPAT (_AC(1,ULL) << 63)
|
||||
#define __MAP_NO_COMPAT (_AC(1,UL) << 31)
|
||||
|
||||
/*
|
||||
* Conditional page-alignment based on mmap flags
|
||||
|
||||
Reference in New Issue
Block a user