Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp37408150rwd; Tue, 11 Jul 2023 13:59:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlGH8INwLWd+SGZZ+hV2mcfnhKvH9bWhYpp21t16MzJHtagebXbSd6nPmt0s58IiSkTMEOHG X-Received: by 2002:a92:c688:0:b0:345:af82:dc3a with SMTP id o8-20020a92c688000000b00345af82dc3amr17570672ilg.14.1689109148297; Tue, 11 Jul 2023 13:59:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689109148; cv=none; d=google.com; s=arc-20160816; b=YOI9h/4UBLeaDGV/oJ0EN2CD7/CfMaK6rVgyXkr7eF3Yi6sNIRCd8O3rR/8AwIXrY+ 1gxNljFOjqCvq/yfTuv7Ar+XlYoOFZ35NP3kX5es9II911Pb0owFw5JDET5bgdOGqwc+ rYLVaUiEe4TtP/qh8Bd2UAxp0x3+QoqM9jv/ldpUML+qUoACnmWl0JQ5wjIzszkBEy3+ B8qHpbbeuRqrQw2qXRmzzW/q6jvQ23ScSNMnAGHPW+yEEc61diXgzDSNReo/DGO6Bbgk tWDKI/nN0P6RW0qerlDElrXEQF137i1KLwvcLAPGohPeFFH/nlnoIp5PiVr9wGuHVK2A pKhw== 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:date :message-id:subject:references:in-reply-to:cc:to:from:dkim-signature; bh=4KQjS5IB3HxBUPRZ52PjYkeXdm3xeIYaSrFkecAH7Y8=; fh=CEZovPRokw/WkbNLsgW8PDN8SCskorx8frDMx1CoZio=; b=aiR1STCnqWshXmcMbOrL9/nJjnEFCrrFuDJy42nwmUt+/3hCx2SWUk+FUqoxRItfas V+G+ilLz2sI3e34lbRGZLQ7c2y0bONunhL6Mc+ZCkSmBLyX6x9QKIpK5Ie/v+SbThdyh Zn7NP49fE38LxgY7F1uujr3iZcHIC+J5frvuy4JDQ2yGWFpvLfpkBeZEV/H8SN4hzsGF fYbiKNdOxan4WRC3j3VK5FXE08eZPv97p359b152rnSIjIMh0UxqVjNV73AnKARnrfDw fvJ2RMAhWt+6n6a2pDdKsJor/6HoAwCFy7q2TypPqjWxQoQD6R1KmTRtSuqSXPJhoXRd f/GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20221208.gappssmtp.com header.s=20221208 header.b=Yg8x27vG; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lw15-20020a17090b180f00b0026306246efdsi10477815pjb.84.2023.07.11.13.58.55; Tue, 11 Jul 2023 13:59:08 -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=@kernel-dk.20221208.gappssmtp.com header.s=20221208 header.b=Yg8x27vG; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230321AbjGKUvI (ORCPT + 99 others); Tue, 11 Jul 2023 16:51:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229947AbjGKUvH (ORCPT ); Tue, 11 Jul 2023 16:51:07 -0400 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D6A41AE for ; Tue, 11 Jul 2023 13:51:06 -0700 (PDT) Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-676cc97ca74so1394041b3a.1 for ; Tue, 11 Jul 2023 13:51:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20221208.gappssmtp.com; s=20221208; t=1689108665; x=1689713465; h=content-transfer-encoding:mime-version:date:message-id:subject :references:in-reply-to:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4KQjS5IB3HxBUPRZ52PjYkeXdm3xeIYaSrFkecAH7Y8=; b=Yg8x27vG/jo6ntfVpqL8SMdc3Am7rOf3C7GPs7yktDM+ZCn1UZeK40SAnkL01dlsV4 UV3H+VsihfkXwmmDVvR8Bp7NbGejdB7OkPyrboUWGD10jjFZvA7ujOiXM0wKU8ICxCa9 mhjH+wEBOxEY1/vBCewgN6lm5PkMnN0sfDKN0C8W2jf00OuT7utWoK+M/Yo5mMdlTcb2 N3Jv/ubTq/TgNQhiTmxnuGB+2RUcCikJDdu/em9DUt8s6T0QbiacuYCWMop1NvbK+fHa HykDUrvNmHuUudYMqoYnAO+WTHE+TVMR6migYeCZIoxOePT3b0g7Gnjl/vY/uB85/xqC 4wtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689108665; x=1689713465; h=content-transfer-encoding:mime-version:date:message-id:subject :references:in-reply-to:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4KQjS5IB3HxBUPRZ52PjYkeXdm3xeIYaSrFkecAH7Y8=; b=BU0L9ecBffCW/FwbGlNq1Ik5C3NrjSUjgaIa+k3ljC81drCRb1WjZ05q8d8IzMHxpj jA+3t9ilgSXxYLrffW/YP43LgYLGf9tY5ESKthGqebvu1AXOyEN6KKqTSPbY3hvSsalU YxURtoAPwHPk5SkuWc3SLZxNc/A14hzm42gac1OzIuOOxzhgE0Oh2JXOS/QsrZb3EtVB 2DvaEwaorQJucmVUVm3uG8kAz6GoY2nbvlnxZ32iQaUg59KopUEeleWjpjzkp9dKRH1v DowLHDVCFCfvL2brxQEOEQpOc3SX0VG4DcU7GcbdRJFtFaOXc4gAAbrDeW5cXZwejJhg bnGQ== X-Gm-Message-State: ABy/qLa7WXLaoLuSOda+BPnf9zxD/6CuDLbQAm4WFJrw3EavrpeCS4yX OJvX1Y88P0OSCg0gG5NPZM8xbQ== X-Received: by 2002:a05:6a00:e8e:b0:677:3439:874a with SMTP id bo14-20020a056a000e8e00b006773439874amr18907425pfb.3.1689108665547; Tue, 11 Jul 2023 13:51:05 -0700 (PDT) Received: from [127.0.0.1] ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id w19-20020aa78593000000b0067886c78745sm2148776pfn.66.2023.07.11.13.51.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jul 2023 13:51:04 -0700 (PDT) From: Jens Axboe To: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, io-uring@vger.kernel.org, asml.silence@gmail.com, Matteo Rizzo Cc: corbet@lwn.net, akpm@linux-foundation.org, keescook@chromium.org, ribalda@chromium.org, rostedt@goodmis.org, jannh@google.com, chenhuacai@kernel.org, gpiccoli@igalia.com, ldufour@linux.ibm.com, evn@google.com, poprdi@google.com, jordyzomer@google.com, jmoyer@redhat.com, krisman@suse.de In-Reply-To: <20230630151003.3622786-1-matteorizzo@google.com> References: <20230630151003.3622786-1-matteorizzo@google.com> Subject: Re: [PATCH v3 0/1] Add a sysctl to disable io_uring system-wide Message-Id: <168910866387.217585.15007808058378960214.b4-ty@kernel.dk> Date: Tue, 11 Jul 2023 14:51:03 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.13-dev-099c9 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Fri, 30 Jun 2023 15:10:02 +0000, Matteo Rizzo wrote: > Over the last few years we've seen many critical vulnerabilities in > io_uring[1] which could be exploited by an unprivileged process to gain > control over the kernel. This patch introduces a new sysctl which disables > the creation of new io_uring instances system-wide. > > The goal of this patch is to give distros, system admins, and cloud > providers a way to reduce the risk of privilege escalation through io_uring > where disabling it with seccomp or at compile time is not practical. For > example a distro or cloud provider might want to disable io_uring by > default and have users enable it again if they need to run a program that > requires it. The new sysctl is designed to let a user with root on the > machine enable and disable io_uring systemwide at runtime without requiring > a kernel recompilation or a reboot. > > [...] Applied, thanks! [1/1] io_uring: add a sysctl to disable io_uring system-wide commit: d55f54dac19a0cee1818353ab5aa3edac9034db4 Best regards, -- Jens Axboe