From cc1e9bc12dd23755159935e93858fcfee121d94e Mon Sep 17 00:00:00 2001 From: Anton Lindqvist Date: Mon, 29 Jun 2020 20:53:07 +0200 Subject: 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 --- sys/openbsd/init_test.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sys/openbsd/init_test.go') 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,10 +20,16 @@ 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)`, -- cgit mrf-deployment