Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp54920pxb; Mon, 25 Oct 2021 03:48:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWKCABvYIhpu1IHD2PGSqvsgEk4w9MHcTbxKMvd92a5uq2PpyjUvOF1FfEwj3Do+UO04qa X-Received: by 2002:a17:90b:3ecd:: with SMTP id rm13mr19909465pjb.189.1635158906289; Mon, 25 Oct 2021 03:48:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635158906; cv=none; d=google.com; s=arc-20160816; b=FIbbjMxcBYShp2y7BRm6M3+rx5kIfjjpcWw2QllDYPvVE2Ko+wvL2RC1oItl0uqNpg lqvu20QDWXIEplVVXUyfOV4BFlwZd4PZDW11u4thIvr3AVZCD9JpfHZ01/UQYXi8rJCu oW93DtUtnypuSi/Jqp86ctgHkzjI7HPfT9knDddAhx4Wg8qu2zYISh2qQ/ttFkUj9jy6 6Ed76swFnVeg/iNGYofanljUh+fMJS0siE/kK//BGdzc87Ly58cGJPro3QByNphHphag 17drCnxttSYkcqvGH77gQieDSgLk8Fh1PynIZcerEkFNxghNlc5Ip/LzoQxb90ZnS7+6 hBWw== 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; bh=nWpDQmZNg8zKVk12QskQ7NNS05C4fI/JmZBKLdKyu8Q=; b=TOsE/hqfv/O8eq9G7LT9nRZNQB0bkn0nJchVNhNWFxoYD16cPqszZZE70sXN+p9P94 L0i/pJ84PO57CcuXAQ/xKud+fN29QS3NtS8dDRr79Tds35orCjXE9BSr/ASRkuPrhB8F PbmjYizbrvEd2GmmLgC3ZdUP7kLU6fn9Xz7ZacBwYOltyT/T6uVyATUc+540g2Q1Mnhj 1M60wefyXo5YXZYbuKcSVcCCDdZOjRT4xvBehmeOwVbXGU8FSrufzZ3Anjps3XhacOBn sv/tOO94E/i+RTseEStD9VXLlmKaHDg0sFik0HdLagCYMbX3j1nMSSwf+B8O8iWu68Vn qnzg== ARC-Authentication-Results: i=1; mx.google.com; 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 v4si19154426plo.132.2021.10.25.03.48.12; Mon, 25 Oct 2021 03:48:26 -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; 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 S230510AbhJYHV0 (ORCPT + 99 others); Mon, 25 Oct 2021 03:21:26 -0400 Received: from mail-wr1-f42.google.com ([209.85.221.42]:47096 "EHLO mail-wr1-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230015AbhJYHVX (ORCPT ); Mon, 25 Oct 2021 03:21:23 -0400 Received: by mail-wr1-f42.google.com with SMTP id k7so6351304wrd.13; Mon, 25 Oct 2021 00:19:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=nWpDQmZNg8zKVk12QskQ7NNS05C4fI/JmZBKLdKyu8Q=; b=ZnBp/o9Bi8EpF/7DBrrr3u6I6nvXZIMo7mpSFih6RFCxATcFwS3d6F3vnPewXOAoCs slDKPCzGcyWTCbhI0n6nDsq1enTUga37DwDm3rt/glKAzg43IxOmRoSFIl8YZ40GPsCz qWa8V56o9nmQE19qf2kUKl1PMEYP7Xg5jZFMcslChP/9q6WY/gqUtT+/GjKdtjrVy/pa JVrlCHh1lKSLeQLuEs0KbaYZS+RG99mmV7CwM/rh9qiOa6dIxIaJDjCPLIsNTtJUsZgf D44PqBPP3LVzs82b8O0Cd+SvlkW/6/JBdhod6XpZGnN3kwSSV3z0/mREOCrGLYz2iC/k 2T1w== X-Gm-Message-State: AOAM532lYDWhGCdvxbon69OedmG+4bqmC74kWrVJIsUS6dxaJs/muAcn 2wQtpiRBq1joPtEY2OIDnQJ17Akn7t0= X-Received: by 2002:a5d:6d51:: with SMTP id k17mr20926449wri.233.1635146340045; Mon, 25 Oct 2021 00:19:00 -0700 (PDT) Received: from [192.168.64.123] (bzq-219-42-90.isdn.bezeqint.net. [62.219.42.90]) by smtp.gmail.com with ESMTPSA id c7sm12387886wrp.51.2021.10.25.00.18.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Oct 2021 00:18:59 -0700 (PDT) Subject: Re: [PATCH] nvmet: prefer flex_array_size and struct_size over open coded arithmetic To: Len Baker , Keith Busch , Jens Axboe , Christoph Hellwig , Chaitanya Kulkarni Cc: Kees Cook , "Gustavo A. R. Silva" , linux-hardening@vger.kernel.org, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org References: <20211024172921.4110-1-len.baker@gmx.com> From: Sagi Grimberg Message-ID: Date: Mon, 25 Oct 2021 10:18:57 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20211024172921.4110-1-len.baker@gmx.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reviewed-by: Sagi Grimberg