From cb750656d058a944d71e9fa3559c99fa5cb02772 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 21 Oct 2021 10:01:42 +0200 Subject: sys/linux: add descriptions of epoll_pwait2 syscall See: https://elixir.bootlin.com/linux/v5.15-rc6/source/fs/eventpoll.c#L2279 --- prog/decl_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'prog') 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,"+ -- cgit mrf-deployment