From nobody Sat Jan 20 02:01:27 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TH08S0Tb8z57vRQ; Sat, 20 Jan 2024 02:01:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TH08S02QZz4gX2; Sat, 20 Jan 2024 02:01:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705716088; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mZEA+xO0ZL+S8hsN32Dt6ftb/MDJgVTs9zMZvA3UDH0=; b=Oxw95sPziVlOiE0a4Rz7cH0OpgCWwlknvarpJncUo86/PtHtyFOVZYDcdiAI9RQLPd9xLh YINFEKCIweNY4gUKRdE8GG6Wnw+zrE+u3leWC40/JbjcolmqUstKCN0UskxpDB2qE5rycg DPD7t5kXzeJv7udSiq9eLtVnOBvEq+30t5L1x5XKjbphyINyrTC51lH/8136xz4lA9WrSp poSk6ZaoLjSZHX6Q13bBV6sbaCTOdI8N0ua77n4IjJnYALo2quEUUGqQQGXERrwdxvpcKR NvIN4/MsoAKcW274nmdconTnPADh/cuGlKZRvsaNWtaWPUXPJ0Chegof5A0bqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705716088; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mZEA+xO0ZL+S8hsN32Dt6ftb/MDJgVTs9zMZvA3UDH0=; b=TzMI1SWi37ogJA9zN7OEMuBbT+kJ2TOwVijB7u373m56XpVpKIZKpqoR+zCXOV3Vb5+TrB jbvqHKOKRRq+qXTl/EQb/sDtKWX0VzWP5YpgVkECDujVI1ToB2ws2Nn0DU+5irWA+Umiap prtXqWBAOLo9FwrH1cZkMm4BeRSIziMH9rCmb/zSvPEDyQNtdZaHm8N8whpVha/BdVan3A Z++Kvl1ixWGaXqoe6fkBwy14u+OTo/gYCDnnkhS0icmKFmQbipu3HPmR1aOi9T5+Wm5N56 Z7za8EImL7PC+s316zoxonprp/qf+aB1oe6UrinYZGnishQchm/QjB8KIaOhoQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705716088; a=rsa-sha256; cv=none; b=wHyTtqkyPMJcxNvcNX4LYh3v32hc3QH5LTsGzMfkvpgbUT4ozPbQbI2m6zcBx76Cft7WlR KMnAVdhhkhIdeEz6HA5Wdolw6BrZTYUb1/ihvHDeGWKsAzXMij9o1saMgu9JVMK29Q43ql vG20LsZ1QlzExOVfCrRyI4E4XI6B40diWBfQAE3Ct9etg1Ujx3U4YaFl1tMeReK/k4UCk9 azi0qZp6OEgiFUKDoVTJ/1kY5oSw4x+JzzbhNzg6tObiMb8UvSHToTc0qELDJh98gThdnG ojSMpvAaGTgYUhY/K+O51B03nuleFsp7rZpF86VyZ8YqbYSNMNOQWyJyvy4CjQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TH08R6C3fzGhb; Sat, 20 Jan 2024 02:01:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40K21Rch085442; Sat, 20 Jan 2024 02:01:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40K21Rem085439; Sat, 20 Jan 2024 02:01:27 GMT (envelope-from git) Date: Sat, 20 Jan 2024 02:01:27 GMT Message-Id: <202401200201.40K21Rem085439@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alan Somers Subject: git: 62f890cfbc35 - stable/14 - Add a regression test for PR 276191. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: asomers X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 62f890cfbc358160ef42f11de78ad2015a6885cb Auto-Submitted: auto-generated The branch stable/14 has been updated by asomers: URL: https://cgit.FreeBSD.org/src/commit/?id=62f890cfbc358160ef42f11de78ad2015a6885cb commit 62f890cfbc358160ef42f11de78ad2015a6885cb Author: Alan Somers AuthorDate: 2024-01-08 01:03:40 +0000 Commit: Alan Somers CommitDate: 2024-01-20 02:01:14 +0000 Add a regression test for PR 276191. The bug isn't fusefs-specific, but this is the easiest way to reproduce it. PR: 276191 Differential Revision: https://reviews.freebsd.org/D43446 Reviewed by: kib (cherry picked from commit 6b1c534927ad47e9b0dd8be1a39f56c3ea813d44) --- tests/sys/fs/fusefs/io.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/sys/fs/fusefs/io.cc b/tests/sys/fs/fusefs/io.cc index b17d3857d327..fda13a72cc4c 100644 --- a/tests/sys/fs/fusefs/io.cc +++ b/tests/sys/fs/fusefs/io.cc @@ -507,6 +507,16 @@ TEST_P(Io, resize_a_valid_buffer_while_extending) close(m_test_fd); } +/* + * mmap of a suitable region could trigger a panic. I'm not sure what + * combination of size and offset counts as "suitable". Regression test for + * https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276191 + */ +TEST_P(IoCacheable, vnode_pager_generic_putpage_clean_block_at_eof) +{ + do_mapwrite(0x1bbc3, 0x3b4e0); +} + INSTANTIATE_TEST_SUITE_P(Io, Io, Combine(Bool(), /* async read */ Values(0x1000, 0x10000, 0x20000), /* m_maxwrite */