From nobody Mon Feb 9 00:54:18 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 2AB7F2165ED for ; Mon, 7 Apr 2025 17:32:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744047124; cv=none; b=BG9sY8Wme6KaPuLNOaeJ4GW/yimlphiT1GCdvupy2Bt2DPcW4eJi5yqeyAANkNEFlbSNMxBmRzatW0TrBC3eDmYv8EH1Rkl9+q+HSJnY4QiFPdBN72/qzZZ+kly5NvdXQdSKR9CJiD0duUNa8RIH96ZNUzICttq74tjQ4GTgL3M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744047124; c=relaxed/simple; bh=WEcD/AXqDi/lML5ocoRfoM1M6Q3z5GDI2jHwFmoZKWo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OP9VQpf8OeWoUP4j7xH6s2L0aXnuJ8F2pkwkOPtB0YKA8Xd78SuGuaCoKaR7vSWTg/hDLLMj0V7Xl2bt1HXTv5v3TRX0P65KUrd9nv2XlWSiIzw7/A1KPchXn0EruIsX1UDsgNU6jCRkWR9Pzau9hzKZGArbqLLWaL5MFzisKP0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=JWpXzhSA; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="JWpXzhSA" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1744047122; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=U6e5YEd4i8Igzt8FZC6HGuBFALFj9tH6sGb59/Wh5h4=; b=JWpXzhSAAOEsd83evUkk5J50+8ORXmr/rrw8jIFQKtD2y6Fjq0mUmjG+4Nszk7/zHgslqb D2mfCKOEkjy2nugehLytR3cfjADVGpvZ/RbYXrAukjLl6/73euluOFPpIa6epX8vw6Vc3M eOBeOCWPfdGihyVQ+ehyL6oAD2i+fuA= Received: from mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-683-cNQUs-B1PqudVnQAh9X6bA-1; Mon, 07 Apr 2025 13:31:58 -0400 X-MC-Unique: cNQUs-B1PqudVnQAh9X6bA-1 X-Mimecast-MFC-AGG-ID: cNQUs-B1PqudVnQAh9X6bA_1744047116 Received: from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 53E2419560BE; Mon, 7 Apr 2025 17:31:56 +0000 (UTC) Received: from p16v.luc.cera.cz (unknown [10.44.32.4]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id D877F1956094; Mon, 7 Apr 2025 17:31:50 +0000 (UTC) From: Ivan Vecera To: netdev@vger.kernel.org Cc: Michal Schmidt , Vadim Fedorenko , Arkadiusz Kubalewski , Jiri Pirko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Prathosh Satish , Lee Jones , Kees Cook , Andy Shevchenko , Andrew Morton , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: [PATCH 10/28] lib: Allow modules to use strnchrnul Date: Mon, 7 Apr 2025 19:31:40 +0200 Message-ID: <20250407173149.1010216-1-ivecera@redhat.com> In-Reply-To: <20250407172836.1009461-1-ivecera@redhat.com> References: <20250407172836.1009461-1-ivecera@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.15 Content-Type: text/plain; charset="utf-8" Commit 0bee0cece2a6a ("lib/string: add strnchrnul()") added the mentioned function but did not export it so it cannot be used by modules. Reviewed-by: Michal Schmidt Signed-off-by: Ivan Vecera Acked-by: Kees Cook --- lib/string.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/string.c b/lib/string.c index eb4486ed40d25..824b3aac86de0 100644 --- a/lib/string.c +++ b/lib/string.c @@ -363,6 +363,7 @@ char *strnchrnul(const char *s, size_t count, int c) s++; return (char *)s; } +EXPORT_SYMBOL(strnchrnul); =20 #ifndef __HAVE_ARCH_STRRCHR /** --=20 2.48.1