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 B361AC52D71 for ; Mon, 5 Aug 2024 23:31:14 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1sb7AX-00013e-Kj; Mon, 05 Aug 2024 23:31:14 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1sb7AP-00012l-Qg for linux-f2fs-devel@lists.sourceforge.net; Mon, 05 Aug 2024 23:31:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Cc:To:In-Reply-To:References:Date:Message-Id:From: Subject:Content-Transfer-Encoding:MIME-Version:Content-Type: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=53wI1vtz/QBLm69a4UGShfG7A+6U+j71RovMyXBQdj4=; b=b/jrVINlZoqGTY+S0sqxKZLg6B LhqmHd9w78r01lrxE4ppfEBdS0RZaIx91CL7Tyi1plTwk59WSiAJlx7Nt0+D87dmCftsTVQA8u5JB RhzWBWjfs3QI/tXcsvfoK0yqUfHWWVqEw8PPjkj4PAYKYL62uxLscdrNjCluR7Whqzk0=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Cc:To:In-Reply-To:References:Date:Message-Id:From:Subject: Content-Transfer-Encoding:MIME-Version:Content-Type: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=53wI1vtz/QBLm69a4UGShfG7A+6U+j71RovMyXBQdj4=; b=PNFLeJVS4Wp6Xdfyb58d7jqCUh Btlri/tm0bLXUPXlDluxxDwsd5nzdf6lmbOp8W99ZyyXsgEUTr0DV2HeRtRIpVHq55KFKdymz6hfH j0S3AKjAniMrzrLQ/6UgrHVo4UxTDKyZU+FUVFzjHUsVXloXFcZx9SkMlXC47XYCQpck=; 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 1sb7AP-0005Ab-0E for linux-f2fs-devel@lists.sourceforge.net; Mon, 05 Aug 2024 23:31:06 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 4C62ECE0C30; Mon, 5 Aug 2024 23:30:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 0BF01C4AF1C; Mon, 5 Aug 2024 23:30:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1722900652; bh=2bOiXsWKrVE2uHZy+sq7DklnFUHwG0Rbbo7m8zPxh3I=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=jhAxExI99t5ULNkFW0f1Sir0J0nqmAoAyV74XeVWlcfauAvCcVrhd5SIb416ytXwx Wg0YG403WalVA+2HhcE+TS/fsgPTnmObutdMW47MrPaqs1CNz85UMbTO3Bylp1ekaT 2ePCUxtOYoosMgMH0W7mNGN4GUmHqWOnM7nRjbpZLzOy0V84odAbnVpGJ00AVRlP1k VWGI6ayQJgLDRCQJmmCivLjhWJo3cnG3Bdp94y/1KnWEgG/aJs8QWCmcn0C8HwWkuN X2oWWeJcYIfhuUERb0za0CYOnh6YPsTby9FxyCVsvTDwNnI6Voqg6LTaQelKo5adu0 ax8oqNBSnOaYw== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 040D2D20AA6; Mon, 5 Aug 2024 23:30:52 +0000 (UTC) MIME-Version: 1.0 From: patchwork-bot+f2fs@kernel.org Message-Id: <172290065201.2803.7144786550538079483.git-patchwork-notify@kernel.org> Date: Mon, 05 Aug 2024 23:30:52 +0000 References: <20240724175158.11928-1-n.zhandarovich@fintech.ru> In-Reply-To: <20240724175158.11928-1-n.zhandarovich@fintech.ru> To: Nikita Zhandarovich X-Headers-End: 1sb7AP-0005Ab-0E Subject: Re: [f2fs-dev] [PATCH] f2fs: avoid potential int overflow in sanity_check_area_boundary() 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: lvc-project@linuxtesting.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, jaegeuk@kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net Hello: This patch was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim : On Wed, 24 Jul 2024 10:51:58 -0700 you wrote: > While calculating the end addresses of main area and segment 0, u32 > may be not enough to hold the result without the danger of int > overflow. > > Just in case, play it safe and cast one of the operands to a > wider type (u64). > > [...] Here is the summary with links: - [f2fs-dev] f2fs: avoid potential int overflow in sanity_check_area_boundary() https://git.kernel.org/jaegeuk/f2fs/c/50438dbc483c You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5C3C616D9A4; Mon, 5 Aug 2024 23:30:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722900652; cv=none; b=mbH7d6z0X0XrFIU522KIwR+UV3Ec2rcWeFQpcX/mEQrsQB3YHrwUCCEW5oztJuzLYuqjT8aH1MkEL6LYs36Jnb7oGvxq8vk9ISNBCkbide8DP4xow8IVnbADT3lq8b2UtvgXQU0VhcAWPMwdDnig+asCd4Z8y/kvAPL0QoJKH1I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722900652; c=relaxed/simple; bh=2bOiXsWKrVE2uHZy+sq7DklnFUHwG0Rbbo7m8zPxh3I=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=UaYnKUWVSvxvYAd+oyRdez8tEI9ICNxhK7/Rjd7OC4/Loih4a311K0NlXSH5T2U3oTH8Df8q6pfn05nbZnsF96MbBDaMfMi9RQFI5NLN29i1q1mTjDKPCmHckiSrCgxqT1Hl9XIywXbcufZOjuFbFjxOn1qjCDJI4Br06gi+CqU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jhAxExI9; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jhAxExI9" Received: by smtp.kernel.org (Postfix) with ESMTPS id 0BF01C4AF1C; Mon, 5 Aug 2024 23:30:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1722900652; bh=2bOiXsWKrVE2uHZy+sq7DklnFUHwG0Rbbo7m8zPxh3I=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=jhAxExI99t5ULNkFW0f1Sir0J0nqmAoAyV74XeVWlcfauAvCcVrhd5SIb416ytXwx Wg0YG403WalVA+2HhcE+TS/fsgPTnmObutdMW47MrPaqs1CNz85UMbTO3Bylp1ekaT 2ePCUxtOYoosMgMH0W7mNGN4GUmHqWOnM7nRjbpZLzOy0V84odAbnVpGJ00AVRlP1k VWGI6ayQJgLDRCQJmmCivLjhWJo3cnG3Bdp94y/1KnWEgG/aJs8QWCmcn0C8HwWkuN X2oWWeJcYIfhuUERb0za0CYOnh6YPsTby9FxyCVsvTDwNnI6Voqg6LTaQelKo5adu0 ax8oqNBSnOaYw== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 040D2D20AA6; Mon, 5 Aug 2024 23:30:52 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [f2fs-dev] [PATCH] f2fs: avoid potential int overflow in sanity_check_area_boundary() From: patchwork-bot+f2fs@kernel.org Message-Id: <172290065201.2803.7144786550538079483.git-patchwork-notify@kernel.org> Date: Mon, 05 Aug 2024 23:30:52 +0000 References: <20240724175158.11928-1-n.zhandarovich@fintech.ru> In-Reply-To: <20240724175158.11928-1-n.zhandarovich@fintech.ru> To: Nikita Zhandarovich Cc: jaegeuk@kernel.org, chao@kernel.org, lvc-project@linuxtesting.org, stable@vger.kernel.org, linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Hello: This patch was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim : On Wed, 24 Jul 2024 10:51:58 -0700 you wrote: > While calculating the end addresses of main area and segment 0, u32 > may be not enough to hold the result without the danger of int > overflow. > > Just in case, play it safe and cast one of the operands to a > wider type (u64). > > [...] Here is the summary with links: - [f2fs-dev] f2fs: avoid potential int overflow in sanity_check_area_boundary() https://git.kernel.org/jaegeuk/f2fs/c/50438dbc483c You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html