Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp127370ybj; Thu, 19 Sep 2019 11:44:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqx2RPrvPRk9nC2HLuGnw6nPJMEEJ8j/AUHz5NbsFmWMF6wONjFBAuCCxDE1w6AHFwPfaS+j X-Received: by 2002:a50:f603:: with SMTP id c3mr13490680edn.208.1568918672502; Thu, 19 Sep 2019 11:44:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568918672; cv=none; d=google.com; s=arc-20160816; b=sX5TNCOfO/XpPPkwwgCxOyMgPUUpNQSo0fsHyptse6fTXoyobjH6jQw3vvrmUOIALb p2lpDLyoTg0/8UnMwxcpXtu+t2yLadkQNSQAXPY6UXkAFONR0vzvURX6GaUKjp8EfQgo 9A64BwA8Y5UEOvDIA/zjRH2LcQRzkUKxh0+/ORZROIKHmnfdRtWrUhTxbnIHRPnQR6dx yF5l+4/xoLC4v85KX+XhTZdIuD5/1Q9wo8ESnniLhVpoO6NwI7dZaJIAsdLDj6p1le0z UqIZRMUvHSsg1OkBVLDio50b/J2Hac34bpCzvekHPE4uHZywBoudK5vBMGKG2lfrQsTE +35Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=vKHGVC2TBv+sLI5Edyli1ZnZuQJKo2XmgdaDIhIwBKQ=; b=A3HeSdvqqPBroTkhDT8RUuuEgPG57kWr/uz7SckeVsdVaWkdFQOA/0crZfQEsk92ya wuGOf+Pow8GFhsMngqJeMMy6Lh/ndjYs8qhjceYpGZFEEZp7PRW/2Z5ExzkgWB5erbak 9eTgYaasA+MTc0l5tsZhxsTRzn2xw01dFdVK59Memvil8BguzIRgb9PPx/ixL/Btg3wi PUKqlEl/uRv2RP90FcUcH23xrsV3a7k3b+HG5CEr/mNhffx6TNEyR5h8PzgF6/M9vfYn O6yLZ/XynvxAfOB98HGsjaJYQJyMT8/idR1b3ZJ+eN5pvkABDdt8/uTgmHe5nQgkjesm HI0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Q6ZXGNHI; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h19si5107047ejd.142.2019.09.19.11.44.09; Thu, 19 Sep 2019 11:44:32 -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=@chromium.org header.s=google header.b=Q6ZXGNHI; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391151AbfISQzd (ORCPT + 99 others); Thu, 19 Sep 2019 12:55:33 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:42948 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388051AbfISQzd (ORCPT ); Thu, 19 Sep 2019 12:55:33 -0400 Received: by mail-pf1-f193.google.com with SMTP id q12so2682022pff.9 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=sVnmShh4vuqVmFavP7f/+5HH+ILrEoE2KSxLEeTq2fRJ2yYCBAClxsxCPtHnrdI0P4 p/Xi5wJ9OW/F6KA4/nkRi6UpanhlNCzs3CfsdJTmCTKEGRzN/oVzLNeuF31GRFDp7g5i bucmBe8snVPm1A+6BIVae98AFIiKjBtD4GtvITCIFYQIv+4QRG/sAcFF4TsYCda8BZa+ WvY8c8sz2DN4nzrcBMOlDCl4M9Ni2CoRWyC5CJ2e5D/rvsCuTvcL9z4pshINoObuBnrB PprSmNAZRCcyeMcQUCCqzRlNUzEpERadpTsH6OO1mpJQ4iUy5YYVCheKnF34sURu/8vu vldg== X-Gm-Message-State: APjAAAVp5e5XZpnnx/Uri+zrex4/41zEQ3BsvLdQVG/GBEyEUfHUdQEI XgNznsBWYSOgT6+UJWwVURfS0fk3RPg= 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: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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