* [PATCH] sysctl.conf: Set low address space protection sysctl to recommended value
@ 2026-11-19 15:41 Peter Müller
2026-11-19 15:50 ` Michael Tremer
0 siblings, 1 reply; 2+ messages in thread
From: Peter Müller @ 2026-11-19 15:41 UTC (permalink / raw)
To: IPFire: Development
The current setting of protecting only the first 4kB of virtual low
memory dates back to 32-bit ARM support times, where enforcing more was
not feasible. Today's kernel documentation recommends a different value,
suitable for 64-bit architectures, which the generic IPFire kernel
configuration presets already.
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
---
config/etc/sysctl.conf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/config/etc/sysctl.conf b/config/etc/sysctl.conf
index 819076b80..a7a5493bb 100644
--- a/config/etc/sysctl.conf
+++ b/config/etc/sysctl.conf
@@ -24,7 +24,7 @@ net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.all.log_martians = 1
kernel.printk = 1 4 1 7
-vm.mmap_min_addr = 4096
+vm.mmap_min_addr = 65536
vm.min_free_kbytes = 8192
# Disable IPv6 by default.
--
2.51.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] sysctl.conf: Set low address space protection sysctl to recommended value
2026-11-19 15:41 [PATCH] sysctl.conf: Set low address space protection sysctl to recommended value Peter Müller
@ 2026-11-19 15:50 ` Michael Tremer
0 siblings, 0 replies; 2+ messages in thread
From: Michael Tremer @ 2026-11-19 15:50 UTC (permalink / raw)
To: Peter Müller; +Cc: IPFire: Development
Hello Peter,
Thank you for the patch. I have merged it.
Since the value now matches CONFIG_DEFAULT_MMAP_MIN_ADDR in our kernel
configuration, there is no need to set it a second time in sysctl.conf.
I have therefore dropped the line again in a follow-up commit:
https://git.ipfire.org/?p=ipfire-2.x.git;a=commit;h=71b39d14bf
sysctl.conf is also shipped with Core Update 207, so existing systems
will pick up the kernel default.
-Michael
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-19 15:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-19 15:41 [PATCH] sysctl.conf: Set low address space protection sysctl to recommended value Peter Müller
2026-11-19 15:50 ` Michael Tremer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox