Package: dpkg-dev
Version: 1.22.0
Severity: normal
-fstack-clash-protection is supposed to be enabled by default on amd64, arm64, armhf, and armel since dpkg 1.22.0: https://git.dpkg.org/cgit/dpkg/dpkg.git/diff/?id=11efff1bf
However, due to an issue in the following conditional in scripts/Dpkg/Vendor/Debian.pm, the flag is only on for amd64 and arm64:
if (none { $cpu eq $_ } qw(amd64 arm64 armhf armel)) {
The value of $cpu is "arm" for both armhf and armel. Please change the
line above to:
if (none { $cpu eq $_ } qw(amd64 arm64 arm)) {
On Thu, 2023-10-26 at 11:40:53 +0200, Emanuele Rocca wrote:
Package: dpkg-dev
Version: 1.22.0
Severity: normal
-fstack-clash-protection is supposed to be enabled by default on amd64, arm64, armhf, and armel since dpkg 1.22.0: https://git.dpkg.org/cgit/dpkg/dpkg.git/diff/?id=11efff1bf
However, due to an issue in the following conditional in scripts/Dpkg/Vendor/Debian.pm, the flag is only on for amd64 and arm64:
if (none { $cpu eq $_ } qw(amd64 arm64 armhf armel)) {
The value of $cpu is "arm" for both armhf and armel. Please change the
line above to:
if (none { $cpu eq $_ } qw(amd64 arm64 arm)) {
Ah, nice catch, and sorry! I think this happened due to copy pasting
and modifying one of the surrounding lines. The intention was to use
$arch here, to avoid enabling this on all arm-based arches which might
not support this. I've queued the attached patch for my next push.
Checking now again, I realize Wookey mentioned enabling this for the 3
arm arches (those would be arm64, armhf and armel), so the patch I
provided would match that. But I was wondering now what about armeb and arm64ilp32? I mean, I assume those should be excluded for now as they
did not get any testing, and they might not even be used/lively(?),
Are either of those ports (armeb/arm64ilp32) actually useful / alive
at this point?
Hi Guillem,
On 2023-10-27 04:33, Guillem Jover wrote:
Checking now again, I realize Wookey mentioned enabling this for the 3
arm arches (those would be arm64, armhf and armel), so the patch I
provided would match that. But I was wondering now what about armeb and
arm64ilp32? I mean, I assume those should be excluded for now as they
did not get any testing, and they might not even be used/lively(?),
Correct, there has been no testing done on armeb/arm64ilp32 as far as
I'm aware. I'd suggest enabling the feature only on armhf/armel for the
time being.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 10:30:05 |
Calls: | 10,389 |
Calls today: | 4 |
Files: | 14,061 |
Messages: | 6,416,854 |
Posted today: | 1 |