Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp20095621rwd; Wed, 28 Jun 2023 20:03:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4SDBiHJJlPjNPGNFf86WpV9uz1O3YoI7nkDq1GRrHcXCww1wh7j1/EQVZYCROoUN14slfR X-Received: by 2002:a05:6a20:729f:b0:118:e70:6f7d with SMTP id o31-20020a056a20729f00b001180e706f7dmr30529641pzk.10.1688007807341; Wed, 28 Jun 2023 20:03:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688007807; cv=none; d=google.com; s=arc-20160816; b=U6TJY9iAq6LK6eTuh4dh6ti73L5fJFP4/OVOJq7erZYpxrYfMhH5c6X+k1rot3zL7D BJjx9PO8VjSdQWBL3jv9k5I3felgx0m2Qag1HazQ175Cp5k0h97J5xfVwJRQzNllN4bN h6XT9qKpul5jyx2gnmih9mf9zklJL8h5UbfMVog6Ex9hYtbTG4V42QptM2ZljLaYuwAj BOpezy4qa0WPyA+b96DFLYLHQgZgtw32Od404NZZ0bqghyCi3pHMND/jpQRe3yKOEjX8 +LA+VBNGP0HbP/eaKUy/S+DpfmoazAJPizaotTFZikSmGSYb5+xOoGDv+GHvssk9N4Wn y4zA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=UvCn9ZNxcDPRHpVi/Z+CAyOuMROaxNkLOuH/lWROc1s=; fh=QFz77CSpUWtkj6jBcIA6TLc6tQvemN47w3a5h6iTz8g=; b=H6a2rb9twXTznR2c8QhC0hE8HBgOh1eYKIz7MlRmummMX26XUeIJTesxPu1ruBZGrQ at5Zj3AzsuKHZJCkk7eMoRrU1og7FoxsqOqFyQbKIK4B3GkLLIOa3MMDrLBy/FpMcxzj WeacUObYJcq3aNGZICjIR+bIQrFAYtwisCytrjhEZkCx1aow+RH+jm4W4GfkLUD1KKUF 80ok6C+OR6FLSsdXeYpYHeX+BJkA2nagjr8v85AFttz6S1pmI9F7YblGgbHrqH6Jp2+y Qgv/AeM/51WB0rWDT0Bm1EtanDej9EeOw0rBtyyEWEzeARhQQN64V0SDmjP5UCYdpFhr jXNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=G6Z+gxN5; 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=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c8-20020a170903234800b001a97bf417cdsi10836496plh.571.2023.06.28.20.03.12; Wed, 28 Jun 2023 20:03:27 -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=@oracle.com header.s=corp-2023-03-30 header.b=G6Z+gxN5; 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=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231561AbjF2CmB (ORCPT + 99 others); Wed, 28 Jun 2023 22:42:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231494AbjF2Clm (ORCPT ); Wed, 28 Jun 2023 22:41:42 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07734213D; Wed, 28 Jun 2023 19:41:42 -0700 (PDT) Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35T1jdWI011098; Thu, 29 Jun 2023 02:41:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type : content-transfer-encoding; s=corp-2023-03-30; bh=UvCn9ZNxcDPRHpVi/Z+CAyOuMROaxNkLOuH/lWROc1s=; b=G6Z+gxN5e5IQKR+aoDFIkeWJ0bMngm9cqTsK20RTTRrU7RiC9W4SBkSEaBxUk2Q7mDOq rW1domaRbUX187ipX82dGChdpPGZcRVZstiVUu/opGnn+dMueA2y4HNyyb9aTKUMIf+g 8GOqCyP5XUhKlvoHaVAUMVxdpKLHbs13TdH4ztc24QPJSB3xfaBFfuAO8m6ZTKoBCw/8 4Jg4NZKLJjnhL6No35UUW+gKDs/Z/YGVd8LwyEjnqA+VF8ppB0bZJOvmgLc4SLXNQyEM Z5YVp1NOpmxGSJjcMNEdU8B+jpoi3WdvBH/DJhj6KqauwxbLWrQmEO0etHfDPLsI5Vud HA== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3rdqdtt4yn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 29 Jun 2023 02:41:36 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 35T0DEH2004005; Thu, 29 Jun 2023 02:41:35 GMT Received: from pps.reinject (localhost [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3rdpxcvem5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 29 Jun 2023 02:41:35 +0000 Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 35T2fYLH009945; Thu, 29 Jun 2023 02:41:34 GMT Received: from ca-mkp2.ca.oracle.com.com (mpeterse-ol9.allregionaliads.osdevelopmeniad.oraclevcn.com [100.100.251.135]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTP id 3rdpxcveka-3; Thu, 29 Jun 2023 02:41:34 +0000 From: "Martin K. Petersen" To: Don Brace , "James E.J. Bottomley" , "Gustavo A. R. Silva" Cc: "Martin K . Petersen" , storagedev@microchip.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH][next] scsi: smartpqi: Replace one-element arrays with flexible-array members Date: Wed, 28 Jun 2023 22:41:29 -0400 Message-Id: <168800630155.587979.4081903286029728024.b4-ty@oracle.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-06-28_14,2023-06-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 malwarescore=0 mlxscore=0 mlxlogscore=735 bulkscore=0 spamscore=0 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306290022 X-Proofpoint-GUID: N1OEdKKqtfguBYFJ4t_gdKa9W3y1nod4 X-Proofpoint-ORIG-GUID: N1OEdKKqtfguBYFJ4t_gdKa9W3y1nod4 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 On Wed, 21 Jun 2023 14:27:20 -0600, Gustavo A. R. Silva wrote: > One-element arrays are deprecated, and we are replacing them with flexible > array members instead. So, replace one-element arrays with flexible-array > members in a couple of structures, and refactor the rest of the code, > accordingly. > > This helps with the ongoing efforts to tighten the FORTIFY_SOURCE > routines on memcpy(). > > [...] Applied to 6.5/scsi-queue, thanks! [1/1] scsi: smartpqi: Replace one-element arrays with flexible-array members https://git.kernel.org/mkp/scsi/c/6f0a92fd7db1 -- Martin K. Petersen Oracle Linux Engineering