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=-16.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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 CA907C11F69 for ; Wed, 30 Jun 2021 23:07:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A869B61452 for ; Wed, 30 Jun 2021 23:07:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231879AbhF3XJ3 (ORCPT ); Wed, 30 Jun 2021 19:09:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229700AbhF3XJ2 (ORCPT ); Wed, 30 Jun 2021 19:09:28 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5898DC0617AD for ; Wed, 30 Jun 2021 16:06:58 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id g6-20020a17090adac6b029015d1a9a6f1aso4741133pjx.1 for ; Wed, 30 Jun 2021 16:06:58 -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=RuO4JUZ+FX7giReeuhXb2PopY/hRsvujLpGRixSjArU=; b=TONRcXHxn5CIhUD92++R45hGlhM6XWfsZ2e7kI9CufKonbQD+LigLT1FSb/YawlY9+ /PZdIIJvuBIew6OSwzEswA//AWNa4n/SnGMegbDON6KlsWVX2Hl0T6zyTn3M0EYh0vFu wJLpmvNZnVmEUeMEk9SdPeJSrajHet8eAbo8Y= 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=RuO4JUZ+FX7giReeuhXb2PopY/hRsvujLpGRixSjArU=; b=TcmdbPF7bxs/zVU6cb7UPbgcl9sl5G5nDDMWYCy7Wt348C90wWSQhNqjrhJaSauxl8 hZFKBgOxDgrLgSzQrKB/MXrwA0edvOaNrcNOV8dHBLfBLqgf1LtgpBPoN+bfv14a8f/v U8EdyVr5oOEN2TxRppPFkHdW1DocXDRSxXolfnvq6JbFv4rwp/zKfNQWVb/PwQlus53A CgJ9d58sbY2Lrq7GuPAHoe3M8dvBtRDJh5KSKvsQY6sqD1sLoCpUsNvbqBzFLCQPD3qX Z6YueA3WZgobjUURzVfw3vR3CIFht94LDN2u9XtfmZBK6e64JGHJNv6kWCLs85jNMYzf ivVw== X-Gm-Message-State: AOAM530L1JpFBodh8zj+MKcECNzf4nl4NU0Jf3NW321YbhodYPnpvuEJ LZwihM4W3Act3ZanModf8U+RjA== X-Google-Smtp-Source: ABdhPJzXWAume3jqDZOat+M85hkUOSkfZfyzmUQzN1cAibRyEKMv4X5Q9IPaNHkQ0bijfz9Bd9k9bw== X-Received: by 2002:a17:90b:230a:: with SMTP id mt10mr6482633pjb.236.1625094417844; Wed, 30 Jun 2021 16:06:57 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id l6sm24343279pgh.34.2021.06.30.16.06.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Jun 2021 16:06:57 -0700 (PDT) Date: Wed, 30 Jun 2021 16:06:56 -0700 From: Kees Cook To: "Eric W. Biederman" Cc: Michael Kerrisk , linux-api@vger.kernel.org, Andy Lutomirski , Will Drewry , Linus Torvalds , Al Viro , linux-man@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] seccomp.2: Clarify that bad system calls kill the thread Message-ID: <202106301606.E710FF81EC@keescook> References: <87r1gkp9i7.fsf@disp2133> <202106292156.9458CF22@keescook> <87k0mbp0yc.fsf_-_@disp2133> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87k0mbp0yc.fsf_-_@disp2133> Precedence: bulk List-ID: X-Mailing-List: linux-man@vger.kernel.org On Wed, Jun 30, 2021 at 03:11:23PM -0500, Eric W. Biederman wrote: > > Signed-off-by: Eric W. Biederman > --- > man2/seccomp.2 | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/man2/seccomp.2 b/man2/seccomp.2 > index a3421871f0f4..bde54c3e3e99 100644 > --- a/man2/seccomp.2 > +++ b/man2/seccomp.2 > @@ -69,9 +69,10 @@ The only system calls that the calling thread is permitted to make are > .BR exit_group (2)), > and > .BR sigreturn (2). > -Other system calls result in the delivery of a > +Other system calls result in the termination of the calling thread, > +or termination of the entire process with the > .BR SIGKILL > -signal. > +signal when there is only one thread. > Strict secure computing mode is useful for number-crunching > applications that may need to execute untrusted byte code, perhaps > obtained by reading from a pipe or socket. Thanks! Acked-by: Kees Cook -- Kees Cook