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 :)
arm64: alternatives: Use vdso/bits.h instead of linux/bits.h
(v1
)drm/amd/display: Fix build breakage with CONFIG_DEBUG_FS=n
(v1
)lib/Kconfig.debug: Add check for non-constant .{s,u}leb128 support to DWARF5
(v2
)pinctrl: qcom: Include bitfield.h in pinctrl-lpass-lpi.c
(v1
)bpf: Mark bpf_arch_init_dispatcher_early() as __init_or_module
(v1
)
-
Miscellaneous fixes: These are fixes and improvements that don’t fit into a particular category but are important to ClangBuiltLinux.
-
Stable backports: 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…fs/ntfs3: Don't use uni1 uninitialized in ntfs_d_compare()
(v1
,v2
)of: Define of_match_ptr() with PTR_IF() to avoid unused variable warnings
(v1
)mm/memremap: Mark folio_span_valid() as __maybe_unused
(v1
)coresight: cti: Remove unused variables in cti_{dis,en}able_hw()
(v1
)drm/amdgpu: Fix uninitialized warning in mmhub_v2_0_get_clockgating()
(v1
)mm/khugepaged: Initialize index and nr in collapse_file()
(v1
)hwmon: (smpro-hwmon) Add missing break in smpro_is_visible()
(v1
,v2
)
LLVM patches
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] lib/Kconfig.debug: Add check for non-constant .{s,u}leb128 support to DWARF5
[Driver] Prevent Mips specific code from claiming -mabi argument on other targets.
Re: [PATCH] hardening: Remove Clang's enable flag for -ftrivial-auto-var-init=zero
Re: [PATCH 1/3] Kconfig.debug: simplify the dependency of DEBUG_INFO_DWARF4/5
Re: [PATCH 2/3] Kconfig.debug: add toolchain checks for DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT
Re: [PATCH 3/3] Kconfig.debug: split debug-level and DWARF-version into separate choices
Re: [Intel-gfx] [PATCH] drm/i915: Fix CFI violations in gt_sysfs
Re: [PATCH v2 33/39] x86/cpufeatures: Limit shadow stack to Intel CPUs
Re: [PATCH] ARM: NWFPE: avoid compiler-generated __aeabi_uldivmod
Re: [PATCH] kbuild: add -fno-discard-value-names to cmd_cc_ll_c
Re: [PATCH] sched: Introduce struct balance_callback to avoid CFI mismatches
Re: [PATCH v2] Remove Intel compiler support
Re: [PATCH 1/2] riscv: fix detection of toolchain Zicbom support
Re: [PATCH 2/2] riscv: fix detection of toolchain Zihintpause support
[PATCH v4 0/4] pass -march= only to compiler
Re: [PATCH v2] fs/select: mark do_select noinline_for_stack
Re: upgrade the orphan section warning to a hard link error
Re: [PATCH] string: Convert strscpy() self-test to KUnit
Re: [PATCH] fortify: Short-circuit known-safe calls to strscpy()
Re: [RESEND PATCH v5] x86, mem: move memmove to out of line assembler
Re: [PATCH v10 00/11] landlock: truncate support
Re: [PATCH][next] wifi: rtl8xxxu: Fix reads of uninitialized variables hw_ctrl_s1, sw_ctrl_s1
Re: [PATCH] Makefile.debug: support for -gz=zstd
Re: [PATCH v4] overflow: Introduce overflows_type() and castable_to_type()
- ```[PATCH 1/5] compiler-gcc: be consistent with underscores use for `no_sanitize````
Re: [PATCH 1/1] kbuild: upgrade the orphan section warning to an error if CONFIG_WERROR is set
Re: backports of 32ef9e5054ec ("Makefile.debug: re-enable debug info for .S files")
Re: [PATCH v2] kbuild: fix SIGPIPE error message for AR=gcc-ar and AR=llvm-ar
Re: [PATCH v3 1/1] drm/amd/display: add DCN support for ARM64
Re: [PATCH] s390: always build relocatable kernel
Re: [PATCH] scripts/min-tool-version.sh: raise minimum clang version to 15.0.0 for s390
Re: [PATCH] drm/imx: imx-tve: Fix return type of imx_tve_connector_mode_valid
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.
[qemu-system-s390x] 7.1.0-6 fails to starts due to missing firmware
Re: [linux-next:master 7287/11993] s390x-linux-ld: topology.c:undefined reference to `__tsan_memcpy'
Re: [PATCH v8 4/9] landlock: Support file truncation
"fixup value out of range" with arm64 allmodconfig + ThinLTO with kCFI
Re: [PATCH v9 00/11] landlock: truncate support
Re: sound/soc/codecs/src4xxx-i2c.c:28:34: warning: unused variable 'src4xxx_of_match'
Re: [PATCH stable 5.15 0/2] kbuild: Fix compilation for latest pahole release
Re: [mm] f35b5d7d67: will-it-scale.per_process_ops -95.5% regression
Re: [PATCH v3 48/59] x86/retbleed: Add SKL return thunk
s390 misaligned symbol linker errors
Unknown results and empty builds.json
Re: [PATCH 03/16] ASoC: SOF: ops: add readb/writeb helpers
Re: [PATCH v3 28/28] mfd: intel-lpss: Remove #ifdef guards for PM related functions
Re: [PATCH 5.4 086/255] once: add DO_ONCE_SLOW() for sleepable contexts
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.
qemu: Temporarily switch to testing repo for updated QEMU packages
Adjust CFI builds for kCFI in mainline
boot-qemu.py: Fix get_linux_ver_code() when CONFIG_LOCALVERSION_AUTO is not set
build-llvm.py: Adjust BOLT + PGO warning for upstream fix
Fix application of NWFPE patches on Android and stable trees
check_logs.py: Increase attempts to verify build status to 9
Update to Linux 6.0 and the known good revision
Allow user to control binutils source folder location and installation
CONFIG_KASAN_KUNIT_TEST requires tracing now
patches: Apply patch for bpf recordmcount issue
patches: Apply 2120635108b35ecad9c59c8b44f6cbdf4f98214e to arm64 trees
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, an Intel-based laptop, and a SolidRun Honeycomb LX2. 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.