Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp19408276rwd; Wed, 28 Jun 2023 08:58:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5T46DmJI5vvZa0nm8Weq7n69GXK+7aIayx0SgtE/zY13Omao6aFe7uZrswH78XoSA6Ac6+ X-Received: by 2002:a2e:9cd3:0:b0:2b6:a0cd:ba6 with SMTP id g19-20020a2e9cd3000000b002b6a0cd0ba6mr6232535ljj.33.1687967887811; Wed, 28 Jun 2023 08:58:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687967887; cv=none; d=google.com; s=arc-20160816; b=EpbOqTDwtLEWGJoI6YjYjPSETOtRRojDrS8SbnvD6bCYDiUA9uZnHNv7xg1265fchF 7wJvFhqZKu7aBayyhNLT9SVI5HGOgnfLHZdIDEDLyJt5cUp3k/fdvLoFKSINhCF1N0H9 qB9LMERb+VYxAoOS0q3ED8fk7PJUdWKAe8J5/mylEww7KdXEG59LSvuQwhPIqhMmrmfW ncROYOjsUktwCBFrdaZ8XFywVchhfqUN7oiFXHaL2IlY1VJSaCAO09gLzfn5BQAY37EZ DW0QpkcomTS6oeCeB4YSuzFH98+rGmdC+DSAFPy1gojh/jKFlC+8oqfsVeGxEsjKlazz 9Zkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=9qZSFuxG0IoUAkOzLqBAsv4mqf5Nr+aL9HVwyHW9Zro=; fh=PUbEECncEN+5CBxOtRTh0DYGQmP4nGNzt26cs0+UZA4=; b=HeHlfi+d8sMR82c9pKl5qtrvA2xA3MdcW6RjzOpNXB5n8rV3JRpnbOoP3aVMgPCpiE /Sor8oxgxXqpF+kZ8/mRknBEZ997wukira/8NgDb64m8hbaL9wza9GIwfY6NwCmruNOq +a4xsYab56r3xkyc0MqfeqNu3HlRs5rUoAj6XHe94EYBA5uYlf4dIRmIEsTSMLi9uOoi jDoZmyVU1UC8Aa1Ta3BulyLX4OratULX7uq/8134Fzvf3HSuJCVXpyXtOocRv5h/rdHt Ec2kYgHctIvQC6/WdBATF7x2J0elckbs0p82xWhv36yn4npwxqPcgDqSigfRcYT40skU ZIaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XUM1qFE4; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y26-20020aa7d51a000000b0051dd616a276si5159edq.71.2023.06.28.08.57.42; Wed, 28 Jun 2023 08:58:07 -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=@redhat.com header.s=mimecast20190719 header.b=XUM1qFE4; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231638AbjF1P4N (ORCPT + 99 others); Wed, 28 Jun 2023 11:56:13 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:20083 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231983AbjF1Pz5 (ORCPT ); Wed, 28 Jun 2023 11:55:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687967706; 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=9qZSFuxG0IoUAkOzLqBAsv4mqf5Nr+aL9HVwyHW9Zro=; b=XUM1qFE41xJltHdxRjqB/b7QuCINT1FgrYVtBybaZVr+eo+yKOzHLKaXQpl8PArhCtJjP3 2jSpEULevGIrbyCjENDK5XmehZ1HimTtMPIp3wxhpC8QYeNmL+EiJN59AiL9aK+c9xaAqm 9Wxa5LIUU4aDCu4ZS9bAqrUwVzGXXAk= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-375-zxQD8_t6NrCMSLSlLOuOGA-1; Wed, 28 Jun 2023 11:54:53 -0400 X-MC-Unique: zxQD8_t6NrCMSLSlLOuOGA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D3320280D21A; Wed, 28 Jun 2023 15:54:05 +0000 (UTC) Received: from segfault.boston.devel.redhat.com (segfault.boston.devel.redhat.com [10.19.60.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5CC97111F3B6; Wed, 28 Jun 2023 15:54:05 +0000 (UTC) From: Jeff Moyer To: Matteo Rizzo Cc: Ricardo Ribalda , 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 Subject: Re: [PATCH 1/1] Add a new sysctl to disable io_uring system-wide References: <20230627120058.2214509-1-matteorizzo@google.com> <20230627120058.2214509-2-matteorizzo@google.com> X-PGP-KeyID: 1F78E1B4 X-PGP-CertKey: F6FE 280D 8293 F72C 65FD 5A58 1FF8 A7CA 1F78 E1B4 Date: Wed, 28 Jun 2023 11:59:56 -0400 In-Reply-To: (Matteo Rizzo's message of "Wed, 28 Jun 2023 17:12:42 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Matteo Rizzo writes: > 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? See unprivileged_bpf_disabled for an example. I can't speak to the use case for a sticky value. -Jeff