prplos/include
Christian Marangi efd31beb2a image: fix race between mkits.sh and mkimage in .itb squashfs generation
With further investigation it was found a race in generating .itb images
that include a RootFS caused by the mkits.sh and the mkimage.

Due to the fact that mkits.sh generates a .pagesync image of the passed
rootfs, it can happen that, concurrently, mkimage can be called at the
same time mkits.sh is creating another .pagesync for the same rootfs.

This cause mkimage to use an half made rootfs.pagesync creating a
corrupted image.

To address this, also protect the mkimage with the same lock used for
mkits.sh preventing any kind of concurrent usage/generation of the
rootfs.pagesync blob

Fixes: 52cc9d82f1 ("kernel: rework Initramfs locking logic")
Link: https://github.com/openwrt/openwrt/pull/20492
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit 3de1bbd5aeb542de9a4b20eff0f6bbf1767fd6b9)
(cherry picked from commit bdb89ee6dff4742f2d7bcf101077ee6f9f8031f7)
2026-07-09 10:57:30 +01:00
..
overlay-feed BuildSystem: Use cached list of Makefile.append's during package processing 2025-11-16 15:54:49 +00:00
site build: remove ac_cv_header_netinet_sctp_h=no from pre-cached variables 2024-09-22 16:04:09 +02:00
autotools.mk include: autotools: do not symlink files in autoreconf 2024-08-29 20:04:02 +02:00
bpf.mk build: bpf: fix LLVM tool paths with host toolchain 2025-04-09 18:30:49 +02:00
cmake.mk include: cmake.mk: honor CONFIG_DEBUG 2024-11-26 12:23:06 +00:00
debug.mk
default-packages.mk imagebuilder: move handling of DEFAULT_PACKAGES into shareable place 2025-01-03 11:14:12 +01:00
depends.mk build: make find_md5 reproducible with AUTOREMOVE 2022-09-30 22:26:51 +02:00
device_table.txt
download.mk download: improve rawgit tar reliability 2026-07-09 10:57:26 +01:00
feeds.mk build: Unconditionally append kmod feed for BuildBot 2024-12-03 12:41:08 +01:00
hardened-ld-pie.specs
hardening.mk build: add option for building with stack-protector-all 2024-01-19 21:27:14 +01:00
host-build.mk build: add support for host building in a subdirectory 2024-07-27 20:32:20 +02:00
image-commands.mk image: fix race between mkits.sh and mkimage in .itb squashfs generation 2026-07-09 10:57:30 +01:00
image.mk image: integrate the secure initramfs generator 2026-06-22 18:24:25 +02:00
kernel-build.mk kernel-build.mk: Fix multi-core build warning. 2024-10-06 13:49:39 +02:00
kernel-defaults.mk image: add the implementation to support the secure initramfs 2026-06-22 18:24:25 +02:00
kernel-version.mk kernel: move kernel version files to linux/generic directory 2025-07-31 15:27:30 +00:00
kernel.mk loongarch64: new target 2024-05-04 14:14:16 +08:00
logo.png
logo.svg
meson.mk include: meson.mk: honor CONFIG_DEBUG 2024-11-26 12:23:06 +00:00
netfilter.mk iptables: update to 1.8.10 2024-10-22 00:52:03 +02:00
nls.mk nls.mk: fixup cmake packages 2022-11-27 00:52:06 +01:00
openssl-module.mk openssl: add legacy provider 2023-04-05 08:24:49 -03:00
optee-os.mk optee-os.mk: override default PATH to not use hostpkg python 2025-03-17 16:21:23 +01:00
package-bin.mk
package-defaults.mk build: add support for PKG_SUBDIRS variable 2024-07-08 08:49:42 +02:00
package-dumpinfo.mk build: remove duplicate MAINTAINER from package-dumpinfo.mk 2024-05-07 22:24:10 +02:00
package-pack.mk build: add support for checksec.sh based mitigation reports 2025-07-31 15:20:37 +00:00
package-seccomp.mk
package.mk build: exclude checksec report files from rebuild check 2026-02-10 15:26:24 +00:00
prereq-build.mk prereq-build: limit python distutils check to <v3.12 2024-10-16 22:36:43 +02:00
prereq.mk prereq: merge common cases in SetupHostCommand 2023-08-26 14:00:36 +02:00
quilt.mk quilt.mk: don't error on refresh/update if patches doesn't exist 2023-10-06 21:59:29 +02:00
rootfs.mk imagebuilder: complete support for local signing keys 2024-10-29 00:07:52 +01:00
scan.awk BuildSystem: Add <package>/Makefile.append files in all active feeds as dependency for <package>/Makefile 2025-09-15 13:46:17 +03:00
scan.mk Buildsystem: Invalidate OpenWrt package information when some of SCAN_DEPS deleted 2025-09-15 13:46:17 +03:00
shell.sh
subdir.mk kernel-build.mk: add support for compiling only DTS 2024-02-08 19:57:28 +01:00
target.mk target: fix kernel_menuconfig with external feed overwriting generic 2025-07-31 15:29:47 +00:00
toolchain-build.mk
toplevel.mk build: remove targetinfo invalidation based on .config 2025-01-03 11:16:17 +01:00
trusted-firmware-a.mk include/trusted-firmware-a.mk: support LTS releases 2025-06-16 15:35:49 +02:00
u-boot.mk u-boot.mk: pass CROSS_COMPILE during config 2024-09-02 12:42:05 +02:00
uclibc++.mk
unpack.mk include: use libdeflate's gzip to decompress 2023-01-17 21:40:18 +01:00
verbose.mk verbose.mk: fallback to standard file descriptors 2024-01-05 16:25:14 +01:00
version.mk OpenWrt v24.10.4: revert to branch defaults 2026-07-09 10:57:29 +01:00