Recently we have setup clang build and found that,
MIPS + clang-11 + allnoconfig build failed
MIPS + clang-11 + tinyconfig build failed
MIPS + clang-10 + allnoconfig build failed
MIPS + clang-10 + tinyconfig build failed
We have noticed these build failures on
- stable-4.19
- stable-5.4
- stable-5.9
- mainline
- next-master
FYI, The defconfig builds are successful.
BTW, May I know what are the configs you build often ?
Steps to reproduce build failure:
-----------------------------------------
# sudo pip3 install -U tuxmake
# tuxmake --runtime docker --target-arch mips --toolchain clang-11
--kconfig allnoconfig
# tuxmake --runtime docker --target-arch mips --toolchain clang-11
--kconfig tinyconfig
Build failed log:
ake --silent --keep-going --jobs=16
O=/home/tuxbuild/.cache/tuxmake/builds/2/tmp ARCH=mips
CROSS_COMPILE=mips-linux-gnu- 'HOSTCC=sccache clang' 'CC=sccache
clang' allnoconfig
make --silent --keep-going --jobs=16
O=/home/tuxbuild/.cache/tuxmake/builds/2/tmp ARCH=mips
CROSS_COMPILE=mips-linux-gnu- 'HOSTCC=sccache clang' 'CC=sccache
clang'
/builds/1kl9SVppm6wRdzlQ3UcQKIBaUrx/arch/mips/vdso/elf.S:14:1:
warning: DWARF2 only supports one section per compilation unit
.pushsection .note.Linux, "a",@note ; .balign 4 ; .long 2f - 1f ;
.long 4484f - 3f ; .long 0 ; 1:.asciz "Linux" ; 2:.balign 4 ; 3:
^
/builds/1kl9SVppm6wRdzlQ3UcQKIBaUrx/arch/mips/vdso/elf.S:34:2:
warning: DWARF2 only supports one section per compilation unit
.section .mips_abiflags, "a"
^
/builds/1kl9SVppm6wRdzlQ3UcQKIBaUrx/arch/mips/lib/uncached.c:45:6:
warning: variable 'sp' is uninitialized when used here
[-Wuninitialized]
if (sp >= (long)CKSEG0 && sp < (long)CKSEG2)
^~
/builds/1kl9SVppm6wRdzlQ3UcQKIBaUrx/arch/mips/lib/uncached.c:40:18:
note: initialize the variable 'sp' to silence this warning
register long sp __asm__("$sp");
^
= 0
1 warning generated.
WARNING: modpost: vmlinux.o(.text+0x1a124): Section mismatch in
reference from the function r4k_cache_init() to the function
.init.text:loongson3_sc_init()
The function r4k_cache_init() references
the function __init loongson3_sc_init().
This is often because r4k_cache_init lacks a __init
annotation or the annotation of loongson3_sc_init is wrong.
WARNING: modpost: vmlinux.o(.text+0x1f1c8): Section mismatch in
reference from the function mips_sc_init() to the function
.init.text:mips_sc_probe()
The function mips_sc_init() references
the function __init mips_sc_probe().
This is often because mips_sc_init lacks a __init
annotation or the annotation of mips_sc_probe is wrong.
FATAL: modpost: Section mismatches detected.
Set CONFIG_SECTION_MISMATCH_WARN_ONLY=y to allow them.
make[2]: *** [/builds/1kl9SVppm6wRdzlQ3UcQKIBaUrx/scripts/Makefile.modpost:59:
vmlinux.symvers] Error 1
--
Linaro LKFT
https://lkft.linaro.org
This is the start of the stable review cycle for the 5.4.83 release.
There are 54 patches in this series, all will be posted as a response
to this one. If anyone has any issues with these being applied, please
let me know.
Responses should be made by Sat, 12 Dec 2020 14:25:47 +0000.
Anything received after that time might be too late.
The whole patch series can be found in one patch at:
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.4.83-rc1…
or in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.4.y
and the diffstat can be found below.
thanks,
greg k-h
-------------
Pseudo-Shortlog of commits:
Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
Linux 5.4.83-rc1
Masami Hiramatsu <mhiramat(a)kernel.org>
x86/insn-eval: Use new for_each_insn_prefix() macro to loop over prefixes bytes
Pablo Neira Ayuso <pablo(a)netfilter.org>
netfilter: nftables_offload: set address type in control dissector
Florian Westphal <fw(a)strlen.de>
netfilter: nf_tables: avoid false-postive lockdep splat
Luo Meng <luomeng12(a)huawei.com>
Input: i8042 - fix error return code in i8042_setup_aux()
Mike Snitzer <snitzer(a)redhat.com>
dm writecache: remove BUG() and fail gracefully instead
Zhihao Cheng <chengzhihao1(a)huawei.com>
i2c: qup: Fix error return code in qup_i2c_bam_schedule_desc()
Dan Carpenter <dan.carpenter(a)oracle.com>
rtw88: debug: Fix uninitialized memory in debugfs code
Luo Meng <luomeng12(a)huawei.com>
ASoC: wm_adsp: fix error return code in wm_adsp_load()
Hoang Huu Le <hoang.h.le(a)dektech.com.au>
tipc: fix a deadlock when flushing scheduled work
Eric Dumazet <edumazet(a)google.com>
netfilter: ipset: prevent uninit-value in hash_ip6_add
Bob Peterson <rpeterso(a)redhat.com>
gfs2: check for empty rgrp tree in gfs2_ri_update
Oliver Hartkopp <socketcan(a)hartkopp.net>
can: af_can: can_rx_unregister(): remove WARN() statement from list operation sanity check
Willy Tarreau <w(a)1wt.eu>
lib/syscall: fix syscall registers retrieval on 32-bit platforms
Steven Rostedt (VMware) <rostedt(a)goodmis.org>
tracing: Fix userstacktrace option for instances
Suravee Suthikulpanit <suravee.suthikulpanit(a)amd.com>
iommu/amd: Set DTE[IntTabLen] to represent 512 IRTEs
Peter Ujfalusi <peter.ujfalusi(a)ti.com>
spi: bcm2835: Release the DMA channel if probe fails after dma_init
Christian Eggers <ceggers(a)arri.de>
i2c: imx: Check for I2SR_IAL after every byte
Christian Eggers <ceggers(a)arri.de>
i2c: imx: Fix reset of I2SR_IAL flag
Samuel Thibault <samuel.thibault(a)ens-lyon.org>
speakup: Reject setting the speakup line discipline outside of speakup
Qian Cai <qcai(a)redhat.com>
mm/swapfile: do not sleep with a spin lock held
Yang Shi <shy828301(a)gmail.com>
mm: list_lru: set shrinker map bit when child nr_items is not zero
Menglong Dong <dong.menglong(a)zte.com.cn>
coredump: fix core_pattern parse error
Masami Hiramatsu <mhiramat(a)kernel.org>
x86/uprobes: Do not use prefixes.nbytes when looping over prefixes.bytes
Mike Snitzer <snitzer(a)redhat.com>
dm: remove invalid sparse __acquires and __releases annotations
Sergei Shtepa <sergei.shtepa(a)veeam.com>
dm: fix bug with RCU locking in dm_blk_report_zones
Laurent Vivier <lvivier(a)redhat.com>
powerpc/pseries: Pass MSI affinity to irq_create_mapping()
Laurent Vivier <lvivier(a)redhat.com>
genirq/irqdomain: Add an irq_create_mapping_affinity() function
Nicholas Piggin <npiggin(a)gmail.com>
powerpc/64s/powernv: Fix memory corruption when saving SLB entries on MCE
Mikulas Patocka <mpatocka(a)redhat.com>
dm writecache: fix the maximum number of arguments
Suganath Prabu S <suganath-prabu.subramani(a)broadcom.com>
scsi: mpt3sas: Fix ioctl timeout
Chris Wilson <chris(a)chris-wilson.co.uk>
drm/i915/gt: Program mocs:63 for cache eviction on gen9
Mika Westerberg <mika.westerberg(a)linux.intel.com>
thunderbolt: Fix use-after-free in remove_unplugged_switch()
Christian Eggers <ceggers(a)arri.de>
i2c: imx: Don't generate STOP condition if arbitration has been lost
Alexander Gordeev <agordeev(a)linux.ibm.com>
s390/pci: fix CPU address in MSI for directed IRQ
Paulo Alcantara <pc(a)cjr.nz>
cifs: fix potential use-after-free in cifs_echo_request()
Paulo Alcantara <pc(a)cjr.nz>
cifs: allow syscalls to be restarted in __smb_send_rqst()
Naveen N. Rao <naveen.n.rao(a)linux.vnet.ibm.com>
ftrace: Fix updating FTRACE_FL_TRAMP
Takashi Iwai <tiwai(a)suse.de>
ALSA: hda/generic: Add option to enforce preferred_dacs pairs
Kailang Yang <kailang(a)realtek.com>
ALSA: hda/realtek - Add new codec supported for ALC897
Jian-Hong Pan <jhp(a)endlessos.org>
ALSA: hda/realtek: Enable headset of ASUS UX482EG & B9400CEA with ALC294
Takashi Iwai <tiwai(a)suse.de>
ALSA: hda/realtek: Add mute LED quirk to yet another HP x360 model
Takashi Iwai <tiwai(a)suse.de>
ALSA: hda/realtek: Fix bass speaker DAC assignment on Asus Zephyrus G14
Jann Horn <jannh(a)google.com>
tty: Fix ->session locking
Jann Horn <jannh(a)google.com>
tty: Fix ->pgrp locking in tiocspgrp()
Bjørn Mork <bjorn(a)mork.no>
USB: serial: option: fix Quectel BG96 matching
Giacinto Cifelli <gciofono(a)gmail.com>
USB: serial: option: add support for Thales Cinterion EXS82
Vincent Palatin <vpalatin(a)chromium.org>
USB: serial: option: add Fibocom NL668 variants
Johan Hovold <johan(a)kernel.org>
USB: serial: ch341: sort device-id entries
Jan-Niklas Burfeind <kernel(a)aiyionpri.me>
USB: serial: ch341: add new Product ID for CH341A
Johan Hovold <johan(a)kernel.org>
USB: serial: kl5kusb105: fix memleak on open
Vamsi Krishna Samavedam <vskrishn(a)codeaurora.org>
usb: gadget: f_fs: Use local copy of descriptors for userspace copy
Sasha Levin <sashal(a)kernel.org>
Partially revert bpf: Zero-fill re-used per-cpu map element
Hans de Goede <hdegoede(a)redhat.com>
pinctrl: baytrail: Fix pin being driven low for a while on gpiod_get(..., GPIOD_OUT_HIGH)
Hans de Goede <hdegoede(a)redhat.com>
pinctrl: baytrail: Replace WARN with dev_info_once when setting direct-irq pin to output
-------------
Diffstat:
Makefile | 4 +-
arch/powerpc/platforms/powernv/setup.c | 9 +-
arch/powerpc/platforms/pseries/msi.c | 3 +-
arch/s390/pci/pci_irq.c | 14 +-
arch/x86/include/asm/insn.h | 15 ++
arch/x86/kernel/uprobes.c | 10 +-
arch/x86/lib/insn-eval.c | 5 +-
drivers/gpu/drm/i915/gt/intel_mocs.c | 14 +-
drivers/i2c/busses/i2c-imx.c | 42 ++++-
drivers/i2c/busses/i2c-qup.c | 3 +-
drivers/input/serio/i8042.c | 3 +-
drivers/iommu/amd_iommu_types.h | 2 +-
drivers/md/dm-writecache.c | 4 +-
drivers/md/dm.c | 8 +-
drivers/net/wireless/realtek/rtw88/debug.c | 2 +
drivers/pinctrl/intel/pinctrl-baytrail.c | 67 +++++--
drivers/scsi/mpt3sas/mpt3sas_ctl.c | 2 +-
drivers/spi/spi-bcm2835.c | 7 +-
drivers/staging/speakup/spk_ttyio.c | 37 ++--
drivers/thunderbolt/icm.c | 10 +-
drivers/tty/tty_io.c | 7 +-
drivers/tty/tty_jobctrl.c | 44 +++--
drivers/usb/gadget/function/f_fs.c | 6 +-
drivers/usb/serial/ch341.c | 5 +-
drivers/usb/serial/kl5kusb105.c | 10 +-
drivers/usb/serial/option.c | 10 +-
fs/cifs/connect.c | 2 +
fs/cifs/transport.c | 4 +-
fs/coredump.c | 3 +-
fs/gfs2/rgrp.c | 4 +
include/linux/irqdomain.h | 12 +-
include/linux/tty.h | 4 +
include/net/netfilter/nf_tables_offload.h | 4 +
kernel/irq/irqdomain.c | 13 +-
kernel/trace/ftrace.c | 22 ++-
kernel/trace/trace.c | 13 +-
lib/syscall.c | 11 +-
mm/list_lru.c | 10 +-
mm/swapfile.c | 4 +-
net/can/af_can.c | 7 +-
net/netfilter/ipset/ip_set_core.c | 3 +-
net/netfilter/nf_tables_api.c | 3 +-
net/netfilter/nf_tables_offload.c | 17 ++
net/netfilter/nft_payload.c | 4 +
net/tipc/core.c | 9 +-
net/tipc/core.h | 9 +
net/tipc/net.c | 20 +-
net/tipc/net.h | 1 +
sound/pci/hda/hda_generic.c | 12 +-
sound/pci/hda/hda_generic.h | 1 +
sound/pci/hda/patch_realtek.c | 32 +++-
sound/soc/codecs/wm_adsp.c | 1 +
tools/arch/x86/include/asm/insn.h | 15 ++
tools/testing/selftests/bpf/prog_tests/map_init.c | 214 ----------------------
tools/testing/selftests/bpf/progs/test_map_init.c | 33 ----
55 files changed, 431 insertions(+), 399 deletions(-)
While building S390 the following kernel warning / error noticed
on stable -rc 5.4 branch with gcc-8, gcc-9 and gcc-10 and defconfig
make --silent --keep-going --jobs=8
O=/home/tuxbuild/.cache/tuxmake/builds/6/tmp ARCH=s390
CROSS_COMPILE=s390x-linux-gnu- 'CC=sccache s390x-linux-gnu-gcc'
'HOSTCC=sccache gcc' vmlinux
arch/s390/pci/pci_irq.c: In function 'zpci_set_irq_affinity':
arch/s390/pci/pci_irq.c:106:17: error: implicit declaration of
function 'smp_cpu_get_cpu_address'
[-Werror=implicit-function-declaration]
106 | int cpu_addr = smp_cpu_get_cpu_address(cpumask_first(dest));
| ^~~~~~~~~~~~~~~~~~~~~~~
Reported-by: Naresh Kamboju <naresh.kamboju(a)linaro.org>
steps to reproduce:
--------------------------
# TuxMake is a command line tool and Python library that provides
# portable and repeatable Linux kernel builds across a variety of
# architectures, toolchains, kernel configurations, and make targets.
#
# TuxMake supports the concept of runtimes.
# See https://docs.tuxmake.org/runtimes/, for that to work it requires
# that you install podman or docker on your system.
#
# To install tuxmake on your system globally:
# sudo pip3 install -U tuxmake
#
# See https://docs.tuxmake.org/ for complete documentation.
tuxmake --runtime docker --target-arch s390 --toolchain gcc-9
--kconfig defconfig
metadata:
git_repo: https://gitlab.com/Linaro/lkft/mirrors/stable/linux-stable-rc
target_arch: s390
toolchain: gcc-9
git_short_log: 82a0751eb2d3 (\Linux 5.4.83-rc1\)
git_describe: v5.4.82-55-g82a0751eb2d3
kernel_version: 5.4.83-rc1
download_url: https://builds.tuxbuild.com/1lTC2KYDTwqeueHNt1eiSzoLiFb/
full build log link,
https://gitlab.com/Linaro/lkft/mirrors/stable/linux-stable-rc/-/jobs/903123…
--
Linaro LKFT
https://lkft.linaro.org