Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp376440pxj; Thu, 3 Jun 2021 08:50:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyaccJuaNNadkOT29HVFXUMcaoEAljbLh9NTTYaqgeu13DaMXsMvuFeiE4QjHTJHY61ASVQ X-Received: by 2002:a05:6402:40c1:: with SMTP id z1mr127013edb.97.1622735402425; Thu, 03 Jun 2021 08:50:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622735402; cv=none; d=google.com; s=arc-20160816; b=rHC0cCyhMJKyI+Ni6uASt5O9eFLsOaohNgU0r1XaZjyIYlmeCBbC/Hr+bZuFHxPl/5 iqKDLlSwkZsawG0T7N5IVg/1O6nOpOo87ZAFEYwQh1CMyAT5m3Jvp6ucq/5v00LtJdAX 7oN6pZLSq6l7XG7a2TkFk5hkkkx4p/cq54Merm2LSBSJKinFPv6o5XLKhxV/h6m52hcj 2D8iWirfGiy4MXaZehyUi0REFydLar+t3GA0ji+Lyf6qFzdCvKREqqjcfNMfb8XGt02O tk+LWTzpS4c1LemqRsr0dmIplkt+gfCkB4RXTV7G60o8c1YiL2bWh4IoBEkxJ2ZmRcA/ VTdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=8YcBVNckt87HVYyLs2knwYKQtGbIl14b368u5y324YQ=; b=jHBreF83TnyP9xamLNpreupp78rH63xc+iOOdDYz+3eN/xX9z7epwVov0CTluHknko 5oPehuxKs+p2ys9YDpdcbPpw5cugaDXFakN3UHmefe1USnvHDwVE821JQWO1EgVcVTjb ku04y1YqRMvHDHA+aofssKFO1Kl+oYDBjFFEeWLj1MbFk6olNx47QtTgJUjUxakIOnh2 0qPEz+MEn/nrbQqRW0BlnGpIxdR4YGqIe8Oi03mLAY4UvjOdiEcSHcz9n5b67WJ6oC1E lcIGuQTCiXCMQfmpc4MjOzB1QBY8IAdtD9i6rlJ70D6Ef53eLKZak/vF8KCLNec1+dPK N94A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=setdzS9B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f20si2354067eja.621.2021.06.03.08.49.38; Thu, 03 Jun 2021 08:50:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=setdzS9B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229789AbhFCPtU (ORCPT + 99 others); Thu, 3 Jun 2021 11:49:20 -0400 Received: from mail-il1-f178.google.com ([209.85.166.178]:36855 "EHLO mail-il1-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229617AbhFCPtT (ORCPT ); Thu, 3 Jun 2021 11:49:19 -0400 Received: by mail-il1-f178.google.com with SMTP id i13so270677ilk.3 for ; Thu, 03 Jun 2021 08:47:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=8YcBVNckt87HVYyLs2knwYKQtGbIl14b368u5y324YQ=; b=setdzS9B3oPv5TR64ZzJpXvy218Ig4yMo8+Wy9C0kPdW1q8LGlAGFyXNxRnXbfvEhS +Bmr0XHw07v0DQTioERnt//X4juNuOp0fWuQ9eB9gPm4dhftvw68gqPLw+dGu+LTHi5b jp6RKvpfi94saetnUGvJrRoPpgAKA+xuqhnshGB+9sqbq83FqClV5BY59VEZxkR5tmIE H+bp7hroUyDn7yP6ALI7sugX6ZqrNN1pvJMc4ptXGDI9W0tlvbouIkmy+7ndm3P3sARk DuOWwJztAI5fFacGPug4ZQbNM3K1I/RoOjfjrt0uf63IoY0StEZ9iIZNONyVx1h5x1qH dSxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=8YcBVNckt87HVYyLs2knwYKQtGbIl14b368u5y324YQ=; b=mn9x4k4r+BP3u3l/69q/x26mBjq9uUoGJAEFuRZiBDBAU+9xVyAaoHsQadR2XchgoK gSPiMEYX7jGlGSH5dUxhpuv4H4g4i5xNYDiMa+y/Vak+WI4HZ7ve4mwr4ROGsJ8PV3SP EDaHH/+WvBfWpUBW0l2SVo08Hf/t11xu/zhtbJ03LtNU204xBbiONmuekfHViZNIJR4s JWlYknGYoI0fUsPWTM8U/3ij2CiEaTS6u2EN4FUXKE3KVXWeSFSS3dyM5NflnqXZQv3I bCZAgvPcEM5d4SWL4edVhHsLd0qIf88OxhfmmbVrvcAF0anhKEfK4Q5na/7FfA0qAErG c+Nw== X-Gm-Message-State: AOAM533uxeUYYPK3CVhQbFnRnADjZibo6pJPXXObtTnMT9J8eAWZWGTL EGGsfD0/uBTCItyF6/qeHekUj0BEOUa5UWZV X-Received: by 2002:a92:3610:: with SMTP id d16mr42958ila.16.1622735178319; Thu, 03 Jun 2021 08:46:18 -0700 (PDT) Received: from [192.168.1.30] ([65.144.74.34]) by smtp.gmail.com with ESMTPSA id p81sm1890651iod.0.2021.06.03.08.46.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Jun 2021 08:46:17 -0700 (PDT) Subject: Re: [PATCH] io_uring: Remove CONFIG_EXPERT To: Justin Forbes , Justin Forbes Cc: asml.silence@gmail.com, io-uring@vger.kernel.org, Linux Kernel Mailing List References: <20210526223445.317749-1-jforbes@fedoraproject.org> <01c2a63f-23f6-2228-264d-6f3e581e647d@kernel.dk> From: Jens Axboe Message-ID: <73673ab9-9ec7-611f-b1f0-5394cd7a172c@kernel.dk> Date: Thu, 3 Jun 2021 09:46:17 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/3/21 9:43 AM, Justin Forbes wrote: > On Thu, May 27, 2021 at 11:01 AM Justin Forbes wrote: >> >> On Thu, May 27, 2021 at 9:19 AM Jens Axboe wrote: >>> >>> On 5/27/21 8:12 AM, Justin Forbes wrote: >>>> On Thu, May 27, 2021 at 8:43 AM Jens Axboe wrote: >>>>> >>>>> On 5/26/21 4:34 PM, Justin M. Forbes wrote: >>>>>> While IO_URING has been in fairly heavy development, it is hidden behind >>>>>> CONFIG_EXPERT with a default of on. It has been long enough now that I >>>>>> think we should remove EXPERT and allow users and distros to decide how >>>>>> they want this config option set without jumping through hoops. >>>>> >>>>> The whole point of EXPERT is to ensure that it doesn't get turned off >>>>> "by accident". It's a core feature, and something that more and more >>>>> apps or libraries are relying on. It's not something I intended to ever >>>>> go away, just like it would never go away for eg futex or epoll support. >>>>> >>>> >>>> I am not arguing with that, I don't expect it will go away. I >>>> certainly do not have an issue with it defaulting to on, and I didn't >>>> even submit this with intention to turn it off for default Fedora. I >>>> do think that there are cases where people might not wish it turned on >>>> at this point in time. Hiding it behind EXPERT makes it much more >>>> difficult than it needs to be. There are plenty of config options >>>> that are largely expected default and not hidden behind EXPERT. >>> >>> Right there are, but not really core kernel features like the ones >>> I mentioned. Hence my argument for why it's correct as-is and I >>> don't think it should be changed. >>> >> >> Honestly, this is fair, and I understand your concerns behind it. I >> think my real issue is that there is no simple way to override one >> EXPERT setting without having to set them all. It would be nice if >> expert were a "visible if" menu, setting defaults if not selected, >> which allows direct override with a config file. Perhaps I will try to >> fix this in kbuild. >> > > So it turns out that untangling this in kbuild is very difficult > without getting very unexpected results. Given the audit and security > discussions around io_uring lately, I am inclined to believe the > proper action is still to remove 'if EXPERT'. I'm still going to disagree with that. In terms of security, io_uring is in a much better spot than it was in the past. Arguably it should have been easier to turn off when it went in, but that ship has sailed a long time ago and the need now isn't really there imho. The lack of audit isn't new and is something that'll be solved for the next release. -- Jens Axboe