Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp787382ybl; Fri, 30 Aug 2019 07:12:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqylPZwqDgtV43sIzNnDX7dS/swRblUyRx0CiUb1bnDjxHJ396H0+bTbfFVrOdFBJbJmymo3 X-Received: by 2002:a17:902:2f03:: with SMTP id s3mr3981414plb.333.1567174319922; Fri, 30 Aug 2019 07:11:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567174319; cv=none; d=google.com; s=arc-20160816; b=sV815SglFQ3lrzBH46ZxKeaOGpDdg1W+VFIOeu0bHp003/m67+9RQbD42pydAvQKkM 3h1u9tC6/aq0DiQFTeO8FAA41BqVQW110C5O81gOfnYt0Y6QLV2TR8jxzkrk6xCnJQYD y7Fq3vH7KZrcJUVLOA7/5nG3gwO5v2v5TzYx2996qwTa7bmmeX1MYLR+eENM97nB9Ek0 CTNTrjqi7sOrT0ydeU4BKDjA3WsqbWFJCTh/XduA/ZMx9Tbmy8LahXPR0pRUeVw17dbz /lWdxYcz+ugr8wEgzFbzdAFrvtwYzcBU47xtUi7rms0xbmzpo5y+9QbPguAI8wvNu9EK 3jSw== 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=qZv4eiJfRcfGsYG4itXCYLgoGlW1TbxaMliGa5ZFeKI=; b=U5xWLAL3wghSUgsGuQTx0RA1PHqpWn0pnWkN/H/Yyb3wxfRmT+G+6MiERNn9BjFGm0 ZIvRdITiwnm+9oIzM+4CV1jXo6lwe0EfdbnWpAYjak1UMDrE9ZsTNXBJzT/j1seqmXsd KOH39IjkXjx9kJErH+pdMSVGavOCchFq5E5IAakwmZP/dWt9rYJ7+zNvy8NIQo1MNywv Fp5aysmCMSE59ycXvIuEiaaz1toiot0szYkbPXnOYoudnP3DUFcpYcvfuCli7JP+AQxD UcE3zwxPXMwhtUgXs/dHgJqvds35ajUG1cfw4prkFZV6ZyQ4lKQU8v4OrYy3NyAV8amV KJYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="E/heTaWM"; 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 e5si4521521pgl.536.2019.08.30.07.11.44; Fri, 30 Aug 2019 07:11:59 -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="E/heTaWM"; 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 S1728138AbfH3OJc (ORCPT + 99 others); Fri, 30 Aug 2019 10:09:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:46668 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727791AbfH3OJb (ORCPT ); Fri, 30 Aug 2019 10:09:31 -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 96DBD22CE9; Fri, 30 Aug 2019 14:09:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567174170; bh=p5AjW3xVDRxCRokQLJsTqv+1lmdRB2z4uTAo1OGwa4Q=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=E/heTaWMHie+f9aeljhO/1yfl9cSU7vcNF/AqUhGNPWL/KPpd7dNvx0UyWaxDk1k2 VFXySM1rPovDrqpfURtsc0Qw49mjuDC3qFcbeYuFqQRddu0yUujxGnbUUQ6uBdz0AY Fg6wPEqFXmdOf/n5IqZABnc7lopIyAgMoMkspmt4= 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> From: shuah Message-ID: <30e993fe-de76-9831-7ecc-61fcbcd51ae0@kernel.org> Date: Fri, 30 Aug 2019 08:09:20 -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: <20190822215823.GA11292@ip-172-31-44-144.us-west-2.compute.internal> 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/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