From patchwork Fri Jul 7 18:12:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kees Cook X-Patchwork-Id: 117242 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3463707vqx; Fri, 7 Jul 2023 11:33:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlFQFvffblfu4ftkJvQA9w7rAzVYi5aK99pvZ2OcjOCToJjOgclmQtDrNb2klMUk5xybCbkO X-Received: by 2002:a05:6358:7e4e:b0:133:bed:2cde with SMTP id p14-20020a0563587e4e00b001330bed2cdemr6057454rwm.1.1688754828988; Fri, 07 Jul 2023 11:33:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688754828; cv=none; d=google.com; s=arc-20160816; b=X/c11730fk8ZujIEENZn4Ltao+xuM7yifWwlcu+NaKBtAhvUZ0vtop9/xg/qOI4XUL JLJvFbpN8HGTJh4Z2dKWfI3OfmJzDYaTyvS2Ss8w+q/KuAYaIWLlOXF8kARu2uNo1394 Zxpl/3o/pKPFBacRavcN0TS4tk1R/33cybVWXPb+9b9FmKrb6qw5xnrllHJY8K3zjc3N 9ghJwLmbfoN1ARwMwp1NHMV3mu/IdRY069R/yKAkfX8RVYqqAjUYs+9XLpbNZlDhrA34 c1KjVqrCeqIavBskfMgRuq2FYyFK9TOl/XONMYJj7LtakuXhtCoZ/nRLaR3oZK2Ay6MH g5dg== 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=7v0tPqJO4vwiAF5qdaRAlywXBoGchtoeb729wwVvaGM=; fh=czmSYdawc7/sogQfgA0lCyF8guM3JTCDNOsUYtD/P5Y=; b=XRv+8YGKUe0qwhgxS9vK368wgSag7atucFaHgoUlIUvWxDSCVvZytQZ8JlAZ+XFdwa 58n+n15RpQF5vhsBg0pYK5Dd2piXMRwSqKmAK2nVTng4YehgGB14cTRZ936Rb4+5NopZ P5Pz/1GCKEZuKRS6LWuUtF3GUgGEyLp29IdxGNFttwU5Og9GzNePEcllfWVC8pRsjCfD xoAziAM2EQTHM/v0TmAscM7WwfEWZ7R1mAc6kiCIAP+0KPZqYIHgwDCRyeIdnvGWGcVW zTKKi3cnF2U1uYXusVpN1MovJ9+EJhm0J7f3iBvOrPc2GcNifEuOaOiccHpwWdRqgs6P frAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=A55TkEqh; 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 x63-20020a636342000000b0055bedcc9b47si4401609pgb.285.2023.07.07.11.33.35; Fri, 07 Jul 2023 11:33:48 -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=A55TkEqh; 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 S232377AbjGGSMe (ORCPT + 99 others); Fri, 7 Jul 2023 14:12:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbjGGSMc (ORCPT ); Fri, 7 Jul 2023 14:12:32 -0400 Received: from mail-oa1-x35.google.com (mail-oa1-x35.google.com [IPv6:2001:4860:4864:20::35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 169282121 for ; Fri, 7 Jul 2023 11:12:31 -0700 (PDT) Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-1b0156a1c49so2047365fac.0 for ; Fri, 07 Jul 2023 11:12:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1688753550; x=1691345550; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=7v0tPqJO4vwiAF5qdaRAlywXBoGchtoeb729wwVvaGM=; b=A55TkEqhBPkQbZI4wZOjVwbtRxRynrPlUQmPufiOZxhdUZWnG5q3CLrfxhdspP//ar jrh0L0fzCSbx9oC9DpddVsve+rSuE0U99hC9DIvUcGUAIpr+wmfSCMF43iK2B58BJoh5 Sqg4adrjHmcX4w5GwKdGyYRYiNeAuMn0L9Mdg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688753550; x=1691345550; 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=7v0tPqJO4vwiAF5qdaRAlywXBoGchtoeb729wwVvaGM=; b=aI+q6EWXzTsx56MKhxlTsK7XHIjNKIqiGbyrGFQRdi81XDWHzW1iq9p3NJYKwhr6cb bUqYG8NLilK+zMfsVPJyd1RwuhT59zfMwD6SZUTcfntDoQHbDZ/MgFk+JmFRmIAEdRSA iJTDjmrR8V3n7TIwoRwyqbf9EPnS1S0ht1IIBoOybup5iyxvhVOJ/SJoUpAwt8gF/7aY JdMDe+UvS3L3nmt+HiplNAYMzKj/NCC7+WP0muyQaf97n1aXkv5FTx+ntRSBU5H20pKK RDxF+ulPFFST9Y/c4grKst4MgM1fZBpIJ4DJEK2dq1JJpmMA0gP+XFeXttsnzAjrzwu/ ExCg== X-Gm-Message-State: ABy/qLabu5wGiup7knQkHIisuWgKWtBfE0XGr61I6KqEtvz35UMMeeMD HA56HVug+2mS7ZkJNSjJal/YOg== X-Received: by 2002:a05:6870:5254:b0:1b0:4fc5:2e4b with SMTP id o20-20020a056870525400b001b04fc52e4bmr6901497oai.9.1688753550334; Fri, 07 Jul 2023 11:12:30 -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 i5-20020a17090a138500b00256b67208b1sm1794403pja.56.2023.07.07.11.12.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jul 2023 11:12:29 -0700 (PDT) Date: Fri, 7 Jul 2023 11:12:28 -0700 From: Kees Cook To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, "Borislav Petkov (AMD)" , Geert Uytterhoeven , Greg Kroah-Hartman , "Gustavo A. R. Silva" , Kees Cook , Matthias Kaehlcke , Mirsad Todorovac Subject: [GIT PULL] hardening updates for v6.5-rc1-fixes Message-ID: <202307071111.63B0BFB323@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_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770787783396492625?= X-GMAIL-MSGID: =?utf-8?q?1770787783396492625?= Hi Linus, Please pull these handful of kernel hardening fixes for v6.5-rc1. Thanks! -Kees The following changes since commit acf15e07eb06507c69f92394c36052677029b0a8: netfilter: ipset: Replace strlcpy with strscpy (2023-06-20 13:35:37 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/hardening-v6.5-rc1-fixes for you to fetch changes up to 01f23c5f1526f5b6ff744887aa511b9e69d4401b: usb: ch9: Replace bmSublinkSpeedAttr 1-element array with flexible array (2023-07-05 14:11:30 -0700) ---------------------------------------------------------------- hardening fixes for v6.5-rc1 - Check for NULL bdev in LoadPin (Matthias Kaehlcke) - Revert unwanted KUnit FORTIFY build default - Fix 1-element array causing boot warnings with xhci-hub ---------------------------------------------------------------- Kees Cook (2): Revert "fortify: Allow KUnit test to build without FORTIFY" usb: ch9: Replace bmSublinkSpeedAttr 1-element array with flexible array Matthias Kaehlcke (1): dm: verity-loadpin: Add NULL pointer check for 'bdev' parameter drivers/md/dm-verity-loadpin.c | 3 +++ include/uapi/linux/usb/ch9.h | 6 +++++- lib/Kconfig.debug | 2 +- lib/fortify_kunit.c | 14 -------------- 4 files changed, 9 insertions(+), 16 deletions(-)