• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // FIXME: https://code.google.com/p/address-sanitizer/issues/detail?id=316
2 // XFAIL: android
3 //
4 // Test that kernel area is not sanitized on 32-bit machines.
5 //
6 // RUN: %clangxx_asan %s -o %t
7 // RUN: ASAN_OPTIONS=verbosity=1 %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-%kernel_bits
8 // RUN: ASAN_OPTIONS=verbosity=1:full_address_space=0 %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-%kernel_bits
9 // RUN: ASAN_OPTIONS=verbosity=1:full_address_space=1 %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-kernel-64-bits
10 //
11 // CHECK-kernel-32-bits: || `[0x38000000, 0xbfffffff]` || HighMem    ||
12 // CHECK-kernel-32-bits: || `[0x27000000, 0x37ffffff]` || HighShadow ||
13 // CHECK-kernel-32-bits: || `[0x24000000, 0x26ffffff]` || ShadowGap  ||
14 //
15 // CHECK-kernel-64-bits: || `[0x40000000, 0xffffffff]` || HighMem    ||
16 // CHECK-kernel-64-bits: || `[0x28000000, 0x3fffffff]` || HighShadow ||
17 // CHECK-kernel-64-bits: || `[0x24000000, 0x27ffffff]` || ShadowGap  ||
18 //
19 // REQUIRES: asan-32-bits
20 
main()21 int main() {
22   return 0;
23 }
24 
25