Received: by 2002:a05:7412:e79e:b0:f3:1519:9f41 with SMTP id o30csp209617rdd; Wed, 22 Nov 2023 13:36:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IHG8Dud4ORkux6GzmDx9GW686odeB4sZe8lOflavFb+qctz2gZDiL91HYpwBkb0SSNKcqiA X-Received: by 2002:a05:6e02:1090:b0:35b:d7a:eb85 with SMTP id r16-20020a056e02109000b0035b0d7aeb85mr3481684ilj.3.1700688967145; Wed, 22 Nov 2023 13:36:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700688967; cv=none; d=google.com; s=arc-20160816; b=di7K296vlAOZATb8LusEol1YJRJTj/rgAb9vDpk0n8/CHlNgOJedOfuUuQTyNc2wBY RxmWjqnXg+upKKCa/sTKS1Om08I1mhE4d1ghl16mtZ2g5wllZ0LC/jVLD7p8sV9FJXRH vP65SbHY+bZPtJklMtuhdacW6QHdkCmQnOXJG460zV7F6FJHBB4KS42XKT5/xFgeMUVJ +Hk1awxZeDXpYjUlahHDEvZ6fVcN18l5r846ILXYpGz+pMKS0/tiuUmUY4ZZkGmXanpG 7V/LR1uXlvFSANEvqUwjZsDGkftvLNJ8AG7mBDWXcmDEZsDZM4GPDZ30YDBNsaM100oF Cmfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:to:from:date :dkim-signature; bh=QFi1FyBsMShVzRrf++Lw6+jOnJbT3MpEwrqzDblIcLQ=; fh=5ujq/tNCcFWwtRYbbfTqhjJndAQ7lpjNiFuMb4ySr6E=; b=pee6BWaopvyfEMcbI1/mUmI01i+US5Lm4rZ0FKI8W+r/wVvde0O4bB16wK4fg7gGiH qNAUfjsE+pG/YPEjzqKbwLqTj/eb6bFT8lxNg0BXl/k8ok65o1OmW7xxmGxRpfUUpn8p aU2SXlPb+O6sc8VgmumDRkGtDd6IIshFI/lr2IwgSHu9H82kNluir3eLpemH4uAI7oh8 SMXr3yW7Nra8pRZZQBtnfNNJI+8naYD3NAGTkX2D3BK8kErQ6p7udzV0ggGVB5nX8dX8 XU8MyrKz1wK2Nmqo/cGnfUKnXFganian/pMmDkv76d2rI3Ay9YNNhvHqfeJwqutvqrvo R20Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b="YtP/GvNT"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id s4-20020a056a0008c400b00690bc2ac50asi371802pfu.246.2023.11.22.13.36.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 13:36:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b="YtP/GvNT"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id AA283805801C; Wed, 22 Nov 2023 13:36:03 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235163AbjKVVgB (ORCPT + 99 others); Wed, 22 Nov 2023 16:36:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231470AbjKVVgA (ORCPT ); Wed, 22 Nov 2023 16:36:00 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D0C51BF for ; Wed, 22 Nov 2023 13:35:57 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 355EEC433C8; Wed, 22 Nov 2023 21:35:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1700688956; bh=dUf7J8K5pInX6ApRsBDZomkEu1RtnSBNH2JHXiSX7sY=; h=Date:From:To:Subject:In-Reply-To:References:From; b=YtP/GvNT2rI51Ptztgba6YuBdIJ6WPXSCcClZeCkvVekUWZLIJDyWDxopcNGoFjtl 0RPiAaKPgWqPzWGSuWzOL5EXxSZzsS3VnvtYtaecgsPSmm2mKEXSit4VD0mbk+FwjD ZF0NTHlA1pRC4uG7AMRgH6DD33mm2a97R3Ay4+Vc= Date: Wed, 22 Nov 2023 13:35:55 -0800 From: Andrew Morton To: Gregory Price , linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@arndb.de, tglx@linutronix.de, luto@kernel.org, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, mhocko@kernel.org, tj@kernel.org, ying.huang@intel.com, Gregory Price Subject: Re: [RFC PATCH 00/11] mm/mempolicy: Make task->mempolicy externally modifiable via syscall and procfs Message-Id: <20231122133555.b7fc6cdefae0395d34a4cd1c@linux-foundation.org> In-Reply-To: <20231122133348.d27c09a90bce755dc1c0f251@linux-foundation.org> References: <20231122211200.31620-1-gregory.price@memverge.com> <20231122133348.d27c09a90bce755dc1c0f251@linux-foundation.org> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 22 Nov 2023 13:36:03 -0800 (PST) On Wed, 22 Nov 2023 13:33:48 -0800 Andrew Morton wrote: > On Wed, 22 Nov 2023 16:11:49 -0500 Gregory Price wrote: > > echo "default" > /proc/pid/mempolicy > > echo "prefer=relative:0" > /proc/pid/mempolicy > > echo "interleave:0-3" > /proc/pid/mempolicy > > What do we get when we read from this? Please add to changelog. > Also a description of the permissions for this procfs file, along with reasoning. If it has global readability, and there's something interesting in there, let's show that the security implications have been fully considered.