<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/tests, branch releng/13.4</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F13.4</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F13.4'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2024-08-21T07:44:25Z</updated>
<entry>
<title>pf: invert direction for inner icmp state lookups</title>
<updated>2024-08-21T07:44:25Z</updated>
<author>
<name>Kristof Provost</name>
<email>kp@FreeBSD.org</email>
</author>
<published>2024-08-14T09:29:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9c67287ccfb7257d140b46c8d8aed7276c94d5f1'/>
<id>urn:sha1:9c67287ccfb7257d140b46c8d8aed7276c94d5f1</id>
<content type='text'>
(e.g. traceroute with icmp)
ok henning, jsing

Also extend the test case to cover this scenario.

PR:		280701
Approved by:	re (cperciva)
Obtained from:	OpenBSD
MFC after:	1 week
Sponsored by:	Rubicon Communications, LLC ("Netgate")

(cherry picked from commit 89f6723288b0d27d3f14f93e6e83f672fa2b8aca)
(cherry picked from commit 5f3f07397a7909e8f9449d1aa0b465159cbf0d60)
</content>
</entry>
<entry>
<title>pf tests: ensure that traceroutes using ICMP work</title>
<updated>2024-08-21T07:44:16Z</updated>
<author>
<name>Kristof Provost</name>
<email>kp@FreeBSD.org</email>
</author>
<published>2024-08-12T10:14:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6a7bac2ae79667c2b31169a8d0e91410986336fa'/>
<id>urn:sha1:6a7bac2ae79667c2b31169a8d0e91410986336fa</id>
<content type='text'>
PR:		280701
Approved by:	re (cperciva)
MFC after:	1 week
Sponsored by:	Rubicon Communications, LLC ("Netgate")

(cherry picked from commit 34063cb714602972b6d985ad747fc8f66a8daae1)
(cherry picked from commit 7024e1066d5aba76dbbc85eb191357da7d32c619)
</content>
</entry>
<entry>
<title>pf tests: ensure we don't confuse different ICMP types</title>
<updated>2024-07-31T07:39:35Z</updated>
<author>
<name>Kristof Provost</name>
<email>kp@FreeBSD.org</email>
</author>
<published>2024-07-09T09:22:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4ebd7fc30ab779b87c055b0d54eabdd97a9fc730'/>
<id>urn:sha1:4ebd7fc30ab779b87c055b0d54eabdd97a9fc730</id>
<content type='text'>
When creating a state for ICMP (v4 or v6) packets we only used the ID, which
means that we could confuse different ICMP types. For example, if we allowed
neighbour discovery but not ICMPv6 echo requests an ND packet could create a
state that the echo request would match.

Test that this is now fixed.

Reported by:	Enrico Bassetti &lt;e.bassetti@tudelft.nl&gt;
MFC after:	1 day
Sponsored by:	Rubicon Communications, LLC ("Netgate")

(cherry picked from commit b9f0dbc3d006e0b904ee4275d54459f4edd65bb8)
</content>
</entry>
<entry>
<title>pf tests: fix sctp:timeout test</title>
<updated>2024-07-25T08:23:38Z</updated>
<author>
<name>Kristof Provost</name>
<email>kp@FreeBSD.org</email>
</author>
<published>2024-07-17T13:56:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=35bde8969eb6e63c9ca6ebdd4245588b4b8cb6c2'/>
<id>urn:sha1:35bde8969eb6e63c9ca6ebdd4245588b4b8cb6c2</id>
<content type='text'>
The test body somehow wound up in the cleanup function.

MFC after:	1 week
Sponsored by:	Rubicon Communications, LLC ("Netgate")

(cherry picked from commit fe0c82a603ce069786ee81604315f499fd965546)
</content>
</entry>
<entry>
<title>pf tests: test setting and retrieving timeout values</title>
<updated>2024-07-25T08:23:35Z</updated>
<author>
<name>Kristof Provost</name>
<email>kp@FreeBSD.org</email>
</author>
<published>2024-06-06T15:50:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=193455c91b9065beef2b4a86956713f633041340'/>
<id>urn:sha1:193455c91b9065beef2b4a86956713f633041340</id>
<content type='text'>
(cherry picked from commit 8ed5170c66ec4914e90c2f3657227ceb9e35193f)
</content>
</entry>
<entry>
<title>fusefs: fix two bugs regarding _PC_MIN_HOLE_SIZE</title>
<updated>2024-07-08T20:27:54Z</updated>
<author>
<name>Alan Somers</name>
<email>asomers@FreeBSD.org</email>
</author>
<published>2024-04-03T19:57:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7f936b0cba08315c0127c425692369d0c162fbcf'/>
<id>urn:sha1:7f936b0cba08315c0127c425692369d0c162fbcf</id>
<content type='text'>
Background:

If a user does pathconf(_, _PC_MIN_HOLE_SIZE) on a fusefs file system,
the kernel must actually issue a FUSE_LSEEK operation in order to
determine whether the server supports it.  We cache that result, so we
only have to send FUSE_LSEEK the first time that _PC_MIN_HOLE_SIZE is
requested on any given mountpoint.

Problem 1:

Unlike fpathconf, pathconf operates on files that may not be open.  But
FUSE_LSEEK requires the file to be open.  As described in PR 278135,
FUSE_LSEEK cannot be sent for unopened files, causing _PC_MIN_HOLE_size
to wrongly report EINVAL.  We never noticed that before because the
fusefs test suite only uses fpathconf, not pathconf.  Fix this bug by
opening the file if necessary.

Problem 2:

On a completely sparse file, with no data blocks at all, FUSE_LSEEK with
SEEK_DATA would fail to ENXIO.  That's correct behavior, but
fuse_vnop_pathconf wrongly interpreted that as "FUSE_LSEEK not
supported".  Fix the interpretation.

PR:		278135
Sponsored by:	Axcient
Differential Revision: https://reviews.freebsd.org/D44618

(cherry picked from commit 6efba04df3f8c77b9b12f1df3e5124a7249b82fc)
</content>
</entry>
<entry>
<title>fusefs: make the tests more robust to changes to maxphys</title>
<updated>2024-06-28T18:54:00Z</updated>
<author>
<name>Alan Somers</name>
<email>asomers@FreeBSD.org</email>
</author>
<published>2024-05-09T14:40:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=af64741bba6391a765294a41fe43030d4f242e4b'/>
<id>urn:sha1:af64741bba6391a765294a41fe43030d4f242e4b</id>
<content type='text'>
Remove assumptions in two test cases that maxphys won't be huge.

Reported by:	kib
Sponsored by:	Axcient

(cherry picked from commit b2792a300ddb8d8334b234fe7744f5141cc96103)
</content>
</entry>
<entry>
<title>tests/fusefs: fix all tests that depend on kern.maxphys</title>
<updated>2024-06-28T18:52:07Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2024-05-06T19:03:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4052c952803f2ba33bb26e13aeeaf9c0651e3702'/>
<id>urn:sha1:4052c952803f2ba33bb26e13aeeaf9c0651e3702</id>
<content type='text'>
The tests try to read kern.maxphys sysctl into int value, while
unsigned long is required.  Not sure when this was broken, seems like
since cd8537910406e.

Reviewed by:		asomers
Differential Revision:	https://reviews.freebsd.org/D45053

(cherry picked from commit e9b411d273336647e61704213964b995952a44fd)
</content>
</entry>
<entry>
<title>pf tests: test longer anchor names</title>
<updated>2024-06-18T14:43:43Z</updated>
<author>
<name>Kristof Provost</name>
<email>kp@FreeBSD.org</email>
</author>
<published>2024-05-24T12:50:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9748482d343dfaca9cb92359d0af7b4d38aea3bd'/>
<id>urn:sha1:9748482d343dfaca9cb92359d0af7b4d38aea3bd</id>
<content type='text'>
PR:		279225
MFC after:	3 weeks
Sponsored by:	Rubicon Communications, LLC ("Netgate")

(cherry picked from commit 8b28ec3861d5b3e9fd8a60dbfda13059a5301281)
</content>
</entry>
<entry>
<title>fusefs: fix some memory leaks in the tests</title>
<updated>2024-06-13T19:40:59Z</updated>
<author>
<name>Alan Somers</name>
<email>asomers@FreeBSD.org</email>
</author>
<published>2024-01-17T21:13:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f5f1f1115f5b8497b34a5394a0ed47d96a03a1b2'/>
<id>urn:sha1:f5f1f1115f5b8497b34a5394a0ed47d96a03a1b2</id>
<content type='text'>
(cherry picked from commit 39f5d8dd1b2fea7cff0770efb0bc3d6e33e24279)
</content>
</entry>
</feed>
