From 1c5668acd4a3c07dcfc490d3eb3ba86612184df9 Mon Sep 17 00:00:00 2001 From: Anhad Singh Date: Fri, 20 Feb 2026 16:30:49 +1100 Subject: [PATCH] feat(dso): do not zero memory The region is mapped with the `MAP_ANONYMOUS` and thus already initialised with zeros. According to POSIX Issue 8: > Anonymous memory objects shall be initialized to all bits zero. Signed-off-by: Anhad Singh --- src/ld_so/dso.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ld_so/dso.rs b/src/ld_so/dso.rs index a4b4cbe129..6dfa71df71 100644 --- a/src/ld_so/dso.rs +++ b/src/ld_so/dso.rs @@ -558,7 +558,6 @@ impl DSO { ); } log::trace!(" = {:p}", ptr); - ptr::write_bytes(ptr.cast::(), 0, size); _r_debug .lock() .insert(ptr as usize, path, ptr as usize + l_ld as usize);