From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E9D25C3A5A6 for ; Thu, 19 Sep 2019 16:55:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BE915206C2 for ; Thu, 19 Sep 2019 16:55:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="Q6ZXGNHI" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391052AbfISQzd (ORCPT ); Thu, 19 Sep 2019 12:55:33 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:44600 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391014AbfISQzd (ORCPT ); Thu, 19 Sep 2019 12:55:33 -0400 Received: by mail-pg1-f195.google.com with SMTP id g3so641364pgs.11 for ; Thu, 19 Sep 2019 09:55:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=vKHGVC2TBv+sLI5Edyli1ZnZuQJKo2XmgdaDIhIwBKQ=; b=Q6ZXGNHId7DBF16qRzWjOVrjjWMIk9gF2BlQ3nAW2OPUcTUkCsnk6/NyiCDdTnkbuQ MVylF1TZ86CAYhVM34nj3IVmzadWHImCp8eXVyaId7+4LfT61yxP+g6jb+kP20WEATgS oznxdzTHAqD9/Lokv9dqcPOfn4HLHjcWB3CW4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=vKHGVC2TBv+sLI5Edyli1ZnZuQJKo2XmgdaDIhIwBKQ=; b=GFZtbqg3vVlNLIoe9+F7NXcsSBAisMlRiNRh6fA/EgRSAIn3R92sVGzeDI720NyeV+ w8JOomte8pSq7/seliJ/ThUZnWk4mlprD3waJLoGIEJ8qwY8M2TVk/ymF4uGN04+mJVW Z6bP5Dq1Z7F+EjO8OIaieU9SUW5AGtRUjREi6PBLkDx8WjOSeQhx5VR4ARe4BMgoWqXX TEOfioHWZEvB4Zu3vhSrE0+Yew/KSKBfDj9MSa6dmxItA7+xP2NjJTeJIXdbQ8rhcDHv ZkNoarYXCGrQj6P8RmC9XlX7ob2DIn7SG8DZiLqUh8lsY8YX1fg/2KFLpel0KhWqtai/ kCug== X-Gm-Message-State: APjAAAXo8vGetV/68Fr2vx6tnJ4opFdNWBs3f8EP9JGKPL7SHbJumG/M ke5R8ttw0LrwibEiuW7kUGiYmQ== X-Google-Smtp-Source: APXvYqw6zEHZKGyziOXSgqUJbbCCYyEPYuCqQ3kwb1DJ6hxrcEF9h2MB7qPcwFj2W56qe0ZKdQnWWg== X-Received: by 2002:a17:90a:7347:: with SMTP id j7mr4863606pjs.88.1568912132371; Thu, 19 Sep 2019 09:55:32 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id d5sm4872630pjw.31.2019.09.19.09.55.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Sep 2019 09:55:31 -0700 (PDT) Date: Thu, 19 Sep 2019 09:55:30 -0700 From: Kees Cook To: "Dmitry V. Levin" Cc: Tyler Hicks , Christian Brauner , luto@amacapital.net, jannh@google.com, wad@chromium.org, shuah@kernel.org, ast@kernel.org, daniel@iogearbox.net, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, Tycho Andersen , stable@vger.kernel.org Subject: Re: [PATCH 2/4] seccomp: add two missing ptrace ifdefines Message-ID: <201909190918.443D6BC7@keescook> References: <20190918084833.9369-1-christian.brauner@ubuntu.com> <20190918084833.9369-3-christian.brauner@ubuntu.com> <20190918091512.GA5088@elm> <201909181031.1EE73B4@keescook> <20190919104251.GA16834@altlinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190919104251.GA16834@altlinux.org> Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Thu, Sep 19, 2019 at 01:42:51PM +0300, Dmitry V. Levin wrote: > On Wed, Sep 18, 2019 at 10:33:09AM -0700, Kees Cook wrote: > > This is actually fixed in -next already (and, yes, with the Fixes line > > Tyler has mentioned): > > > > https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest.git/commit/?h=next&id=69b2d3c5924273a0ae968d3818210fc57a1b9d07 > > Excuse me, does it mean that you expect each selftest to be self-hosted? > I was (and still is) under impression that selftests should be built > with headers installed from the tree. Is it the case, or is it not? As you know (but to give others some context) there is a long-standing bug in the selftest build environment that causes these problems (it isn't including the uAPI headers) which you'd proposed to be fixed recently[1]. Did that ever get sent as a "real" patch? I don't see it in Shuah's tree; can you send it to Shuah? But even with that fixed, since the seccomp selftest has a history of being built stand-alone, I've continued to take these kinds of fixes. -Kees [1] https://lore.kernel.org/lkml/20190805094719.GA1693@altlinux.org/ -- Kees Cook