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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 37AD4C7EE30 for ; Tue, 23 May 2023 17:30:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238187AbjEWRaR (ORCPT ); Tue, 23 May 2023 13:30:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238336AbjEWRaH (ORCPT ); Tue, 23 May 2023 13:30:07 -0400 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54624188 for ; Tue, 23 May 2023 10:29:56 -0700 (PDT) Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-64d1e96c082so22414b3a.1 for ; Tue, 23 May 2023 10:29:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1684862996; x=1687454996; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=nhOVpdiqhCvs7GVV7f2dklwaVtM++uCHQCldPOpHCUk=; b=A24777sFuS5neXn2X580FSjNLT8hS3n/fA59VHL1HgoGN4qo+vI1L2wT8WPOK1StqC PcNMIz3+z2+2SnzxaOWHjZJNhIlO9GvPIxzUt2GsSAGSw2nIMjGbzqLCnn0lNvkM+zDe J17yTm15T4qXNbdDlwznS7hOhy4dWvxpnay5A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684862996; x=1687454996; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=nhOVpdiqhCvs7GVV7f2dklwaVtM++uCHQCldPOpHCUk=; b=DSBnDZtaSn/y3IgxwU44sAEmiBDWdjbsJFHg4osRRyS+67hiUpz/LHgJVpqbkx9GkS BmSyPv0NGuEXqV342MGpwp7CVEfuM8RS2ktV2FR5Wk66cBGoh66G5puAyHdjvrWEpyBp 0+8ZGhmFJehPGgiqm8+TQV5QEQmBiTVMQboCCYXjegS30dbKudKHdVsytWCqX/o8l0Oe 7eRQcxvaHxFyNPrqVlC1IuGCfMVZ83lvw5uSNXZI7Jthp29pozY7jBTGQGvmru08mUs0 FXTvWdc9Ca49t7vPZ1MeT6fdFJgLHQkBHB0AM8QdODxNgnOpuh7n7I6rM6CKFcUrklon wDag== X-Gm-Message-State: AC+VfDx3PBebk07n8gDt5RVCKU5RVDn1lmvg4w+vMApwLeQMdVtPAXlY qKafa1d/9iut9Ok44+hCoKYhoA== X-Google-Smtp-Source: ACHHUZ4uuIdgumk1jumRCzlG+a3yry5AfnyGcbp0y8NXoHGyEspOACJ+nTy3VqiD9jcpG3NGGfSDSQ== X-Received: by 2002:a05:6a20:5482:b0:10b:71c:20c5 with SMTP id i2-20020a056a20548200b0010b071c20c5mr11647062pzk.51.1684862995725; Tue, 23 May 2023 10:29:55 -0700 (PDT) Received: from www.outflux.net (198-0-35-241-static.hfc.comcastbusiness.net. [198.0.35.241]) by smtp.gmail.com with ESMTPSA id bs5-20020a632805000000b0051eff0a70d7sm6210358pgb.94.2023.05.23.10.29.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 10:29:55 -0700 (PDT) Date: Tue, 23 May 2023 10:29:54 -0700 From: Kees Cook To: "Gustavo A. R. Silva" Cc: Eric Farman , Matthew Rosato , Halil Pasic , Vineeth Vijayan , Peter Oberparleiter , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , linux-s390@vger.kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH 1/2][next] vfio/ccw: Replace one-element array with flexible-array member Message-ID: <202305231029.FC995C740F@keescook> References: <3c10549ebe1564eade68a2515bde233527376971.1684805398.git.gustavoars@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3c10549ebe1564eade68a2515bde233527376971.1684805398.git.gustavoars@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-s390@vger.kernel.org On Mon, May 22, 2023 at 07:35:12PM -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 array with flexible-array > member in struct vfio_ccw_parent and refactor the the rest of the code > accordingly. > > Link: https://github.com/KSPP/linux/issues/79 > Link: https://github.com/KSPP/linux/issues/297 > Signed-off-by: Gustavo A. R. Silva Reviewed-by: Kees Cook -- Kees Cook