Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1531326rwd; Wed, 31 May 2023 15:35:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4vcU2pTi1u1cGajFhLoCcjCNJWowsn6gGduMvcdfB01khDm+HXQeLzZk4H2kXSUDOefR4L X-Received: by 2002:a17:902:d481:b0:1ad:dd21:2691 with SMTP id c1-20020a170902d48100b001addd212691mr6443669plg.10.1685572547434; Wed, 31 May 2023 15:35:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685572547; cv=none; d=google.com; s=arc-20160816; b=FNyV0FmBkjdnYVL8GZK7l29JUYJ4azd814krW+Oqs8PGGuzlQfDeu1aonQLMSfehVE crRGeslBKW/shHg2C4vHTCbdHj1bYeDakdaOo0Ly4vqvwdoGefTZDSga6YJCsadKb4Ur pQc+FeWMPEnE8nsJZJgg37qmKwTKGKySZ6OQjB8oA48PoD00ZFbOCCEn8X21QXjQpUQv C6Mi/ucC2Y5zRkYFw5UPvH53Axn9qcmMX3Ipz2UGF75GuszsFLyjB4EX9aCEPnaJJXEk /qCarH6frMtyVpdiclJ+RikDlrCkYHqJV+9lxvSpY/W+EOkDNDdxiZ1toYV4DSmhYXoL OAmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=+7BAjCkWwvQTbxOwRw7ZTv3Hxw5JMtdGim67idI48WY=; b=JQ/gKRZ8dltTowBaGdG9nNUGmFqxSHdWgs10YgnK8QqGgKUUDznP7qgtBvskj1i5q9 UAHKa0wbcysVk91Y9HYyN8vtVBjPQTvEhnWcmgw6rGv/IBxxBfs2mH3orrQ9nh5qU9aT xMCJcndOTPw+WAib1XQ4b+GZtFAM9ma0ARQlwbxcVNeWWdIHGcI4eHDXsOtamRYXRaRn AItnSAaLGjqnOND9Pwu5MMyaiXRa8k79FEUN4VJkAuAUUeBuVL01XBGvaXUOhxrgh0hP 4J546YvSYULUCkMLpVCVTq3A+IRBtX7/tdKBSdeNglDuFxoI2DDpx5i6QbYXvbW6yKRk ofKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=KDaWO9Id; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id km3-20020a17090327c300b001aaf1734d1dsi1586917plb.241.2023.05.31.15.35.09; Wed, 31 May 2023 15:35:47 -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=@broadcom.com header.s=google header.b=KDaWO9Id; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230027AbjEaV73 (ORCPT + 99 others); Wed, 31 May 2023 17:59:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229639AbjEaV72 (ORCPT ); Wed, 31 May 2023 17:59:28 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFB3C11D for ; Wed, 31 May 2023 14:59:26 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-30aebe2602fso107108f8f.3 for ; Wed, 31 May 2023 14:59:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1685570365; x=1688162365; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=+7BAjCkWwvQTbxOwRw7ZTv3Hxw5JMtdGim67idI48WY=; b=KDaWO9IdL6NrHeG+DwQQIjs1ThQ1ReKK5R7wo1zsl9+T4sYyE/fKb+4AhVTPwVC0a7 sbz+hf6an8VQqjKGK7gezHYUir2bqf8uzzaDd46K2CTHBfD1L61r/ob+NrDydbKlSim/ 81u0DFcvtia0tArWBdFX+7ZuEkGXh7PrtvgKM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685570365; x=1688162365; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+7BAjCkWwvQTbxOwRw7ZTv3Hxw5JMtdGim67idI48WY=; b=bfb9iTYeuUKjRREdf5Pql9R1ExZ5H4xAA86g/9Kc6Mi2wprICbTRMzsXIINLpN3GKb q6rmMa/Au8hLuZQoWBmJmMKwlgO7FeTvxnZikLjytZbLZGjiC5lZFrYDZKKICn20Qqyb QIMHd0AHjcnyM4LvBmYQ1+gMjCz3uAPZIBY+8ONJzm/FbCf39cpn9Hx1nhKbDAWgcpX2 oh3mZ7aW4TNcP4vqFCqVAPbRVIK4Bc9u5OaFRwiWttUBTHbF9LPjIrYpB3sXx+EAwWc8 bY9Xa+gJfLpAQhOzBVwpKFUkRwjZ8V2GjdSiZNMRExFjagQNnOd/ZQ70MABRA/ljwRLU 1EyQ== X-Gm-Message-State: AC+VfDxSSTpqWtPvgdYICwlNztHXstWE6O56xq4LaUjGa2BpOw4ORaGC fWZoLLjHhGP44v6n+pKiMRoXGE/dDEn4GqlVJ5pKR6GIpI6NHFGsFj/QnpDzuzBOjMRzKufnPK4 DcSoT7con3aoCz6WDjpsLZnHRJ6SUzdE= X-Received: by 2002:adf:ef8d:0:b0:2f4:6574:5a93 with SMTP id d13-20020adfef8d000000b002f465745a93mr316155wro.4.1685570365094; Wed, 31 May 2023 14:59:25 -0700 (PDT) MIME-Version: 1.0 References: <202305261041.4C23B96F@keescook> In-Reply-To: From: Justin Tee Date: Wed, 31 May 2023 14:59:13 -0700 Message-ID: Subject: Re: [PATCH v2][next] scsi: lpfc: Use struct_size() helper To: "Martin K. Petersen" Cc: Kees Cook , Justin Tee , "Gustavo A. R. Silva" , James Smart , Dick Kennedy , "James E.J. Bottomley" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="000000000000e19f4105fd046eab" X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 --000000000000e19f4105fd046eab Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Martin, Sure, will do. I'll post the formal patch shortly. The __be32 no_of_objects comment can be ignored for this patch as I've already incorporated that into another patch with subject line: [PATCH 1/1] lpfc: Fix incorrect big endian type assignments in FDMI and VMID paths Thanks, Justin On Wed, May 31, 2023 at 8:27=E2=80=AFAM Martin K. Petersen wrote: > > > Gustavo/Justin, > > >> > We probably should have declared no_of_objects as __be32 to have > >> > avoided this confusion. > >> > >> Perhaps this patch can add that too? > > > > Yes, please. Something like this is fine: > > Please send a formal patch. Thanks! > > -- > Martin K. Petersen Oracle Linux Engineering --=20 This electronic communication and the information and any files transmitted= =20 with it, or attached to it, are confidential and are intended solely for=20 the use of the individual or entity to whom it is addressed and may contain= =20 information that is confidential, legally privileged, protected by privacy= =20 laws, or otherwise restricted from disclosure to anyone else. If you are=20 not the intended recipient or the person responsible for delivering the=20 e-mail to the intended recipient, you are hereby notified that any use,=20 copying, distributing, dissemination, forwarding, printing, or copying of= =20 this e-mail is strictly prohibited. If you received this e-mail in error,= =20 please return the e-mail to the sender, delete it from your computer, and= =20 destroy any printed copy of it. --000000000000e19f4105fd046eab Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQZwYJKoZIhvcNAQcCoIIQWDCCEFQCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg2+MIIFDTCCA/WgAwIBAgIQeEqpED+lv77edQixNJMdADANBgkqhkiG9w0BAQsFADBMMSAwHgYD VQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UE AxMKR2xvYmFsU2lnbjAeFw0yMDA5MTYwMDAwMDBaFw0yODA5MTYwMDAwMDBaMFsxCzAJBgNVBAYT AkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMTEwLwYDVQQDEyhHbG9iYWxTaWduIEdDQyBS MyBQZXJzb25hbFNpZ24gMiBDQSAyMDIwMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA vbCmXCcsbZ/a0fRIQMBxp4gJnnyeneFYpEtNydrZZ+GeKSMdHiDgXD1UnRSIudKo+moQ6YlCOu4t rVWO/EiXfYnK7zeop26ry1RpKtogB7/O115zultAz64ydQYLe+a1e/czkALg3sgTcOOcFZTXk38e aqsXsipoX1vsNurqPtnC27TWsA7pk4uKXscFjkeUE8JZu9BDKaswZygxBOPBQBwrA5+20Wxlk6k1 e6EKaaNaNZUy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