From patchwork Sun Jul 16 00:42:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kees Cook X-Patchwork-Id: 120863 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp410884vqt; Sat, 15 Jul 2023 18:45:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlG2MuLcXdp18ToozU4Qse+By5nuEvwnN+d/JMm3vUnN/6banstjVQDKNti05oKqlRS6Dhk2 X-Received: by 2002:a17:907:60d5:b0:98f:450e:fc20 with SMTP id hv21-20020a17090760d500b0098f450efc20mr7980620ejc.17.1689471956859; Sat, 15 Jul 2023 18:45:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689471956; cv=none; d=google.com; s=arc-20160816; b=WBv7fDqqUXfBJU+0Yzch42II3IA1VDE1BZdpEpA0nGae6JhjNmSd5/bslmncL8BWyy aQaYVGdWv5uPk+Tgf3jAJ50meJvbcCqThVBckiOokkAVyLSS8WY65Cz/i8YAS6WVaXCE DolAaywEbyt86kT6FrxZWmC0YWGtClOgbMFgiIbGmYmydw09ZR0CEr8ACT9oLoVmy6n4 RxWNAXM5ToiiSoIJu6MDau7rNvF1zM/gLrMHR9X2la7VENJeLNPrDGYu8qFNmsC+gdp1 G7TN67aJEo3kirXpe3rzUU+iQ46upRO5NOHtO7j4m3x+WJYg+15w2ozvhqjNZOm/u/kE ZK1g== 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=AAaGB1X6RygPg8U02LFiZuYkbefG8qTpwEsQCQX7xEY=; fh=xkKYMPvaUB7WawGoR8T/OXYz5bYC+kojybw5+6sWXxY=; b=V3fZlH2cI7h2f3E3Z7Fsb73z4v3eBaBT+QxdT/sLcJxkFNuWEZD3RAMNnRqCubQ7/h 3A/XRmC0wI7c2ZiAa1Rs+jGxjfoyhOArwsQeZR1cqEbvbLqfOrlQqjtP/tx6eqfeU1gJ 69QWpp8PqXuRMuatB9STnkLYgfG8e9Shv55sUwWUV6/JFpt7zr3pGIO4Wrh5sfOIR0YA yPLmlQSXmRdJnebD5JLc6EP5/LFg30u5a18vDQIQjxUMG8O8No54u4uPCBFXeIBoXGVp da5ZYJweQmg03uFFFQGIn8e1AhfCPZ1gNkyFJTE53ObEgAmYKlC9sGjqMgxNTScdw8/9 uHCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=UfPATQBT; 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 m6-20020aa7d346000000b0051e069b2b5esi10951949edr.285.2023.07.15.18.45.33; Sat, 15 Jul 2023 18:45:56 -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=UfPATQBT; 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 S229932AbjGPAmh (ORCPT + 99 others); Sat, 15 Jul 2023 20:42:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229563AbjGPAmg (ORCPT ); Sat, 15 Jul 2023 20:42:36 -0400 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 BF5DE101 for ; Sat, 15 Jul 2023 17:42:35 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id 98e67ed59e1d1-263036d4bc3so2268952a91.2 for ; Sat, 15 Jul 2023 17:42:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1689468155; x=1692060155; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=AAaGB1X6RygPg8U02LFiZuYkbefG8qTpwEsQCQX7xEY=; b=UfPATQBTYcKeHUD0z4Rmm35SobEX5Hfj1yTAeU9epG0mxGURcVMfCXxbd74iHOfI1u ZXbeMbfoQbiSijPJk6SeDbSioFhSRUBeUHSGcCL9xX3o32pC3G4ZJ6qrBop6mng4gzjX sLw4QHxrhqNhhBRqk1xTHeeN40IJ7gU7SHXd4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689468155; x=1692060155; 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=AAaGB1X6RygPg8U02LFiZuYkbefG8qTpwEsQCQX7xEY=; b=l5rlpHQNiusX3iu5wOjSRVjqK+JZxo4JMi/YF00VpNRW9TSb6Fgfl02zHW6EIz1wMM 8HfEMKuvaS3RdSlpMaQdv+3vPgFrV5neUfOGb0yZONmAdWxi+AqPJnU12V/4gnYaMVeV 4XkOvk4QQ+YPRxNftHgBwEmK7JB+218t5zS//Mt19BdQDZWC9HlQ55nK0cvp2g+Po3lZ 5x4mU35XgrDcYFlS9L+Adj5H4K3NM/XxqiCWau2FArsbeAyTKwvhS8c0hqvDY9CPX/xp syz/bJilKcGsXVZm4pV25+rluyPTFbXG/JinnoKnRbv8z9Zz4rps/8D/WAqi3z2NYciF egNw== X-Gm-Message-State: ABy/qLYiYvaZ5Yr05m/7vGkaO8akRu97+Sflmt3ttJobxBan9aMzQqlq 4/O8t5AlTj1PnHh9inBiIi87aQ== X-Received: by 2002:a17:90a:a38d:b0:261:2a59:dc38 with SMTP id x13-20020a17090aa38d00b002612a59dc38mr7968107pjp.25.1689468154854; Sat, 15 Jul 2023 17:42:34 -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 d14-20020a17090ad98e00b002630bfd35b0sm2888301pjv.7.2023.07.15.17.42.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jul 2023 17:42:33 -0700 (PDT) Date: Sat, 15 Jul 2023 17:42:32 -0700 From: Kees Cook To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, Andi Shyti , Andy Shevchenko , Arnd Bergmann , Guenter Roeck , Kees Cook , Mark Rutland , Nick Desaulniers , Palmer Dabbelt , Petr Pavlu , Sam Ravnborg , Song Liu , Yonghong Song , Zhen Lei Subject: [GIT PULL] hardening fixes for v6.5-rc2 Message-ID: <202307151737.BF9E8B84@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 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: 1771539746497365947 X-GMAIL-MSGID: 1771539746497365947 Hi Linus, Please pull this odd collection of hardening fixes for v6.5-rc2. I included the somewhat unrelated sparc fix[1] since no one else had picked it up yet, it was Acked, it had been pinged by the regression tracker, and I was on CC. :) Thanks! -Kees [1] https://lore.kernel.org/lkml/20230628094938.2318171-1-arnd@kernel.org/ The following changes since commit 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5: Linux 6.5-rc1 (2023-07-09 13:53:13 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/hardening-v6.5-rc2 for you to fetch changes up to ec7633de404e7ce704d8f79081b97bca5b616c23: sparc: mark __arch_xchg() as __always_inline (2023-07-13 09:54:32 -0700) ---------------------------------------------------------------- hardening fixes for v6.5-rc2 - Remove LTO-only suffixes from promoted global function symbols (Yonghong Song) - Remove unused .text..refcount section from vmlinux.lds.h (Petr Pavlu) - Add missing __always_inline to sparc __arch_xchg() (Arnd Bergmann) - Claim maintainership of string routines ---------------------------------------------------------------- Arnd Bergmann (1): sparc: mark __arch_xchg() as __always_inline Kees Cook (1): MAINTAINERS: Foolishly claim maintainership of string routines Petr Pavlu (1): vmlinux.lds.h: Remove a reference to no longer used sections .text..refcount Yonghong Song (1): kallsyms: strip LTO-only suffixes from promoted global functions MAINTAINERS | 5 ++++- arch/sparc/include/asm/cmpxchg_32.h | 2 +- arch/sparc/include/asm/cmpxchg_64.h | 2 +- include/asm-generic/vmlinux.lds.h | 1 - kernel/kallsyms.c | 5 ++--- scripts/kallsyms.c | 6 +++--- 6 files changed, 11 insertions(+), 10 deletions(-)