Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4605698rwd; Tue, 23 May 2023 09:48:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7R7I/HQqxAp91H3xnEf9298hFtQbDtoxMPMDAMWp34HM17KARVY9HiGMWbZBuv0g6Mpl3v X-Received: by 2002:a17:90a:ee8c:b0:24d:e296:659b with SMTP id i12-20020a17090aee8c00b0024de296659bmr15634025pjz.22.1684860509951; Tue, 23 May 2023 09:48:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684860509; cv=none; d=google.com; s=arc-20160816; b=zxUe0YZ6KDO14yM04sTX+35l5G1vPjgdStNB0Kqh09CddshcrWBfiyeqBIqp6crqnf M7oluHIes31zWBewESRJEuqlaOAjNq1aI62xnvbXgUUiicfVcuihu7SsW+uDm2nkJ+Mn LTuUpEz5iAYfQmvr8NEW0AGRFuJWFAjhzWgQnC4Q9Q438UrgfIvRzcRXPb2fpHtAfew8 CaQQoKJd6vOFCY7ZHVMOW9HOE1nfp6hO+5RhVUSvPIX8wLXEDf3EEqZT39RgphPwc+Gs UwiBSasCUWN2hmRVePAzd/miaj8PIOr4uw+0PfUlCuemYbrFAVb/cCt4tI/QREzYabni AgoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=4QSbeGpvSiReYGcIr7QrxPewrKrb4N/ywhA3WbbktU8=; b=GUjCnyMLxMPm8/gvFti4ofgNrqKn+dmm1OSdvGfFaZhSV6nlbtBh099oC+LyGdfrLZ O8iBthDIkPgxqB+5qCM7qPGs8RgSwlXsXCmoNTaJLdbovQbeQvIsqvzulIial8MwTU44 3cA/Md58lN2R2USVArI1S9qPxz+tpW9HNN8zrSK511xQqczTFYWiDQVHhSjSfdvV4Bkl 17hfTw++TDnkGOiuugkDjYOR3nneCvUOJRenEAELq36UFQxC/HR5U0jWJWPV8hFn16/G +Kn7Dt6/6foaIKHZd3YgoECzuX/D/FjCXEVaCl9ym96oJz4vp5wnNuMUHZXWxAjYHKKM YvuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=HduYbZH3; 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=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pi9-20020a17090b1e4900b00252811400d6si4395469pjb.175.2023.05.23.09.48.15; Tue, 23 May 2023 09:48:29 -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=@ibm.com header.s=pp1 header.b=HduYbZH3; 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=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237342AbjEWQhN (ORCPT + 99 others); Tue, 23 May 2023 12:37:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237105AbjEWQhI (ORCPT ); Tue, 23 May 2023 12:37:08 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4262111A; Tue, 23 May 2023 09:37:03 -0700 (PDT) Received: from pps.filterd (m0353723.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34NGVhmq014628; Tue, 23 May 2023 16:36:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pp1; bh=4QSbeGpvSiReYGcIr7QrxPewrKrb4N/ywhA3WbbktU8=; b=HduYbZH3tDTH4FQp2R04o6SBjNP2ws8AVUYhNQ+v1ldlWPDimXYpFmRs14P5CiXukEk7 MoRlWXv8wB1akliyxDrp9hyHp99LSNMOayx8pgNeZGHm+QY+kWNQ3a3rT3NWhr0v7NHP U4Etb8AYXKDiiTaI24aIy5BZuJr5ywN7PxCpVp22bbQa2SLPtFHHbOYSDFvOGTtoIdMU mAooG8F1Ies+HAKaYeE4eSYf7tXY8RujVcKQwB9WH6RyU6WGilNP25yjpUofssrVsLEt Ril7sCRTfoczWj28hvSULQ2z0s7VslnlYIWRqCmBFgXh0AGeEN8qrl/jZIm3eTk+Jpgb 9A== Received: from ppma02dal.us.ibm.com (a.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.10]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3qryy41ub8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 23 May 2023 16:36:57 +0000 Received: from pps.filterd (ppma02dal.us.ibm.com [127.0.0.1]) by ppma02dal.us.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 34NEKh8g031369; Tue, 23 May 2023 16:36:56 GMT Received: from smtprelay05.dal12v.mail.ibm.com ([9.208.130.101]) by ppma02dal.us.ibm.com (PPS) with ESMTPS id 3qppdpky27-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 23 May 2023 16:36:56 +0000 Received: from smtpav04.wdc07v.mail.ibm.com (smtpav04.wdc07v.mail.ibm.com [10.39.53.231]) by smtprelay05.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 34NGatHo66453942 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 23 May 2023 16:36:55 GMT Received: from smtpav04.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3614858045; Tue, 23 May 2023 16:36:55 +0000 (GMT) Received: from smtpav04.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B776158052; Tue, 23 May 2023 16:36:53 +0000 (GMT) Received: from [9.61.92.8] (unknown [9.61.92.8]) by smtpav04.wdc07v.mail.ibm.com (Postfix) with ESMTP; Tue, 23 May 2023 16:36:53 +0000 (GMT) Message-ID: <410d06c5-90f5-93dc-6e6d-37e5923fe0a7@linux.ibm.com> Date: Tue, 23 May 2023 12:36:53 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 0/2][next] vfio/ccw: Replace one-element array with flexible-array member Content-Language: en-US To: "Gustavo A. R. Silva" , Eric Farman , Halil Pasic , Vineeth Vijayan , Peter Oberparleiter , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle Cc: linux-s390@vger.kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org References: From: Matthew Rosato In-Reply-To: Content-Type: text/plain; charset=UTF-8 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: ympyjzcNDEsFLxKdxoCce_RGFjRUV_RH X-Proofpoint-ORIG-GUID: ympyjzcNDEsFLxKdxoCce_RGFjRUV_RH Content-Transfer-Encoding: 7bit X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-05-23_10,2023-05-23_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 impostorscore=0 malwarescore=0 bulkscore=0 adultscore=0 mlxscore=0 priorityscore=1501 mlxlogscore=946 phishscore=0 suspectscore=0 spamscore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305230132 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,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 On 5/22/23 9:34 PM, Gustavo A. R. Silva wrote: > Hi! > > This small series aims to replace a one-element array with a > flexible-array member in struct vfio_ccw_parent. > > This helps with the ongoing efforts to tighten the FORTIFY_SOURCE > routines on memcpy() and help us make progress towards globally > enabling -fstrict-flex-arrays=3 [1]. > > Link: https://github.com/KSPP/linux/issues/79 > Link: https://github.com/KSPP/linux/issues/160 > Link: https://github.com/KSPP/linux/issues/297 > Link: https://gcc.gnu.org/pipermail/gcc-patches/2022-October/602902.html [1] > > Gustavo A. R. Silva (2): > vfio/ccw: Replace one-element array with flexible-array member > vfio/ccw: Use struct_size() helper > > drivers/s390/cio/vfio_ccw_drv.c | 2 +- > drivers/s390/cio/vfio_ccw_private.h | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > Hi Gustavo, Thanks! For the series: Reviewed-by: Matthew Rosato