-
Notifications
You must be signed in to change notification settings - Fork 11
Description
I am on Ubuntu 21.04 with the GCC 11.1-v3 toolchain (gcc version 11.1.0 (Ubuntu 11.1.0-1ubuntu1~21.04+v3).
During the compilation I get the following issues during the compilation stage:
LTO vmlinux.o
In function ‘memcmp’,
inlined from ‘tboot_probe’ at arch/x86/kernel/tboot.c:70:6:
./include/linux/fortify-string.h:235:16: warning: ‘__builtin_memcmp_eq’ specified bound 16 exceeds source size 0 [-Wstringop-overread]
235 | return __underlying_memcmp(p, q, size);
| ^
arch/x86/mm/pgtable.c: In function ‘pgd_alloc’:
arch/x86/mm/pgtable.c:437:13: warning: ‘preallocate_pmds.constprop’ accessing 8 bytes in a region of size 0 [-Wstringop-overflow=]
437 | if (preallocate_pmds(mm, pmds, PREALLOCATED_PMDS) != 0)
| ^
arch/x86/mm/pgtable.c:437:13: note: referencing argument 2 of type ‘struct pmd_t * *’
arch/x86/mm/pgtable.c:225:12: note: in a call to function ‘preallocate_pmds.constprop’
225 | static int preallocate_pmds(struct mm_struct *mm, pmd_t *pmds[], int count)
| ^
arch/x86/mm/pgtable.c:440:13: warning: ‘preallocate_pmds.constprop’ accessing 8 bytes in a region of size 0 [-Wstringop-overflow=]
440 | if (preallocate_pmds(mm, u_pmds, PREALLOCATED_USER_PMDS) != 0)
| ^
arch/x86/mm/pgtable.c:440:13: note: referencing argument 2 of type ‘struct pmd_t * *’
arch/x86/mm/pgtable.c:225:12: note: in a call to function ‘preallocate_pmds.constprop’
225 | static int preallocate_pmds(struct mm_struct *mm, pmd_t *pmds[], int count)
| ^
arch/x86/mm/pgtable.c:464:9: warning: ‘free_pmds.constprop’ accessing 8 bytes in a region of size 0 [-Wstringop-overflow=]
464 | free_pmds(mm, pmds, PREALLOCATED_PMDS);
| ^
arch/x86/mm/pgtable.c:464:9: note: referencing argument 2 of type ‘struct pmd_t * *’
arch/x86/mm/pgtable.c:213:13: note: in a call to function ‘free_pmds.constprop’
213 | static void free_pmds(struct mm_struct *mm, pmd_t *pmds[], int count)
| ^
OBJTOOL vmlinux.o
vmlinux.o: warning: objtool: unexpected relocation symbol type in .rela.discard.func_stack_frame_non_standard: 0
vmlinux.o: warning: objtool: crc_pcl()+0x87: sibling call from callable instruction with modified stack frame
MODPOST vmlinux.symvers
MODINFO modules.builtin.modinfo
GEN modules.builtin
Plus tons of these:
lto-wrapper: warning: jobserver is not available: ‘--jobserver-auth=’ is not present in ‘MAKEFLAGS’
LTO [M] net/netfilter/ipvs/ip_vs_ovf.lto.o
lto-wrapper: warning: jobserver is not available: ‘--jobserver-auth=’ is not present in ‘MAKEFLAGS’
LTO [M] net/netfilter/ipvs/ip_vs_pe_sip.lto.o
lto-wrapper: warning: jobserver is not available: ‘--jobserver-auth=’ is not present in ‘MAKEFLAGS’
LTO [M] net/netfilter/ipvs/ip_vs_rr.lto.o
lto-wrapper: warning: jobserver is not available: ‘--jobserver-auth=’ is not present in ‘MAKEFLAGS’
LTO [M] net/netfilter/ipvs/ip_vs_sed.lto.o
lto-wrapper: warning: jobserver is not available: ‘--jobserver-auth=’ is not present in ‘MAKEFLAGS’
LTO [M] net/netfilter/ipvs/ip_vs_sh.lto.o
lto-wrapper: warning: jobserver is not available: ‘--jobserver-auth=’ is not present in ‘MAKEFLAGS’
LTO [M] net/netfilter/ipvs/ip_vs_wlc.lto.o
LTO [M] net/netfilter/ipvs/ip_vs_wrr.lto.o
I've used the vanilla sources from kernel.org. Here are the used config and makefile: