Re: [PATCH 1/1] init/initramfs_test: wait_for_initramfs() before running
From: Christian Brauner
Date: Fri May 22 2026 - 09:05:36 EST
On Tue, 19 May 2026 09:39:37 +0000, Jia He wrote:
> initramfs_test_extract() and friends call unpack_to_rootfs() from a
> kunit kthread while do_populate_rootfs() may still be running
> asynchronously from rootfs_initcall. unpack_to_rootfs() keeps its
> parser state in module-static variables (victim, byte_count, state,
> this_header, header_buf, name_buf, ...), so the two writers corrupt
> each other.
>
> [...]
Applied to the vfs-7.2.misc branch of the vfs/vfs.git tree.
Patches in the vfs-7.2.misc branch should appear in linux-next soon.
Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.
It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.
Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs-7.2.misc
[1/1] init/initramfs_test: wait_for_initramfs() before running
https://git.kernel.org/vfs/vfs/c/c876fe9797d8