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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F17F6C4332F for ; Sun, 12 Nov 2023 19:04:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231918AbjKLTDx (ORCPT ); Sun, 12 Nov 2023 14:03:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231602AbjKLTDw (ORCPT ); Sun, 12 Nov 2023 14:03:52 -0500 Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A36DA213B for ; Sun, 12 Nov 2023 11:03:49 -0800 (PST) Received: from letrec.thunk.org ([65.217.157.154]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 3ACJ3K0s000305 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 12 Nov 2023 14:03:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=outgoing; t=1699815802; bh=mwpvDhP8rr4vCE2dpGWSyhy+tEU0tBPEvXrUqeqBQe4=; h=Date:From:Subject:Message-ID:MIME-Version:Content-Type; b=gl21uuvQut9jucRhv2jhOkv6N9F9tRswiM0auY4aN1aXrPi8o/n17uKOeqXKpgT8y 3BlFYcfqtvYlwmIu6Cu54pCgwoijYatC40AlfRkTR9jG5YpCVBrBkspUF9BH/1x5tP iSrLN9k+Pk+UqHbn9RXgFLwF5YiqkE+JIgMZJ6V6i9uFicDlIsdhP0m8twwwaVXtr2 qqI1a1v3VDgdhGI0T9DxcRWHNXlXbbY5w/ndoBO2fu9IFQdA986lJAwxQyOKuOrskt NWvIBrLNmVMiI56e2SehK0pf5PNYS9Lr7reKK3iRU8DiuUhDSOY3gWtgLgTLxOscZj p/zp9YJo6jbwQ== Received: by letrec.thunk.org (Postfix, from userid 15806) id A70068C0345; Sun, 12 Nov 2023 14:03:19 -0500 (EST) Date: Sun, 12 Nov 2023 14:03:19 -0500 From: "Theodore Ts'o" To: Linus Torvalds Cc: Jasper Niebuhr , Willy Tarreau , akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org Subject: Re: [PATCH] exitz syscall Message-ID: References: <20231111125126.11665-1-yjnworkstation@gmail.com> <20231111132431.GA3717@1wt.eu> <20231112154424.GE35991@mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: On Sun, Nov 12, 2023 at 10:50:10AM -0800, Linus Torvalds wrote: > > However, it still needs to also make sure that the memory in question > is not file-backed etc. Which the patch I saw didn't seem to do > either. Well, yes. If the program isn't using a small amount of anonymous memory, which is also mlock'ed so it doesn't get written to swap, the rest of it is a total waste of time. And from what I've seen from the O_PONIES debate (e.g., users truncating files and rewriting them, and then complaining when the top-ten score file disappears after the system crashes when they close the OpenGL connection to the proprietary kernel driver), my basic assumption is that anything application writers will get wrong, they probably will.... - Ted