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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 93466C54E90 for ; Thu, 22 May 2025 20:54:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A4CEE6B007B; Thu, 22 May 2025 16:54:08 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9FC796B0083; Thu, 22 May 2025 16:54:08 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 913066B0085; Thu, 22 May 2025 16:54:08 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 707766B007B for ; Thu, 22 May 2025 16:54:08 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id D88ED1206DF for ; Thu, 22 May 2025 20:54:07 +0000 (UTC) X-FDA: 83471746134.29.B3B890E Received: from out-181.mta1.migadu.com (out-181.mta1.migadu.com [95.215.58.181]) by imf06.hostedemail.com (Postfix) with ESMTP id C9092180003 for ; Thu, 22 May 2025 20:54:04 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=h1YSWwGd; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf06.hostedemail.com: domain of shakeel.butt@linux.dev designates 95.215.58.181 as permitted sender) smtp.mailfrom=shakeel.butt@linux.dev ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1747947246; a=rsa-sha256; cv=none; b=TSotxkVrTguUNFBtrKHMXuf0SSV3sDrcuHCKJkviVG9HoA0PSjSdD2AnGR9u5Tt4/TaowF lsDgdr1y94a8AuBQd2LrAEZU9Z2BGM/zCkErwADqklfiamIdPuWCwpWC9KKA6Gqz0P64Oi Jth/A4339SCL0S2NQ+MARWLgTqAAR5A= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=h1YSWwGd; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf06.hostedemail.com: domain of shakeel.butt@linux.dev designates 95.215.58.181 as permitted sender) smtp.mailfrom=shakeel.butt@linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1747947246; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=1/jOsasnD7/8FvY3TuCm8IbQDBYnKBvwXkRBxlVl1tk=; b=K26CFLJArQfIFjmazOJh3oPknNdIcLkwaWhMldv+Qv9J6b1zKGubYBhIMptAEZvPaC45ct a+D1QdiG8k/92TYzgwZaAK/V5uFs9hM7IeQPGuzm1xO13EAaNNzcjJPjpqkuiqvkDmnNOE x+ILjsx28KlbzFbEzROLy8LW4rfCddk= Date: Thu, 22 May 2025 13:53:51 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1747947242; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=1/jOsasnD7/8FvY3TuCm8IbQDBYnKBvwXkRBxlVl1tk=; b=h1YSWwGdktd+9jrot8ivB1HH/4tagr/1MSzzWk9RJfwfhjNNDb7J7ixbXutQZSXc2J1rgu XYAHAK4qqLuNoPh9tf8Zh0VPT+KKLJvkGpa33UD8bl6fu/+pNAAXH2vMQRy0MxOKW19j2f Dx0PJDKE79+tN16wChdBGKFxdZK9IhA= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Shakeel Butt To: David Hildenbrand Cc: Lorenzo Stoakes , Andrew Morton , "Liam R . Howlett" , Vlastimil Babka , Jann Horn , Arnd Bergmann , Christian Brauner , linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, SeongJae Park , Usama Arif Subject: Re: [RFC PATCH 0/5] add process_madvise() flags to modify behaviour Message-ID: References: <7tzfy4mmbo2utodqr5clk24mcawef5l2gwrgmnp5jmqxmhkpav@jpzaaoys6jro> <5604190c-3309-4cb8-b746-2301615d933c@lucifer.local> <226owobtknee4iirb7sdm3hs26u4nvytdugxgxtz23kcrx6tzg@nryescaj266u> <7a214bee-d184-460f-88d6-2249b9d513ba@lucifer.local> <9433c2d6-200c-4320-80f3-840ca5e66f64@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9433c2d6-200c-4320-80f3-840ca5e66f64@redhat.com> X-Migadu-Flow: FLOW_OUT X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: C9092180003 X-Stat-Signature: yqtwnrumy7ahxy3t5xhyauw9gq5ercdr X-Rspam-User: X-HE-Tag: 1747947244-368234 X-HE-Meta: U2FsdGVkX1/aDwarJWWwfmsuXZMRcD5OzW+k86Nbjf8xur+Qw6rniLRJmgrt0l5BvqEreNwyPU6Q+4eFRADcInqVwJdcTP2CiVDZ/PfbBUp8Au2cQhtn5kKrYgE5TJ+8vxiyrYvIo08oQUlyFALVFirC4gKs0x7B3Hczcldur/YTm5j23+J2bbe+Pvu//SZUge0HZAjrZ3nzMSaj2dFMj5qlAezXKMPcedMsQLUlZZIQ225/r9ye3KGpYbAbP3KBg2G0TPnSeiDp+Z74eY8tHlHaMs0nRgkyArcwiZMdAjiyXVR/VLzAhtlEIZHe07WzVHJSSPVrKkBb7a+ji3ENPjpdC1znK+sv8WMy11FBL6uzoGtEshDNQFEhUxpNUhgsMkmCjralp2LDi3PX4u6o7Z/R0Z++QQvDY5sCYcGJDlNhp8OPam7BKHkfFA5GyPvXw3Ewc2KhIuKtILYfdrgzQB5U1XqmHYET3VYEl/1JLl0fxA0vn2HtVC9BWIXGtXPMp479nipDCWqqCrBq+YawihTdb1XlkbdnJisMN1BHBxPz8I0tQTMvJktprgcj9BO16CpUJBGPlNvI9mB0BUlXKzFdG94lFd9DCOQI+lsWajpMt1HfFbPLUxn17b3jm+wQN7whxod7KhJkuul4xQbOYbIiakmblgBVUg9Lx23mJMwoy34yRrndsrQbml9W+lL6PPprV1+unwMzINVLWSJ9ZEu0WmE+eKlUCCRNWvkCbfYuQ9esM9RFMUI/RQADq8i+4AWQ0vgFeRoltqW2E8liRwfJxv1R2eWKRVMub3ueszQeodZEBkrzOrOc3cJfH5+UyEpbaXz2fdd3M1GLzxLfmjq9a0kEgk/niM7cBIvTBXKp0fJSatLxfOAYvsCULJC7L+/8zyGLLEMbEZNE5EypaDr/kIg1do0fiiQosMBWkPUXjw9mvwMUi9icGLHpVTFE8zPfb1L8a/5Ln/42doe s2QPIpp4 5ZPB5QCdhmRfb7oZYrQAu9YdTHyHlaz6vEZ7hqySDyMQ8RRjC0u4dwIa7NsjV0tnb0KaaZP4EpMTxgbnZZEAGgVZmVuBGib9xFdzNe7y5eJtNCMxbMx65jUrAd/0HHl/DkAFwnGsD9+4OKZnTZeliYTnCGipPdJhGVbOZU7fXUSNKEEI4L+Lp4EDidV+1OyO5Gjh7RCXpo/LUMDfyWo6X6zy5J4IjqnPxcU6RKD6+H7EPCRAzDR+W0FEVl1mx7jQpGjwPWMSIHjuSt20= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: On Thu, May 22, 2025 at 03:05:30PM +0200, David Hildenbrand wrote: > On 21.05.25 19:39, Shakeel Butt wrote: > > On Wed, May 21, 2025 at 05:49:15PM +0100, Lorenzo Stoakes wrote: > > [...] > > > > > > > > Please let's first get consensus on this before starting the work. > > > > > > With respect Shakeel, I'll work on whatever I want, whenever I want. > > > > I fail to understand why you would respond like that. > > Relax guys ... :) Really nothing to be fighting about. Agreed. [...] > > > To summarize my current view: > > 1) ebpf: most people are are not a fan of that, and I agree, at least > for this purpose. If we were talking about making better *placement* > decisions using epbf, it would be a different story. >From placement decisions, do you mean placement between memory tiers/nodes or something else? > > 2) prctl(): the unloved child, and I can understand why. Maybe now is > the right time to stop adding new MM things that feel weird in there. > Maybe we should already have done that with the KSM toggle (guess who > was involved in that ;) ). At the moment systemd is the user I know of and I think it would very easy to migrate it to whatever new thing we decide here. > > 3) process_madvise(): I think it's an interesting extension, but > probably we should just have something that applies to the whole > address space naturally. At least my take for now. > > 4) new syscall: worth exploring how it would look. I'm especially > interested in flag options (e.g., SET_DEFAULT_EXEC) and how we could > make them only apply to selected controls. Were there any previous discussion on SET_DEFAULT_EXEC? First time I am hearing about it. Overall I agree with your assessment and thus I was requesting to at least discuss the new syscall option as well.