From nobody Sat Jan 13 22:47:44 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 4TCD7j1C8Jz56rwS; Sat, 13 Jan 2024 22:47:45 +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 4TCD7j0SSdz4ZNB; Sat, 13 Jan 2024 22:47:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705186065; 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=FrgVKFMUoBc0i0GMyeeq+4nPvtAGrCOG9LYMlisBkWU=; b=XGQ+/9nFyEfjecGwDF/Jy3w7nSgXMyqmtsluhGfcdRQ6EwPbF3zRQVChwrFLywUOqBCLzi sDzO3SKHPZ8YVp+MTvzpFzggkDpfc1o2dUcKCUUAANFxYq21PDpVWO2RwB04uKRsaWaSwD K3WcBdmc0IaaTx+3Yq8aKPtb/x8TBWHib0V3ZGoeG38W5zl7nSFhbgYRo0ufnCQCG5WtrE QRPKhSFBbvcXtukrxjwWeTagtxpPnL5h+CRCSKccKRUKAvU8R8y64PcR4hWxHOJ1cVuBM2 Fd7e4+DAiyWB6Ce3XpW26+XQh8UaTkVYCU98hO7+js+MXn9Cttp2oPBWb/uQJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705186065; 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=FrgVKFMUoBc0i0GMyeeq+4nPvtAGrCOG9LYMlisBkWU=; b=Z9wkZhrw9ng4nY6zwepqHmZp/vq3lxaXGRT7WDqTaA4kJQzEiatd9zDHByG4YMINSdHxdA 9bO4W9j6rLJ7JXQlvroIpIEIkbRzU9X/y5V+s0PF144781XYQ0HJzDMAI9dFu6o+ptw04G RptjlIELHWbwkaEvwSAHSC5Uc4ou6i1yPDGzA8PGCRE9av557PAuGNE1qn7QqOSYOnjIyU 3WxruZ3bPC0mtR7F8Hrbs5gPwZjWb2G7tx+5EL3BQvJg40O/bDiYOdw5vGA9crqEyH1YO7 X8otUQqLGQWSiVduKEWJPn5Robf7xgHpeDLtMC/chgvg8j1UvzGLUDlfM0TSeA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705186065; a=rsa-sha256; cv=none; b=Z/O/KoyOi9k9or501OGYBM+nh4PzyhAwzPvAHUJ070mgXl6+8XfifKyJ8zrdsvJPaX8Wqc Uu5x2uXtEdffaq2pL/ek+Ug7J00BJlQaRXNQAFsAafpgfy39l51lZY3pujFt2HxEQ/EQoz a4/+lHHfeIZWpi1lirrK8ltiyhxf/bw0hHIT+uxruiuOVSfSzvOX0XcwcTM9MqIK2sxs2P 4qEBI6jjsnp5B9JI0w+C8pFHmGsggR+LLCyfNbpZP3Ptfr9At/DpnzinV7HStUMMVNwqeA 5G8kBTZquXaoGpBf7xbO7Kcl9TNaE6r7CaFHN4tGgKi3R8Wx+r0c0MJTdnTPwA== 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 4TCD7h6XJtznxV; Sat, 13 Jan 2024 22:47:44 +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 40DMliNn009199; Sat, 13 Jan 2024 22:47:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40DMliUN009196; Sat, 13 Jan 2024 22:47:44 GMT (envelope-from git) Date: Sat, 13 Jan 2024 22:47:44 GMT Message-Id: <202401132247.40DMliUN009196@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Alan Somers Subject: git: 6b1c534927ad - main - 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/main X-Git-Reftype: branch X-Git-Commit: 6b1c534927ad47e9b0dd8be1a39f56c3ea813d44 Auto-Submitted: auto-generated The branch main has been updated by asomers: URL: https://cgit.FreeBSD.org/src/commit/?id=6b1c534927ad47e9b0dd8be1a39f56c3ea813d44 commit 6b1c534927ad47e9b0dd8be1a39f56c3ea813d44 Author: Alan Somers AuthorDate: 2024-01-08 01:03:40 +0000 Commit: Alan Somers CommitDate: 2024-01-13 22:47:16 +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 after: 1 week MFC with: bdb46c21a3e68d4395d6e0b6a205187e655532b0 Differential Revision: https://reviews.freebsd.org/D43446 Reviewed by: kib --- 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 */