From nobody Sun Feb 8 21:06:40 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 5FDB5328626; Fri, 30 Jan 2026 08:08:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769760531; cv=none; b=Pxy8bcOjDY3yPJVStlaq53E4cIEruo5q36dxr7m8rShZ4uyopz92Q05L70OiqsdETjNCMCeV4OURqDIApXSkNRkiUTMqB6QPHstScnHVB7NKoTFiTCNMGSCK0N8BnAZWxLTsL1KDuOzrduUkVheMcDd0j261jVHJKg0IvaKCTIY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769760531; c=relaxed/simple; bh=dKMoIFJyJjZyPZugm1/nfKqaFbGdvHNWyHwldrpxi1o=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=H0J//Nx5c2X1O0nStFtTLNcsWsECpDgevN8s2n2S++AaD8Bj70rVZsQl0M/MzMxYu/KaQXB4XexoQrqiT1qXHXxc3NN2q5f1bLwwGP/RVgg1z8ygLtrt3g70PHkzpCRX3Sr4wxU/RANx6VL9UJmydnt/JaHzZUZyxnZLNcSYQmM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=uyeOSyPs; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=zC4rYbZM; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="uyeOSyPs"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="zC4rYbZM" Date: Fri, 30 Jan 2026 08:08:46 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1769760528; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DYKQXCJpqYI1j2PyM5vE8OsgeNkgmxRkFYTvjh0UCrA=; b=uyeOSyPsSEGtAWHBiOmve5Yj6UjJ77t8cKKc+1B2g6XNUOduEOKNNFc6PH+NlPrKMDcw77 YI/TTb7eBdgnENA5uPBckNzn3g9cEmiIJ8QiYlPzz5aiP6bKwGi7hWMwTsFVSi5XfPWC5P Ky6aJc9F96CQP3xTs6srOnJS4oZ+oXLG7zXoOBbGa9yciKMM1e2c8xWlrznJbP9UONBpnD S3c6C/at+lhgCYYJbgmB1e+heQWNnbsIwLG+LBhPEQbu6WACHTwdSmOx9lQhDFS30z8+Mp Kx9EqUDmYHEjH9eY84N5h3JY5LFtV7WmRD24zR6ZnVz/Yu5niAQTT1iRPdqCMA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1769760528; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DYKQXCJpqYI1j2PyM5vE8OsgeNkgmxRkFYTvjh0UCrA=; b=zC4rYbZMfV86TDvSvq69lK4ProeE/btDWX8pqV4Gid0lU6JSRtsXDgPgmTVeDWubpZAWn5 zOyrgmruCYYCAhAA== From: "tip-bot2 for Thorsten Blum" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/core] genirq/proc: Replace snprintf with strscpy in register_handler_proc Cc: Thorsten Blum , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org, maz@kernel.org In-Reply-To: <20260127224949.441391-2-thorsten.blum@linux.dev> References: <20260127224949.441391-2-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <176976052681.2495410.16981592964874469903.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the irq/core branch of tip: Commit-ID: 2dfc417414c6eea4e167b2f46283cded846c531a Gitweb: https://git.kernel.org/tip/2dfc417414c6eea4e167b2f46283cded8= 46c531a Author: Thorsten Blum AuthorDate: Tue, 27 Jan 2026 23:49:49 +01:00 Committer: Thomas Gleixner CommitterDate: Fri, 30 Jan 2026 08:53:53 +01:00 genirq/proc: Replace snprintf with strscpy in register_handler_proc Replace snprintf("%s", ...) with the faster and more direct strscpy(). Signed-off-by: Thorsten Blum Signed-off-by: Thomas Gleixner Link: https://patch.msgid.link/20260127224949.441391-2-thorsten.blum@linux.= dev --- kernel/irq/proc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/irq/proc.c b/kernel/irq/proc.c index 77258ea..b0999a4 100644 --- a/kernel/irq/proc.c +++ b/kernel/irq/proc.c @@ -12,6 +12,7 @@ #include #include #include +#include =20 #include "internals.h" =20 @@ -317,7 +318,7 @@ void register_handler_proc(unsigned int irq, struct irq= action *action) if (!desc->dir || action->dir || !action->name || !name_unique(irq, actio= n)) return; =20 - snprintf(name, MAX_NAMELEN, "%s", action->name); + strscpy(name, action->name); =20 /* create /proc/irq/1234/handler/ */ action->dir =3D proc_mkdir(name, desc->dir);