aboutsummaryrefslogtreecommitdiffstats
path: root/prog
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2021-10-21 10:01:42 +0200
committerDmitry Vyukov <dvyukov@google.com>2021-10-21 15:05:10 +0200
commitcb750656d058a944d71e9fa3559c99fa5cb02772 (patch)
treea64f54a475229f5b046befb5b0cec14098062c6a /prog
parent15532b85931582f968ac7fc49e0cabd35e93baf3 (diff)
sys/linux: add descriptions of epoll_pwait2 syscall
See: https://elixir.bootlin.com/linux/v5.15-rc6/source/fs/eventpoll.c#L2279
Diffstat (limited to 'prog')
-rw-r--r--prog/decl_test.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/prog/decl_test.go b/prog/decl_test.go
index b7d25623c..6cec10e27 100644
--- a/prog/decl_test.go
+++ b/prog/decl_test.go
@@ -73,18 +73,19 @@ func TestTransitivelyEnabledCallsLinux(t *testing.T) {
}
delete(calls, target.SyscallMap["epoll_create1"])
trans, disabled := target.TransitivelyEnabledCalls(calls)
- if len(calls)-7 != len(trans) ||
+ if len(calls)-8 != len(trans) ||
trans[target.SyscallMap["epoll_ctl$EPOLL_CTL_ADD"]] ||
trans[target.SyscallMap["epoll_ctl$EPOLL_CTL_MOD"]] ||
trans[target.SyscallMap["epoll_ctl$EPOLL_CTL_DEL"]] ||
trans[target.SyscallMap["epoll_wait"]] ||
trans[target.SyscallMap["epoll_pwait"]] ||
+ trans[target.SyscallMap["epoll_pwait2"]] ||
trans[target.SyscallMap["kcmp$KCMP_EPOLL_TFD"]] ||
trans[target.SyscallMap["syz_io_uring_submit$IORING_OP_EPOLL_CTL"]] {
t.Fatalf("epoll fd is not disabled")
}
- if len(disabled) != 7 {
- t.Fatalf("disabled %v syscalls, want 7", len(disabled))
+ if len(disabled) != 8 {
+ t.Fatalf("disabled %v syscalls, want 8", len(disabled))
}
for c, reason := range disabled {
if !strings.Contains(reason, "no syscalls can create resource fd_epoll,"+