From patchwork Fri Nov 4 16:26:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kees Cook X-Patchwork-Id: 15672 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp507642wru; Fri, 4 Nov 2022 09:27:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7WJNAQQMol56RJuOLM41z9IOUW6nienjYfmskwjsRvzjH7pBkvlhCsp5cnrTe2RgDT/3BE X-Received: by 2002:a17:906:eeca:b0:730:6880:c398 with SMTP id wu10-20020a170906eeca00b007306880c398mr35740145ejb.706.1667579257022; Fri, 04 Nov 2022 09:27:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667579257; cv=none; d=google.com; s=arc-20160816; b=tOaQkImAHxuoz5NrCLL0QJ1UvYvX9dpLLaWIejAqZxL3oircDcanTUbbErfMXDh88h OmHnSN/6vcFsGVuWe8Vdkkaa+rjfPJAzshsshTNobA8UGUJ9Oy+e1aDz1B5cbHdnpCBD QDqFGsPphxbVayg0biX0pS5giwbIfu/5iwKtvKnJckdq1pt1xP8Ov804Py2lQjhqtRWh Leo9q4dEyeCzmBNAH4sWqFzQbwXYM3YTLbz2u4c4qQD+IZYTh/fnaHR+miOnN8o75pZv pDxeu6jjKzpmFpw+zNIb6vgmi0XgrjqsE8J5EUfape7T/H0iZgt/fYICMkK1IscoE/HM J/Og== 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=vl/MFnMZWToBmu5A4jVqt8zL5+NKQFzCISCwYnVAW2Y=; b=PlcIBeAjEuoEAmUNajDrQQgJX1dQo3JQKot7brf04CewUfBcJzhHx0ERdZj4VHT6Fp NvYm/JHGue9incCnmTAC4Yfs62RRjMsIOSiVA1MFX2jF9g5YlbNYkg/b/z50HikXCPmr JCBSxE1nJeE9B/wBuQc3x0U1fAtVMcSaPz2uQCa1x+QoqYr9PP1+1l3PzKNMWJWAYX8n SoPHjSU670lGXs4rFxefaFG4N9PQHPnEyJ5NuxFrlspkcTViopPcbglY5Bh1lR2QkcQA DXSiiR8Tw8pEEy8xfycerYiUsiTRBI6s+vaVl+zGUrZdk5gDo1xIbCzX6fiwda18MyY3 rIsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PQdq7E71; 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 ho11-20020a1709070e8b00b007add0123aacsi6190508ejc.1006.2022.11.04.09.27.13; Fri, 04 Nov 2022 09:27:37 -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=PQdq7E71; 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 S231349AbiKDQ0p (ORCPT + 99 others); Fri, 4 Nov 2022 12:26:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230165AbiKDQ0m (ORCPT ); Fri, 4 Nov 2022 12:26:42 -0400 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76F8D1DDE6 for ; Fri, 4 Nov 2022 09:26:41 -0700 (PDT) Received: by mail-pg1-x52b.google.com with SMTP id s196so4803402pgs.3 for ; Fri, 04 Nov 2022 09:26:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=vl/MFnMZWToBmu5A4jVqt8zL5+NKQFzCISCwYnVAW2Y=; b=PQdq7E71ycg0gOwLD2lncqKFIIQ9DNU4sK+LFxXU88WpDYN733tfqEj0iR4vZAKh+g 2GtEi07IMbGTx89JVyqW4en1DSpSnQMnEIa+QpF0SrRorfxokN3/mjlenOYRMuvs7gt2 jK8rhBVoUDPH1SMbGkSvEpbV6Q3+FPC4k7nEc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=vl/MFnMZWToBmu5A4jVqt8zL5+NKQFzCISCwYnVAW2Y=; b=5vnxwF5Esir4DJOVrMd3WjwXINjT6Nc9b9YY3ymbMWQ17qU4HL55yBzyFhiD+BETvP f2cKVuJV5qu++g3QH9OxbhI9CKfr9fST9tx+fPEU/4Q+9BCI9N0ALYCA93xpkAhSWJyA LRwMggZT+UNHQ4AGmUu5C9B5dqBa5fD8QnEmF8/Ly49gQ0B+hhhKkPMuQcmE4mqGwSNX 87UQ5aStUDeB2xuZ8KKhYo2TBSKR+kyNsB3IruW2vIO7L6eIqrD6Bumk3vbJNICShQr0 coMczNqm4pqsINH9h59VEBE0Mplcf76XP19BShBTVvIR1C6g1Q+7cFtsGEBXj5F+E6Ai YrmQ== X-Gm-Message-State: ACrzQf2eLwrbxMbXSp/t1H98rFzaHPJai9Z8J5g11gfIuYnDlHhoK7NT XlNrSywQ/q6eubJmOK2sXurOWA== X-Received: by 2002:a05:6a00:993:b0:56c:80f6:db5 with SMTP id u19-20020a056a00099300b0056c80f60db5mr36279550pfg.45.1667579200953; Fri, 04 Nov 2022 09:26:40 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id c16-20020a170902d49000b0017854cee6ebsm2921403plg.72.2022.11.04.09.26.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Nov 2022 09:26:40 -0700 (PDT) Date: Fri, 4 Nov 2022 09:26:39 -0700 From: Kees Cook To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, "Dr. David Alan Gilbert" , Kees Cook , linux-hardening@vger.kernel.org, llvm@lists.linux.dev Subject: [GIT PULL] hardening fix for v6.1-rc4 Message-ID: <202211040926.0E7BBDB1@keescook> MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-3.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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748583586873986828?= X-GMAIL-MSGID: =?utf-8?q?1748583586873986828?= Hi Linus, Please pull this tiny kernel hardening fix for v6.1-rc4. Thanks! -Kees The following changes since commit 72c3ebea375c39413d02113758319b74ecd790bd: overflow: Refactor test skips for Clang-specific issues (2022-10-25 14:57:42 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/hardening-v6.1-rc4 for you to fetch changes up to 6f7630b1b5bc672b54c1285ee6aba752b446672c: fortify: Capture __bos() results in const temp vars (2022-10-28 16:07:01 -0700) ---------------------------------------------------------------- kernel hardening fix for v6.1-rc4 - Correctly report struct member size on memcpy overflow (Kees Cook) ---------------------------------------------------------------- Kees Cook (1): fortify: Capture __bos() results in const temp vars include/linux/fortify-string.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-)