2
0

5 Commits

Author SHA1 Message Date
dan f6978f9770 Merge remote-tracking branch 'pcc/mitig' 2026-05-27 13:10:19 +01:00
dan f85d4a66ca Merge remote-tracking branch 'pcc/hrt' 2026-05-27 13:07:47 +01:00
Peter Collingbourne 0cb8383b90 Adjust kernel exploit mitigation settings on arm64
CONFIG_RANDOMIZE_BASE enables KASLR. It doesn't increase the size of the
kernel image for OpenWrt One (technically it increases .text size by 256
bytes, but that was cancelled out by alignment padding). Set this to y on
arm64. The other architectures are not modified (arm doesn't support it,
and mips only supports it for some targets).

CONFIG_ARM64_PTR_AUTH is enabled by default by the kernel and enables
pointer authentication instructions at entry and exit of most kernel
functions. However, none of our targets support pointer authentication,
so these instructions are just taking up space for no purpose. Set this
one to n, which reduces OpenWrt One kernel image size by 24KB.
2026-05-24 03:56:29 -07:00
Peter Collingbourne 3ed4e32525 Enable CONFIG_HIGH_RES_TIMERS in the default kernel config
At least on OpenWrt One, the kernel default of
CONFIG_HIGH_RES_TIMERS=n causes slow SPI NAND access speeds. See:
https://lore.kernel.org/all/CAPQLkRit9bRH2gnSpvt60evu31T=1YNFdTFH2emS6RSsY=eDJQ@mail.gmail.com/

Since this doesn't seem to be an inherently device-specific issue,
and leaving it disabled may cause other performance problems that are
difficult to debug, enable it in the default config.
2026-05-23 19:21:28 -07:00
dan 430ed12902 think 2026-05-11 12:23:32 +01:00
3 changed files with 18 additions and 0 deletions
+12
View File
@@ -8748,3 +8748,15 @@ time the file changes, which doesn't seem less complicated as it adds
some kind of inotify to the thigs that can go wrong.
fennel or rust?
Wed Apr 29 11:52:58 BST 2026
I left the slops code on my laptop, but we can fake it using nginx for
testing purposes
Need
- a source of secrets accessible through bordervm, preferably at the
same url as it would be in "prod"
- for outsdie, x
+3
View File
@@ -16,6 +16,9 @@
OF = "y";
# USE_OF = "y";
ARM64_PTR_AUTH = "n";
RANDOMIZE_BASE = "y";
};
hardware.ram.startAddress = lim.parseInt "0x40000000";
system.outputs.u-boot = pkgs.ubootQemuAarch64;
+3
View File
@@ -130,6 +130,9 @@ in
# at boot time unless we disable trying to call it.
# https://lkml.org/lkml/2013/8/5/175
FW_LOADER_USER_HELPER = "n";
# SPI NAND access may be slow without this.
HIGH_RES_TIMERS = "y";
};
};
};