Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp114040lqo; Tue, 7 May 2024 14:03:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXbDT27OXtd0Gci40ZsZ7Srw5hRa2J55EJcgDPzCl/dsHhnuQ1NFgxCiWvgt2BX5hRqbRkgt6/ReXtCl91IbJBQjKiUJRoFTuD9GQPw9g== X-Google-Smtp-Source: AGHT+IG8Wz78FQnmsXSGD7IpoIGLTsrWb+ZXnU7N0PZJL8KC4K0WmpemnAJk5ww/3iHn7fk6ISWl X-Received: by 2002:a05:6808:1782:b0:3c9:586b:bf7a with SMTP id 5614622812f47-3c9852c45bamr915248b6e.26.1715115816960; Tue, 07 May 2024 14:03:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715115816; cv=pass; d=google.com; s=arc-20160816; b=sXfm4BGWGTpZF6MeMmEReSGBIvzsx21yh3oFB0Yr804PghDIEahZ+xjhEc4I4Vf9Wc oKH3o33TFaQ4H1LvazpxZ269LCLvb76/jjar/mgy8+kJ7rtCdWf73ZGdQtBuivrdmR9b NOO7ohqaBHNMM2jqYKfybsLhZgM17Mu42p+nH/ptiKi+XEhrAdBBKdKzWwBkJEIksKVT 3D/matlHe47Zcg3i3fzLRh7NT0YrcZODFmjK6GLpQF5SIbqfL9+wLV8iQIc/dgbxeYHt 1M0gfm3mlLj+gqhxAtiehtrZH0u3ywwtro5XA8pJOBjOcqG+YpoETPSIDwNPvSIgLkBK 8ZIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from; bh=3rX9T5lNLNXBgcO0+M3qrprf2vCsbTOm/nlDTBm/9Cg=; fh=2XU2d4bKbw2MkL0+oAuYS929UJXcPvjh+36ybTQwTcg=; b=Q43kJHcuMwr0t/SCtpaHSUUlXUsyLxyV6qiAYcZWiHMsRBLC1amQdoSZqwVYBcKlqs zOXI87p+GQ+/2J0wWATkNQpHMixkp3rw06ihWIlFlgLCpKT4iv4TXmY4o0ys5aQBN9FI iXKoJvldMHuatuu4g6au2lUaVvv51YErYeYCw1t5Ij04Pf6bKu4DpRLhhhxHkOUsY+HE GFLZXcMJethv6Ub3iefeIgkg+07I9GXfBIigjshoosMgn7qbkxp8lmu7dhoblQxME/sw vaixE7gFWcutjlFnLK5RsCNlOrRC+uMEVaQoyBb65AuIQDRVb1ImOIqSPEw/Nr6PsGi7 WR0A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=aculab.com dmarc=pass fromdomain=aculab.com); spf=pass (google.com: domain of linux-kernel+bounces-172182-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172182-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id p14-20020ad45f4e000000b006a0b36af784si12538557qvg.488.2024.05.07.14.03.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 14:03:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172182-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=aculab.com dmarc=pass fromdomain=aculab.com); spf=pass (google.com: domain of linux-kernel+bounces-172182-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172182-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9CC301C20B58 for ; Tue, 7 May 2024 21:03:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9AEE673527; Tue, 7 May 2024 21:03:24 +0000 (UTC) Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.85.151]) (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 55EA018733E for ; Tue, 7 May 2024 21:03:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.58.85.151 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715115804; cv=none; b=dzwMUgId4nohFciGzSlFwDDyq0JJqUPMTSwm8HnwPhqe9yOLGny7djx1XszLwPBQ62HTKAc3N61UNccJ2qX2RIIxa6aHJxOU0F1l4EmH1DXy4dVeCBZT0pW/C1ewo5rY5bVlZmY6a1E5FFhO1gQXpQktbIw9Bb3WHtPjriGwJeY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715115804; c=relaxed/simple; bh=3rX9T5lNLNXBgcO0+M3qrprf2vCsbTOm/nlDTBm/9Cg=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: MIME-Version:Content-Type; b=tYEYQaRd1S2eiy+pFfPKAmCKpfH7YXudr00xWlvvSXDPORUc9jQPQxhNa/11bX8uKRmafXClwT7BXz/2cGP7yAuKvfZ04mnTvArnaLCovvDhEIfdqifwa6vlt57eDT6tVzMtx5EccoljzwD/PseQ+uR/F1ESfJXCKlhJAyOAyc8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ACULAB.COM; spf=pass smtp.mailfrom=aculab.com; arc=none smtp.client-ip=185.58.85.151 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ACULAB.COM Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aculab.com Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with both STARTTLS and AUTH (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-48-bRehh-PWPia-pmBo6oqoQQ-1; Tue, 07 May 2024 22:03:13 +0100 X-MC-Unique: bRehh-PWPia-pmBo6oqoQQ-1 Received: from AcuMS.Aculab.com (10.202.163.4) by AcuMS.aculab.com (10.202.163.4) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Tue, 7 May 2024 22:02:42 +0100 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Tue, 7 May 2024 22:02:42 +0100 From: David Laight To: 'Christian Brauner' , Linus Torvalds CC: 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: [PATCH] epoll: try to be a _bit_ better about file lifetimes Thread-Topic: [PATCH] epoll: try to be a _bit_ better about file lifetimes Thread-Index: AQHan5G+Cj1Mu87oOkmAjOj4WUTDELGMO/+w Date: Tue, 7 May 2024 21:02:41 +0000 Message-ID: <052a735f433348b48a53b3d15183398a@AcuMS.aculab.com> References: <202405031110.6F47982593@keescook> <20240503211129.679762-2-torvalds@linux-foundation.org> <20240503212428.GY2118490@ZenIV> <20240504-wohngebiet-restwert-6c3c94fddbdd@brauner> <20240505-gelehnt-anfahren-8250b487da2c@brauner> <20240506-injizieren-administration-f5900157566a@brauner> In-Reply-To: <20240506-injizieren-administration-f5900157566a@brauner> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 RnJvbTogQ2hyaXN0aWFuIEJyYXVuZXINCj4gU2VudDogMDYgTWF5IDIwMjQgMDk6NDUNCj4gDQo+ ID4gVGhlIGZhY3QgaXMsIGl0J3Mgbm90IGRtYS1idWYgdGhhdCBpcyB2aW9sYXRpbmcgYW55IHJ1 bGVzLiBJdCdzIGVwb2xsLg0KPiANCj4gSSBhZ3JlZSB0aGF0IGVwb2xsKCkgbm90IHRha2luZyBh IHJlZmVyZW5jZSBvbiB0aGUgZmlsZSBpcyBhdCBsZWFzdA0KPiB1bmV4cGVjdGVkIGFuZCBjb250 cmFkaWN0cyB0aGUgdXN1YWwgY29kZSBwYXR0ZXJucyBmb3IgdGhlIHNha2Ugb2YNCj4gcGVyZm9y bWFuY2UgYW5kIHRoYXQgaXQgdmVyeSBsaWtlbHkgaXMgdGhlIGNhc2UgdGhhdCBtb3N0IGNhbGxl cnMgb2YNCj4gZl9vcC0+cG9sbCgpIGRvbid0IGtub3cgdGhpcy4NCj4gDQo+IE5vdGUsIEkgY2xl YXJ5IHdyb3RlIHVwdGhyZWFkIHRoYXQgSSdtIG9rIHRvIGRvIGl0IGxpa2UgeW91IHN1Z2dlc3Rl ZA0KPiBidXQgcmFpc2VkIHR3byBjb25jZXJucyBhKSB0aGVyZSdzIGN1c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