Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Makefile: remove redundant tool coverage variables

Now Kbuild provides reasonable defaults for objtool, sanitizers, and
profilers.

Remove redundant variables.

Note:

This commit changes the coverage for some objects:

- include arch/mips/vdso/vdso-image.o into UBSAN, GCOV, KCOV
- include arch/sparc/vdso/vdso-image-*.o into UBSAN
- include arch/sparc/vdso/vma.o into UBSAN
- include arch/x86/entry/vdso/extable.o into KASAN, KCSAN, UBSAN, GCOV, KCOV
- include arch/x86/entry/vdso/vdso-image-*.o into KASAN, KCSAN, UBSAN, GCOV, KCOV
- include arch/x86/entry/vdso/vdso32-setup.o into KASAN, KCSAN, UBSAN, GCOV, KCOV
- include arch/x86/entry/vdso/vma.o into GCOV, KCOV
- include arch/x86/um/vdso/vma.o into KASAN, GCOV, KCOV

I believe these are positive effects because all of them are kernel
space objects.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Tested-by: Roberto Sassu <roberto.sassu@huawei.com>

-241
-1
arch/arm/boot/bootp/Makefile
··· 5 5 # This file is included by the global makefile so that you can add your own 6 6 # architecture-specific flags and dependencies. 7 7 # 8 - GCOV_PROFILE := n 9 8 10 9 ifdef PHYS_OFFSET 11 10 add_hex = $(shell printf 0x%x $$(( $(1) + $(2) )) )
-7
arch/arm/boot/compressed/Makefile
··· 22 22 OBJS += hyp-stub.o 23 23 endif 24 24 25 - GCOV_PROFILE := n 26 - KASAN_SANITIZE := n 27 - 28 - # Prevents link failures: __sanitizer_cov_trace_pc() is not linked in. 29 - KCOV_INSTRUMENT := n 30 - UBSAN_SANITIZE := n 31 - 32 25 # 33 26 # Architecture dependencies 34 27 #
-9
arch/arm/vdso/Makefile
··· 33 33 CFLAGS_vgettimeofday.o = -O2 -include $(c-gettimeofday-y) 34 34 endif 35 35 36 - # Disable gcov profiling for VDSO code 37 - GCOV_PROFILE := n 38 - UBSAN_SANITIZE := n 39 - 40 - # Prevents link failures: __sanitizer_cov_trace_pc() is not linked in. 41 - KCOV_INSTRUMENT := n 42 - 43 - KASAN_SANITIZE := n 44 - 45 36 # Force dependency 46 37 $(obj)/vdso.o : $(obj)/vdso.so 47 38
-6
arch/arm64/kernel/pi/Makefile
··· 19 19 # disable LTO 20 20 KBUILD_CFLAGS := $(filter-out $(CC_FLAGS_LTO), $(KBUILD_CFLAGS)) 21 21 22 - GCOV_PROFILE := n 23 - KASAN_SANITIZE := n 24 - KCSAN_SANITIZE := n 25 - UBSAN_SANITIZE := n 26 - KCOV_INSTRUMENT := n 27 - 28 22 hostprogs := relacheck 29 23 30 24 quiet_cmd_piobjcopy = $(quiet_cmd_objcopy)
-8
arch/arm64/kernel/vdso/Makefile
··· 40 40 $(RANDSTRUCT_CFLAGS) $(GCC_PLUGINS_CFLAGS) \ 41 41 $(CC_FLAGS_LTO) $(CC_FLAGS_CFI) \ 42 42 -Wmissing-prototypes -Wmissing-declarations 43 - KASAN_SANITIZE := n 44 - KCSAN_SANITIZE := n 45 - UBSAN_SANITIZE := n 46 - OBJECT_FILES_NON_STANDARD := y 47 - KCOV_INSTRUMENT := n 48 43 49 44 CFLAGS_vgettimeofday.o = -O2 -mcmodel=tiny -fasynchronous-unwind-tables 50 45 51 46 ifneq ($(c-gettimeofday-y),) 52 47 CFLAGS_vgettimeofday.o += -include $(c-gettimeofday-y) 53 48 endif 54 - 55 - # Disable gcov profiling for VDSO code 56 - GCOV_PROFILE := n 57 49 58 50 targets += vdso.lds 59 51 CPPFLAGS_vdso.lds += -P -C -U$(ARCH)
-13
arch/arm64/kvm/hyp/nvhe/Makefile
··· 97 97 # causes a build failure. Remove profile optimization flags. 98 98 KBUILD_CFLAGS := $(filter-out -fprofile-sample-use=% -fprofile-use=%, $(KBUILD_CFLAGS)) 99 99 KBUILD_CFLAGS += -fno-asynchronous-unwind-tables -fno-unwind-tables 100 - 101 - # KVM nVHE code is run at a different exception code with a different map, so 102 - # compiler instrumentation that inserts callbacks or checks into the code may 103 - # cause crashes. Just disable it. 104 - GCOV_PROFILE := n 105 - KASAN_SANITIZE := n 106 - KCSAN_SANITIZE := n 107 - UBSAN_SANITIZE := n 108 - KCOV_INSTRUMENT := n 109 - 110 - # Skip objtool checking for this directory because nVHE code is compiled with 111 - # non-standard build rules. 112 - OBJECT_FILES_NON_STANDARD := y
-4
arch/csky/kernel/vdso/Makefile
··· 23 23 obj-y += vdso.o vdso-syms.o 24 24 CPPFLAGS_vdso.lds += -P -C -U$(ARCH) 25 25 26 - # Disable gcov profiling for VDSO code 27 - GCOV_PROFILE := n 28 - KCOV_INSTRUMENT := n 29 - 30 26 # Force dependency 31 27 $(obj)/vdso.o: $(obj)/vdso.so 32 28
-7
arch/loongarch/vdso/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 2 # Objects to go into the VDSO. 3 3 4 - KASAN_SANITIZE := n 5 - UBSAN_SANITIZE := n 6 - KCOV_INSTRUMENT := n 7 - OBJECT_FILES_NON_STANDARD := y 8 - 9 4 # Include the generic Makefile to check the built vdso. 10 5 include $(srctree)/lib/vdso/Makefile 11 6 ··· 33 38 ldflags-y := -Bsymbolic --no-undefined -soname=linux-vdso.so.1 \ 34 39 $(filter -E%,$(KBUILD_CFLAGS)) -nostdlib -shared \ 35 40 --hash-style=sysv --build-id -T 36 - 37 - GCOV_PROFILE := n 38 41 39 42 # 40 43 # Shared build commands.
-6
arch/mips/boot/compressed/Makefile
··· 34 34 -DBOOT_HEAP_SIZE=$(BOOT_HEAP_SIZE) \ 35 35 -DKERNEL_ENTRY=$(VMLINUX_ENTRY_ADDRESS) 36 36 37 - # Prevents link failures: __sanitizer_cov_trace_pc() is not linked in. 38 - KCOV_INSTRUMENT := n 39 - GCOV_PROFILE := n 40 - UBSAN_SANITIZE := n 41 - KCSAN_SANITIZE := n 42 - 43 37 # decompressor objects (linked with vmlinuz) 44 38 vmlinuzobjs-y := $(obj)/head.o $(obj)/decompress.o $(obj)/string.o $(obj)/bswapsi.o 45 39
-7
arch/mips/vdso/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 2 # Objects to go into the VDSO. 3 3 4 - # Sanitizer runtimes are unavailable and cannot be linked here. 5 - KCSAN_SANITIZE := n 6 - 7 4 # Include the generic Makefile to check the built vdso. 8 5 include $(srctree)/lib/vdso/Makefile 9 6 ··· 56 59 -G 0 --eh-frame-hdr --hash-style=sysv --build-id=sha1 -T 57 60 58 61 CFLAGS_REMOVE_vdso.o = $(CC_FLAGS_FTRACE) 59 - 60 - GCOV_PROFILE := n 61 - UBSAN_SANITIZE := n 62 - KCOV_INSTRUMENT := n 63 62 64 63 # Check that we don't have PIC 'jalr t9' calls left 65 64 quiet_cmd_vdso_mips_check = VDSOCHK $@
-4
arch/parisc/boot/compressed/Makefile
··· 5 5 # create a compressed self-extracting vmlinux image from the original vmlinux 6 6 # 7 7 8 - KCOV_INSTRUMENT := n 9 - GCOV_PROFILE := n 10 - UBSAN_SANITIZE := n 11 - 12 8 OBJECTS := head.o real2.o firmware.o misc.o piggy.o 13 9 targets := vmlinux.lds vmlinux vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 14 10 targets += vmlinux.bin.xz vmlinux.bin.lzma vmlinux.bin.lzo vmlinux.bin.lz4
-8
arch/powerpc/kernel/vdso/Makefile
··· 47 47 targets += $(obj-vdso64) vdso64.so.dbg vgettimeofday-64.o 48 48 obj-vdso64 := $(addprefix $(obj)/, $(obj-vdso64)) 49 49 50 - GCOV_PROFILE := n 51 - KCOV_INSTRUMENT := n 52 - UBSAN_SANITIZE := n 53 - KASAN_SANITIZE := n 54 - KCSAN_SANITIZE := n 55 - 56 50 ccflags-y := -fno-common -fno-builtin 57 51 ldflags-y := -Wl,--hash-style=both -nostdlib -shared -z noexecstack $(CLANG_FLAGS) 58 52 ldflags-$(CONFIG_LD_IS_LLD) += $(call cc-option,--ld-path=$(LD),-fuse-ld=lld) ··· 108 114 cmd_vdso64ld_and_check = $(VDSOCC) $(ldflags-y) $(LD64FLAGS) -o $@ -Wl,-T$(filter %.lds,$^) $(filter %.o,$^); $(cmd_vdso_check) 109 115 quiet_cmd_vdso64as = VDSO64A $@ 110 116 cmd_vdso64as = $(VDSOCC) $(a_flags) $(AS64FLAGS) -c -o $@ $< 111 - 112 - OBJECT_FILES_NON_STANDARD := y
-3
arch/powerpc/purgatory/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 2 3 - KASAN_SANITIZE := n 4 - KCSAN_SANITIZE := n 5 - 6 3 targets += trampoline_$(BITS).o purgatory.ro 7 4 8 5 # When profile-guided optimization is enabled, llvm emits two different
-2
arch/riscv/boot/Makefile
··· 14 14 # Based on the ia64 and arm64 boot/Makefile. 15 15 # 16 16 17 - KCOV_INSTRUMENT := n 18 - 19 17 OBJCOPYFLAGS_Image :=-O binary -R .note -R .note.gnu.build-id -R .comment -S 20 18 OBJCOPYFLAGS_loader.bin :=-O binary 21 19 OBJCOPYFLAGS_xipImage :=-O binary -R .note -R .note.gnu.build-id -R .comment -S
-6
arch/riscv/kernel/compat_vdso/Makefile
··· 34 34 obj-y += compat_vdso.o 35 35 CPPFLAGS_compat_vdso.lds += -P -C -DCOMPAT_VDSO -U$(ARCH) 36 36 37 - # Disable profiling and instrumentation for VDSO code 38 - GCOV_PROFILE := n 39 - KCOV_INSTRUMENT := n 40 - KASAN_SANITIZE := n 41 - UBSAN_SANITIZE := n 42 - 43 37 # Force dependency 44 38 $(obj)/compat_vdso.o: $(obj)/compat_vdso.so 45 39
-6
arch/riscv/kernel/pi/Makefile
··· 17 17 CFLAGS_cmdline_early.o += -D__NO_FORTIFY 18 18 CFLAGS_lib-fdt_ro.o += -D__NO_FORTIFY 19 19 20 - GCOV_PROFILE := n 21 - KASAN_SANITIZE := n 22 - KCSAN_SANITIZE := n 23 - UBSAN_SANITIZE := n 24 - KCOV_INSTRUMENT := n 25 - 26 20 $(obj)/%.pi.o: OBJCOPYFLAGS := --prefix-symbols=__pi_ \ 27 21 --remove-section=.note.gnu.property \ 28 22 --prefix-alloc-sections=.init.pi
-6
arch/riscv/kernel/vdso/Makefile
··· 39 39 CFLAGS_REMOVE_vgettimeofday.o = $(CC_FLAGS_FTRACE) $(CC_FLAGS_SCS) 40 40 CFLAGS_REMOVE_hwprobe.o = $(CC_FLAGS_FTRACE) $(CC_FLAGS_SCS) 41 41 42 - # Disable profiling and instrumentation for VDSO code 43 - GCOV_PROFILE := n 44 - KCOV_INSTRUMENT := n 45 - KASAN_SANITIZE := n 46 - UBSAN_SANITIZE := n 47 - 48 42 # Force dependency 49 43 $(obj)/vdso.o: $(obj)/vdso.so 50 44
-8
arch/riscv/purgatory/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 - OBJECT_FILES_NON_STANDARD := y 3 2 4 3 purgatory-y := purgatory.o sha256.o entry.o string.o ctype.o memcpy.o memset.o 5 4 purgatory-y += strcmp.o strlen.o strncmp.o ··· 45 46 LDFLAGS_purgatory.ro := -r $(PURGATORY_LDFLAGS) 46 47 LDFLAGS_purgatory.chk := $(PURGATORY_LDFLAGS) 47 48 targets += purgatory.ro purgatory.chk 48 - 49 - # Sanitizer, etc. runtimes are unavailable and cannot be linked here. 50 - GCOV_PROFILE := n 51 - KASAN_SANITIZE := n 52 - UBSAN_SANITIZE := n 53 - KCSAN_SANITIZE := n 54 - KCOV_INSTRUMENT := n 55 49 56 50 # These are adjustments to the compiler flags used for objects that 57 51 # make up the standalone purgatory.ro
-8
arch/s390/kernel/vdso32/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 2 # List of files in the vdso 3 3 4 - KCOV_INSTRUMENT := n 5 - 6 4 # Include the generic Makefile to check the built vdso. 7 5 include $(srctree)/lib/vdso/Makefile 8 6 obj-vdso32 = vdso_user_wrapper-32.o note-32.o ··· 29 31 obj-y += vdso32_wrapper.o 30 32 targets += vdso32.lds 31 33 CPPFLAGS_vdso32.lds += -P -C -U$(ARCH) 32 - 33 - # Disable gcov profiling, ubsan and kasan for VDSO code 34 - GCOV_PROFILE := n 35 - UBSAN_SANITIZE := n 36 - KASAN_SANITIZE := n 37 - KCSAN_SANITIZE := n 38 34 39 35 # Force dependency (incbin is bad) 40 36 $(obj)/vdso32_wrapper.o : $(obj)/vdso32.so
-8
arch/s390/kernel/vdso64/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 2 # List of files in the vdso 3 3 4 - KCOV_INSTRUMENT := n 5 - 6 4 # Include the generic Makefile to check the built vdso. 7 5 include $(srctree)/lib/vdso/Makefile 8 6 obj-vdso64 = vdso_user_wrapper.o note.o ··· 34 36 obj-y += vdso64_wrapper.o 35 37 targets += vdso64.lds 36 38 CPPFLAGS_vdso64.lds += -P -C -U$(ARCH) 37 - 38 - # Disable gcov profiling, ubsan and kasan for VDSO code 39 - GCOV_PROFILE := n 40 - UBSAN_SANITIZE := n 41 - KASAN_SANITIZE := n 42 - KCSAN_SANITIZE := n 43 39 44 40 # Force dependency (incbin is bad) 45 41 $(obj)/vdso64_wrapper.o : $(obj)/vdso64.so
-8
arch/s390/purgatory/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 2 3 - OBJECT_FILES_NON_STANDARD := y 4 - 5 3 purgatory-y := head.o purgatory.o string.o sha256.o mem.o 6 4 7 5 targets += $(purgatory-y) purgatory.lds purgatory purgatory.chk purgatory.ro ··· 12 14 13 15 $(obj)/mem.o: $(srctree)/arch/s390/lib/mem.S FORCE 14 16 $(call if_changed_rule,as_o_S) 15 - 16 - KCOV_INSTRUMENT := n 17 - GCOV_PROFILE := n 18 - UBSAN_SANITIZE := n 19 - KASAN_SANITIZE := n 20 - KCSAN_SANITIZE := n 21 17 22 18 KBUILD_CFLAGS := -fno-strict-aliasing -Wall -Wstrict-prototypes 23 19 KBUILD_CFLAGS += -Wno-pointer-sign -Wno-sign-compare
-3
arch/sh/boot/compressed/Makefile
··· 11 11 targets := vmlinux vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 \ 12 12 vmlinux.bin.lzma vmlinux.bin.xz vmlinux.bin.lzo $(OBJECTS) 13 13 14 - GCOV_PROFILE := n 15 - UBSAN_SANITIZE := n 16 - 17 14 # 18 15 # IMAGE_OFFSET is the load offset of the compression loader 19 16 #
-2
arch/sparc/vdso/Makefile
··· 2 2 # 3 3 # Building vDSO images for sparc. 4 4 # 5 - UBSAN_SANITIZE := n 6 5 7 6 # files to link into the vdso 8 7 vobjs-y := vdso-note.o vclock_gettime.o ··· 105 106 sh $(src)/checkundef.sh '$(OBJDUMP)' '$@' 106 107 107 108 VDSO_LDFLAGS = -shared --hash-style=both --build-id=sha1 -Bsymbolic 108 - GCOV_PROFILE := n
-15
arch/x86/boot/Makefile
··· 9 9 # Changed by many, many contributors over the years. 10 10 # 11 11 12 - # Sanitizer runtimes are unavailable and cannot be linked for early boot code. 13 - KASAN_SANITIZE := n 14 - KCSAN_SANITIZE := n 15 - KMSAN_SANITIZE := n 16 - OBJECT_FILES_NON_STANDARD := y 17 - 18 - # Kernel does not boot with kcov instrumentation here. 19 - # One of the problems observed was insertion of __sanitizer_cov_trace_pc() 20 - # callback into middle of per-cpu data enabling code. Thus the callback observed 21 - # inconsistent state and crashed. We are interested mostly in syscall coverage, 22 - # so boot code is not interesting anyway. 23 - KCOV_INSTRUMENT := n 24 - 25 12 # If you want to preset the SVGA mode, uncomment the next line and 26 13 # set SVGA_MODE to whatever number you want. 27 14 # Set it to -DSVGA_MODE=NORMAL_VGA if you just want the EGA/VGA mode. ··· 56 69 KBUILD_AFLAGS := $(KBUILD_CFLAGS) -D__ASSEMBLY__ 57 70 KBUILD_CFLAGS += $(call cc-option,-fmacro-prefix-map=$(srctree)/=) 58 71 KBUILD_CFLAGS += -fno-asynchronous-unwind-tables 59 - GCOV_PROFILE := n 60 - UBSAN_SANITIZE := n 61 72 62 73 $(obj)/bzImage: asflags-y := $(SVGA_MODE) 63 74
-11
arch/x86/boot/compressed/Makefile
··· 17 17 # (see scripts/Makefile.lib size_append) 18 18 # compressed vmlinux.bin.all + u32 size of vmlinux.bin.all 19 19 20 - # Sanitizer runtimes are unavailable and cannot be linked for early boot code. 21 - KASAN_SANITIZE := n 22 - KCSAN_SANITIZE := n 23 - KMSAN_SANITIZE := n 24 - OBJECT_FILES_NON_STANDARD := y 25 - 26 - # Prevents link failures: __sanitizer_cov_trace_pc() is not linked in. 27 - KCOV_INSTRUMENT := n 28 - 29 20 targets := vmlinux vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 vmlinux.bin.lzma \ 30 21 vmlinux.bin.xz vmlinux.bin.lzo vmlinux.bin.lz4 vmlinux.bin.zst 31 22 ··· 50 59 CFLAGS_sev.o += -I$(objtree)/arch/x86/lib/ 51 60 52 61 KBUILD_AFLAGS := $(KBUILD_CFLAGS) -D__ASSEMBLY__ 53 - GCOV_PROFILE := n 54 - UBSAN_SANITIZE :=n 55 62 56 63 KBUILD_LDFLAGS := -m elf_$(UTS_MACHINE) 57 64 KBUILD_LDFLAGS += $(call ld-option,--no-ld-generated-unwind-info)
-26
arch/x86/entry/vdso/Makefile
··· 6 6 # Include the generic Makefile to check the built vDSO: 7 7 include $(srctree)/lib/vdso/Makefile 8 8 9 - # Sanitizer runtimes are unavailable and cannot be linked here. 10 - KASAN_SANITIZE := n 11 - KMSAN_SANITIZE_vclock_gettime.o := n 12 - KMSAN_SANITIZE_vdso32/vclock_gettime.o := n 13 - KMSAN_SANITIZE_vgetcpu.o := n 14 - KMSAN_SANITIZE_vdso32/vgetcpu.o := n 15 - 16 - UBSAN_SANITIZE := n 17 - KCSAN_SANITIZE := n 18 - OBJECT_FILES_NON_STANDARD := y 19 - 20 - # Prevents link failures: __sanitizer_cov_trace_pc() is not linked in. 21 - KCOV_INSTRUMENT := n 22 - 23 9 # Files to link into the vDSO: 24 10 vobjs-y := vdso-note.o vclock_gettime.o vgetcpu.o 25 11 vobjs32-y := vdso32/note.o vdso32/system_call.o vdso32/sigreturn.o ··· 14 28 15 29 # Files to link into the kernel: 16 30 obj-y += vma.o extable.o 17 - KASAN_SANITIZE_vma.o := y 18 - UBSAN_SANITIZE_vma.o := y 19 - KCSAN_SANITIZE_vma.o := y 20 - 21 - OBJECT_FILES_NON_STANDARD_vma.o := n 22 - OBJECT_FILES_NON_STANDARD_extable.o := n 23 31 24 32 # vDSO images to build: 25 33 obj-$(CONFIG_X86_64) += vdso-image-64.o 26 34 obj-$(CONFIG_X86_X32_ABI) += vdso-image-x32.o 27 35 obj-$(CONFIG_COMPAT_32) += vdso-image-32.o vdso32-setup.o 28 - 29 - OBJECT_FILES_NON_STANDARD_vdso-image-32.o := n 30 - OBJECT_FILES_NON_STANDARD_vdso-image-x32.o := n 31 - OBJECT_FILES_NON_STANDARD_vdso-image-64.o := n 32 - OBJECT_FILES_NON_STANDARD_vdso32-setup.o := n 33 36 34 37 vobjs := $(addprefix $(obj)/, $(vobjs-y)) 35 38 vobjs32 := $(addprefix $(obj)/, $(vobjs32-y)) ··· 155 180 156 181 VDSO_LDFLAGS = -shared --hash-style=both --build-id=sha1 \ 157 182 $(call ld-option, --eh-frame-hdr) -Bsymbolic -z noexecstack 158 - GCOV_PROFILE := n 159 183 160 184 quiet_cmd_vdso_and_check = VDSO $@ 161 185 cmd_vdso_and_check = $(cmd_vdso); $(cmd_vdso_check)
-9
arch/x86/purgatory/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 - OBJECT_FILES_NON_STANDARD := y 3 2 4 3 purgatory-y := purgatory.o stack.o setup-x86_$(BITS).o sha256.o entry64.o string.o 5 4 ··· 28 29 LDFLAGS_purgatory.ro := -r $(PURGATORY_LDFLAGS) 29 30 LDFLAGS_purgatory.chk := $(PURGATORY_LDFLAGS) 30 31 targets += purgatory.ro purgatory.chk 31 - 32 - # Sanitizer, etc. runtimes are unavailable and cannot be linked here. 33 - GCOV_PROFILE := n 34 - KASAN_SANITIZE := n 35 - UBSAN_SANITIZE := n 36 - KCSAN_SANITIZE := n 37 - KMSAN_SANITIZE := n 38 - KCOV_INSTRUMENT := n 39 32 40 33 # These are adjustments to the compiler flags used for objects that 41 34 # make up the standalone purgatory.ro
-11
arch/x86/realmode/rm/Makefile
··· 7 7 # 8 8 # 9 9 10 - # Sanitizer runtimes are unavailable and cannot be linked here. 11 - KASAN_SANITIZE := n 12 - KCSAN_SANITIZE := n 13 - KMSAN_SANITIZE := n 14 - OBJECT_FILES_NON_STANDARD := y 15 - 16 - # Prevents link failures: __sanitizer_cov_trace_pc() is not linked in. 17 - KCOV_INSTRUMENT := n 18 - 19 10 always-y := realmode.bin realmode.relocs 20 11 21 12 wakeup-objs := wakeup_asm.o wakemain.o video-mode.o ··· 67 76 -I$(srctree)/arch/x86/boot 68 77 KBUILD_AFLAGS := $(KBUILD_CFLAGS) -D__ASSEMBLY__ 69 78 KBUILD_CFLAGS += -fno-asynchronous-unwind-tables 70 - GCOV_PROFILE := n 71 - UBSAN_SANITIZE := n
-7
arch/x86/um/vdso/Makefile
··· 3 3 # Building vDSO images for x86. 4 4 # 5 5 6 - # do not instrument on vdso because KASAN is not compatible with user mode 7 - KASAN_SANITIZE := n 8 - 9 - # Prevents link failures: __sanitizer_cov_trace_pc() is not linked in. 10 - KCOV_INSTRUMENT := n 11 - 12 6 VDSO64-y := y 13 7 14 8 vdso-install-$(VDSO64-y) += vdso.so ··· 60 66 sh $(src)/checkundef.sh '$(NM)' '$@' 61 67 62 68 VDSO_LDFLAGS = -fPIC -shared -Wl,--hash-style=sysv -z noexecstack 63 - GCOV_PROFILE := n
-11
drivers/firmware/efi/libstub/Makefile
··· 56 56 # disable LTO 57 57 KBUILD_CFLAGS := $(filter-out $(CC_FLAGS_LTO), $(KBUILD_CFLAGS)) 58 58 59 - GCOV_PROFILE := n 60 - # Sanitizer runtimes are unavailable and cannot be linked here. 61 - KASAN_SANITIZE := n 62 - KCSAN_SANITIZE := n 63 - KMSAN_SANITIZE := n 64 - UBSAN_SANITIZE := n 65 - OBJECT_FILES_NON_STANDARD := y 66 - 67 - # Prevents link failures: __sanitizer_cov_trace_pc() is not linked in. 68 - KCOV_INSTRUMENT := n 69 - 70 59 lib-y := efi-stub-helper.o gop.o secureboot.o tpm.o \ 71 60 file.o mem.o random.o randomalloc.o pci.o \ 72 61 skip_spaces.o lib-cmdline.o lib-ctype.o \
-4
drivers/misc/lkdtm/Makefile
··· 15 15 16 16 KASAN_SANITIZE_stackleak.o := n 17 17 18 - KASAN_SANITIZE_rodata.o := n 19 - KCSAN_SANITIZE_rodata.o := n 20 - KCOV_INSTRUMENT_rodata.o := n 21 - OBJECT_FILES_NON_STANDARD_rodata.o := y 22 18 CFLAGS_REMOVE_rodata.o += $(CC_FLAGS_LTO) $(RETHUNK_CFLAGS) 23 19 24 20 OBJCOPYFLAGS :=
-3
init/Makefile
··· 59 59 60 60 $(obj)/version-timestamp.o: include/generated/utsversion.h 61 61 CFLAGS_version-timestamp.o := -include include/generated/utsversion.h 62 - KASAN_SANITIZE_version-timestamp.o := n 63 - KCSAN_SANITIZE_version-timestamp.o := n 64 - GCOV_PROFILE_version-timestamp.o := n
-3
scripts/Makefile.vmlinux
··· 18 18 $(call if_changed_dep,cc_o_c) 19 19 20 20 ifdef CONFIG_MODULES 21 - KASAN_SANITIZE_.vmlinux.export.o := n 22 - KCSAN_SANITIZE_.vmlinux.export.o := n 23 - GCOV_PROFILE_.vmlinux.export.o := n 24 21 targets += .vmlinux.export.o 25 22 vmlinux: .vmlinux.export.o 26 23 endif
-1
scripts/mod/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 - OBJECT_FILES_NON_STANDARD := y 3 2 CFLAGS_REMOVE_empty.o += $(CC_FLAGS_LTO) 4 3 5 4 hostprogs-always-y += modpost mk_elfconfig