From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B82E84519A0 for ; Fri, 9 Oct 2026 13:36:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791552977; cv=none; b=GPq+BDCACofubtqqW2hm9WnlfkV2U0hrNDMUi43kAjFzfNcasY8fOkRKf0hdrj45ywoBR8Zpzts2bfJROUuEyd9R2mK3Qh6kT0V5d4gi4WWkGuzLmmhn/Hbn/xPDlJMIgy5VHp2N1175+gVpYp/dkHBQF92j8gvUMJreXyH7eVU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791552977; c=relaxed/simple; bh=40TIX3NpIG+zOWtJ1x1uDcURK4B5W6fTMv+dybiQMZs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=E6t0zYGxj5WVl/dOVrttcgj+ClILrzhtCtAIkbDhpKKoYw4LHcyI2mPQHTDnj3tpPt0DCssEFhPJ0wzLap11oFmEUBx4ZovqUBU2A8H7QJse1obmw+qaOc3tb7ezEeAMyjIh6UXPNR6ecY2WZATLGF0GyRX0XFyjGjO7ecCt6jU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=aayushk.dev; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.214.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=aayushk.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-2e8246b13cbso11976355ad.2 for ; Fri, 09 Oct 2026 06:36:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791552976; x=1792157776; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=3bcBhjlsgUHjb+oGqPi1QqiXsckIBTQjS/BaSbdqlKM=; b=rR5o+N/XIUWE65noPbBUvQrJeyHxBKKf0LHXfXxaUtSeJzQLHJJu0YSD7Z7wnwgiP7 3ecD0oBncj4KGT8cO6t3mVJ/ifkvmCj+0dUzYwg54OktoinmcOQzVTOThzvzy2ncaDbR Gz9i/7oLgXkgj94/imJbI87iosK4esibp2D9xjWsKuEF47Yb8qlfIqcYUef6gDn7UILu O5Jfro7tIyV+phkqn4BcTTtIxXLOT1TsgYsjBckaCc51le585cKiFqxAFEYgaBrZgHIy sPkvyQKVp5z1VwjSVN/3i6ltSvzl6fOPJwq+YUuAv5GyGetTOGbsknhVlFsvmQO4VaFy D/OA== X-Gm-Message-State: AFq9FYJL6Mg6BeVoW0IH4s57H13Kx7EAkP6s0XtcmnXJEV+9HckORZ5C 4rbvzJDSrzOfLQshBqvKaFK1o9bHiVUZ3+heuTXRQSlSSmSSOLLDc2Ny X-Gm-Gg: AYBFou3NzwrFSn07P3Mgqw+IrikY28zJ0c5lVoo7QYumaRE9l5x/qecXkzummLjLTRI UNRzsS37VPnjPFUengIAG7jlCrMJIc6asfsGXS9qL+cnON37adCn5zgeihWGxQTi3T1pcZdSWkg qqSR9veWxiGuzV0dwc2xKs5fJNPtUnH/OgHr7rXAuof2BFfF/WZSbIfvcp1f4jQv8F1duWCCNtW FxHCPMTRCBn1Fc89O+ja86/ZYT8bJSZmxjf5Rlk8VwLWUUbN1Qous7vhCKQkszf9R1ELyYqO/ZC fudg6FgSVqpfidceUUuHG+4C1dZwTX0XLp4BDrmPzkwyn0Y4Gz7oSQu0aLRoKUTMc33x8b0Pjf+ v+VM+qE3H+Sqiyras96QUMKqS4A7ctcu+xHByQd3AN9I1BwTREyS5oNfDe4XhunmEn4mvmnsCkc UwiOucCuhELku+UecOCX4YY+SGxs1p6CBonBnBO75k4IVgP/5weoFYcvDZLKU= X-Received: by 2002:a17:903:1b6b:b0:2ca:e19c:97b with SMTP id d9443c01a7336-2e84280d563mr18482675ad.5.1791552975728; Fri, 09 Oct 2026 06:36:15 -0700 (PDT) Received: from linmach ([182.156.30.23]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2e8484c1641sm7656985ad.15.2026.10.09.06.36.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Oct 2026 06:36:15 -0700 (PDT) From: Aayush Kumar To: broonie@kernel.org Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, Aayush Kumar Subject: [PATCH 0/5] spi: replace strcpy(), sprintf() and simple_strtoul() with strscpy(), snprintf() and kstrtoul() Date: Fri, 9 Oct 2026 19:06:04 +0530 Message-ID: <20261009133609.579046-1-code@aayushk.dev> X-Mailer: git-send-email 2.56.0 Precedence: bulk X-Mailing-List: linux-spi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Replace strcpy(), sprintf() and simple_strtoul() with their safer modern equivalents (strscpy, snprintf, kstrtoul). Aayush Kumar (5): spi: butterfly: Use strscpy() instead of strcpy() spi: lm70llp: Use strscpy() instead of strcpy() spi: tle62x0: Use kstrtoul() instead of simple_strtoul() spi: omap2-mcspi: Use snprintf() instead of sprintf() spi: s3c64xx: Use snprintf() instead of sprintf() drivers/spi/spi-butterfly.c | 3 ++- drivers/spi/spi-lm70llp.c | 2 +- drivers/spi/spi-omap2-mcspi.c | 6 ++++-- drivers/spi/spi-s3c64xx.c | 3 ++- drivers/spi/spi-tle62x0.c | 6 +++--- 5 files changed, 12 insertions(+), 8 deletions(-) -- 2.56.0