Skip to content

Commit cc56aaf

Browse files
committed
aarch: add UBSAN instrumented objects
Add examples/cmdline.patch objects from UBSAN enabled kernel. $ git describe HEAD v6.17-rc4-201-gd69eb204c255 $ gcc --version gcc (GCC) 14.3.1 20250617 (Red Hat 14.3.1-2) The kernel config was based on: - 6.12.0-125.el10.aarch64 - olddefconfig - CONFIG_LIVEPATCH=y - CONFIG_ARCH_HAS_UBSAN=y - CONFIG_UBSAN=y - # CONFIG_UBSAN_TRAP is not set - CONFIG_CC_HAS_UBSAN_BOUNDS_STRICT=y - CONFIG_UBSAN_BOUNDS=y - CONFIG_UBSAN_BOUNDS_STRICT=y - CONFIG_UBSAN_SHIFT=y - CONFIG_UBSAN_DIV_ZERO=y - CONFIG_UBSAN_UNREACHABLE=y - CONFIG_UBSAN_BOOL=y - CONFIG_UBSAN_ENUM=y - CONFIG_UBSAN_ALIGNMENT=y - # CONFIG_TEST_UBSAN is not set - # CONFIG_UBSAN_KVM_EL2 is not set Signed-off-by: Joe Lawrence <[email protected]>
1 parent a3499e7 commit cc56aaf

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

aarch64/cmdline-ubsan.ORIG.o

4.51 KB
Binary file not shown.

aarch64/cmdline-ubsan.PATCHED.o

4.63 KB
Binary file not shown.

aarch64/cmdline-ubsan.test

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
source $KPATCH_TEST_LIBRARY
3+
4+
# $ nm cmdline-ubsan.OUTPUT.o | grep -i " t "
5+
# 0000000000000008 t cmdline_proc_show
6+
7+
assert_num_funcs 1

0 commit comments

Comments
 (0)