Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp19457043rwd; Wed, 28 Jun 2023 09:30:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Z7HcqG9j8neZDPXNxRKm8xlCdfICYN0GyYkKuNIKrUvlP47hqPL7qzR1uhMR+I/mjDvgF X-Received: by 2002:a05:6a00:b53:b0:680:40b2:5424 with SMTP id p19-20020a056a000b5300b0068040b25424mr2969709pfo.23.1687969822255; Wed, 28 Jun 2023 09:30:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687969822; cv=none; d=google.com; s=arc-20160816; b=02h96q0Pxuzp/HulOjBsCKnwQvGu2TAkvckZVmHebMmfh4CIOXIRSgtlALZEm2QXY3 JmT8XK5xA2EdsTLoNGOwQecRVUsujioGwCUJJfP7jcfUO7YMQ69OU+ibPHrjrDVTfTK8 1sEfhA6wKkEEUTZBygA7WWwP35BRYP4XQ8LED+r75PmnLLYH+ba312s6AtSKVDRCFUAB fIeOJP8PRuyM12erZ1Gk1HJCDMYKQx2UQ4k1AgaX08C7uGiZrcnMPvoja/gBA1rl1FvZ d3MgJvnsma9tqaXIX2994GUpSQASzgFGzg/Yh5QGW52BwfogE1up1nt+9ZTBt/jts1hH LADQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=GPpb/2tnOaLvPcmNVC1FnQTKYAdbc3TLfcGD1phxugk=; fh=12e+ZbEHCs3VHG6wR6bi4r4MAVmxznxpsMAEFGdbe0c=; b=KIK0rA+/FVzWm+JbyPFCHYnmF6nzZdOo30+v01m4mPkIpUnee5uuxqv97xk+XlN2QC R2+YAqAdZlc2qMlxEoLagHPCJijPLtMZr7DNSXkN7n8OmZi1xvLMbfJIHgMEVH+S8g2s 4kO6vaQbbLmxoB882Duc1eqZ68lSnP2Pv7GRin3fTRNx4qiwwnUCY4qJVKJUq7v94W9a X0cmy3Ffs4bhQds6l95jgmUYekAs+It/XbxA13DTZ314NWFzRMtcLajN5Tqz5B2LK99x x0HH+L2oVT3s50tgu9qOMPtkt7e64Egy+M/J3biJdfnu/Tpe40PjUkudgGy6U3PFGjqz 3rIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=SNRASh1Z; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id eb24-20020a056a004c9800b0066a45a450e4si1516262pfb.30.2023.06.28.09.30.09; Wed, 28 Jun 2023 09:30:22 -0700 (PDT) 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=@chromium.org header.s=google header.b=SNRASh1Z; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231956AbjF1QAY (ORCPT + 99 others); Wed, 28 Jun 2023 12:00:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232288AbjF1QAO (ORCPT ); Wed, 28 Jun 2023 12:00:14 -0400 Received: from mail-vk1-xa2e.google.com (mail-vk1-xa2e.google.com [IPv6:2607:f8b0:4864:20::a2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 824E41FF7 for ; Wed, 28 Jun 2023 09:00:13 -0700 (PDT) Received: by mail-vk1-xa2e.google.com with SMTP id 71dfb90a1353d-47164fe4941so23927e0c.1 for ; Wed, 28 Jun 2023 09:00:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1687968012; x=1690560012; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=GPpb/2tnOaLvPcmNVC1FnQTKYAdbc3TLfcGD1phxugk=; b=SNRASh1Zsm6tbRz5f3GKr+JJaVqeig50e/xDwWncTjDVR19/GaoQmLg7PYlLSANOSf BSPj4JK1nkfvj1gQjj0OkKSk2W0hblpgPsWmSPzeLoXiZUSO/lp8wOENjzJNgWq6/J7l vBYXJTDNfeHcXvbVnYoKCGrsGSJzZu9Rse830= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687968012; x=1690560012; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=GPpb/2tnOaLvPcmNVC1FnQTKYAdbc3TLfcGD1phxugk=; b=M5znOQTqbx/V1DrF9bxH6nCHiH1+FUiMdWIVY23izgK40xGAFwXk3BXBiwOA/m4yv6 cAU3oEnkyWgF6V15iA9+xzlfagHzUAuPgf8us/fnwMWUFbEgumFkhGFx1klkTKvxcb6g V8gX3LYgCAl6kwRE/bDnl5PnXwixPGMWvJgk2Pq3SAFwgKNQU38KsxrmwAmBiWF90Lxd xTZb12KLg1rVhXw3OKMF7vS4WOFb0qtlRv4sM1g1CAXlprjo7NT0Hdu6Dpv5U3X94HZz REAGbip30I4Pkt/LBnDY//v5ie22lqmX2zdLUAtOVcIYhjOXhVt+TzHLJyzEyOReI0lu e4ug== X-Gm-Message-State: AC+VfDwnYj9gGG8JMT9dJjl5wygIM0AVrh9PzOQmtJkQksE+lLRNot2d wifePB0O/Pj5zW//gm2tipZFZp1/knWHByyZEsnvMA== X-Received: by 2002:a1f:e784:0:b0:471:6119:95cc with SMTP id e126-20020a1fe784000000b00471611995ccmr15924726vkh.14.1687968012466; Wed, 28 Jun 2023 09:00:12 -0700 (PDT) Received: from mail-ua1-f43.google.com (mail-ua1-f43.google.com. [209.85.222.43]) by smtp.gmail.com with ESMTPSA id p185-20020a1f29c2000000b0047620e2e514sm1988435vkp.15.2023.06.28.09.00.11 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Jun 2023 09:00:11 -0700 (PDT) Received: by mail-ua1-f43.google.com with SMTP id a1e0cc1a2514c-784f7f7deddso1802262241.3 for ; Wed, 28 Jun 2023 09:00:11 -0700 (PDT) X-Received: by 2002:a67:f998:0:b0:443:6ad6:7915 with SMTP id b24-20020a67f998000000b004436ad67915mr5063977vsq.27.1687968010482; Wed, 28 Jun 2023 09:00:10 -0700 (PDT) MIME-Version: 1.0 References: <20230627120058.2214509-1-matteorizzo@google.com> <20230627120058.2214509-2-matteorizzo@google.com> In-Reply-To: From: Ricardo Ribalda Date: Wed, 28 Jun 2023 17:59:59 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/1] Add a new sysctl to disable io_uring system-wide To: Matteo Rizzo Cc: Bart Van Assche , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, io-uring@vger.kernel.org, jordyzomer@google.com, evn@google.com, poprdi@google.com, corbet@lwn.net, axboe@kernel.dk, asml.silence@gmail.com, akpm@linux-foundation.org, keescook@chromium.org, rostedt@goodmis.org, dave.hansen@linux.intel.com, chenhuacai@kernel.org, steve@sk2.org, gpiccoli@igalia.com, ldufour@linux.ibm.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 HI Matteo On Wed, 28 Jun 2023 at 17:12, Matteo Rizzo wrote: > > On Wed, 28 Jun 2023 at 13:44, Ricardo Ribalda wrote: > > > > Have you considered that the new sysctl is "sticky like kexec_load_disabled. > > When the user disables it there is no way to turn it back on until the > > system is rebooted. > > Are you suggesting making this sysctl sticky? Are there any examples of how to > implement a sticky sysctl that can take more than 2 values in case we want to > add an intermediate level that still allows privileged processes to use > io_uring? Also, what would be the use case? Preventing privileged processes > from re-enabling io_uring? Yes, if this sysctl is accepted, I think it would make sense to make it sticky. For more than one value take a look to kexec_load_limit_reboot and kexec_load_limit_panic Thanks! > > Thanks! > -- > Matteo -- Ricardo Ribalda