Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp4371684rwj; Tue, 20 Dec 2022 09:14:07 -0800 (PST) X-Google-Smtp-Source: AMrXdXv/3gvz32bPWF7uW3ou+PEW9OajiLTS5AIE7QXVLtHGkZNbvRSYnV0aeM26rYBrlEzQkvlq X-Received: by 2002:a05:6a21:1507:b0:b0:47e7:6cba with SMTP id nq7-20020a056a21150700b000b047e76cbamr10644788pzb.46.1671556447167; Tue, 20 Dec 2022 09:14:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671556447; cv=none; d=google.com; s=arc-20160816; b=IfzUlqdy6rv+8wo2M+JEygK2FqfVsjdZ5rrryfKvviQ/M5doEkgWbbcfzfvfCQZKMO bi0dCNcOmhK+h0WBHF3poAMrGUVEW8QAInakTXtRMSp/e6nugRq1CSqxYT1tHmjKM3pN X3+qIzGmoTBA/aYOHck4mmu1ydIEEDz4lfPQzLb3Sd34hbp+awCRedbYNN0UZIDew1mA 0BoYnB1hn/GrVSY3DWdtDpa33UJGBfUPhr6bmeSSbYmRtljo4i9wd4MsrhWRobuhp4Q7 Yume675qGs1JdNBw1vA+dRc4GWUIqrfyyrqCx59UYAsMW6MQqBcKGFEN5gxLcwL1a4uv CWEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=UmTBCjd4WfDkEIZ41SUabqVQsCDpgvamQQ85cJ8gqF0=; b=d1lx8cmuu1jVgzxCOn53V1HIQRWBMjRjdD5z6SVDJaR6z/zadtOdy14L2lzbaJMs1m 7xXXczyBRDcpweQi50M/kQdfOmj4+g8kpmzKZxhvEwlQg2MOE0mhlHsAJ6iAFjWggGbZ LXwmrsOdzszKstpynlp2cSaFhrLjFNxOsAzoK8YG02xBS/gBTeDEBew8ovjjLJMUIBCg luHhRhTSCb2WN3/J1ZrKFtx7ncqDvKtwiM9+2Vrul7rWKDnsZO8RTlUbvC9lD2z3W024 j0EuHhHGdXyg2L+K2Ti3E6CA7O5cSpCgSkK8RR+OXaRhVkaVeu3QEe7b4+ILhYKP622P xbFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=CSJ9LGK+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s66-20020a632c45000000b0048e54a7f366si3896322pgs.587.2022.12.20.09.13.58; Tue, 20 Dec 2022 09:14:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=CSJ9LGK+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233951AbiLTQzm (ORCPT + 69 others); Tue, 20 Dec 2022 11:55:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229945AbiLTQzi (ORCPT ); Tue, 20 Dec 2022 11:55:38 -0500 Received: from mail-il1-x132.google.com (mail-il1-x132.google.com [IPv6:2607:f8b0:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E08B91CB12 for ; Tue, 20 Dec 2022 08:55:29 -0800 (PST) Received: by mail-il1-x132.google.com with SMTP id y3so6615908ilq.0 for ; Tue, 20 Dec 2022 08:55:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=UmTBCjd4WfDkEIZ41SUabqVQsCDpgvamQQ85cJ8gqF0=; b=CSJ9LGK+9xR1eOwHmVWnalfCyuk+oL/PCYF6ETNL7lFOI3yzt/TaJ7C+YlXlpXEDMJ Uzk7kF3dgaX9Wkqm4cTgekfJXPnLf9iAiCeEUInmVbE/gmNFvvx97KY6JTrWSLzftHWK BzRVwwchdTfgQj7qLq0lDyeRw9+bUl8d5sDWQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=UmTBCjd4WfDkEIZ41SUabqVQsCDpgvamQQ85cJ8gqF0=; b=7/RjAbBF2/f1iqBBLLwxhT9jpWlZ8qYkp7muWPzhQD13lxX8ALOsRpZlv4LoaWlHzK XZ/py30u3WQIF3EmE00NtqKGK113uAPAjKLI2URbaU5vozVwfkmRvggI5Z3MxMRTP/yq dtK2K7pir7E1cDS5IDqkXpUJDgqS5YGUFF4+YDlz21lqAH2O04HKDrVkRTY0gm41SDJe dGCEYLq+hy1zlI5D0VfLFZnXgqKUeuvLudUW/9NIlwn6JMHWDrzfT/nqXMM/VOguW1DI xk4esC2LUxiBCobS18p+gSHv/OwHLLkRO5kvmApcoUFfakoQ4YOFkN6/bQNMzZEaw6TV OQOQ== X-Gm-Message-State: ANoB5pl8xUrokqr72ShZiSQQg/IhTefDabNqBZP1MuFL82WmNgQF/HWN LcDKarvp4BD2xxO7uXAPL1UYJg== X-Received: by 2002:a92:d3ce:0:b0:303:d8:f309 with SMTP id c14-20020a92d3ce000000b0030300d8f309mr4378979ilh.2.1671555329106; Tue, 20 Dec 2022 08:55:29 -0800 (PST) Received: from [192.168.1.128] ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id s12-20020a92cb0c000000b0030005ae9241sm4493573ilo.43.2022.12.20.08.55.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Dec 2022 08:55:28 -0800 (PST) Message-ID: Date: Tue, 20 Dec 2022 09:55:26 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v6 3/6] mm/memfd: add MFD_NOEXEC_SEAL and MFD_EXEC To: Jeff Xu , Andrew Morton Cc: Kees Cook , Peter Xu , jeffxu@chromium.org, dmitry.torokhov@gmail.com, dverkamp@chromium.org, hughd@google.com, jorgelo@chromium.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, jannh@google.com, linux-hardening@vger.kernel.org, kernel test robot , Shuah Khan References: <20221207154939.2532830-1-jeffxu@google.com> <20221207154939.2532830-4-jeffxu@google.com> <202212080821.5AE7EE99@keescook> <20221216094259.bec91e4abd6cf54a05ce2813@linux-foundation.org> <202212161233.85C9783FB@keescook> <20221216140641.bf6e47b7c4f5a53f34c8cf9a@linux-foundation.org> Content-Language: en-US From: Shuah Khan In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 On 12/16/22 16:40, Jeff Xu wrote: > On Fri, Dec 16, 2022 at 2:06 PM Andrew Morton wrote: >> >> On Fri, 16 Dec 2022 13:46:58 -0800 Jeff Xu wrote: >> >>> On Fri, Dec 16, 2022 at 12:35 PM Kees Cook wrote: >>>> >>>> On Fri, Dec 16, 2022 at 10:11:44AM -0800, Jeff Xu wrote: >>>>> Once per boot seems too little, it would be nice if we can list all processes. >>>>> I agree ratelimited might be too much. >>>>> There is a feature gap here for logging. >>>>> >>>>> Kees, what do you think ? >>>> >>>> I agree once per boot is kind of frustrating "I fixed the one warning, >>>> oh, now it's coming from a different process". But ratelimit is, in >>>> retrospect, still too often. >>>> >>>> Let's go with per boot -- this should be noisy "enough" to get the >>>> changes in API into the callers without being too much of a hassle. >>>> >>> Agreed. Let's go with per boot. >>> >>> Hi Andrew, what is your preference ? I can send a patch or you >>> directly fix it in mm-unstable ? >> >> Like this? >> > Yes. Thanks! > Sorry jumping into this discussion a bit late. Is it possible to provide a way to enable full logging as a debug option to tag more processes? thanks, -- Shuah