aboutsummaryrefslogtreecommitdiffstats
path: root/sys/openbsd/init_test.go
diff options
context:
space:
mode:
authorAnton Lindqvist <anton@basename.se>2020-06-29 20:53:07 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-06-29 21:36:27 +0200
commitcc1e9bc12dd23755159935e93858fcfee121d94e (patch)
tree86c5bf60053759188e212ed04e39f101395db8a2 /sys/openbsd/init_test.go
parentce9ef6f2ec1adbf0f9938934a6164507b969aea8 (diff)
sys/openbsd: neutralize yet another pf ioctl command
Disarms the latest reproducer[1] for the discovered "no output from test machine" panic. While here, tidy up and improve comments. [1] https://syzkaller.appspot.com/bug?id=4c3b1ac22d6d7f1d9ebcad5469a28cb4562debda
Diffstat (limited to 'sys/openbsd/init_test.go')
-rw-r--r--sys/openbsd/init_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/openbsd/init_test.go b/sys/openbsd/init_test.go
index 8ca641f16..c4ec0c0bb 100644
--- a/sys/openbsd/init_test.go
+++ b/sys/openbsd/init_test.go
@@ -20,11 +20,17 @@ func TestNeutralize(t *testing.T) {
In: `fchflags(0x0, 0x60004)`,
Out: `fchflags(0x0, 0x0)`,
},
+ // Note, a random ioctl description used since only the command
+ // is of importance.
{
In: `ioctl$BIOCSDIRFILT(0x0, 0xc0e04429, 0x0)`,
Out: `ioctl$BIOCSDIRFILT(0x0, 0x0, 0x0)`,
},
{
+ In: `ioctl$BIOCSDIRFILT(0x0, 0xc0e04412, 0x0)`,
+ Out: `ioctl$BIOCSDIRFILT(0x0, 0x0, 0x0)`,
+ },
+ {
// major=22, minor=232
In: `mknodat(0x0, 0x0, 0x0, 0x16e8)`,
Out: `mknodat(0x0, 0x0, 0x0, 0x202)`,