From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 42863CAC5B0 for ; Thu, 25 Sep 2025 22:35:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9E5A010E2EC; Thu, 25 Sep 2025 22:35:30 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=linux.dev header.i=@linux.dev header.b="XSE28i//"; dkim-atps=neutral Received: from out-179.mta1.migadu.com (out-179.mta1.migadu.com [95.215.58.179]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4FF7510E2EC for ; Thu, 25 Sep 2025 22:35:28 +0000 (UTC) Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1758839726; h=from:from: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=jvs7jUazi5d0m5GvWoBhaorJ0Iy7g9chWyT3/fMM+JQ=; b=XSE28i//t1y+Gs/C8T1fx7qcit7TgYW+b9QDgayEZ4ZMBB/KJsVkhE2Hw5lrwH30xG4g8G soAi0RomBlu28k/lyqdTAi4owPUTvckHPutycl2H8IRz2jlXL3hz2+tbDHVwToAz1//RwD 6T+s87a0uQ3Dgd1599MJQ7a89ZiWsZM= Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81\)) Subject: Re: [PATCH RESEND] drm: Use strscpy() instead of strscpy_pad() X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Thorsten Blum In-Reply-To: <20250908102217.3725-1-thorsten.blum@linux.dev> Date: Fri, 26 Sep 2025 00:35:07 +0200 Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Alex Deucher Content-Transfer-Encoding: 7bit Message-Id: <596CAA63-C3F8-4C90-B898-259B7CF8AD6D@linux.dev> References: <20250908102217.3725-1-thorsten.blum@linux.dev> To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter X-Migadu-Flow: FLOW_OUT X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi all, > On 8. Sep 2025, Thorsten Blum wrote: > > kzalloc() already zero-initializes the destination buffers, making > strscpy() sufficient for safely copying the names. The additional > NUL-padding performed by strscpy_pad() is unnecessary. > > If the destination buffer has a fixed length, strscpy() automatically > determines its size using sizeof() when the argument is omitted. This > makes the explicit size arguments unnecessary. > > No functional changes intended. > > Signed-off-by: Thorsten Blum > --- I've been resending this patch since April and I'm wondering what else I could do to get this reviewed and/or merged? The patch still applies to both linux-next and master. Thanks, Thorsten