Skip to content

Commit e7b6269

Browse files
committed
ppc64le, s390x, x86_64: add UBSAN instrumented objects
Add examples/cmdline.patch objects from UBSAN enabled kernel. GCC: gcc version 13.0.1 20230221 (Red Hat 13.0.1-0) (GCC) Kernel: v6.2 Kernel config: CONFIG_ARCH_HAS_UBSAN_SANITIZE_ALL=y CONFIG_UBSAN=y # CONFIG_UBSAN_TRAP is not set CONFIG_CC_HAS_UBSAN_BOUNDS=y CONFIG_UBSAN_BOUNDS=y CONFIG_UBSAN_ONLY_BOUNDS=y CONFIG_UBSAN_SHIFT=y CONFIG_UBSAN_DIV_ZERO=y CONFIG_UBSAN_UNREACHABLE=y # not on x86_64 CONFIG_UBSAN_BOOL=y CONFIG_UBSAN_ENUM=y CONFIG_UBSAN_ALIGNMENT=y CONFIG_UBSAN_SANITIZE_ALL=y Signed-off-by: Joe Lawrence <[email protected]>
1 parent b1b6cc3 commit e7b6269

File tree

9 files changed

+19
-0
lines changed

9 files changed

+19
-0
lines changed

ppc64le/cmdline-ubsan.ORIG.o

3.56 KB
Binary file not shown.

ppc64le/cmdline-ubsan.PATCHED.o

3.71 KB
Binary file not shown.

ppc64le/cmdline-ubsan.test

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
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+
assert_num_funcs 1

s390x/cmdline-ubsan.ORIG.o

3.22 KB
Binary file not shown.

s390x/cmdline-ubsan.PATCHED.o

3.32 KB
Binary file not shown.

s390x/cmdline-ubsan.test

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

x86_64/cmdline-ubsan.ORIG.o

4.77 KB
Binary file not shown.

x86_64/cmdline-ubsan.PATCHED.o

4.76 KB
Binary file not shown.

x86_64/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+
# 0000000000000010 t cmdline_proc_show
6+
# 0000000000000000 t __pfx_cmdline_proc_show
7+
assert_num_funcs 2

0 commit comments

Comments
 (0)