ladybird/Ports/stress-ng/patches/0006-serenity-Disable-signal-code-validation-for-Serenity.patch
Brian Gianforcaro 83abc83d3c Ports/stress-ng: Update stress-ng to 0.13.12
This required updating a bunch of patches which had conflicts
in the latest version.

New Patches:
- serenity: Add bogus O_NDELAY just to allow the port to compile
- serenity: Disable nice() stress workload as we do not implement it
- serenity: Disable prctl stressor on serenity
2022-03-18 11:59:35 +00:00

32 lines
994 B
Diff

From 955e2e55837b71175a229b0871c57f6b5017f82a Mon Sep 17 00:00:00 2001
From: Brian Gianforcaro <b.gianfo@gmail.com>
Date: Mon, 27 Dec 2021 23:30:03 -0800
Subject: [PATCH 06/14] serenity: Disable signal code validation for Serenity
We don't currently have a definition for SEGV_ACCERR, so
this validation is meaningless for SerenityOS.
---
stress-sigsegv.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/stress-sigsegv.c b/stress-sigsegv.c
index 9930c0e..d6ce99a 100644
--- a/stress-sigsegv.c
+++ b/stress-sigsegv.c
@@ -250,10 +250,13 @@ static int stress_sigsegv(const stress_args_t *args)
pr_fail("%s: expecting SIGSEGV/SIGILL/SIGBUS, got %s instead\n",
args->name, strsignal(signo));
}
+
+#if !defined(__serenity__)
if (verify && (signo == SIGBUS) && (code != SEGV_ACCERR)) {
pr_fail("%s: expecting SIGBUS si_code SEGV_ACCERR (%d), got %d instead\n",
args->name, SEGV_ACCERR, code);
}
+#endif
#endif
inc_counter(args);
} else {
--
2.32.0