Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp410891lqo; Fri, 10 May 2024 03:55:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU767yOz7tFvAzxaHTN5E/McnB2Hawjq8ehOwq2lKyKxxPIRk4Uv7CX9yguaM4pterj8DllUFWsfvVNfyka5b8o5HJfaDSxFt/r7lj+Dw== X-Google-Smtp-Source: AGHT+IHIQtwdIMAoIPqMYWSR6Mlo7kRhRoqZH2dNv1Qjv2QrtNhu97mPuSr6AMjMBqkR3R9bxUvr X-Received: by 2002:a17:906:5291:b0:a59:9f88:f1f1 with SMTP id a640c23a62f3a-a5a2d1de7b1mr227829766b.19.1715338549043; Fri, 10 May 2024 03:55:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715338549; cv=pass; d=google.com; s=arc-20160816; b=ugJsci+Ppk8dCA0otzdL7dsSEPla5ffFu3IZnd6lwyLyCVjUGcxsz3GYQifftb8tHU Rok0txDczP0ukcBvYCOsC1Rh/+Dr5XJjoaO/tg1ctV/fmbIjHMLWy9PT9uvJLthrzBt9 6o6YOS5arAF1+p7RXGbRSbIGXyPP76ljM7QCTuGWmqxy0TObBmvO0UrZ58VCE2CitEgM BJ11q8o28RLBc92z15/eMGKoTh/YaL894DDl/Q1zXR2UkVGopJa5geDVQzX4QbVEmiLc iK80St+qmnXLoiJudIxbZnV+SshIwWxz+K7B3hg6yQsVO1QNmr3uJM4nFN6uwueVXRqV aISQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Yg72rzmx+bcTPUq2wGuL/cZ1uSAABSmBZuLsh72n3GA=; fh=u6lwuPYAn+39IPyVDeXIDR7Mg0eBaaaGTlLJWPYGvKA=; b=InU633kNQbBXGvZNYnCNMetcQYtTLfrRkOtWZtLc+BpNNzc2BkpQW6r7geoTzFrqp4 LTlF8u23enEdBJkkLxb253PBWLqU4lTIQ62ZfggMT+ttRSWc3+bROXvJm1ZtX799F+cT bUuAzgx9I1+eAEHa8j1G/yP0m1oBI9X/yu1iWFOnTcIuMLchQvUhSTryMNMvg6iVOXZB KGiDOvzLLqrNTFP6PaRbpcocFEI1FSLuBOfmdUbkgv6GpbDjZu0pDydfezAEH6EXIMj9 zPhi1WVIbCD7qB2KZM0n7FJ9pJ646suPMnwNEeYFyJJCM7iiXeHY6+1Db6qMDqnJu1ZD trAA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IZ16glye; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-175611-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175611-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17be8bd5si188081766b.854.2024.05.10.03.55.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 03:55:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175611-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IZ16glye; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-175611-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175611-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C14DE1F22BBF for ; Fri, 10 May 2024 10:55:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E26CD16EC1E; Fri, 10 May 2024 10:55:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IZ16glye" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 07B1816C873; Fri, 10 May 2024 10:55:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715338516; cv=none; b=oFW/2uqlF31qhqaTAVzLSV3zXhA7nB51FUe+hd+Zio44ILnmnA6GycruOXbL3GPxsCLbAPLsxILspB4OY1tkWF7INY0D/Qt6MzZdaRs+64V4grlSDRe6ZKP9sFTSiO1m45g+v8tC73Qg5pY/ubl8oTG3gA6BtUpJTKHtRpwPbe0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715338516; c=relaxed/simple; bh=Yg72rzmx+bcTPUq2wGuL/cZ1uSAABSmBZuLsh72n3GA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WJ6niPS+Eq0pQiIUq74vSRKqb0qeL404ZcAOFD2jb+VrQuSsKA2pYtJQekpwhvB3nrKhzWF/mG5MaHYirs/MybyFRdh7qVBQwWS6reoAyFwBYCtrIYEbbkrmcCd2AwDGytkLENRg4+H9MqnvoZWtU3ilkpDWiDDTSnY2lNoceJ8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IZ16glye; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA6CBC113CC; Fri, 10 May 2024 10:55:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715338514; bh=Yg72rzmx+bcTPUq2wGuL/cZ1uSAABSmBZuLsh72n3GA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IZ16glyeUoEcw9bvLXvZyE6xpgHtADMx321GfnN0BHALFchlZSBq/fK4KF9b5Vq7h MN1lPeoAgCcojfCacXEZ3oUgkHjP6AqL7aJIiKfq7nArCv1Sqzay+3peXRW7zvHLED uBTZDCEcefInuP73Npox6kTo4di4WbMnD/NRY9011QMdLz34aE3feX0I2oQs+3g0h+ m5kSagyGxw5VAGQdLCVlWKPi99HWJrGP46LMxQdj2jdhdDOctRZFpDeEzSulU05vzm V5x9L3RjmbW0zGRujXz0ojFm3N/C5Yh7q5TejagGWpEkhrrJhRtOpwxw/cmKQW7iqG 9vrh1c5+2TFVw== Date: Fri, 10 May 2024 12:55:07 +0200 From: Christian Brauner To: Daniel Vetter Cc: Christian =?utf-8?B?S8O2bmln?= , Linus Torvalds , Al Viro , keescook@chromium.org, axboe@kernel.dk, christian.koenig@amd.com, dri-devel@lists.freedesktop.org, io-uring@vger.kernel.org, jack@suse.cz, laura@labbott.name, linaro-mm-sig@lists.linaro.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, minhquangbui99@gmail.com, sumit.semwal@linaro.org, syzbot+045b454ab35fd82a35fb@syzkaller.appspotmail.com, syzkaller-bugs@googlegroups.com Subject: Re: [Linaro-mm-sig] Re: [PATCH] epoll: try to be a _bit_ better about file lifetimes Message-ID: <20240510-duzen-uhrmacher-141c9331f1bf@brauner> References: <202405031110.6F47982593@keescook> <20240503211129.679762-2-torvalds@linux-foundation.org> <20240503212428.GY2118490@ZenIV> <20240504-wohngebiet-restwert-6c3c94fddbdd@brauner> <20240508-risse-fehlpass-895202f594fd@brauner> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: > For the uapi issue you describe below my take would be that we should just > try, and hope that everyone's been dutifully using O_CLOEXEC. But maybe > I'm biased from the gpu world, where we've been hammering it in that > "O_CLOEXEC or bust" mantra since well over a decade. Really the only valid Oh, we're very much on the same page. All new file descriptor types that I've added over the years are O_CLOEXEC by default. IOW, you need to remove O_CLOEXEC explicitly (see pidfd as an example). And imho, any new fd type that's added should just be O_CLOEXEC by default.