From: Chao Yu Subject: Re: [PATCH v2] f2fs: fix potential corruption in area before F2FS_SUPER_OFFSET Date: Mon, 29 Jan 2018 19:50:18 +0800 Message-ID: <60b892c7-2f47-110b-751b-71be7e22057f@huawei.com> References: <20180129080418.33490-1-shengyong1@huawei.com> <20180129111315.44332-1-shengyong1@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from sfi-mx-4.v28.ch3.sourceforge.com ([172.29.28.194] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1eg7xa-0005BV-G1 for linux-f2fs-devel@lists.sourceforge.net; Mon, 29 Jan 2018 11:50:50 +0000 Received: from szxga05-in.huawei.com ([45.249.212.191] helo=huawei.com) by sfi-mx-4.v28.ch3.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) id 1eg7xW-0007i8-Cc for linux-f2fs-devel@lists.sourceforge.net; Mon, 29 Jan 2018 11:50:50 +0000 In-Reply-To: <20180129111315.44332-1-shengyong1@huawei.com> Content-Language: en-US List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net To: Sheng Yong , jaegeuk@kernel.org Cc: linux-f2fs-devel@lists.sourceforge.net On 2018/1/29 19:13, Sheng Yong wrote: > sb_getblk does not guarantee the buffer head is uptodate. If bh is not > uptodate, the data (may be used as boot code) in area before > F2FS_SUPER_OFFSET may get corrupted when super block is committed. > > Signed-off-by: Sheng Yong Reviewed-by: Chao Yu Thanks, ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot