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=-0.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no 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 AC428C433DF for ; Wed, 20 May 2020 18:06:07 +0000 (UTC) Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6F07E20709 for ; Wed, 20 May 2020 18:06:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="i/NqQtJB" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6F07E20709 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=ksummit-discuss-bounces@lists.linuxfoundation.org Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id E6FA9203E2; Wed, 20 May 2020 18:06:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wW+A9rrefe0k; Wed, 20 May 2020 18:06:05 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by silver.osuosl.org (Postfix) with ESMTP id 0EE2920003; Wed, 20 May 2020 18:06:05 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id D0242C088A; Wed, 20 May 2020 18:06:04 +0000 (UTC) Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id C41FCC0176 for ; Wed, 20 May 2020 18:06:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id AB1FA203AB for ; Wed, 20 May 2020 18:06:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2o8OtMVFweKd for ; Wed, 20 May 2020 18:06:01 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pl1-f194.google.com (mail-pl1-f194.google.com [209.85.214.194]) by silver.osuosl.org (Postfix) with ESMTPS id 597C620003 for ; Wed, 20 May 2020 18:06:01 +0000 (UTC) Received: by mail-pl1-f194.google.com with SMTP id m7so1662226plt.5 for ; Wed, 20 May 2020 11:06:01 -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=3Ghakkzn2QopqaOA8SafMj9Og6XJ6dLKngRapAbmeDM=; b=i/NqQtJB8t/yg1XsQxvCFcr+u61Oad09vdnZ2b5jFLf1TAgozN38PthM41M61apvnn L1FYNB70J0uMoFofScM2JK/M92SDHIX0D4AfOTrbCXdq3KCUf2+zBtd+8xdUILH+07lV ZIp7jjF6ZHAKw8kHnojPdJAfB8arh7r04iM0k= 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=3Ghakkzn2QopqaOA8SafMj9Og6XJ6dLKngRapAbmeDM=; b=jR12fKEgPrwMqHwoz4Lp1nEyXXHXvHlVbccLMy3AMfM1mW4lrJZf1KValNhwvP/T8v PNHuVSkmkkwFWf2gpGWyUwyf6ySSN213HvMNf0vndqpmH/jmU4oGNgTJZS1CgRBsIa80 JUKzpYcPaLmCtXJJbGg75eJNofCALjXGJZRZxpDdPM2Nx7LIhdhwmaWd/0KIYtHvhJP+ sVeW14uDgLmxOYaBUblrW6VHeWjOOgXcpmZarjk9sU5hfC5Q4gl1Wdw49f3LDKf+/c4B odmk8igyiWLCMx+w+Ggp18SD412aE7K1eRWqhlg/PijD5B3KX9VhlQicDbsLYqfSAWy5 w91Q== X-Gm-Message-State: AOAM533VdaE4Ysnp35EmqMPoqP6g88eEcfc2FIf8aUtz9/Y0ZiHDCyIO rYozyu6mwwxHPCv9qs3OwxVBro08s2dUJw== X-Google-Smtp-Source: ABdhPJxPzSBI+uAHcELYMCEFt7yTdg4JZiU7Pf6pDG4B3QNnzpvPJBNeBKTGAvzpCwwKBimaLHguBA== X-Received: by 2002:a17:90a:384b:: with SMTP id l11mr6887017pjf.89.1589997960297; Wed, 20 May 2020 11:06:00 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id g1sm2517254pfo.142.2020.05.20.11.05.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 May 2020 11:05:59 -0700 (PDT) Date: Wed, 20 May 2020 11:05:58 -0700 From: Kees Cook To: Al Viro Message-ID: <202005201104.72FED15776@keescook> References: <202005200917.71E6A5B20@keescook> <20200520163102.GZ23230@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200520163102.GZ23230@ZenIV.linux.org.uk> Cc: ksummit-discuss@lists.linuxfoundation.org Subject: Re: [Ksummit-discuss] [TECH TOPIC] seccomp feature development X-BeenThere: ksummit-discuss@lists.linuxfoundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ksummit-discuss-bounces@lists.linuxfoundation.org Sender: "Ksummit-discuss" On Wed, May 20, 2020 at 05:31:02PM +0100, Al Viro wrote: > On Wed, May 20, 2020 at 09:17:41AM -0700, Kees Cook wrote: > > As recently outlined[1], there are are a number of seccomp topics that > > need discussion: > > > > - fd passing > > - deep argument inspection > > - changing structure sizes > > - syscall bitmasks > > > > Specifically, seccomp needs to grow the ability to inspect Extensible > > Argument syscalls, which requires that it inspect userspace memory > > without Time-of-Check/Time-of-Use races and without double-copying. > > Additionally, since the structures can grow and be nested, there needs > > to be a way to > > ... catch and kill the bullshit ABI "enhancements" that would attempt that > kind of garbage. I'm not sure why that is seccomp-related, though... We already have structs passed to syscalls that contain pointers to yet more structs. Do you mean those should be disallowed? (Personally, I would love that, but this doesn't seem to match the reality of the design considerations of those syscalls.) -- Kees Cook _______________________________________________ Ksummit-discuss mailing list Ksummit-discuss@lists.linuxfoundation.org https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss