From nobody Fri Jan 19 20:27: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 4TGrl332D6z57L2M; Fri, 19 Jan 2024 20:27:27 +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 4TGrl31xSpz426K; Fri, 19 Jan 2024 20:27:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705696047; 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=u7Pi27Cm427sUJcetmhUsu0THX4WFMnGwON7w9VrmZM=; b=fGPLfEOiS0xPMRXQ5fAGaPkKY/dyYKuSVafsorJJ3Fk1GIChBa9MSOQ/pkNRd0Ka1SGY0K wWlgUDNrZd59+PYAnbtAZSp6OZuKLK9ZOE5DH7JXWJbfP61g5JdBnNXmVe7WnqFh+EGa0d nroolBSy/IKkwiV2esF/1NkOXNVpQf3f5JoKXi70UidrfluagSwAFcwLT7dhsLucUMvuzd 85tH5un1H5QBcRAwbtZJHg+xZgTIF4fAPll+9Tre81xDBRS3z3k/W5BAUUiVO3/ejEBg0p 9xKYdfs71oCBDQf9PQk9rhhoPOvBgrUm7wawXNsuUan9WlBI0WgwwIrI4+hJmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705696047; 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=u7Pi27Cm427sUJcetmhUsu0THX4WFMnGwON7w9VrmZM=; b=CPAEHnJMrbi3AUgR+jrBeeu3wDTpN3uOf9znaoMzgPnCwG/bCttxLI647AwGaG77lTT1Hu 40KK3uVgiZ1drKETKr4FyJYPTTEKf8auwOHF0sCSv7+/hqFHOcSqbo4hkpWauTF1C9t6uk T5JP54D4N4qc0IKj14tpyncC8IF1fklslo7fL9kX20Y+xDy0jcoxpKv6C3zaFkXlEei16Y LbtZQlfztVAMWiQSHUC0VCYDrY5FXtu69hYoz9ZLwYXhFjL5Vo5RQXbL0ddjp7hr+8WxNv qD4S8K198E+LQUKiPvNBjoXt55kvNNpwk8/k1mzU+gtu2090CeivultmrE+Ryg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705696047; a=rsa-sha256; cv=none; b=V/5fSkVjW9sEUrCsjMMvMVklY/T+VC/OsDErxRrQ0/bNBa7aN/3rnU3R1pyXFkZoDdM1zF bUfMpYpMtHBRLXPENGgtnp86EPQP92W4ZZSwYoy/bYn+YguAhrhA1yxEorKEGxUARg3jOO 9Zk7s0g4zLxerv/ATMXCbsmdZnczOb2UhMxyrnZrrUUlc15fQf+jYGXAP9vzLbNOqVKdn1 6srSOuLb1Hkett/wbuMaQkKCGZwYsHi11S9Q59Ag6PQutjWE+dw9oS4fSHAhimrn/6geQD 10VjSWwBXO6xCx13EZ5qhGqzjkbAf9i3dN2wzNMI4/XwXXvGxyifVgt1LE+gtA== 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 4TGrl311D8z15XV; Fri, 19 Jan 2024 20:27: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 40JKRRcf017952; Fri, 19 Jan 2024 20:27:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40JKRRDt017949; Fri, 19 Jan 2024 20:27:27 GMT (envelope-from git) Date: Fri, 19 Jan 2024 20:27:27 GMT Message-Id: <202401192027.40JKRRDt017949@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: d89317a66ff7 - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: d89317a66ff7874c9c04461739d7546e3042c0ad Auto-Submitted: auto-generated The branch stable/13 has been updated by asomers: URL: https://cgit.FreeBSD.org/src/commit/?id=d89317a66ff7874c9c04461739d7546e3042c0ad commit d89317a66ff7874c9c04461739d7546e3042c0ad Author: Alan Somers AuthorDate: 2024-01-08 01:03:40 +0000 Commit: Alan Somers CommitDate: 2024-01-19 20:27:09 +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 MFC with: bdb46c21a3e68d4395d6e0b6a205187e655532b0 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 340c54f0c949..3c14621f0b66 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_CASE_P(Io, Io, Combine(Bool(), /* async read */ Values(0x1000, 0x10000, 0x20000), /* m_maxwrite */