<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/fs/pseudofs, branch stable/13</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=stable%2F13</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=stable%2F13'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2023-11-24T19:47:15Z</updated>
<entry>
<title>pseudofs: fix off by one in hash iteration in pfs_purge</title>
<updated>2023-11-24T19:47:15Z</updated>
<author>
<name>Alvin Chen</name>
<email>weike.chen@dell.com</email>
</author>
<published>2023-11-20T05:55:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e6d025c5c57dbcf4f7b078c9d42533e5839af932'/>
<id>urn:sha1:e6d025c5c57dbcf4f7b078c9d42533e5839af932</id>
<content type='text'>
Sponsored by:	Dell Technologies
Differential Revision:	https://reviews.freebsd.org/D42628

(cherry picked from commit e0d0f0930ee22af7bf38d28d8590d4e6c822871d)
</content>
</entry>
<entry>
<title>sys: Remove $FreeBSD$: one-line .c pattern</title>
<updated>2023-08-23T17:43:25Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-22T01:31:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3bc80996974a61a4223eae4c1ccd47b6ee32a48a'/>
<id>urn:sha1:3bc80996974a61a4223eae4c1ccd47b6ee32a48a</id>
<content type='text'>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/

Similar commit in current:
(cherry picked from commit 685dc743dc3b)
</content>
</entry>
<entry>
<title>sys: Remove $FreeBSD$: two-line .h pattern</title>
<updated>2023-08-23T17:43:20Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-22T01:31:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f8167e0404dab9ffeaca95853dd237ab7c587f82'/>
<id>urn:sha1:f8167e0404dab9ffeaca95853dd237ab7c587f82</id>
<content type='text'>
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/

Similar commit in current:
(cherry picked from commit 95ee2897e98f)
</content>
</entry>
<entry>
<title>pseudofs: Fix a potential out-of-bounds access in pfs_lookup()</title>
<updated>2023-07-07T18:46:08Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2023-06-23T13:54:39Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e27e9b3ac329b8d01c0800de32c735b2363c8862'/>
<id>urn:sha1:e27e9b3ac329b8d01c0800de32c735b2363c8862</id>
<content type='text'>
pseudofs nodes store their name in a flexible array member, so the node
allocation is sized using the length of the name, including a nul
terminator.  pfs_lookup() scans a directory of nodes, comparing names to
find a match.  The comparison was incorrect and assumed that all node
names were at least as long as the name being looked up, which of course
isn't true.

I believe the bug is mostly harmless since it cannot result in false
positive or negative matches from the lookup, but it triggers a KASAN
check.

Reported by:	pho
Reviewed by:	kib, Olivier Certner &lt;olce.freebsd@certner.fr&gt;
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D40692

(cherry picked from commit fc915f1be145a52c53f6f1c37525043216e32bb8)
</content>
</entry>
<entry>
<title>pseudofs: Simplify pfs_visible_proc</title>
<updated>2023-06-29T08:15:17Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2023-04-02T08:24:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b73e978d7d17c8e7c995d631c722c654b12df1cd'/>
<id>urn:sha1:b73e978d7d17c8e7c995d631c722c654b12df1cd</id>
<content type='text'>
Reviewed by:		des
Differential revision:	https://reviews.freebsd.org/D39383
MFC after:		1 month

(cherry picked from commit a32ed5ec05d9bc01b8e70b45ff510d2f972a0877)
</content>
</entry>
<entry>
<title>pseudofs: Allow vis callback to be called for a named node</title>
<updated>2023-06-29T08:15:17Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2023-04-02T08:21:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c38bb48b04c9bb24e549eee6a099d9f9362b1ae8'/>
<id>urn:sha1:c38bb48b04c9bb24e549eee6a099d9f9362b1ae8</id>
<content type='text'>
This will be used later in the linsysfs module to filter out VNETs.

Reviewed by:		des
Differential revision:	https://reviews.freebsd.org/D39382
MFC after:		1 month

(cherry picked from commit 405c0c04edb6143405426da6a5273f4c5998d594)
</content>
</entry>
<entry>
<title>pseudofs: Microoptimize struct pfs_node</title>
<updated>2023-06-29T08:15:17Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2023-04-02T08:20:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=14ee31bcccfbd6ef14548f0129fcaa5a113e4c82'/>
<id>urn:sha1:14ee31bcccfbd6ef14548f0129fcaa5a113e4c82</id>
<content type='text'>
Since 81167243b the size of struct pfs_node is 280 bytes, so the kernel
memory allocator takes memory from 384 bytes sized bucket. However, the
length of the node name is mostly short, e.g., for Linux emulation layer
it is up to 16 bytes. The size of struct pfs_node w/o pfs_name is 152
bytes, i.e., we have 104 bytes left to fit the node name into the 256
bytes-sized bucket.

Reviewed by:		des
Differential revision:	https://reviews.freebsd.org/D39381
MFC after:		1 month

(cherry picked from commit 7f72324346ea154a92671fc913dbe82c0287501a)
</content>
</entry>
<entry>
<title>sys/fs: do not report blocks allocated for synthetic file systems</title>
<updated>2023-05-01T08:11:44Z</updated>
<author>
<name>Stefan Eßer</name>
<email>se@FreeBSD.org</email>
</author>
<published>2023-04-25T07:40:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3270f21597fb35f7cdbc39f0f09eaf4f84e79fe6'/>
<id>urn:sha1:3270f21597fb35f7cdbc39f0f09eaf4f84e79fe6</id>
<content type='text'>
The pseudo file systems (devfs, fdescfs, procfs, etc.) report total
and available blocks and inodes despite being synthetic with no
underlying storage device to which those values could be applied.

The current code of these file systems tends to report a fixed number
of total blocks but no free blocks, and in the case of procfs,
libprocfs, linsysfs also no free inodes.

This can be irritating in e.g. the "df" output, since 100% of the
resources seem to be in use, but it can also create warnings in
monitoring tools used for capacity management.

This patch makes these file systems return the same value for the
total and free parameters, leading to 0% in use being displayed by
"df". Since there is no resource that can be exhausted, this appears
to be a sensible result.

Reviewed by:	mckusick
Differential Revision:	https://reviews.freebsd.org/D39442

(cherry picked from commit 88a795e80c03ff1d960d830ee273589664ab06cc)
</content>
</entry>
<entry>
<title>pseudofs: Destroy vncache hashtbl on pseudofs module unload.</title>
<updated>2022-06-17T19:33:41Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2021-12-09T21:41:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=00a4cd973c0bec5300a46f9132eec9d55176c525'/>
<id>urn:sha1:00a4cd973c0bec5300a46f9132eec9d55176c525</id>
<content type='text'>
Reviewed by:		mjg, kib
Differential Revision:	https://reviews.freebsd.org/D31605
MFC after:		2 weeks

(cherry picked from commit 0f74021fb6a5c3fb6e031892cc159b1e7e325bd6)
</content>
</entry>
<entry>
<title>pseudofs: use vget_prep + vget_finish instead of vget + the interlock</title>
<updated>2021-05-22T18:22:35Z</updated>
<author>
<name>Mateusz Guzik</name>
<email>mjg@FreeBSD.org</email>
</author>
<published>2021-05-19T14:20:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=af68d00a202f74011d165182c85cfecb63eaa3e5'/>
<id>urn:sha1:af68d00a202f74011d165182c85cfecb63eaa3e5</id>
<content type='text'>
(cherry picked from commit 43999a5cba3cfbf0a0f6244c76a3cd548b6925e8)
</content>
</entry>
</feed>
