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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D02D2C433FE for ; Thu, 20 Oct 2022 09:49:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229956AbiJTJtn (ORCPT ); Thu, 20 Oct 2022 05:49:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229718AbiJTJtd (ORCPT ); Thu, 20 Oct 2022 05:49:33 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3137226FC; Thu, 20 Oct 2022 02:49:23 -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 ams.source.kernel.org (Postfix) with ESMTPS id 5AC31B8269E; Thu, 20 Oct 2022 09:49:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B8456C433D6; Thu, 20 Oct 2022 09:49:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666259360; bh=7h0QGpJnCc0vidIZ0+ecsmfVGx8Hw0AmYaoBuW2o/hE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=w+fAnxcTKy2pgsxndjRBGZHEkTYpANsfABAzcDnLosNy6SGsTxOdlF5psr6o+/oUb V8tTZO2C2zeYDvaur7X60ARuxret9TFwCG9GTfEpe8NtkhyraGjXIkELQ/7cmId/5m bctNPyh36nWfSP/4ygqxAvsavi1MYv+i2OWR7piw= Date: Thu, 20 Oct 2022 11:49:17 +0200 From: Greg KH To: cuijinpeng666@gmail.com Cc: akpm@linux-foundation.org, liushixin2@huawei.com, deller@gmx.de, cui.jinpeng2@zte.com.cn, guoren@kernel.org, wangkefeng.wang@huawei.com, jakobkoschel@gmail.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Zeal Robot Subject: Re: [PATCH linux-next] fs/proc/kcore.c: Use strscpy() instead of strlcpy() Message-ID: References: <20221020092044.399139-1-cui.jinpeng2@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221020092044.399139-1-cui.jinpeng2@zte.com.cn> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 20, 2022 at 09:20:44AM +0000, cuijinpeng666@gmail.com wrote: > From: Jinpeng Cui > > The implementation of strscpy() is more robust and safer. > > Reported-by: Zeal Robot > Signed-off-by: Jinpeng Cui Please ignore based on this response: https://lore.kernel.org/r/Y1EVnZS9BalesrC1@kroah.com