From 36f35f471467d3aa2fa9922902e2ed72d53f91a1 Mon Sep 17 00:00:00 2001 From: Anton Lindqvist Date: Tue, 21 Jul 2020 09:03:53 +0200 Subject: sys/openbsd: neutralize sysctl kern.maxclusters One of "no output from test machine" report causes[1]. Since it's a root only knob, disallow fiddling with it for now. [1] https://syzkaller.appspot.com/bug?id=a222a4193c0a9814e02fcc61b7343a5af04a7457 --- sys/openbsd/init_test.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sys/openbsd/init_test.go') diff --git a/sys/openbsd/init_test.go b/sys/openbsd/init_test.go index c4ec0c0bb..7635d2159 100644 --- a/sys/openbsd/init_test.go +++ b/sys/openbsd/init_test.go @@ -82,5 +82,10 @@ func TestNeutralize(t *testing.T) { // RLIMIT_CPU In: `setrlimit(0x0, &(0x7f0000cc0ff0)={0x1, 0x1})`, }, + { + // CTL_KERN, KERN_MAXCLUSTERS + In: `sysctl$kern(&(0x7f0000cc0ff0)={0x1, 0x43}, 0x0, 0x0, 0x0, &(0x7f0000000180), 0x0)`, + Out: `sysctl$kern(&(0x7f0000cc0ff0)={0x0}, 0x0, 0x0, 0x0, &(0x7f0000000180), 0x0)`, + }, }) } -- cgit mrf-deployment