Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1546220pxb; Thu, 28 Jan 2021 21:25:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJxHKbyzWOXr9aTtX7NI2snDlvwfmzVLWa5gwKM0fo3t7aQVXMNsdZ8teQnt2lF5jWHozsHO X-Received: by 2002:a17:906:d7:: with SMTP id 23mr2881795eji.108.1611897953125; Thu, 28 Jan 2021 21:25:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611897953; cv=none; d=google.com; s=arc-20160816; b=b7w9M6xYlp6VMGTO1wW0HB0IfS+nyS77YZoBTeGszyIINI5RpsGfkICk1RYomeWta/ 8zYp1nYOG2XDVDVMyr5H85Jw1uDV9J93itjuDs5AO1j9+ZhHAUf/BDkO54oOa+z/G88I PWmNh1c+vHqV/TZ1rGE7T/wdMkYiafOjm6Mqu2dHqR62v0wi3DvA053R6Gy6YnFrRAUx ue+hjAFTLWN/ZokcOFPpI7qhbM0nV1fDOXSTUxqdT34CuSDq42q//OAHGxNwUC7E7qJ9 SYtQ7VVObxxyzG62WKPWnpcBl6d6i4ehhimK7jB+jF2eveAhHWUMXcqIt1PyOaG0Cn7R OugA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:auto-submitted :content-transfer-encoding:references:in-reply-to:message-id:date :subject:to:from:dkim-signature; bh=slOx4FGgLtAepjyTjEzIB47GO4LhWTSw6rbMT+Fiqp8=; b=eqk/EtB0OqrVRB91VjTWRNlB8eleCp5ymCgcl6HtQVlcJ7wGA4o6YrHkjPSxT1IYQ3 6cSpp/DWknoJozObfNTcIo910FvSj8KdmyhNaxheVN5Dea9FFL2+KPJfGtIdu2IdnqVH 6i8EESU4+5KS4+0FoXI8Wjgu6g/zxdaHC4s83axrCTqqDOuYL/3rMW0ljBvp3oE3dNDx /T2FpHVqeCYYl+12yYKgN+c268tQBrm36bDhk1D/wOCIMYnKI+TjGIzWcracIIIJACAh RTav8WQCgD0Jgi4uiJkK6AOo82II9FtCoxmg+eN8CVxyZKJ/y1+NwC15bMNss2sglPY0 QA0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aDE7l9q9; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h11si4441852edb.93.2021.01.28.21.25.18; Thu, 28 Jan 2021 21:25:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aDE7l9q9; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229463AbhA2FYf (ORCPT + 99 others); Fri, 29 Jan 2021 00:24:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:55346 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbhA2FYf (ORCPT ); Fri, 29 Jan 2021 00:24:35 -0500 Received: by mail.kernel.org (Postfix) with ESMTPS id 5E9AC64E02 for ; Fri, 29 Jan 2021 05:23:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611897834; bh=mD6FWEmcUGH8F5GWoqYYRSWM1panHWYtzXAyyh1Jhuw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=aDE7l9q9jVCy7u4h6GSdP7+PKLpMZcIhbJG1P/Frz5CttBmvvLo7Ucgg0TqHr+eZt SDHFgBiZxOgQAWlDBIlvFmtqgOhQ/qTaaIVwdZGAy3hZKA4c5XDkqAVq7Gu8zB2Grj ipwzo8Bz6of4tEcicsXWPPZkkVYsRF3GGnr0C9fk6wAmK/4dtADmZWSMcJOoyIQ+VM Rg7F6mFVAPuAUheaTpMFlw4g3KIz8DsgB29LpWjzUduHAIHDnKvTZpkP2decpLXCpB u/CdDjvaA/axWYcMAuB+Xon8B9hIRV2b2Wje3IigLvB5U8YtalB0vrLGmU2tsj8G/e 6TE8l099XUs5w== Received: by pdx-korg-bugzilla-2.web.codeaurora.org (Postfix, from userid 48) id 46FE965303; Fri, 29 Jan 2021 05:23:54 +0000 (UTC) From: bugzilla-daemon@bugzilla.kernel.org To: linux-ext4@vger.kernel.org Subject: [Bug 211315] [aarch64][xfstests/ext3 generic/472] swapon: Invalid argument Date: Fri, 29 Jan 2021 05:23:54 +0000 X-Bugzilla-Reason: None X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: AssignedTo fs_ext3@kernel-bugs.osdl.org X-Bugzilla-Product: File System X-Bugzilla-Component: ext3 X-Bugzilla-Version: 2.5 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: neolorry+bugzilla.kernel.org@googlemail.com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: fs_ext3@kernel-bugs.osdl.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugzilla.kernel.org/ Auto-Submitted: auto-generated MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org https://bugzilla.kernel.org/show_bug.cgi?id=3D211315 --- Comment #2 from bxue (neolorry+bugzilla.kernel.org@googlemail.com) --- (In reply to riteshh from comment #1) > Hello, >=20 > Thanks for reporting this. > Ok, so earlier I thought I tested this on Power (pagesize=3D64K). > But it seems I had only tested with 1K blocksize but not with 2K. > On retrying it again with ext3 with 2K blocksize, I see it could be=20 > reproduced on latest kernel on Power as well (where pagesize is 64K). > (gcc version 8.4.0) >=20 > I will look more into what is causing this, but it seems it may be > coming from below path :- >=20 > static int setup_swap_map_and_extents() > <...> >=20 > if (!nr_good_pages) { > pr_warn("Empty swap-file\n"); > return -EINVAL; > } > <...> >=20 >=20 > BTW, is ext3 with 2K bs some default configuration you use often on=20 > arch64. Or was it mostly for testing purpose only? Thanks for looking into this report. It's for test purpose. ext3 isn't our default fs, we just do regular QA tes= ting on aarch64 with ext3 1k/2k/4k blksize. -bxue >=20 > -ritesh >=20 >=20 > On 1/22/21 4:19 PM, bugzilla-daemon@bugzilla.kernel.org wrote: > > https://bugzilla.kernel.org/show_bug.cgi?id=3D211315 > >=20 > > Bug ID: 211315 > > Summary: [aarch64][xfstests/ext3 generic/472] swapon: Inval= id > > argument > > Product: File System > > Version: 2.5 > > Kernel Version: 5.11.0-0.rc4.20210120git45dfb8a5659a.131.eln108.aa= rch6 > > 4 > > Hardware: ARM > > OS: Linux > > Tree: Mainline > > Status: NEW > > Severity: normal > > Priority: P1 > > Component: ext3 > > Assignee: fs_ext3@kernel-bugs.osdl.org > > Reporter: neolorry+bugzilla.kernel.org@googlemail.com > > Regression: No > >=20 > > xfstests generic/472 fails on ext3 on the latest kernel > > (kernel-5.11.0-0.rc4.20210120git45dfb8a5659a.131.eln108.aarch64 from > > https://koji.fedoraproject.org/koji/buildinfo?buildID=3D1671933). This = only > > happens on aarch64 and ext3 with 2048 block size. I can reproduce it on > > kernel-4.18 based RHEL-8 kernel as well. > >=20 > > log > > ``` > > # ./check -d -T generic/472 > > FSTYP -- ext3 > > PLATFORM -- Linux/aarch64 15-vm-16 > > 5.11.0-0.rc4.20210120git45dfb8a5659a.131.eln108.aarch64 #1 SMP Wed Jan = 20 > > 23:39:54 UTC 2021 > > MKFS_OPTIONS -- -b 2048 /dev/vda3 > > MOUNT_OPTIONS -- -o rw,relatime,seclabel -o > > context=3Dsystem_u:object_r:root_t:s0 > > /dev/vda3 /scratch > >=20 > > generic/472 103s ... [05:31:22]QA output created by 472 > > regular swap > > too long swap > > tiny swap > > swapon: Invalid argument > > [05:32:15]- output mismatch (see > > /tmp/tmp.6xoJizCZKc/repo_xfstests/results//generic/472.out.bad) > > --- tests/generic/472.out 2021-01-22 01:31:23.045484313 -0500 > > +++ /tmp/tmp.6xoJizCZKc/repo_xfstests/results//generic/472.out.bad > > 2021-01-22 05:32:15.217684365 -0500 > > @@ -2,3 +2,4 @@ > > regular swap > > too long swap > > tiny swap > > +swapon: Invalid argument > > ... > > (Run 'diff -u /tmp/tmp.6xoJizCZKc/repo_xfstests/tests/generic/472.= out > > /tmp/tmp.6xoJizCZKc/repo_xfstests/results//generic/472.out.bad' to see= the > > entire diff) > > Ran: generic/472 > > Failures: generic/472 > > Failed 1 of 1 tests > > ``` > >=20 > > 472.full > > ``` > > # cat /tmp/tmp.6xoJizCZKc/repo_xfstests/results//generic/472.full > > Creating filesystem with 5767168 2k blocks and 720896 inodes > > Filesystem UUID: 97619060-f6ec-4ed0-8984-01b4aefe86f8 > > Superblock backups stored on blocks: > > 16384, 49152, 81920, 114688, 147456, 409600, 442368, 802816, > > 1327104, > > 2048000, 3981312, 5619712 > >=20 > > Allocating group tables: done > > Writing inode tables: done > > Creating journal (32768 blocks): done > > Writing superblocks and filesystem accounting information: done > >=20 > > regular swap > > /usr/bin/chattr: Operation not supported while setting flags on > /scratch/swap > > wrote 2097152/2097152 bytes at offset 0 > > 2 MiB, 512 ops; 0.1898 sec (10.534 MiB/sec and 2696.7097 ops/sec) > > too long swap > > /usr/bin/chattr: Operation not supported while setting flags on > /scratch/swap > > wrote 2097155/2097155 bytes at offset 0 > > 2 MiB, 513 ops; 0.1231 sec (16.241 MiB/sec and 4165.7531 ops/sec) > > tiny swap > > /usr/bin/chattr: Operation not supported while setting flags on > /scratch/swap > > wrote 196608/196608 bytes at offset 0 > > 192 KiB, 48 ops; 0.0130 sec (14.338 MiB/sec and 3670.5666 ops/sec) > > swapoff: /scratch/swap: swapoff failed: Invalid argument > > ``` > >=20 > > xfstests local.config > > ``` > > FSTYP=3D"ext3" > > TEST_DIR=3D"/test" > > TEST_DEV=3D"/dev/vda4" > > SCRATCH_MNT=3D"/scratch" > > SCRATCH_DEV=3D"/dev/vda3" > > LOGWRITES_MNT=3D"/logwrites" > > LOGWRITES_DEV=3D"/dev/vda6" > > MKFS_OPTIONS=3D"-b 2048" > > MOUNT_OPTIONS=3D"-o rw,relatime,seclabel" > > TEST_FS_MOUNT_OPTS=3D"-o rw,relatime,seclabel" > > ``` > >=20 > > 64k page size > > ``` > > # getconf PAGESIZE > > 65536 > > ``` > >=20 > > fdisk -l > > ``` > > # fdisk -l /dev/vda > > Disk /dev/vda: 100 GiB, 107374182400 bytes, 209715200 sectors > > Units: sectors of 1 * 512 =3D 512 bytes > > Sector size (logical/physical): 512 bytes / 512 bytes > > I/O size (minimum/optimal): 512 bytes / 512 bytes > > Disklabel type: gpt > > ``` > >=20 > > xfstests version > > ``` > > # git rev-parse HEAD > > 4767884aff19e042ee3be51c88cf2c27a111707e > > # cat .git/config > > [core] > > repositoryformatversion =3D 0 > > filemode =3D true > > bare =3D false > > logallrefupdates =3D true > > [remote "origin"] > > url =3D git://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git > > fetch =3D +refs/heads/*:refs/remotes/origin/* > > [branch "master"] > > remote =3D origin > > merge =3D refs/heads/master > > ``` > >=20 > > e2fsprogs version > > ``` > > # rpm -q e2fsprogs > > e2fsprogs-1.45.6-1.el8.aarch64 > > ``` > > --=20 You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.=