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 90268C7EE26 for ; Tue, 23 May 2023 17:30:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237938AbjEWRaS (ORCPT ); Tue, 23 May 2023 13:30:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238191AbjEWRaR (ORCPT ); Tue, 23 May 2023 13:30:17 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E92E2E6 for ; Tue, 23 May 2023 10:30:12 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1ae851f2a7dso34611405ad.0 for ; Tue, 23 May 2023 10:30:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1684863012; x=1687455012; 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=vHRHm9cqQ7Q0n1UjBQwnZXDQwg6SsSkREtAQzpA0zS8=; b=SP811KKYOneg7dl/rmLOhy9/xH6sqzY2GnOzj4smgfmDjcrNa1t+TeWH+MftwdTdYc E4BW4v0YCWJszzUnIyk6s5yZ8eHJPHGmGtHHpiX8qXFCDB3eF6JRsj5bjXrESVN39YKd /i1og6RnHIp8XIO4y1LBmPTKuDNMNqYW0a7Io= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684863012; x=1687455012; 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=vHRHm9cqQ7Q0n1UjBQwnZXDQwg6SsSkREtAQzpA0zS8=; b=W7zvguCBxu/Lu7mt/T29010ujVPH/sPNs9ogW4pQLN7T6abE0iCSHzXfkBRYqepLBa PklnFRu9u9+ZbXxYZWy1yKPKHjxW9OQeCdoJO9sWaKEq6yNUEn3Wd+FXLK/55w2SrXp6 Vv0sFjzr5R0AE4Yij9v74RnHH9/wj3CR9yVR1DoIsdBOL6p90QfRYk0klmbi/b/KyNR5 gYtKrV7CYfTnZentCbYV/reT1ttxFc0y4g2vNcC0RjG4RCCLyCaGHi5o1TrG0DAicn/l PUnZJ6f6JqA72Pzc+/ZFXboOX4cqfT8MX9XmhglEu1HMzIgUdfUQ2fzO7n/8EuPyQcZN SYag== X-Gm-Message-State: AC+VfDyCSCwru97IGk9IhJl/NjIdkDlhUB1yN1x3s0BEAwcauFiX2Bny WTsVV0BUGM5qhGq3jwkKg4dP1w== X-Google-Smtp-Source: ACHHUZ7YEdTfg2D6FXrXBlWvhCCMQ2QiK02a1DwN2Y+FEqHr4FZs/WDdEAE9LsGJyuvLGJwEHXnMcg== X-Received: by 2002:a17:903:228d:b0:1a9:6a10:70e9 with SMTP id b13-20020a170903228d00b001a96a1070e9mr14552996plh.33.1684863012392; Tue, 23 May 2023 10:30:12 -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 u10-20020a170902b28a00b001a1c721f7f8sm7073073plr.267.2023.05.23.10.30.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 10:30:12 -0700 (PDT) Date: Tue, 23 May 2023 10:30:11 -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 2/2][next] vfio/ccw: Use struct_size() helper Message-ID: <202305231030.5DE9FCD31@keescook> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-s390@vger.kernel.org On Mon, May 22, 2023 at 07:35:59PM -0600, Gustavo A. R. Silva wrote: > Prefer struct_size() over open-coded versions. > > Link: https://github.com/KSPP/linux/issues/160 > Signed-off-by: Gustavo A. R. Silva Reviewed-by: Kees Cook -- Kees Cook