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 lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (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 8CBE5C27C79 for ; Tue, 18 Jun 2024 01:05:31 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-3.v29.lw.sourceforge.com) by sfs-ml-3.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1sJNHv-0008SE-Qg; Tue, 18 Jun 2024 01:05:31 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-3.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1sJNHu-0008S7-AM for linux-f2fs-devel@lists.sourceforge.net; Tue, 18 Jun 2024 01:05:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: From:References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=EgkRo4+7PWRywE13Kcht2ikhqshS2S5qOJzq7Ozi/HQ=; b=fReT9uw9hFkWgn3QmS+51eVjX3 sbmgAD4sYcWeAWJ+/7m2oGD4/5yyZrJT5bg9I1lqeFCeTPaK6nQql1kN81JwVtwtQ13DO7DEDVdyy k8746dFdV/Szb1ogb3UbbNXiSBuW1Tb6vd8AargwxmCEUiqjYgLvj9j3rAoaTC5HWi3g=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=EgkRo4+7PWRywE13Kcht2ikhqshS2S5qOJzq7Ozi/HQ=; b=U00AVC+vp1HQDwIjseQjqgUuPG tPPunDDTAbgbueVCCoL+ckTp1IPoaw/u1WnPOHUqcN3teAoxoKVmDa7SusnBZxFKpGAXURfstOEAI sN6+qZVXxlRDRLfEq7m2QXHBoAx0UGvEfDxyhEw8spYQfBXzaUkIobIqVOYUmjxxRsCA=; Received: from sin.source.kernel.org ([145.40.73.55]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1sJNHt-0006BM-Nd for linux-f2fs-devel@lists.sourceforge.net; Tue, 18 Jun 2024 01:05:29 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 4E3D6CE1686; Tue, 18 Jun 2024 01:05:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0654C2BD10; Tue, 18 Jun 2024 01:05:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718672716; bh=SAkpgrEbrLfBSD9HlN2+JeG8+6Qho66P/tm5pyVKlbg=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Q+2rj0fG5LFyr0zi0IQWX3YKmUR545oouD7b3nnRp+VOK6HvTp9rlyg9LDu70bmcI gZufrn/4njTDoVnLIJNFTlsTRhP2QVgXUlIctzHMK5JaDlWNbMhGp7/YEXfa17s9Dd H7bK31MQG5uoUfcgnfy5XbrpKY1TCEHrDj8+GiZIhpK59rab/STKqWgjb6WsfvPrDj POO4Juq2w+dmZX3DOEo3hcTeBwdpPkuATJCGBGKUv1n0BR2UVt5aMJQupLVl3LC8pm PWoP8rHfPM9vjSn1eXWSAlQ9JwDgfHv+zZ6BwaYI5eS51xlj7DsgbywkIOdwxzMrmb chlvze7jXRQCQ== Message-ID: Date: Tue, 18 Jun 2024 09:05:12 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: Xiuhong Wang , jaegeuk@kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org References: <20240612071749.348843-1-xiuhong.wang@unisoc.com> Content-Language: en-US From: Chao Yu In-Reply-To: <20240612071749.348843-1-xiuhong.wang@unisoc.com> X-Headers-End: 1sJNHt-0006BM-Nd Subject: Re: [f2fs-dev] [PATCH 1/1] f2fs-tools: use atoll replace atoi to avoid data truncate X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: ke.wang@unisoc.com, xiuhong.wang.cn@gmail.com Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net On 2024/6/12 15:17, Xiuhong Wang wrote: > If input exceeds int range, data will be truncated, such as lseek: > unisoc:/data # ./f2fs_io lseek set 3221225000 file > returned offset=2147483647 > The offset is truncated. > > After patch: > unisoc:/data # ./f2fs_io lseek set 3221225000 file > returned offset=3221225000 > > Signed-off-by: Xiuhong Wang > Signed-off-by: Zhiguo Niu Reviewed-by: Chao Yu Thanks, _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel