From patchwork Tue Jun 11 03:01:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luis Chamberlain X-Patchwork-Id: 13692785 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 695D4C27C5F for ; Tue, 11 Jun 2024 03:02:12 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E41836B00A4; Mon, 10 Jun 2024 23:02:10 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DD0A26B00A7; Mon, 10 Jun 2024 23:02:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BCED66B00A4; Mon, 10 Jun 2024 23:02:10 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 970E76B00A5 for ; Mon, 10 Jun 2024 23:02:10 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 37D1B40F36 for ; Tue, 11 Jun 2024 03:02:10 +0000 (UTC) X-FDA: 82217108820.17.4EA1A69 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) by imf29.hostedemail.com (Postfix) with ESMTP id 2A4F9120013 for ; Tue, 11 Jun 2024 03:02:07 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b="4n/lf1oW"; dmarc=fail reason="No valid SPF, DKIM not aligned (relaxed)" header.from=kernel.org (policy=none); spf=none (imf29.hostedemail.com: domain of mcgrof@infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=mcgrof@infradead.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1718074928; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=9RM3vjzmjAobwuLxz8ZQRvUyOdPhKCxxjyRaVyb0Z5A=; b=VEF7H7s3SjCNz7KCK0anEENbUburMNwFHoaFJ4GDifBDQpN0IDtCpkgJQkzp9QbXEoQB/h AGSNNKgLZaZqGK7QbnSgP/6Yfzmk1SQy4e7sxcTreO/OeFBlheTU8IvtjY9hcnemNqtsB0 Q6MS7Oh9ScUWBZc2CdJCwEIHHeHY694= ARC-Authentication-Results: i=1; imf29.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b="4n/lf1oW"; dmarc=fail reason="No valid SPF, DKIM not aligned (relaxed)" header.from=kernel.org (policy=none); spf=none (imf29.hostedemail.com: domain of mcgrof@infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=mcgrof@infradead.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1718074928; a=rsa-sha256; cv=none; b=AsN5rCEpBRbFz289RRIQ/CYaGH6LU7q9P6BercpLaFHQBbpypI9RzWWnfZYt/yKY1YFZ1y c5PIbzJn+VWQpoCG1h4cdVPeZDs6vY98XfH6A6soGcmiTBai+ACi5giLWTUQThVDweOAqn +IgXOzUe0mpLipdEfr94Kk1h5hrMQZ8= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=9RM3vjzmjAobwuLxz8ZQRvUyOdPhKCxxjyRaVyb0Z5A=; b=4n/lf1oWQH5UU/63ZEnWp1yh3i +//Jt2MNPNW7NX2depPPwAHGhixJkiy6ylNRAjp4VEBktfwLjhguZ7oW5x28+7ZjRgx5q2qJUNjvg irCOgK/E29G/7G7ctxb0VExdKu7VAyUePtdikaJezav1lgvgZBNQXPtEqh+eZv8OulpP98QDLaLrt +WOMdyi0K+1Oru3fl5EbAj7cagJ/IkZUf87EdI77OPusl0qp02WyK70DmJSuj+yCQIa6DGgQAjX2o scvBOckbWKE95rtL/QML7dVAw7ogMdpTOgVlZiDGzqhUnFQKSAAHzWLFYwOghe546ErEr4UPdFYJ6 uBlcRQew==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1sGrls-00000007DDE-1UsV; Tue, 11 Jun 2024 03:02:04 +0000 From: Luis Chamberlain To: patches@lists.linux.dev, fstests@vger.kernel.org Cc: linux-xfs@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, akpm@linux-foundation.org, ziy@nvidia.com, vbabka@suse.cz, seanjc@google.com, willy@infradead.org, david@redhat.com, hughd@google.com, linmiaohe@huawei.com, muchun.song@linux.dev, osalvador@suse.de, p.raghav@samsung.com, da.gomez@samsung.com, hare@suse.de, john.g.garry@oracle.com, mcgrof@kernel.org Subject: [PATCH 0/5] fstests: add some new LBS inspired tests Date: Mon, 10 Jun 2024 20:01:57 -0700 Message-ID: <20240611030203.1719072-1-mcgrof@kernel.org> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 X-Rspamd-Queue-Id: 2A4F9120013 X-Stat-Signature: kgyphsbnmc7jimed977wrmtd1jax5fs1 X-Rspam-User: X-Rspamd-Server: rspam11 X-HE-Tag: 1718074927-652830 X-HE-Meta: U2FsdGVkX1/Z+nFT+SvvTlfh8hSlbbebURusarV5MIHxLiCFK2I4OXFa9ajLAN8lrq+YTilPvhINLJXAfLv2HOQzE3K36rxTuFYkJWG/PaCRpFmXKrvSNz3HhiAKxn5zJQUOyE/LN/pTtLhynYJkk32YHS4E9JKrzWmpvhE1slg5XIskePg+N/Qx5IlzMtoJ1Jq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vyAa3CJJlVwfQ+wE5sDhBgJ2Q1i0O0uErCDk08HOC6ZxYjqagg== 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: List-Subscribe: List-Unsubscribe: While working on LBS we've come accross some existing issues, some of them deal existing kernels without LBS, while the only new corner case specific to LBS is the xarray bug Willy fixed to help with truncation to larger order folios and races with writeback. This adds 3 new test to help reproduce these issues right away. One test reproduces an otherwise extremely difficult to reproduce deadlock, we have one patch fix already merged to help with that deadlock, however the test also also gives us more homework todo, as more deadlocks are still possible with that test even on v6.10-rc2. The mmap page boundary test let's us discover that a patch on the LBS series fixes the mmap page boundary restriction when huge pages are enabled on tmpfs. This is a corner case POSIX semantic issue, so likley not critical to most users. The fsstress + compaction test reproduces a really difficult to reproduce hang which is possible without some recent fixes, however the test reveals there is yet more work is left to do. The stress truncation + writeback test is the only test in this series specific to LBS, but likely will be useful later for other future uses in the kernel. Luis Chamberlain (5): common: move mread() to generic helper _mread() fstests: add mmap page boundary tests fstests: add fsstress + compaction test _require_debugfs(): simplify and fix for debian fstests: add stress truncation + writeback test common/rc | 54 +++++++++- tests/generic/574 | 36 +------ tests/generic/749 | 238 ++++++++++++++++++++++++++++++++++++++++++ tests/generic/749.out | 2 + tests/generic/750 | 62 +++++++++++ tests/generic/750.out | 2 + tests/generic/751 | 127 ++++++++++++++++++++++ tests/generic/751.out | 2 + 8 files changed, 490 insertions(+), 33 deletions(-) create mode 100755 tests/generic/749 create mode 100644 tests/generic/749.out create mode 100755 tests/generic/750 create mode 100644 tests/generic/750.out create mode 100755 tests/generic/751 create mode 100644 tests/generic/751.out