Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1680447pxb; Mon, 8 Mar 2021 03:54:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJyRmds6d5oTMFmpXgUw9pXuviogCHcFwLfecQ/7tUDrLE/FVY8gtBKSq3ghiQgQiZDyP57c X-Received: by 2002:aa7:cd16:: with SMTP id b22mr2544023edw.357.1615204496263; Mon, 08 Mar 2021 03:54:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615204496; cv=none; d=google.com; s=arc-20160816; b=WUGCxyGi0+8OEVkNyS2Q6ETcJESvVfEEJbh0lvdbCW5yqYqsEWENZ/2O7XTG7t9S0C MtVE0jPSXXePZr+80JVe6s4JxJSp8J+Ygz3sNxkWmv+rRVMjgCiEbVR+LMUC6iPxQWU7 nUR+Jn/rHJzJk6waGUrTE4/P+tPnyZv7drIurJpd9srOANkxCp7HZaVI1Ni0k1UCDajw agy0shZ3dfC/dh1DIsIR7/2EJV9QEv6FCeihEf1lEUGMh2+O/FAAvBpxAdFJimWcl07s qiseGp9/zGRzm+yceZOtowh5T0GjfYWobZHFOMxtR79/efNgQ95DSHoVwjWXxDCFzG9G OjVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:in-reply-to :reply-to:subject:cc:to:from:user-agent:references; bh=l5ZcY8UpmJ4WW9RTC4g+VlsyJdhgNAP11v/LQmWWqG4=; b=jcYoQ/kYuvrms+Q0sddB2Br6CkNb+jckIEdN0BgG9IjSxI1YV7RoIpjt7Nr8Vidtur KMhkNRMTpIvRYKuMjOhpRBNFawF8/5qKa/CfVJsAh8wB/fYOTKEEGu2MKl1Y+cyqGEfr TPs4sxcpxHkhmo/RU7CdH4iWs8AJyUe23Qv+46yKOXDMQUHfTISi2o1lFAVdpbQCo5gE vtu/AmLEG42jJAi0dUkzqX2t5aBpJ6mTF2X01fBoLLDAGDgi/qdnpCDvj8L8atIqugMW HtxFh0GKzq4VXM/RtKcQW8Febje1n2fBj/nJrqLVLPqCBOV1Xw+Rdsb9NjOxz6xy8Moz jOJg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j11si7831778edj.481.2021.03.08.03.54.34; Mon, 08 Mar 2021 03:54:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231445AbhCHLx3 (ORCPT + 99 others); Mon, 8 Mar 2021 06:53:29 -0500 Received: from mx2.suse.de ([195.135.220.15]:45616 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231184AbhCHLxL (ORCPT ); Mon, 8 Mar 2021 06:53:11 -0500 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.