mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-27 13:20:34 +00:00
b655d91b8c
This is one of the root causes of the 'no output from test machine' panic. Issuing a DIOCKILLSTATES ioctl on a /dev/pf file descriptor will cause state associated with ongoing connections to be purged; effectively killing the ssh connection to the VM. Including net/pfvar.h is necessary in order to make use of the DIOCKILLSTATES define.
18 lines
501 B
Plaintext
18 lines
501 B
Plaintext
# Copyright 2020 syzkaller project authors. All rights reserved.
|
|
# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
|
|
|
|
include <sys/types.h>
|
|
include <sys/time.h>
|
|
include <sys/fcntl.h>
|
|
include <sys/ioctl.h>
|
|
include <net/if.h>
|
|
|
|
include <net/pfvar.h>
|
|
|
|
# This ioctl is restricted in SanitizeCall(), see init.go.
|
|
_ = DIOCKILLSTATES
|
|
|
|
resource fd_pf[fd]
|
|
|
|
openat$pf(fd const[AT_FDCWD], file ptr[in, string["/dev/pf"]], flags flags[open_flags], mode const[0]) fd_pf
|