From patchwork Fri Jan 27 18:59:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kees Cook X-Patchwork-Id: 49601 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1000942wrn; Fri, 27 Jan 2023 11:17:19 -0800 (PST) X-Google-Smtp-Source: AK7set/N0Qx1kQbkoP4tQ/Mij1n8kRsZ6RaEXMKK4HTHkO2T61BwG6VnsfaMhVsE8t/oX9AtUmxy X-Received: by 2002:a17:90b:3506:b0:219:9973:2746 with SMTP id ls6-20020a17090b350600b0021999732746mr7876720pjb.0.1674847039396; Fri, 27 Jan 2023 11:17:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674847039; cv=none; d=google.com; s=arc-20160816; b=i5cuUVsDMC80iJP58CWZJkcH1/7QC1R2lvnI9Vfe2/kJvJgYHG830US5nzhXnuFlEa x+nys4pyVCy1B8A7IgZfPefBN8pi4oTjqbD2Om0jy60qtA/JVI8cFqv7UAUSTMfrPCPb KvcuZf+Faj0cQAoFQTEeFoVr9UwsSKWQQ25lLbnD6Z+Zw95sblfm73m/wMETCTYBWMwT X0P/lyqfBP23mJEU1IFEmehMMXxnVfvKUOfRsY0Kl248bF7S96SoxXJf+8cbDizg5BF5 cEO6o2uWslKghXjSBvicIMGqBpRJ3CTL939ogUlUTZzMTSi5YhcI2MSJ2d/ZtJaIL1lE G92g== 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=8FSfRUNSPzw6WDGkk9NuSWJ20Yk15j/9mQUC20/ywjM=; b=MJxgXrYu/SjrCB3AJQZvbdn/XN+cglkWNCr3DD00b6ttR5olwPtYgsLk68zOSPFWCr PIO05WxA3yyxoGDi5NEAVKsUr9LloglWSjLlYElWI0w570m5ZCbJN1IVUkwBfISZ4npL 5lLN4OtS+DW/g2Vr+mcpfoIF2E5LlaC3TUynDlKqiQaLjC1pszIZt64TvTqoGe+UzqB7 ckp60NtlA6YuMLxA2yOQ5AuGp3NIYoUlJyVT1OGXbVN5GSQCzlrr4hq2sWRdZX3y2wy7 GVH7PopiBhCPgy4AoNBwZBBAKDfgXG0acSB8NFR6PB2GfOM55ThafiRVXUMXduBuxmk5 9lAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=JbJ16pBT; 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 w3-20020a63b743000000b004705b0ca9f1si4490280pgt.545.2023.01.27.11.17.06; Fri, 27 Jan 2023 11:17:19 -0800 (PST) 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=JbJ16pBT; 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 S234687AbjA0S7m (ORCPT + 99 others); Fri, 27 Jan 2023 13:59:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229757AbjA0S7k (ORCPT ); Fri, 27 Jan 2023 13:59:40 -0500 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C135D33440 for ; Fri, 27 Jan 2023 10:59:39 -0800 (PST) Received: by mail-pj1-x1030.google.com with SMTP id t12-20020a17090aae0c00b00229f4cff534so8649772pjq.1 for ; Fri, 27 Jan 2023 10:59:39 -0800 (PST) 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=8FSfRUNSPzw6WDGkk9NuSWJ20Yk15j/9mQUC20/ywjM=; b=JbJ16pBT7IqjxBNPjSK5CDUwVUGhR/OnugwG+wWGEsBW1javshnmaTNBawxGtiCTdp hjeUc/BFKBLrv2j6Vkzr04dBesVNUv3Ybtgjww3OoV+TcgrPoKLH1c8jWFvG3t1VdV9n lLMGQtj07HEe4CIosgl0RZmz4koECGboCUjTQ= 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=8FSfRUNSPzw6WDGkk9NuSWJ20Yk15j/9mQUC20/ywjM=; b=ALE9OmnNn+YCz1zh31tQUU+hwSv2SGOJGvPZ2TyZ1n+plBDscgq+uYrV3tsZ7fgRmn /EgSSK++iqbM2I0GhsPhPcaRr/YLqiE8QR5s2u1q30gQKdJVRUFHO75AMplFuBwV9B3C FeOm5Nqku1BtnWNTMLMwN3MmrW1cJs2ZZzhZ9+cgZJ+1KGwmnK/IBCxXZTYKRhL0X3gx N+4QqwPanNC55oqBP9rykR4pTJZF3+jxjolDZjP1wR3/yCW28lrU086ISimFbOPfoeow c+1pyFAr/IRmNeJxZp9I6jhNzQmbSCkMUVu62lla4bgfaHADF/5p2EkYm9zn+1lFz208 yb9w== X-Gm-Message-State: AO0yUKWg4GBQ4VgZdUdk3Fvw2G+wHOazJFIxAPcjKSL3EpP1WkzHloBq c/FyoL9sD8jvgxQkqpa9Yc7jNw== X-Received: by 2002:a17:903:234b:b0:196:595b:2587 with SMTP id c11-20020a170903234b00b00196595b2587mr2888516plh.20.1674845979328; Fri, 27 Jan 2023 10:59:39 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id i15-20020a17090332cf00b00194799b084esm2395292plr.10.2023.01.27.10.59.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Jan 2023 10:59:38 -0800 (PST) Date: Fri, 27 Jan 2023 10:59:38 -0800 From: Kees Cook To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, Alexandre Pereira , Andrew Morton , Coly Li , David Gow , Guenter Roeck , Kees Cook , Kent Overstreet , linux-bcache@vger.kernel.org, linux-hardening@vger.kernel.org, Nathan Chancellor , Nick Desaulniers , Palmer Dabbelt Subject: [GIT PULL] kernel hardening fixes for v6.2-rc6 Message-ID: <202301271058.9A715143C@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 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?1756204409162736179?= X-GMAIL-MSGID: =?utf-8?q?1756204409162736179?= Hi Linus, Please pull this small set of kernel hardening fixes for v6.2-rc6 that haven't gone via other trees. Thanks! -Kees The following changes since commit 42633ed852deadc14d44660ad71e2f6640239120: kbuild: Fix CFI hash randomization with KASAN (2023-01-13 15:22:03 -0800) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/hardening-v6.2-rc6 for you to fetch changes up to be0d8f48ad97f5b775b0af3310343f676dbf318a: bcache: Silence memcpy() run-time false positive warnings (2023-01-25 12:24:50 -0800) ---------------------------------------------------------------- hardening fixes for v6.2-rc6 - Split slow memcpy tests into MEMCPY_SLOW_KUNIT_TEST - Reorganize gcc-plugin includes for GCC 13 - Silence bcache memcpy run-time false positive warnings ---------------------------------------------------------------- Kees Cook (3): kunit: memcpy: Split slow memcpy tests into MEMCPY_SLOW_KUNIT_TEST gcc-plugins: Reorganize gimple includes for GCC 13 bcache: Silence memcpy() run-time false positive warnings drivers/md/bcache/bcache_ondisk.h | 3 ++- drivers/md/bcache/journal.c | 3 ++- lib/Kconfig.debug | 9 +++++++++ lib/memcpy_kunit.c | 2 ++ scripts/gcc-plugins/gcc-common.h | 4 ++-- 5 files changed, 17 insertions(+), 4 deletions(-)