Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1401387pxj; Fri, 21 May 2021 13:21:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqpNQnRMe1shaIrYWuEn4SZho22zTAOtaAfwhs8UVfUeTPYnSbFOAs5rjMc1z4e+z/Q+Rd X-Received: by 2002:a17:906:aac8:: with SMTP id kt8mr11681700ejb.402.1621628480059; Fri, 21 May 2021 13:21:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621628480; cv=none; d=google.com; s=arc-20160816; b=NsfXEmw+OGYZk6F3janz5ECGu23eFOOEd24V7liu+u2g0NLYeXTXFW3AaLFtBdGOf2 J/9QIe1eOvLCMMYHikjA0iMm+8sK/eR0hjXhDZkqRAWWrPn2SDgxYqr6YepngdZhdm8N ha8oXAMFB3gKq4i53dThF6wcW0sPyMyQZ8gWf0npOtzedvTkFgKNWgpOYA+0rP5qVYDf CKIdUl16Zld8XF0GOHm60XaOv7jmkBYjwYy0m594cyNzTsNu6eUDpk6JfnYx0eYr+3z+ dvWZGiBy1ZslSyQ6ZC25+y5YocKU7MshcT3n/uyJQhswMlUkp7ZFk7QWe2MaOgWJvG2a +aeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=guVHdXt5+1HlgEMwUHnRilA3WMlfShi1pmV/pJDDIds=; b=wPATURHn7JedBleSZOWKRsSzk5wbU8qhiAHhl+5fB6Ruqb2+hEX4zKgtky/0+2g4MI rU422H+fuO52h+oDGj8Gux7VqVE+FMfxhkbCTwEgljO6M8zJtCjJ1DwAp8gnrS6WQ52C RTCNWc2KArJnAN2LuG7L5K9pxNVwWRAq4vNDEsK2GyqCIYIH9L1zQk43m3ufrAiWYKr5 FvDWR5CCh30w3dpk5qABARUhvwmY8QlWj305X9VqTdrMkrpyo5SNi0pW3DNOmWze/EsT nAxLx10gtxLpGtwM5nOypU+hD4wbwRI/bEizR1dY/gL3vsd2+7Of51GVYaugYE+Ymg9b ohnA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g20si1894761edt.518.2021.05.21.13.20.56; Fri, 21 May 2021 13:21:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235035AbhEUPqQ (ORCPT + 99 others); Fri, 21 May 2021 11:46:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:56928 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230291AbhEUPqO (ORCPT ); Fri, 21 May 2021 11:46:14 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AD34A613EC; Fri, 21 May 2021 15:44:48 +0000 (UTC) Date: Fri, 21 May 2021 17:44:45 +0200 From: Christian Brauner To: Sargun Dhillon Cc: Kees Cook , LKML , containers@lists.linux.dev, Tycho Andersen , Andy Lutomirski , Mauricio =?utf-8?Q?V=C3=A1squez?= Bernal , Rodrigo Campos , Giuseppe Scrivano , =?utf-8?Q?Micka=C3=ABl_Sala=C3=BCn?= Subject: Re: [PATCH v2 0/4] Atomic addfd send and reply Message-ID: <20210521154445.yz26ja35t3ux7m6j@wittgenstein> References: <20210517193908.3113-1-sargun@sargun.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210517193908.3113-1-sargun@sargun.me> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 17, 2021 at 12:39:04PM -0700, Sargun Dhillon wrote: > This is somewhat of a respin of "Handle seccomp notification preemption" > but without the controversial parts. > > > This patchset addresses a race condition we've dealt with recently with > seccomp. Specifically programs interrupting syscalls while they're in > progress. This was exacerbated by Golang's recent adoption of "async > preemption", in which they try to interrupt any syscall that's been running > for more than 10ms during GC. During certain syscalls, it's non-trivial to > write them in a reetrant manner in userspace (socket). > > It focuses on one use cases, which is adding file descriptors to a process > "atomically" during the seccomp reply, as opposed to discretizing the calls > which may result in a potential file descriptor leak and inconsistent > program state. Looks good, Acked-by: Christian Brauner