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 failures: 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: Improve HAVE_DYNAMIC_FTRACE_WITH_REGS selection for clang
(v1
)
-
Downstream patches: Downstream consumers of our work are not always paying attention to the changes that we land every release so it is important to give them a little help. In this case, we had to disable
CONFIG_FORTIFY_SOURCE
for clang upstream since it was broken, which impacted Android. As this is an important security feature, it is important that it gets re-enabled once it is fixed, which is what the following change does. -
Stable backports and patches: These are patches 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.
Backport of 4013e26670c5 and 60210a3d86dc for 4.9 to 5.10
(v1
)Fix two instances of -Wstrict-prototypes in drm/amd
(v1
)btrfs warning fixes for 5.15 and 5.17
Apply d799769188529abc6cbf035a10087a51f7832b6b to 5.17 and 5.15?
-
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 everyone 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.
-
Re: [PATCH 1/3] kbuild: Change CFI_CLANG to depend on __builtin_function_start
-
Re: [tip: x86/build] x86/configs: Add x86 debugging Kconfig fragment plus docs
-
Re: [PATCH] drm/amd/display: fix 64 bit divide in freesync code
-
Re: [PATCH] drm/amd/display: fix 64 bit divide in freesync code
-
Re: [PATCH] usb: typec: tipd: improve handling of failures in interrupt handlers
-
Re: [PATCHv4] drm/amdgpu: disable ASPM on Intel Alder Lake based systems
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: [next] riscv: Linux next-20220404 riscv defconfig builds failed.
-
arm64 defconfig kernel (4.14.275) no longer boots after FEAT_LPA implementation in TCG
-
Re: [PATCH v3 14/17] fbcon: Move console_lock for register/unlink/unregister
-
Re: [PATCH v2 05/11] smp: replace smp_call_function_single_async() with smp_call_private()
-
Re: Android 11 clang toochain: kernel 5.18 build error with 32 bit target
-
[RISCV] Merge addi into load/store as there is a ADD between them
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.
-
check_logs.py: Set execute bit for UML images before running 'boot-uml.sh'
-
boot-qemu.sh: Use different CPU for arm64 with new QEMU + old kernel
-
build-llvm.py: Dynamically link the instrumented stage against libLLVM
-
boot-qemu.sh: Use implementation defined pointer authentication algorithm
-
boot-utils: Upgrade for implementation defined pointer authentication
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.
-
Two new blog posts, which may help other developers over time:
-
I wrote a Python script for easily driving QEMU, which is useful for testing new changes or verifying issues in a safe and easy to debug manner.
Special thanks to:
- Google and the Linux Foundation for sponsoring my work.