CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
37 lines
1.7 KiB
C
37 lines
1.7 KiB
C
// RUN: %clang_cc1 -triple x86_64-linux-gnu -emit-llvm -O2 -fsanitize=kernel-memory -no-enable-noundef-analysis -o - %s | \
|
|
// RUN: FileCheck %s --check-prefix=CLEAN
|
|
// RUN: %clang_cc1 -triple x86_64-linux-gnu -emit-llvm -O2 -fsanitize=kernel-memory -fno-sanitize-memory-param-retval -o - %s | \
|
|
// RUN: FileCheck %s --check-prefixes=NOUNDEF,NOUNDEF_ONLY
|
|
// RUN: %clang_cc1 -triple x86_64-linux-gnu -emit-llvm -O2 -fsanitize=kernel-memory -mllvm -msan-eager-checks -o - %s | \
|
|
// RUN: FileCheck %s --check-prefixes=NOUNDEF,EAGER
|
|
// RUN: %clang_cc1 -triple x86_64-linux-gnu -emit-llvm -O2 -fsanitize=kernel-memory -no-enable-noundef-analysis -fsanitize-memory-param-retval -o - %s | \
|
|
// RUN: FileCheck %s --check-prefixes=CLEAN
|
|
// RUN: %clang_cc1 -triple x86_64-linux-gnu -emit-llvm -O2 -fsanitize=kernel-memory -o - %s | \
|
|
// RUN: FileCheck %s --check-prefixes=NOUNDEF,EAGER
|
|
|
|
void foo();
|
|
|
|
void bar(int x) {
|
|
if (x)
|
|
foo();
|
|
}
|
|
|
|
|
|
// CLEAN: define dso_local void @bar(i32 %x)
|
|
// NOUNDEF: define dso_local void @bar(i32 noundef %x)
|
|
//
|
|
// %param_shadow assignment gets optimized away with -O2, because it is at the beginning of the
|
|
// struct returned by __msan_get_context_state(). Use %param_origin as a sign that the shadow of
|
|
// the first argument is being used.
|
|
//
|
|
// Without noundef analysis, KMSAN emits metadata checks for the function parameter.
|
|
// CLEAN: load i32, ptr %param_origin
|
|
//
|
|
// With noundef analysis enabled, but without eager checks, KMSAN still emits metadata checks,
|
|
// although the parameter is known to be defined.
|
|
// NOUNDEF_ONLY: load i32, ptr %param_origin
|
|
//
|
|
// With noundef analysis and eager checks enabled, KMSAN won't emit metadata checks for function
|
|
// parameters.
|
|
// EAGER-NOT: load i32, ptr %param_origin
|