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 X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F034C433DB for ; Mon, 8 Mar 2021 11:53:14 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id C248A651A7 for ; Mon, 8 Mar 2021 11:53:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C248A651A7 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 3045E8D0029; Mon, 8 Mar 2021 06:53:13 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 2B3F48D001D; Mon, 8 Mar 2021 06:53:13 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 17C6B8D0029; Mon, 8 Mar 2021 06:53:13 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id F0B148D001D for ; Mon, 8 Mar 2021 06:53:12 -0500 (EST) Received: from smtpin05.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id B5EB78249980 for ; Mon, 8 Mar 2021 11:53:12 +0000 (UTC) X-FDA: 77896546224.05.7D5F9BC Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by imf01.hostedemail.com (Postfix) with ESMTP id 8E534200038C for ; Mon, 8 Mar 2021 11:53:12 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id B70C5AD21; Mon, 8 Mar 2021 11:53:10 +0000 (UTC) References: <20210308072510.GA902@xsang-OptiPlex-9020> User-agent: mu4e 1.4.15; emacs 27.1 From: Richard Palethorpe To: kernel test robot Cc: "huangjianan@oppo.com" , lkp@intel.com, Linux Memory Management List , Chao Yu , LKML , lkp@lists.01.org, Jaegeuk Kim , Guo Weichao , ltp@lists.linux.it Subject: Re: [LTP] [f2fs] 02eb84b96b: ltp.swapon03.fail Reply-To: rpalethorpe@suse.de In-reply-to: <20210308072510.GA902@xsang-OptiPlex-9020> Date: Mon, 08 Mar 2021 11:53:09 +0000 Message-ID: <87h7llhnfe.fsf@suse.de> MIME-Version: 1.0 Content-Type: text/plain X-Stat-Signature: tx6bsgamzbrpxt5p9igpcasmbss3wntg X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 8E534200038C Received-SPF: none (suse.de>: No applicable sender policy available) receiver=imf01; identity=mailfrom; envelope-from=""; helo=mx2.suse.de; client-ip=195.135.220.15 X-HE-DKIM-Result: none/none X-HE-Tag: 1615204392-688608 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hello, > kern :err : [ 187.461914] F2FS-fs (sda1): Swapfile does not align to section > commit 02eb84b96bc1b382dd138bf60724edbefe77b025 > Author: huangjianan@oppo.com > Date: Mon Mar 1 12:58:44 2021 +0800 > f2fs: check if swapfile is section-alligned > If the swapfile isn't created by pin and fallocate, it can't be > guaranteed section-aligned, so it may be selected by f2fs gc. When > gc_pin_file_threshold is reached, the address of swapfile may change, > but won't be synchronized to swap_extent, so swap will write to wrong > address, which will cause data corruption. > Signed-off-by: Huang Jianan > Signed-off-by: Guo Weichao > Reviewed-by: Chao Yu > Signed-off-by: Jaegeuk Kim The test uses fallocate to preallocate the swap file and writes zeros to it. I'm not sure what pin refers to? -- Thank you, Richard.