From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9E2FA32E12E for ; Mon, 9 Feb 2026 18:39:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770662362; cv=none; b=RTPSgSLYwzVXELtm1SRbarxpJIb1sredU8P9XJPiXAIZ/2/ndQ4qWeEFBRVIbsqRucW1xSAAXps+eTGgZxtCksh1yNHyCoeth71G0m/KI7TZd+SEN1zyxq+fM39dDpe1LhFP7hjqT+Cxyc25maVfD25xkpMfsaGwJTl7Is255Ug= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770662362; c=relaxed/simple; bh=5ZJJOHr6uCkHBorjBtIzjRjH8gjMkcTjUKrBbs5TZNc=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=hq2TRXuYtql9HFQ/9hyXwHLU62VvYe+/jxUStCO1UwqJS/4zmBxXcZBFH339DuMEyxrhrZCMfQ+4/MyJC1ndAqgX09EnkCp5HRqfLLXRgsm8uCDJNqx29+H0tIiUo4lqFxdlfGMOdTD/Pvooc5h3lwEAypBV4M9P0PklaHvTglo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ntJbRpOz; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ntJbRpOz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A147C116C6; Mon, 9 Feb 2026 18:39:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1770662362; bh=5ZJJOHr6uCkHBorjBtIzjRjH8gjMkcTjUKrBbs5TZNc=; h=Date:From:To:Cc:Subject:From; b=ntJbRpOzsOl5eGL1z6og0epf/Kn1UMLdSMFLK/XaOTPfmH1ZE78jwF1lWu6F3SOsK 6RdYCdCyOFwOd5/Q8U8xsV3EBWCXetj8CluyTl59uZAgw9KzMga+w2Kk71RUNxRZd/ 9GLtkZaJhLh/hdhMGY0t2lRWYZYL18PBZJCIk9Bc6T1L7pASaHQk4FNfZyCVDAAtMp W62Z84E/WEog+qboJE//i+Y/4vsKlUWIu7RLqlW4U/WKc1tDq73J+6Dd3efNgXesD8 oYA8qvBFSEuJHaIM3WCsQQ4mAKaL1tDhT4sosUlurxbeinInwneM5YLkP0OZ+12v/k jzwZtkzZR2RUw== Date: Mon, 9 Feb 2026 10:39:21 -0800 From: Kees Cook To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, Bill Wendling , Christian Lamparter , Danilo Krummrich , David Laight , "Gustavo A. R. Silva" , Jan Kara , Justin Stitt , Kees Cook , Nathan Chancellor , Nicolas Schier , Simon Horman , Stefan Wiehler , Thorsten Blum , Tyler Hicks , WangYuli Subject: [GIT PULL] hardening updates for v7.0-rc1 Message-ID: <202602091037.93F180E@keescook> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Linus, Please pull these hardening updates for v7.0-rc1. Mostly small cleanups and various scattered annotations and flex array warning fixes that we reviewed by unlanded in other trees. Introduces new annotation for expanding counted_by to pointer members, now that compiler behavior between GCC and Clang has been normalized. Thanks! -Kees The following changes since commit 9448598b22c50c8a5bb77a9103e2d49f134c9578: Linux 6.19-rc2 (2025-12-21 15:52:04 -0800) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/hardening-v7.0-rc1 for you to fetch changes up to 44dd7cfbd1db5199cf7afe03158a578a64b55800: MAINTAINERS: pstore: Remove L: entry (2026-01-17 11:00:37 -0800) ---------------------------------------------------------------- hardening updates for v7.0-rc1 - Various missed __counted_by annotations (Thorsten Blum) - Various missed -Wflex-array-member-not-at-end fixes (Gustavo A. R. Silva) - Avoid leftover tempfiles for interrupted compile-time FORTIFY tests (Nicolas Schier) - Remove non-existant CONFIG_UBSAN_REPORT_FULL from docs (Stefan Wiehler) - fortify: Use C arithmetic not FIELD_xxx() in FORTIFY_REASON defines (David Laight) - Add __counted_by_ptr attribute, tests, and first user (Bill Wendling, Kees Cook) - Update MAINTAINERS file to make hardening section not include pstore ---------------------------------------------------------------- Bill Wendling (1): compiler_types.h: Attributes: Add __counted_by_ptr macro David Laight (1): fortify: Use C arithmetic not FIELD_xxx() in FORTIFY_REASON defines Gustavo A. R. Silva (3): drm/nouveau: fifo: Avoid -Wflex-array-member-not-at-end warning carl9170: Avoid -Wflex-array-member-not-at-end warning nfp: tls: Avoid -Wflex-array-member-not-at-end warnings Kees Cook (3): lkdtm/bugs: Add __counted_by_ptr() test PTR_BOUNDS coredump: Use __counted_by_ptr for struct core_name::corename MAINTAINERS: pstore: Remove L: entry Nicolas Schier (2): fortify: Rename temporary file to match ignore pattern fortify: Cleanup temp file also on non-successful exit Stefan Wiehler (1): Kconfig.ubsan: Remove CONFIG_UBSAN_REPORT_FULL from documentation Thorsten Blum (3): crypto: af_alg - Annotate struct af_alg_iv with __counted_by fs/xattr: Annotate struct simple_xattr with __counted_by ecryptfs: Annotate struct ecryptfs_message with __counted_by init/Kconfig | 7 ++ lib/Kconfig.ubsan | 2 +- Makefile | 6 ++ drivers/net/ethernet/netronome/nfp/crypto/fw.h | 24 ++++--- drivers/net/wireless/ath/carl9170/carl9170.h | 12 ++-- fs/ecryptfs/ecryptfs_kernel.h | 2 +- include/linux/compiler_types.h | 18 ++++- include/linux/fortify-string.h | 8 +-- include/linux/xattr.h | 2 +- include/uapi/linux/if_alg.h | 2 +- include/uapi/linux/stddef.h | 4 ++ drivers/gpu/drm/nouveau/nvif/fifo.c | 5 +- drivers/misc/lkdtm/bugs.c | 90 ++++++++++++++++++++++--- drivers/net/ethernet/netronome/nfp/crypto/tls.c | 8 ++- fs/coredump.c | 8 +-- MAINTAINERS | 1 - lib/test_fortify/test_fortify.sh | 4 +- tools/testing/selftests/lkdtm/tests.txt | 2 + 18 files changed, 161 insertions(+), 44 deletions(-) -- Kees Cook