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 :)
-
Miscellaneous fixes and improvements: These are fixes and improvements that don’t fit into a particular category but are important to ClangBuiltLinux.
-
Stable backports and fixes: It is important to make sure that the stable trees are as free from issues as possible, as those are the trees that devices and users use; for example, Android and Chrome OS regularly merge from stable, so if there is a problem that will impact those trees that we fixed in mainline, it should be backported.
-
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…irqchip/mips-gic: Fix selection of GENERIC_IRQ_EFFECTIVE_AFF_MASK(v1)Input: ads7846 - Increase xfer array size in 'struct ser_req'(v1)LoongArch: KVM: Ensure ret is always initialized in kvm_eiointc_{read,write}()(v1)iommu/arm-smmu-v3: Import IOMMUFD module namespace(v1)ubifs: Fix uninitialized use of err in ubifs_jnl_write_inode()(v1)riscv: Always inline bitops(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 v7 6/8] x86/module: prepare module loading for ROX allocations of textRe: [PATCH v5 01/16] x86/stackprotector: Work around strict Clang TLS symbol requirementsRe: [PATCH] powerpc/Makefile: Allow overriding CPPRe: [PATCH v7 7/7] Add Propeller configuration for kernel buildRe: [PATCH] kbuild: Fix Propeller build optionRe: [PATCH v2] kbuild: Fix Propeller build optionRe: [PATCH] ARM: cfi: Fix compilation corner caseRe: allmodconfig link failure on -next (relocation R_HEX_B22_PCREL out of range)Re: [PATCH 1/2] scripts/min-tool-version.sh: Raise minimum clang version to 19.1.0 for s390Re: [PATCH 2/2] s390/fpu: Remove inline assembly variants for old clang versionsRe: [PATCH 4/6] block: add a rq_list typeRe: [PATCH] bcachefs: initialize local variables in bch2_evacuate_bucket[llvm] Fix ObjectSizeOffsetVisitor behavior in exact mode upon negative offsetRe: [PATCH v2 0/4] Enable measuring the kernel's Source-based Code Coverage and MC/DC with ClangRe: [PATCH 2/2] string: retire bcmp()Re: [PATCH 1/9] objtool: Generic annotation infrastructureRe: [PATCH RFC] kbuild: disable -Wc23-extensions from clangRe: [PATCH] kconfig: prefer toolchain default for debug information choice
Issue triage, input, 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.
[SelectionDAG] Add preliminary plumbing for `samesign` flagReapply [APInt] Enable APInt ctor assertion by default[CodeGen] Use first EHLabel as a stop gate for live range shrinkingRe: [PATCH v7 6/8] x86/module: prepare module loading for ROX allocations of textRe: [PATCH v3 sched_ext/for-6.13] sched_ext: Do not enable LLC/NUMA optimizations when domains overlapsh_entsize is different between GNU ld and ld.lld after linkingallmodconfig link failure on -next (relocation R_HEX_B22_PCREL out of range)Re: [PATCH v4 28/33] netfs: Change the read result collector to only use one work itemRe: [PATCH 6.11 066/184] media: dvbdev: prevent the risk of out of memory accessRe: [GIT PULL] bcachefsRe: [dhowells-fs:rxrpc-iothread 54/64] net/rxrpc/input.c:902:3: error: invalid operand in inline asm: ' shr${1:z} $1Re: [PATCH 2/3] kbuild: enable objtool for *.mod.o and additional kernel objectsRe: DEFINE_FLEX_test: EXPECTATION FAILED at lib/overflow_kunit.c:1200:[llvm] Fix behavior of llvm.objectsize in presence of negative / large offsetRe: pc : qnoc_probe (drivers/interconnect/qcom/icc-rpmh.c:269) : Dragonboard 410c - arm64 - boot failedRe: korg-clang-19-lkftconfig-hardening: TI x15 board - PC is at edma_probe (drivers/dma/ti/edma.c[SDAG] Don't allow implicit trunc in getConstant()
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.
runtime: docker: Enable SPARC for clang-nightlypatches: Apply fix for -Wframe-larger-than in vdec_vp9_req_lat_if.cAdd support for sparc64Add initial support for testing sparc64Update stable to 6.12tc_build: llvm: Add Sparc to default targetsUpdate patches (November 22, 2024)
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 Raspberry Pi 4, a Raspberry Pi 3, a SolidRun Honeycomb LX2, an Ampere Altra Developer Platform, two Intel-based desktops, 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.
-
I hosted a Linux Foundation webinar on building the Linux kernel with LLVM.
-
I ran the November 13th ClangBuiltLinux bi-weekly meeting.
Special thanks
Special thanks to Google and the Linux Foundation for sponsoring my work.