From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 28851C433DF for ; Wed, 26 Aug 2020 19:41:10 +0000 (UTC) Received: from mother.openwall.net (mother.openwall.net [195.42.179.200]) by mail.kernel.org (Postfix) with SMTP id 6F6902076C for ; Wed, 26 Aug 2020 19:41:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="VWhtWvqr" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6F6902076C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernel-hardening-return-19667-kernel-hardening=archiver.kernel.org@lists.openwall.com Received: (qmail 30488 invoked by uid 550); 26 Aug 2020 19:41:03 -0000 Mailing-List: contact kernel-hardening-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Received: (qmail 30462 invoked from network); 26 Aug 2020 19:41:02 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=dSakW77xCiSA5fE92SUgWSBVc4QxiTq31NeLlsC4iFg=; b=VWhtWvqrmDlLgP5IoVdxqiPa54SABR3BHMz8veK4DE7RS5r9FdBeTxrta0h0MeqBNj MtlYu0R3sWrjlNeBq2vpa4ed25Es3FS2palRH/FeV8ZVJ7p0W3xyPaDQTfr24TqanHmn LFLB1QRKPHSwsqeXR/wncpgGF5/+A4Dm3qZ7A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=dSakW77xCiSA5fE92SUgWSBVc4QxiTq31NeLlsC4iFg=; b=iS95q6i9hO+dNjyUVYHwGwoQhyHszxldyu0vggdvtsknl5XD1tH2HdG76eUKtf+JBP 3l4hlJFcXfPWpkiM0/cZHTGsIYFeQzq9000Zs5Lha0S10zfrvitbp9Gk2N8+hCfxyefe 2IlEXd9z6OTu8wstbhbPp+E+8CtNlaez666ml1K0+XjZ2EkLyy9aIueIF2h1yJBq/fv4 vvuvfpc5sjVyHNi7WPNlHQViPFF214eMJRUIDcLbQPBeie4p4+tRcm5hAF8GCGfSkbiL B39q8hNkUjx38d748VqzNOan9I9i5loXXuQ3nSeLlmybXrshY9qzvCp3FFriNO2K6lwz XLJQ== X-Gm-Message-State: AOAM531ihkHrdK6qb9IxYFjfo8LtswuDUCpZkIYe2ZaJoW6q6dpEO/NY //eLtg5EthNTLQPsmgjrm48EuA== X-Google-Smtp-Source: ABdhPJyXEKxXHXf5cRg3/3OzMrYtkIyhnNNSdxI6Puywl/QUiLpeWpXICM+kla3UsLYeJUISDEHNYg== X-Received: by 2002:a63:cd56:: with SMTP id a22mr11535786pgj.259.1598470850778; Wed, 26 Aug 2020 12:40:50 -0700 (PDT) Date: Wed, 26 Aug 2020 12:40:48 -0700 From: Kees Cook To: Stefano Garzarella Cc: Jens Axboe , Christian Brauner , Jann Horn , Jeff Moyer , linux-fsdevel@vger.kernel.org, Sargun Dhillon , Alexander Viro , Kernel Hardening , Stefan Hajnoczi , linux-kernel@vger.kernel.org, Aleksa Sarai , io-uring@vger.kernel.org Subject: Re: [PATCH v4 1/3] io_uring: use an enumeration for io_uring_register(2) opcodes Message-ID: <202008261240.CC4BAB0CBD@keescook> References: <20200813153254.93731-1-sgarzare@redhat.com> <20200813153254.93731-2-sgarzare@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200813153254.93731-2-sgarzare@redhat.com> On Thu, Aug 13, 2020 at 05:32:52PM +0200, Stefano Garzarella wrote: > The enumeration allows us to keep track of the last > io_uring_register(2) opcode available. > > Behaviour and opcodes names don't change. > > Signed-off-by: Stefano Garzarella Reviewed-by: Kees Cook -- Kees Cook