Occasionally, I will forget to link something from the mailing list in this post. To see my full mailing list activity (patches, reviews, and reports), you can view it on lore.kernel.org.
Linux kernel patches
-
Build errors: These are patches to fix various build errors that I found through testing different configurations with LLVM or were exposed by our continuous integration setup. The kernel needs to build in order to be run :)
-
Warning fixes: These are patches to fix various warnings that appear with LLVM. I used to go into detail about the different warnings and what they mean, but the important takeaway for this section is that the kernel should build warning free, as all developers should be using
CONFIG_WERROR
, which will turn these all into failures. Maybe these should be in the build failures section…x86/speculation: Use DECLARE_PER_CPU for x86_spec_ctrl_current
(v1
,v2
)ASoC: Intel: avs: Mark avs_path_module_type_create() as noinline
(v1
)btrfs: Fix unused variable in load_free_space_cache()
(v1
)ASoC: amd: acp: Fix initialization of ext_intr_stat1 in i2s_irq_handler()
(v1
)ion: Make user_ion_handle_put_nolock() a void function
(v1
)
-
Other fixes: These are fixes that don’t fit into a particular category but are important to ClangBuiltLinux. In this particular case, there was a Control Flow Integrity (CFI) violation in the simpledrm driver, which can cause kernels compiled with CFI to panic when booting.
drm/simpledrm: Fix return type of simpledrm_simple_display_pipe_mode_valid()
(v1
)
Patch review and input
For the next sections, I link directly to my first response in the thread when possible but there are times where the link is to the main post. My responses can be seen inline by going to the bottom of the thread and clicking on my name.
Reviewing patches that are submitted is incredibly important, as it helps ensure good code quality due to catching mistakes before the patches get accepted and it can help get patches accepted faster, as some maintainers will blindly pick up patches that have been reviewed by someone that they trust.
Re: [PATCH] kernfs: Avoid re-adding kernfs_node into kernfs_notify_list.
Re: [PATCH 5.15 02/28] clocksource/drivers/ixp4xx: remove __init from ixp4xx_timer_setup()
Re: [PATCH] x86/Kconfig: Allow X86_X32_ABI with llvm-objcopy in some cases
Re: [PATCH v1 net-next] af_unix: Put a named socket in the global hash table.
Re: [PATCH] MAINTAINERS: Add a general "kernel hardening" section
Re: [PATCH] lib: overflow: Do not define 64-bit tests on 32-bit
Re: [PATCH] x86/Kconfig: Fix CONFIG_CC_HAS_SANE_STACKPROTECTOR when cross compiling with clang
Re: [PATCH] net: rxrpc: fix clang -Wformat warning
Re: [PATCH] eeprom: idt_89hpesx: fix clang -Wformat warnings
Re: [PATCH v2] net: rxrpc: fix clang -Wformat warning
[BasicBlockUtils] Allow critical edge splitting with callbr terminators
Re: [PATCH] riscv: Pass -mno-relax only on lld < 15.0.0
[IR] Don't use blockaddresses as callbr arguments
Re: [PATCH] netfilter: xt_TPROXY: remove pr_debug invocations
Re: [linux-stable-rc:linux-5.10.y 7109/7120] arch/x86/kernel/cpu/bugs.c:57:21: warning: section attribute is specified on redeclared variable
[clang][CodeGen] add fn_ret_thunk_extern to synthetic fns
Re: [PATCH] ubsan: disable UBSAN_DIV_ZERO for clang
Re: [PATCH v3] include/uapi/linux/swab.h: move explicit cast outside ternary
[IR] Don't treat callbr as indirect terminator
[Local] Allow creating callbr with duplicate successors
Re: [PATCH] Makefile.extrawarn: re-enable -Wformat for clang
Re: [PATCH] ASoC: Intel: avs: Mark avs_path_module_type_create() as noinline
Re: [PATCH] can: pch_can: fix uninitialized use of errc
Re: [PATCH] drivers: iommu: fix clang -wformat warning
Re: [PATCH] soc: sof: fix clang -Wformat warnings
Re: [PATCH] drivers: lkdtm: fix clang -Wformat warning
Re: [PATCH v2] drivers: lkdtm: fix clang -Wformat warning
Issue triage and reporting
The unfortunate thing about working at the intersection of two projects is we will often find bugs that are not strictly related to the project, which require some triage and reporting back to the original author of the breakage so that they can be fixed and not impact our own testing. Some of these bugs fall into that category while others are issues strictly related to this project.
Re: [char-misc:char-misc-linus 3/3] drivers/misc/cardreader/rtsx_usb.c:639:6: warning: variable 'ret' is used uninitialized whenever 'if' condition is true
[SimplifyCFG] Thread branches on same condition in more cases (PR54980)
Re: Generating LLVM IR
Re: [PATCH 02/40] drm/amd/display: Add SubVP required code
[LSR] Fix bug for optimizing unused IVs to final values
Re: [PATCH v5 2/4] module: panic: Taint the kernel when selftest modules load
LLVM ERROR: Broken module found, compilation aborted! when building nouveau
"error: undefined symbol: dummy_tramp" with CONFIG_CFI_CLANG
objtool "'naked' return found in RETHUNK build" with clang + CONFIG_K{A,C}SAN=y
objtool: foo() falls through to the next function bar()
Re: Linux v5.19-rc6: Building and testing x86/retbleed
Re: linux-next: Tree for Jul 14
Re: [linux-next:master 7409/10678] drivers/clk/qcom/gpucc-sm8350.c:111:2: error: initializer element is not a compile-time constant
Re: help with clang build for mips
clang-15 crash trying to build linux kernel for Target: powerpc64-unknown-linux
__aeabi_uldivmod in float64_rem() after LLVM commit 3bc09c7da50a7bb2df51b1829f837f017da5ee34
Re: <instantiation>:3:3: error: invalid instruction mnemonic 'annotate_unret_safe'
Re: [git pull] drm fixes for 5.19-rc7
Re: x86_64 build failure of next-20220715 and next-20220718 with clang
Re: [PATCH net-next 18/29] can: pch_can: do not report txerr and rxerr during bus-off
Re: [TCWG CI] Regression caused by llvm: [IR] Don't use blockaddresses as callbr arguments
Re: [PATCH v4 15/25] KVM: VMX: Extend VMX controls macro shenanigans
./kernel/smp.c an unaligned pointer access [-Walign-mismatch]
Re: [TCWG CI] Regression caused by linux: lib/nodemask: inline next_node_in() and node_random()
Re: [linux-stable-rc:linux-4.9.y 967/2229] drivers/staging/android/ion/ion-ioctl.c:71:6: warning: variable 'ret' is used uninitialized whenever 'if' condition is false
cc-option failures after LLVM commit 8f0c901c1a172313a32bc06a1fcface76cd1220f
Re: sound/soc/codecs/wm_adsp.c:1490:32: warning: taking address of packed member 'name' of class or structure 'wm_adsp_host_buf_coeff_v1' may result in an unaligned pointer value
Re: drivers/iio/adc/ti-tsc2046.c:242:62: warning: taking address of packed member 'data' of class or structure 'tsc2046_adc_atom' may result in an unaligned pointer value
Re: [PATCH v2 6/7] HID: uclogic: Add support for UGEE v2 mouse frames
Re: [PATCH v12 08/69] mm: start tracking VMAs with maple tree
Use sccache to speed up builds
ppc44x_defconfig __umoddi3 with '-mcpu=440'
Re: arm ixp4xx_defconfig build failure with linux-next and mainline
Tooling improvements
These are changes to various tools that we use, such as our continuous integration setup, booting utilities, toolchain building scripts, or other closely related projects such as AOSP’s distribution of LLVM and TuxMake.
Behind the scenes
- Every day that there is a new linux-next release, I rebase and build a few different kernel trees then boot and runtime test them on several different machines, including a Windows Subsystem for Linux instance, a Raspberry Pi 3 and 4, an Intel-based desktop, an AMD-based desktop, and an Intel-based laptop. This is not always visible because I do not report anything unless there is something broken but it can take up to a few hours each day, depending on the amount of churn and issues uncovered.
Special thanks to:
- Google and the Linux Foundation for sponsoring my work.