Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp843596ybl; Fri, 30 Aug 2019 08:00:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqwsqE8h8XDTjnlNCP6uGaLZwjYdAXDJfC3t2WM7T/O/ZOCyuIUyb1xtAghMbFuyu2UR0yd2 X-Received: by 2002:a17:902:860b:: with SMTP id f11mr16010769plo.48.1567177248572; Fri, 30 Aug 2019 08:00:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567177248; cv=none; d=google.com; s=arc-20160816; b=PP2ejSC/7jrZkNzVxjC5KPB0+HcAqHibegZE85THwDDZr78LIkMsd4+uU1qldW5tgK OSJVagpNx/fnRAwKs6IuTRjm9K/rVmnVNNbPLnXHBYGIpHqilXdWh/ZDgietjuBoU4gN kus+ryrc2WTRQMPo5SNnphO/cqR4nSThOLY1ZsvdVV/hJHZEiKsY9WPHJ61Hk68117Cz rct/lhlWFPJHwIpRR2wY04jp9D0Uf8akfiA9gJTan+HmGH5Z52pSgIE86HjfMlJB51/R gNOI83jMVgGdm2AIMRrLgH8zX/DPpMYq+Mfatg2XOHpirTw0EYSDWNxnW65NVtNcACCp +VlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=+jXn5+hlqRE7Wcqj7bDTTIHWPnIvkA2eaoASgUDHNr4=; b=kedXZKotRcLM054qI0/NP/APd5weCf8X18D/qqJdoO/q5ZL0YYTrCC+3EzSQ51RD+E gKucVa9IpxLrjbEu7GEDN8nJNpdnmsj7Z7TMe41/lopPAklq5mauvxPmEUfen4GTShHo RDl2d8pMtLT+xtcv5pNYlGVN/zisKqZp3sl+IL/CUB9DDibFeLzVLxxxtAFCl0qtbArs s6Hyvqw2+TR25UDHyckKeV2MGFfPV09EyV7NXdzaKUfR7VVKGeCohOLH0/PUvKSrIKNr LJA4NWjJsTReNM23EJs7pxu6+GfC1YyK/ymQZM7aggafA9XZSnw2eUW508rx4M3LAquS +Otw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="u1JFAqN/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z1si6299418pff.145.2019.08.30.08.00.33; Fri, 30 Aug 2019 08:00:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="u1JFAqN/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727968AbfH3O7j (ORCPT + 99 others); Fri, 30 Aug 2019 10:59:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:39098 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727751AbfH3O7i (ORCPT ); Fri, 30 Aug 2019 10:59:38 -0400 Received: from [192.168.1.112] (c-24-9-64-241.hsd1.co.comcast.net [24.9.64.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 70C352341B; Fri, 30 Aug 2019 14:59:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567177177; bh=yuEg/AYA1c6NUhWecZUlheoiYTGMOlPXr3slJwLMjBE=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=u1JFAqN/QGD4Fr1TrQB0MS943k5rWA952cBRxVbOh9N0fjLhRovc2G1XoK6mDEGXl zQRqexm0Nzp2k5V9m7YyupViYZnXtEYln5bMhI0CMIUjUrnDUCChwEioFkGkCjYBXv Br+Hx3PpKg8ee/48k5R/YO9a0jdkk06ep3gGNN0A= Subject: Re: [PATCH] seccomp: fix compilation errors in seccomp-bpf kselftest To: Alakesh Haloi , Kees Cook , Andy Lutomirski , Will Drewry , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song Cc: linux-kselftest@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, shuah References: <20190822215823.GA11292@ip-172-31-44-144.us-west-2.compute.internal> <30e993fe-de76-9831-7ecc-61fcbcd51ae0@kernel.org> From: shuah Message-ID: Date: Fri, 30 Aug 2019 08:59:35 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <30e993fe-de76-9831-7ecc-61fcbcd51ae0@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/30/19 8:09 AM, shuah wrote: > On 8/22/19 3:58 PM, Alakesh Haloi wrote: >> Without this patch we see following error while building and kselftest >> for secccomp_bpf fails. >> >> seccomp_bpf.c:1787:20: error: ‘PTRACE_EVENTMSG_SYSCALL_ENTRY’ >> undeclared (first use in this function); >> seccomp_bpf.c:1788:6: error: ‘PTRACE_EVENTMSG_SYSCALL_EXIT’ undeclared >> (first use in this function); >> >> Signed-off-by: Alakesh Haloi >> --- >>   tools/testing/selftests/seccomp/seccomp_bpf.c | 8 ++++++++ >>   1 file changed, 8 insertions(+) >> >> diff --git a/tools/testing/selftests/seccomp/seccomp_bpf.c >> b/tools/testing/selftests/seccomp/seccomp_bpf.c >> index 6ef7f16c4cf5..2e619760fc3e 100644 >> --- a/tools/testing/selftests/seccomp/seccomp_bpf.c >> +++ b/tools/testing/selftests/seccomp/seccomp_bpf.c >> @@ -1353,6 +1353,14 @@ TEST_F(precedence, log_is_fifth_in_any_order) >>   #define PTRACE_EVENT_SECCOMP 7 >>   #endif >> +#ifndef PTRACE_EVENTMSG_SYSCALL_ENTRY >> +#define PTRACE_EVENTMSG_SYSCALL_ENTRY 1 >> +#endif >> + >> +#ifndef PTRACE_EVENTMSG_SYSCALL_EXIT >> +#define PTRACE_EVENTMSG_SYSCALL_EXIT 2 >> +#endif >> + >>   #define IS_SECCOMP_EVENT(status) ((status >> 16) == >> PTRACE_EVENT_SECCOMP) >>   bool tracer_running; >>   void tracer_stop(int sig) >> > > Hi Kees, > > Okay to apply this one for 5.4-rc1. Or is this going through bpf tree? > If it is going through bpf tree: > > Acked-by: Shuah Khan > > thanks, > -- Shuah > I saw your mail about Tycho's solution to be your preferred. Ignore this message. I am applying Tycho's patch. thanks, -- Shuah