Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp19402776rwd; Wed, 28 Jun 2023 08:53:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6iGKS/y3adJN2yzrTUySMgxPthQA7DWq84IoXp6+8BAN4dNI/KsR3mYGbFyE77UIegiL/2 X-Received: by 2002:a17:906:9bee:b0:991:7874:e882 with SMTP id de46-20020a1709069bee00b009917874e882mr1611353ejc.3.1687967586330; Wed, 28 Jun 2023 08:53:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687967586; cv=none; d=google.com; s=arc-20160816; b=RSWbIQ2AV06oPCeR735mT9bw1NDy9SIEB1T118CJQBpUpfZTsPXvcRN/hNKRHse3Km r03IMIN+6fu5NR8ZJMeLs/y0csAWDygpX8fm0Nd8q+ft9MoUFD8ZXt4H2cYQGRvzV7zY Hv5rhzMNRk8T692qQKtfZLZHoVTib/3gqP+uSvyziXCIKwkaN57eGveEYo0DTxAKWOyK gQRsQ8VMl9lzskw5mjUXYeesYNSA5izHNSnhuzTotNdExbu9t+r6wav7AwTwAvobfEIP 46yQEY9OJJmlYbB7ULFJowrlf//8SSiRIXxACcedFcAkJfrTEWnMzU+7O5h1LYHn2WK4 edvw== 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=TEPHgY7GKbiF+bbsFDPJ1N0ThqLb/95Yk4P2Ndq0Cf0=; fh=ad5TXMsJlloXqyjEczUaEpQJcxCCmF816BfXxpBz8rE=; b=D7/gKRNbSxKmdWDvvbJP2Ww6MMGLhFAlo78hjmwO/RCLmYtiT2ziGRopgRJXtOpzGT RnWRbQTiq/Rt5DGSRY2BS7veKti1jQ71mTGajN8mI+D9YxL5VlTBQC1Sy8g41OLcGI7C SB1pPC07Vkgr7ulOcLJ7SCSl4A5X/oKzYVilSf4kygH9LR1gEqRy4RNV8mHnGZSXtt/M tAZ6s1wSknLNV1agYGMkYoMv/kAG4lL1itYDNRkMqx99/idspeOIM/p+9CXfNRNRVoCE vo5dcaM/6aEieFytin7CMHkWdDYN8WOREZKBUz3MM/9Q2SuPBnIUid1VBqyGpusyZ9Kt Ss5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=1HSbYA14; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z10-20020a170906814a00b0098e30de1436si4780541ejw.74.2023.06.28.08.52.41; Wed, 28 Jun 2023 08:53:06 -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=@google.com header.s=20221208 header.b=1HSbYA14; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231303AbjF1PNA (ORCPT + 99 others); Wed, 28 Jun 2023 11:13:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230363AbjF1PM6 (ORCPT ); Wed, 28 Jun 2023 11:12:58 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 106B52682 for ; Wed, 28 Jun 2023 08:12:55 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-51a52a7d859so1943496a12.0 for ; Wed, 28 Jun 2023 08:12:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1687965173; x=1690557173; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=TEPHgY7GKbiF+bbsFDPJ1N0ThqLb/95Yk4P2Ndq0Cf0=; b=1HSbYA14PwbTl7aYIHkFeD4WrFU+1yU3qwZYGOcDz5Kg4jiCY4/xPW0Ba4ZZyh1ozn RyQkFx3+XorZswA3SbauYwj+467/ZTVzAkFrdcdaHS+RFaNBW//EIwjneVySSVvCpII/ +nu1GrCqx/kJP+2kuEeyPvaW0e1l5/P8YpkJuubdQO4N4shz/sNJUaSkNqAPukX5Q7vT jhGJCfvrnI8F5hBiHiMx6dStMtn3R7kBcVUv2MHUGLpXXNV4VFqBoWvuy2UDh1aU0ES6 IEg/hMzwZoMrkZb9tCN6l8d4tWYJ0C7FF1cxOeHzDQyCFOtfOhSZEiQxPrcTYlAHBnio NZqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687965173; x=1690557173; 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=TEPHgY7GKbiF+bbsFDPJ1N0ThqLb/95Yk4P2Ndq0Cf0=; b=J53HuHAwkmt+kLzG2vXF7X4zQGYor11o2reigJRmReFgCsgV1q12/aOCum1j7LF8b2 dxFCTv7YvHFlndnSiAgtG9Fl+gQDUcGoQjd8kQyrvc9EVOBg0alL2ruRsr4lw4ixVJgc +aD/28RHz9RJd40NTeMLv7l3oWXQlrXFsFhO4HTXXSNVpzTZCJ+Dgt7w62QQrKeBLYfN 7rPiLxpV8v9UvnVJHwpJEzyZXAlcOnKG3ufA0fCvb2BhFvmSY7oShjyHxAsFdYMTfeEG 880VLFnDGtyvfP8jJ0VkMeKiZ5kPaWjpFcjUipPsNhpVGKnvnZ/6plF6pxT/XqrpWgw7 POuA== X-Gm-Message-State: AC+VfDxhDQr+z9KBKWaR2FPGWTjvnY+k00w1E0E5AihNrzbmIVXPC62o 5BMsL7pRs4rP5nwr5gCFe+BexNy2pGj+O03jk2qxkw== X-Received: by 2002:a17:907:2d25:b0:992:4723:76f4 with SMTP id gs37-20020a1709072d2500b00992472376f4mr1378215ejc.6.1687965173386; Wed, 28 Jun 2023 08:12:53 -0700 (PDT) MIME-Version: 1.0 References: <20230627120058.2214509-1-matteorizzo@google.com> <20230627120058.2214509-2-matteorizzo@google.com> In-Reply-To: From: Matteo Rizzo Date: Wed, 28 Jun 2023 17:12:42 +0200 Message-ID: Subject: Re: [PATCH 1/1] Add a new sysctl to disable io_uring system-wide To: Ricardo Ribalda 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=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 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? Thanks! -- Matteo