Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp144856rwb; Thu, 27 Jul 2023 10:30:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlHTIdz0zFtLQpdbxHa+rRxlTYyEbp2Rdl3psmGd+AP2jEFsPuYeFCfoEZMDWhTLRcsuaxT9 X-Received: by 2002:a05:6a20:914d:b0:135:4527:efcc with SMTP id x13-20020a056a20914d00b001354527efccmr5768716pzc.46.1690479057588; Thu, 27 Jul 2023 10:30:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690479057; cv=none; d=google.com; s=arc-20160816; b=fl38zvNWFkPDZBsgJI2E41+37ETpTM9Tvc9mHLdLLaBaxZqQdQyuiSccVp3wJWw03s lmz3B3ClgZqIAeEMty0AkDaBkwn2Dk5cyPD3Mo3Q4OTQHr1VKc+MvTUdiZDCPs3r9uy5 tl43lWo4g7EjoEszBq62h3e1K3rwIiGjoh3AeUwgWKnxrM1Kat6mkMB9w+wxn6Ff4oO1 8ywMAvvMR6iYWdJW8U7MYTlR1BW1Pj36mQhMb3IzH0C5PdrTNHAoucN0ha26mqwH8Zqy OsFrLQ3IL4squVHWjgFV1Wjqt16w8EkLXzHyZStslsHzh3yBAxAV2DxulLcvvi3iRuwR nFDw== 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=1q7JLoG0EiFt7LGAh9L3HylZSzybbb6OAkvvFe4ftDc=; fh=MGAAmGQllqpgC6uSKRPDoHGlVuh12dNRY6V+uyoPW/k=; b=DH71mWK2B+tIIfuBqOuc0yGeRJstxs49ddZGbuV2APracBPoRexzavXVr8OANAfPul 6SIvgAAzw2WYybkZ0ZcbSIu4QVQLJ86vQQsnKvlAxUUZBUz/8iINvOOZxbTyZs5X0g2g vGB4rbVwsLrExFkzZnIKQ9Yy1Araqc0el3E7uvZNwfzF6kvvoqC+cFbiBpBQxQlBC+pm nAYlgK0UymTHFZCk+TRrS+s6PO3X6//WLSmSDe4rGM+5z5piAOAh/BtAsKw8GtC1vvtb SN7zB45b/oX4cMixp4/Tvl5olvTvt7ISE3++O//QQi3iniRs/RcH/iYdzsEtpH3ZXsI3 k7yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="HMb1/rpt"; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w11-20020a056a0014cb00b0066db06a5cf1si1765665pfu.43.2023.07.27.10.30.45; Thu, 27 Jul 2023 10:30:57 -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=@chromium.org header.s=google header.b="HMb1/rpt"; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231623AbjG0RMH (ORCPT + 99 others); Thu, 27 Jul 2023 13:12:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231749AbjG0RL7 (ORCPT ); Thu, 27 Jul 2023 13:11:59 -0400 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2B4D272D for ; Thu, 27 Jul 2023 10:11:58 -0700 (PDT) Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-686f25d045cso702323b3a.0 for ; Thu, 27 Jul 2023 10:11:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1690477918; x=1691082718; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1q7JLoG0EiFt7LGAh9L3HylZSzybbb6OAkvvFe4ftDc=; b=HMb1/rptSlTgUqX2b5CIcoF7PAnhYDjfpgPoEj+bhdRfheWle/hDoqOuIwgbUSJZKM MsLoVbdfIqKIgYC0TFUSrbG0eX0D1z0TAbCPmpEQzVPinnM3x5P5DsZ1BdfSJlcFq9Z9 0ScSY7BmAhi1pOsdB0XcKeeKHUzRH9NeMKUL0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690477918; x=1691082718; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1q7JLoG0EiFt7LGAh9L3HylZSzybbb6OAkvvFe4ftDc=; b=MxJbbj8ymF6pFyEWgFqPLq7IlQoAmxZ03jguRjG1TveoSAvNk0aqQzBlvVajNBZaCu z3jmpgXqMFs/cIXMLNaeECSRl9UbnvAyxwzAaFihRduxJj3RiNDf6sVzVUMGMTTymIiN 8KjIonkMd5Paijk29qKG2NvXlJOC3igVhogfJzNB2qYVm5IbtVTQtbqSdQmlVg5jz54D Fb/ZpkM/zc6256ddOg3MsMea1MpmxD33r2IO22wij12A7P/MVUjBciL5j9nnAGI9EYHJ Uzp4prYi1IaOIkKP67fHNLwhYap0xO+SAua4vH9eCJ3aBUVOnWH4KLYrZx6dh3v3twt+ Uzww== X-Gm-Message-State: ABy/qLas/uqSuSHIwskcKojybs9DguXnszAyHg6nxT/61fouJKXjEEUn KDIOE0YyRP+IKSGsHw7ISYetEQ== X-Received: by 2002:a05:6a00:1a8a:b0:686:bc23:e20a with SMTP id e10-20020a056a001a8a00b00686bc23e20amr5939624pfv.21.1690477918218; Thu, 27 Jul 2023 10:11:58 -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 y2-20020aa78542000000b0066a31111ccdsm1727706pfn.65.2023.07.27.10.11.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jul 2023 10:11:57 -0700 (PDT) From: Kees Cook To: Stanimir Varbanov , Vikash Garodia , Bryan O'Donoghue , Andy Gross , Bjorn Andersson , Konrad Dybcio , Mauro Carvalho Chehab , "Gustavo A. R. Silva" Cc: Kees Cook , linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH][next] media: venus: Use struct_size_t() helper in pkt_session_unset_buffers() Date: Thu, 27 Jul 2023 10:11:30 -0700 Message-Id: <169047788705.2909569.12794509978389985930.b4-ty@chromium.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 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_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Sat, 01 Jul 2023 11:17:22 -0600, Gustavo A. R. Silva wrote: > Prefer struct_size_t() over struct_size() when no pointer instance > of the structure type is present. Applied to for-linus/hardening, thanks! [1/1] media: venus: Use struct_size_t() helper in pkt_session_unset_buffers() https://git.kernel.org/kees/c/cdddb626dc05 Take care, -- Kees Cook