diff options
| author | Anton Lindqvist <anton@basename.se> | 2020-07-21 09:03:53 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-07-21 12:15:13 +0200 |
| commit | 36f35f471467d3aa2fa9922902e2ed72d53f91a1 (patch) | |
| tree | 275da810b7f16ebdce6b22694148f1478eb5c482 /sys/openbsd/init_test.go | |
| parent | d88894e6773ab63ac8b3f4b2edbae88290aaf0d6 (diff) | |
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
Diffstat (limited to 'sys/openbsd/init_test.go')
| -rw-r--r-- | sys/openbsd/init_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
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)`, + }, }) } |
