From patchwork Tue Aug 8 21:16:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kees Cook X-Patchwork-Id: 132923 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2434492vqr; Tue, 8 Aug 2023 15:35:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF7v2qOfDxPl2xpN8c9fdHLsHS73Eh7fF4G2xz1TTknyOYEZ50qtDJyWHMFBBg6LWtECrPD X-Received: by 2002:a05:6a20:734e:b0:137:5a89:dad6 with SMTP id v14-20020a056a20734e00b001375a89dad6mr972539pzc.25.1691534140353; Tue, 08 Aug 2023 15:35:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691534140; cv=none; d=google.com; s=arc-20160816; b=dKC+nwNNPI8hrZW0ktK28ufhRZPX+NdkmNkSIMiQU9BbBHI4LkOlCg2Klx46NbNbjA P7KopLSRtetMFtyylMyN8bNrji5wSCewmLOa1V8g9B9Wd5YP0cybIFPk85Ydm3O6z1hc cfXAbvYxMbkHwC8cjjlhQNzolYjeAKDV8dUdZo9/MY57fTW6QeA1K5pMUlD71kdGtvVc EWPkvnywYTyCu+nYv68stpRXdxqC7zd5ayzeK2OZX23sCabkfbBx6s6q76yzc0tBeHdc HN4DLwDlQYzjvUbyE4AuW1q+UAdJSx3DcZ2dnhtmuibEhZq2nFzVrTPGmbdnCYoUNnfe h1Mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=AWCyLfh7ufeA+e41sIszR5gJVTHk0O1EKFC8fwFeJfg=; fh=WgUnlydn08XjUDAnjZAfR4sLna3dbtxSBTXQXCXM5Jo=; b=Y3s/d9fEmuTLtdNMF0yCOuVm2r2/TRMsPDhCrWgVW0tDFgkihT2k/QlBCHYH9t6H7h ZU+iPwM3fRHQSjtk4xWIPkjppMORwToK6VytZQ1oUS5lFarwn4lGu8SBLRp+vhRm371N FHYv4trae1/MmsGgCEYKod8TLBOOxoqGewz8VyERPnABdW/rsrm3St6DUD4aIp4CCYIY iAmGK4zUvc2L+NKm2dwyiTDgo3L1DANB/ZLre4yzMrv0hZ9tGNwU9io3gKGxPmgFFvax tmvPbtZtPR2IGJWFYurM2ZuXjX+yk/rGhdYz3k0BnPTGc6y9MMpcEy7VALXGVdy4uP4Y 5btA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=bIgZfFWf; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fb26-20020a056a002d9a00b00687505e2bb8si8145511pfb.24.2023.08.08.15.35.27; Tue, 08 Aug 2023 15:35:40 -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=bIgZfFWf; 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 S236347AbjHHVS5 (ORCPT + 99 others); Tue, 8 Aug 2023 17:18:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236319AbjHHVSq (ORCPT ); Tue, 8 Aug 2023 17:18:46 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 689E64C05 for ; Tue, 8 Aug 2023 14:16:55 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-68783004143so4473377b3a.2 for ; Tue, 08 Aug 2023 14:16:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1691529415; x=1692134215; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=AWCyLfh7ufeA+e41sIszR5gJVTHk0O1EKFC8fwFeJfg=; b=bIgZfFWff7vCFhFRBNYMP44PLjllIzgk88/Bvu+Jn5ZnqWt0PMjlF2x5GRzb2r4G/e NGSRABryQUoSf22qDJDVau9dnF2TMhDfeBmSir/IB/9HDiGQsMsQf1th+t58wJ4Cm7+c OldubBMLwwcmRNC2GT2RAxf8BmDKEkRL+o3Mo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691529415; x=1692134215; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=AWCyLfh7ufeA+e41sIszR5gJVTHk0O1EKFC8fwFeJfg=; b=mG08E7aJCQ4trnbVdnkqn61x8vA4p9Q5Ar86Y5MCRwgqb8zmBqCRf7TAgbKS+uOBmt qTjnRGzqbORiTDTyehHk4FqE/yRSryPN+QTHBk5yu7o75sMqbUb2O/2tyyR0ycscyC2P J3lZtZDVMI8roUNGb2lUHz50GPG09z5buy9dGfORf6Mj84sWTyfVL/IiDZo83Lo5Yunl 3VfF0vzIXZlA4etQdpkKLLwdJYaoPIKGvXh8BHhOLHwCbNgo/ePhtPJaS6/CvLx+izTB O4eYz+0ucDKnOWUJmibL0tn3XBaxNSVE7v84duz8wFD5Fi8ZTqCAu/ooXbErnRrLpvjA 1FQA== X-Gm-Message-State: AOJu0YwSHtrSFm9I6DwlAyYV6R1LZhrftKTziLXe75fgGHcV9XtmVDHP Ln5v0u2W0FM44OlwqJLeoRuiAQ== X-Received: by 2002:a05:6a21:3e09:b0:13f:1622:29de with SMTP id bk9-20020a056a213e0900b0013f162229demr740661pzc.7.1691529414881; Tue, 08 Aug 2023 14:16:54 -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 y9-20020aa78549000000b00666e649ca46sm8523574pfn.101.2023.08.08.14.16.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Aug 2023 14:16:54 -0700 (PDT) Date: Tue, 8 Aug 2023 14:16:53 -0700 From: Kees Cook To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" , Hans de Goede , Kees Cook , Larry Finger , Vikash Garodia Subject: [GIT PULL] hardening fixes for v6.5-rc6 Message-ID: <202308081415.A5E80C1B@keescook> MIME-Version: 1.0 Content-Disposition: inline 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_BLOCKED,SPF_HELO_NONE,SPF_PASS,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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773702102591942707 X-GMAIL-MSGID: 1773702102591942707 Hi Linus, Please pull these couple of hardening fixes for v6.5-rc6. Thanks! -Kees The following changes since commit ec7633de404e7ce704d8f79081b97bca5b616c23: sparc: mark __arch_xchg() as __always_inline (2023-07-13 09:54:32 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/hardening-v6.5-rc6 for you to fetch changes up to cdddb626dc053a2bbe8be4150e9b67395130a683: media: venus: Use struct_size_t() helper in pkt_session_unset_buffers() (2023-07-27 10:11:11 -0700) ---------------------------------------------------------------- hardening fixes for v6.5-rc6 - Replace remaining open-coded struct_size_t() instance (Gustavo A. R. Silva) - Adjust vboxsf's trailing arrays to be proper flexible arrays ---------------------------------------------------------------- Gustavo A. R. Silva (1): media: venus: Use struct_size_t() helper in pkt_session_unset_buffers() Kees Cook (1): vboxsf: Use flexible arrays for trailing string member drivers/media/platform/qcom/venus/hfi_cmds.c | 4 ++-- fs/vboxsf/shfl_hostintf.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-)