]> git.ipfire.org Git - thirdparty/openwrt.git/commit
apk: backport upstream fixes for unaligned access main master 21958/head
authorMatt Merhar <mattmerhar@protonmail.com>
Mon, 9 Feb 2026 23:20:39 +0000 (18:20 -0500)
committerRobert Marko <robert.marko@sartura.hr>
Tue, 10 Feb 2026 14:06:52 +0000 (15:06 +0100)
commit64ec08eee1cc35417a6b0189e40b92665056da25
tree01074e45084697e773baeafe35e6079edb9f2092
parent3b450b23fe0fe9ce7eb65cd41239a1ad070803b1
apk: backport upstream fixes for unaligned access

On the kirkwood target, packages would frequently fail to install with
APKE_ADB_SCHEMA, APKE_ADB_BLOCK, and/or segfaults. The culprit was
unaligned access leading to bogus values being read out of memory on
these particular ARMv5 CPUs.

Pull in the relevant upstream fixes to address this.

Fixes: https://github.com/openwrt/openwrt/issues/21307
Link: https://gitlab.alpinelinux.org/alpine/apk-tools/-/merge_requests/391
Link: https://gitlab.alpinelinux.org/alpine/apk-tools/-/merge_requests/392
Signed-off-by: Matt Merhar <mattmerhar@protonmail.com>
Link: https://github.com/openwrt/openwrt/pull/21958
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
package/system/apk/Makefile
package/system/apk/patches/0030-defines-align-apk_array.patch [new file with mode: 0644]
package/system/apk/patches/0031-defines-rework-apk_unaligned_-helpers.patch [new file with mode: 0644]
package/system/apk/patches/0032-extract_v3-fix-unaligned-access-of-file-mode.patch [new file with mode: 0644]
package/system/apk/patches/0033-io-synchronize-istream-buffer-alignment-with-file-of.patch [new file with mode: 0644]