From 2ba2c1a2e6c679e0cf4344338fca0734334d0033 Mon Sep 17 00:00:00 2001 From: anton Date: Tue, 23 Jan 2024 10:27:12 +0000 Subject: [PATCH] Place the blob in the .openbsd.mutable section to cope with recent madvise(2) changes. ok deraadt@ --- regress/sys/kern/exec_self/exec_self.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/regress/sys/kern/exec_self/exec_self.c b/regress/sys/kern/exec_self/exec_self.c index 7d3e67a441a..5e7b6ef77f8 100644 --- a/regress/sys/kern/exec_self/exec_self.c +++ b/regress/sys/kern/exec_self/exec_self.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exec_self.c,v 1.2 2016/03/17 19:40:43 krw Exp $ */ +/* $OpenBSD: exec_self.c,v 1.3 2024/01/23 10:27:12 anton Exp $ */ /* * Written by Artur Grabowski 2002 Public Domain. */ @@ -13,7 +13,7 @@ struct { const char pad1[256*1024]; /* avoid read-ahead. */ const char string[256*1024]; /* at least one page */ const char pad2[256*1024]; /* avoid read-behind. */ -} const blob = { +} const blob __attribute__((section(".openbsd.mutable"))) = { "padding1", "the_test", "padding2" -- 2.20.1