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.
s390: Support linking with ld.lld
(v1
)kbuild: Fix changing ELF file type for output of gen_btf for big endian
(v1
,v2
)s390: Don't allow CONFIG_COMPAT with LD=ld.lld
(v1
)s390/boot: Add 'alloc' to info.bin .vmlinux.info section flags
(v1
)s390/boot: Workaround current 'llvm-objdump -t -j ...' behavior
(v1
)thermal: core: Move initial num_trips assignment before memcpy()
(v1
)
-
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…
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.
media: Fix warnings building with LLVM=1
Re: [PATCH 1/2] Compiler Attributes: Add __uninitialized macro
Re: [PATCH 2/2] s390/fpu: make use of __uninitialized macro
Re: [PATCH 1/4] kbuild: rpm-pkg: do not include depmod-generated files
Re: [PATCH 2/4] kbuild: rpm-pkg: mark installed files in /boot as %ghost
Re: [PATCH 1/6] tools/rtla: Fix Makefile compiler options for clang
Re: [PATCH] kbuild: Use -fmin-function-alignment when available
Re: [PATCH v2] kbuild: Use -fmin-function-alignment when available
Re: Patch "modpost: Add '.ltext' and '.ltext.*' to TEXT_SECTIONS" has been added to the 6.6-stable tree
Re: Patch "um: Fix adding '-no-pie' for clang" has been added to the 6.1-stable tree
Re: Patch "um: Fix adding '-no-pie' for clang" has been added to the 5.15-stable tree
Re: [PATCH 5.15 380/476] kbuild: Fix changing ELF file type for output of gen_btf for big endian
Re: [PATCH] arm64: ftrace: Don't forbid CALL_OPS+CC_OPTIMIZE_FOR_SIZE with Clang
Add support for kernel.org LLVM
Re: [PATCH 0/7] CFI for ARM32 using LLVM
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.
Re: [PATCH, RESEND] x86/sev: Fix SEV check in sev_map_percpu_data()
Re: [PATCH V8 08/12] drm/bridge: imx: add driver for HDMI TX Parallel Video Interface
Re: [tip: x86/bugs] x86/retpoline: Ensure default return thunk isn't used at runtime
[AArch64] Add soft-float ABI
Re: [PATCH] s390/boot: Add 'alloc' to info.bin .vmlinux.info section flags
[LIR][SCEVExpander] Restore original flags when aborting transform
Re: [PATCH 2/2] pidfd: add pidfdfs
TuxSuite's libelf.so is too old for zstd compressed debug sections
New instances of -Wenum-enum-conversion and -Wenum-compare-conditional after LLVM commit 8c2ae42b3e1c
Re: [PATCH v3 05/24] ALSA: hwdep: Use guard() for locking
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.
Drop android12-5.10 and android13-5.10 patches
patches: mainline: Drop UML series
- Update for
ruff 0.2.0
Fix known failures (February 5, 2024)
Update patches (February 12, 2024)
docker: clang-android: Update to r510928 (18.0.0)
Add support for linking certain s390 kernels with ld.lld
Use LLVM=1 for ARCH=s390 on linux-next with tip of tree LLVM
patches: Update net/xfrm/xfrm_user.c patch with submitted version
patches: Remove stable patches that are now released (Feb 25, 2024)
boot-qemu.py: Add support for booting ARCH=arm kernels via EFI
Disable CONFIG_DEBUG_INFO_COMPRESSED_ZSTD for Android for now
patches: Drop 6.1 patches that are now applied/released
Use kernel.org clang whenever possible
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, 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.
-
I ran the February 7th and 21st ClangBuiltLinux meetings.
-
I continue to upload stable LLVM releases to kernel.org to ensure kernel developers have easy access to LLVM for reproducing and fixing issues that they introduce.
Special thanks
Special thanks to Google and the Linux Foundation for sponsoring my work.