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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DD247C43334 for ; Mon, 27 Jun 2022 11:00:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234268AbiF0LAf (ORCPT ); Mon, 27 Jun 2022 07:00:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233658AbiF0LAe (ORCPT ); Mon, 27 Jun 2022 07:00:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52CD710FE for ; Mon, 27 Jun 2022 04:00:34 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E562161361 for ; Mon, 27 Jun 2022 11:00:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB56FC3411D; Mon, 27 Jun 2022 11:00:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656327633; bh=2rMl6l+HHp2KZkdnUKVulAv5wfOt6ch1NbDSk8U2UhQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NVQm+9XC60E9x2asjQEkMg2wdB5+5Olp1LpGbEXiuxqaOqHBe6w/Zb5eXsVog7pHe 8TN347SrCc7qOsLCqGlh3Na/s8nmxdCIl3vml9XxaYUi9yXoFKq7FDcafsy7KUPegP GYTG8HTb1hMtn4+7sc3HAqxt9vNllg5tIGsv2p+E= Date: Mon, 27 Jun 2022 13:00:30 +0200 From: Greg KH To: Arnd Bergmann Cc: Yangxi Xiang , "# 3.4.x" Subject: Re: [PATCH] asm-generic: fix buffer overflow read in __strncpy_from_user Message-ID: References: <20220627093810.1352-1-xyangxi5@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Mon, Jun 27, 2022 at 12:19:18PM +0200, Arnd Bergmann wrote: > On Mon, Jun 27, 2022 at 11:38 AM Yangxi Xiang wrote: > > > > > Which architectures do you mean? I don't see any architecture using > > > asm-generic/uaccess.h without setting GENERIC_STRNCPY_FROM_USER > > > before commit 98b861a30431 or the prior release. > > > > I am a user of LibOS, which uses this __strncpy_from_user. > > Ok, got it. This should be part of the changelog then when you send a > patch for stable kernels. You should also indicate that the code was > removed in mainline kernels and what the fix was there, as well as > which of the older kernels need the fix. But libos isn't part of the kernel tree, that's an out-of-tree change that we can't control here, right? How is that relevant for stable kernels and why can't it just be added to the libos patchset? thanks, greg k-h