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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 76CF0CCF9F4 for ; Thu, 7 Sep 2023 11:23:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=BqncZMMfMuexM77c7pR8lVjO3+IxjD4xkbYDFo/VkqE=; b=xD44tcE/TCE1eB Yy9hP17CCD2g7twyB6Vc0I8vUoFCoMt8PDQw+khZ09aXSluM0aeVyxqtOt+p/94sX9gUu1EujTh4E N/hFSjR6cR50j/l/5qBNdu6F230aLtrp2AADJgJJmehWpHgYC69l90KCR6qG5E6qIr4ujjxljleJW +ewv9eI/KGNoilMYq1/sx1eZY6Nn5LBaTJZlTzwtuCZ2rbBIK4F2Njp3i5a3FRNoo9dBNI6GaiLSE ZcOaerxjcL3+1Oe+1jxqZ52pxfGKTNY37VHhiEYyvKCBhRUp81sFQg7WN9FgduRMSnJqJv3OXNifW bsIlWsnXJT9o4CxTC5JQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qeD6j-00C009-2K; Thu, 07 Sep 2023 11:23:33 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qeD6h-00Bzzn-05 for linux-arm-kernel@lists.infradead.org; Thu, 07 Sep 2023 11:23:32 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 967C3CE199D; Thu, 7 Sep 2023 11:23:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 329B9C116C9; Thu, 7 Sep 2023 11:23:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1694085806; bh=4PQ0r6Whs3/u2D1exHcbwHc/kzs9rZhXXMiso1efvbo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ksrmbNSGbGBhhNyTc+AzehnfRCTpmcXTJlHmQmcE1hPqvYE3dJjANmcAdOjHSw03m AXKhExpXGZFS3DFjoYo9QGzZzgpoMi4MbQF8FlkYkiGX2GaQZGBhJ/z7EY9vlFzT08 40gcfRKl8kwZsbgnGg5eoNOSI87+EKAtikEqJ2ZM= Date: Thu, 7 Sep 2023 12:23:23 +0100 From: Greg KH To: Will Deacon Cc: stable@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Joey Gouly , Robin Murphy , Mark Rutland , Catalin Marinas , John Hsu Subject: Re: [STABLE PATCH 5.15.y] arm64: lib: Import latest version of Arm Optimized Routines' strncmp Message-ID: <2023090716-extenuate-jittery-25bd@gregkh> References: <20230906180336.4973-1-will@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230906180336.4973-1-will@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230907_042331_273066_387E6393 X-CRM114-Status: GOOD ( 18.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Sep 06, 2023 at 07:03:36PM +0100, Will Deacon wrote: > From: Joey Gouly > > commit 387d828adffcf1eb949f3141079c479793c59aac upstream. > > Import the latest version of the Arm Optimized Routines strncmp function based > on the upstream code of string/aarch64/strncmp.S at commit 189dfefe37d5 from: > https://github.com/ARM-software/optimized-routines > > This latest version includes MTE support. > > Note that for simplicity Arm have chosen to contribute this code to Linux under > GPLv2 rather than the original MIT OR Apache-2.0 WITH LLVM-exception license. > Arm is the sole copyright holder for this code. > > Signed-off-by: Joey Gouly > Cc: Robin Murphy > Cc: Mark Rutland > Cc: Catalin Marinas > Cc: Will Deacon > Acked-by: Mark Rutland > Acked-by: Catalin Marinas > Link: https://lore.kernel.org/r/20220301101435.19327-3-joey.gouly@arm.com > (cherry picked from commit 387d828adffcf1eb949f3141079c479793c59aac) > Cc: # 5.15.y only > Fixes: 020b199bc70d ("arm64: Import latest version of Cortex Strings' strncmp") > Reported-by: John Hsu > Link: https://lore.kernel.org/all/e9f30f7d5b7d72a3521da31ab2002b49a26f542e.camel@mediatek.com/ > Signed-off-by: Will Deacon > --- > > This is a clean cherry-pick of the latest MTE-safe strncmp() > implementation for arm64 which landed in v5.18 and somewhat accidentally > fixed an out-of-bounds read introduced in v5.14. > An alternative would be to disable the optimised code altogether, but > given that this is self-contained and applies cleanly, I'd favour being > consistent with more recent kernels. > > arch/arm64/lib/strncmp.S | 244 +++++++++++++++++++++++---------------- > 1 file changed, 146 insertions(+), 98 deletions(-) Now queued up, thanks. greg k-h _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel