From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 3F63D846F for ; Fri, 19 Jun 2026 02:49:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781837392; cv=none; b=OGn6g5IHRigonmQ9wyaP65etigEC6AMi2OIFDZHDQGK4H6Id8rFhhQ1FbsPd+7A1cjHmh6aS+Bv6Mpfuv1zJKPyGm0q/EAT3BAW54SNi3ileI4VzPztd4Ou+W+DtFjpnqNo29EhbTPBLtTlHzJzr7ReHxY5D7tPpSx2+U23vD+M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781837392; c=relaxed/simple; bh=GqBwKyIClkR4rGUtFnmCkRgwVZBYomd2Befv3yg9QNw=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=A/CRIwqlCvDCJQbFdFpcCGbz4+pLhhQeQkJusmi2fuOGb4/KemyAglrVTY+iTGyq3HtjypRllBO7FSSxF/Q2Nvof6qe02Om1A3P9Fopa8T3sVLOfjmJ//CWRSoewS/pkhQYNowLcfder4dadtOqdLDlEpR4jHmbfSRgcf4kYMH8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BUZT1U5k; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BUZT1U5k" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C45871F000E9; Fri, 19 Jun 2026 02:49:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1781837390; bh=p8OUrXywUi579PkKqlqfBdOZrx4yzyplGKhS0W5wZKM=; h=Date:From:To:Cc:Subject; b=BUZT1U5kyMW80wO4O0pr/r3IZZCU+afFbSP4ueMEH7c52CH2sk7IwRLvPgx8SxIDu I33rKEzj8Gtgyt0R5Unihf1f9CkaHjGYjlBi2s6Fd7aOEd2Arz7G0QUR/6f+KzE+x3 a4N23jPhlMEbb8xdE2SGO+SN5Er65clpZYYsdvcIoDpOrO8j2ZbQHZzTG2f0mfshHE rvtiyX5saWgJwdr+6uSZCE35WSkyPa2u29CDqWOvjsitCVpR3hlZraI6pLJLhV/DKS fBHkJ9CsIvZOe4hIZp47cprw/CCveHrjto1MnJGyrK3McjOvH1bnPQTbjPSclnSTAp WQkcCMNsLw9Lw== Date: Thu, 18 Jun 2026 19:49:50 -0700 From: Kees Cook To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, Kees Cook Subject: [GIT PULL] strncpy-removal updates for v7.2-rc1 Message-ID: <202606181646.6B9664D4@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 the strncpy removal for v7.2-rc1. BPF's last usage removal has landed, so here we go. Thanks! -Kees The following changes since commit 9c87e61e3c5797277407ba5eae4eac8a52be3fa3: Merge tag 'bpf-next-7.2' of git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next (2026-06-17 09:18:14 +0100) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/strncpy-removal-v7.2-rc1 for you to fetch changes up to 079a028d6327e68cfa5d38b36123637b321c19a7: string: Remove strncpy() from the kernel (2026-06-18 16:39:31 -0700) ---------------------------------------------------------------- strncpy removal for v7.2-rc1 - Remove the per-arch strncpy implementations in alpha, m68k, powerpc, x86, and xtensa - Remove strncpy API Over the last 6 years working on strncpy removal there were 362 commits by 70 contributors. Folks with more than 1 commit were: 211 Justin Stitt 22 Xu Panda 21 Kees Cook 17 Thorsten Blum 12 Arnd Bergmann 4 Pranav Tyagi 4 Lee Jones 2 Steven Rostedt 2 Sam Ravnborg 2 Marcelo Moreira 2 Krzysztof Kozlowski 2 Kalle Valo 2 Jaroslav Kysela 2 Daniel Thompson 2 Andrew Lunn ---------------------------------------------------------------- Kees Cook (6): alpha: Remove arch-specific strncpy() implementation m68k: Remove arch-specific strncpy() implementation powerpc: Remove arch-specific strncpy() implementation x86: Remove arch-specific strncpy() implementation xtensa: Remove arch-specific strncpy() implementation string: Remove strncpy() from the kernel Documentation/process/deprecated.rst | 47 ++++++++------- arch/alpha/include/asm/string.h | 2 - arch/m68k/include/asm/string.h | 17 ------ arch/powerpc/boot/string.h | 1 - arch/powerpc/include/asm/string.h | 2 - arch/x86/include/asm/string_32.h | 3 - arch/xtensa/include/asm/string.h | 25 -------- include/linux/fortify-string.h | 49 ---------------- include/linux/string.h | 3 - arch/alpha/lib/strncpy.S | 83 --------------------------- arch/alpha/lib/styncpy.S | 1 - arch/powerpc/boot/string.S | 13 ----- arch/powerpc/lib/string.S | 22 ------- arch/x86/lib/string_32.c | 19 ------ drivers/misc/lkdtm/fortify.c | 2 +- lib/string.c | 16 ------ lib/test_fortify/write_overflow-strncpy-src.c | 5 -- lib/test_fortify/write_overflow-strncpy.c | 5 -- lib/tests/fortify_kunit.c | 61 +------------------- 19 files changed, 28 insertions(+), 348 deletions(-) delete mode 100644 arch/alpha/lib/strncpy.S delete mode 100644 lib/test_fortify/write_overflow-strncpy-src.c delete mode 100644 lib/test_fortify/write_overflow-strncpy.c -- Kees Cook