From 39e878725b2c71d10726c97a69a7e12331c47f24 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Wed, 5 Jul 2023 18:26:16 +0200 Subject: seitan: Zero out the request structure before SECCOMP_IOCTL_NOTIF_RECV Otherwise we'll get EINVAL (as expected) -- reproducibly, at least, when we handle more than one call. Signed-off-by: Stefano Brivio --- seitan.c | 1 + 1 file changed, 1 insertion(+) diff --git a/seitan.c b/seitan.c index bd1a7e2..eff6523 100644 --- a/seitan.c +++ b/seitan.c @@ -241,6 +241,7 @@ loop: die("error on notifier"); } + memset(req, 0, sizeof(*req)); if (ioctl(notifier, SECCOMP_IOCTL_NOTIF_RECV, req) < 0) die("receiving seccomp notification: %s", strerror(errno)); -- cgit v1.2.3