<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/compat/linux/linux_file.c, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>linuxolator: translate LINUX_RENAME_NOREPLACE into our AT_RENAME_NOREPLACE</title>
<updated>2026-03-05T23:46:53+00:00</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2026-02-26T19:21:08+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=8feb8d221cfb842ee11d744d22571baec6c18cd8'/>
<id>8feb8d221cfb842ee11d744d22571baec6c18cd8</id>
<content type='text'>
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D55539
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D55539
</pre>
</div>
</content>
</entry>
<entry>
<title>kern_renameat(9): add flags argument</title>
<updated>2026-03-05T23:46:53+00:00</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2026-02-26T18:30:14+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=1f3020067ab3f3c5043d01ea1e3a3d2998a39d4a'/>
<id>1f3020067ab3f3c5043d01ea1e3a3d2998a39d4a</id>
<content type='text'>
Reviewed by:	markj
Tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D55539
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by:	markj
Tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D55539
</pre>
</div>
</content>
</entry>
<entry>
<title>kern/vfs_unmount.c: promote flags to uint64_t</title>
<updated>2026-02-09T18:47:18+00:00</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2026-02-09T03:11:15+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=8066b8923ebfd438dc8cb840d2f57066f4daa45d'/>
<id>8066b8923ebfd438dc8cb840d2f57066f4daa45d</id>
<content type='text'>
to prevent sign-extension, causing unexpected flags to be passed to
dounmount().  The mnt_flags and MNT_* constants are 64bit wide.

Suggested and reviewed by:	jah
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D55197
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
to prevent sign-extension, causing unexpected flags to be passed to
dounmount().  The mnt_flags and MNT_* constants are 64bit wide.

Suggested and reviewed by:	jah
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D55197
</pre>
</div>
</content>
</entry>
<entry>
<title>linux_file.c: Fix handling of NFS getdents() emulation</title>
<updated>2026-02-07T22:12:55+00:00</updated>
<author>
<name>Rick Macklem</name>
<email>rmacklem@FreeBSD.org</email>
</author>
<published>2026-02-07T22:12:55+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=110f2567cb51f1eeddbd5d9937000ad64f6dc746'/>
<id>110f2567cb51f1eeddbd5d9937000ad64f6dc746</id>
<content type='text'>
Bugzilla PR#292282 reports a problem, where a Linux
binary running in the Linuxulator gets bogus entries
in a readdir()/getdents() reply when the directory is
an NFS mount.

This appears to be caused by the NFS client including
entries with d_fileno == 0, which are always ignored by
BSD, but are not ignored by Linux.

This patch filters out the "d_fileno == 0" entries and
the reporter of the bugzilla PR notes that it fixes the
problem for him.

It could be argued that the NFS client should filter out
the "d_fileno == 0" entries, but the NFS client readdir
code is "fragile" and any change to it runs a significant
risk of causing regression type problems.

As such, since the LInuxulator is already broken for this
case, it seems safer to filter them out there.

PR:	292282
Tested by:	Jerry Williams &lt;jwillia3@proton.me&gt;
Reviewed by:	markj
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D54679
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bugzilla PR#292282 reports a problem, where a Linux
binary running in the Linuxulator gets bogus entries
in a readdir()/getdents() reply when the directory is
an NFS mount.

This appears to be caused by the NFS client including
entries with d_fileno == 0, which are always ignored by
BSD, but are not ignored by Linux.

This patch filters out the "d_fileno == 0" entries and
the reporter of the bugzilla PR notes that it fixes the
problem for him.

It could be argued that the NFS client should filter out
the "d_fileno == 0" entries, but the NFS client readdir
code is "fragile" and any change to it runs a significant
risk of causing regression type problems.

As such, since the LInuxulator is already broken for this
case, it seems safer to filter them out there.

PR:	292282
Tested by:	Jerry Williams &lt;jwillia3@proton.me&gt;
Reviewed by:	markj
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D54679
</pre>
</div>
</content>
</entry>
<entry>
<title>linux: Implement F_DUPFD_QUERY fcntl with kcmp(2) KCMP_FILE</title>
<updated>2025-12-11T17:32:10+00:00</updated>
<author>
<name>Ricardo Branco</name>
<email>rbranco@suse.de</email>
</author>
<published>2025-12-08T22:30:31+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=fe21dbf70aa8c6dfd2010f30dd2d09f7b743e77d'/>
<id>fe21dbf70aa8c6dfd2010f30dd2d09f7b743e77d</id>
<content type='text'>
Signed-off-by: Ricardo Branco &lt;rbranco@suse.de&gt;
Reviewed by:	kib
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1920
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Ricardo Branco &lt;rbranco@suse.de&gt;
Reviewed by:	kib
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1920
</pre>
</div>
</content>
</entry>
<entry>
<title>kern: allow kern_shm_open2 of an anonymous preconstructed shmfd</title>
<updated>2025-07-26T21:31:40+00:00</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2025-07-14T23:28:35+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=6b49d119489944abbef87b5892c21f65e7a7055e'/>
<id>6b49d119489944abbef87b5892c21f65e7a7055e</id>
<content type='text'>
The motivation here is for future changes to the coredump code to be
able to build up a coredump into a shmfd instead of a vnode, which then
gets tapped out to userland via a character device.  This also opens up
the possibility that it's useful for the kernel to be able to construct
a shmfd and pass it out to a process that shouldn't need to write to it.

Reviewed by:	emaste, kib, markj
Differential Revision:	https://reviews.freebsd.org/D51336
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The motivation here is for future changes to the coredump code to be
able to build up a coredump into a shmfd instead of a vnode, which then
gets tapped out to userland via a character device.  This also opens up
the possibility that it's useful for the kernel to be able to construct
a shmfd and pass it out to a process that shouldn't need to write to it.

Reviewed by:	emaste, kib, markj
Differential Revision:	https://reviews.freebsd.org/D51336
</pre>
</div>
</content>
</entry>
<entry>
<title>linux: Add inotify support</title>
<updated>2025-07-04T14:42:34+00:00</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2025-06-06T13:25:09+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=3965de642c29d831649c8307203303de560d721a'/>
<id>3965de642c29d831649c8307203303de560d721a</id>
<content type='text'>
Implement the Linux inotify system calls using the native implementation
in vfs_inotify.c.

PR:		240874
Reviewed by:	brooks
MFC after:	3 months
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D50761
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Implement the Linux inotify system calls using the native implementation
in vfs_inotify.c.

PR:		240874
Reviewed by:	brooks
MFC after:	3 months
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D50761
</pre>
</div>
</content>
</entry>
<entry>
<title>faccessat(2): Honor AT_SYMLINK_NOFOLLOW</title>
<updated>2024-08-11T15:49:06+00:00</updated>
<author>
<name>Fernando Apesteguía</name>
<email>fernape@FreeBSD.org</email>
</author>
<published>2024-08-11T15:43:04+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=5ab6ed93cd3680f8b69dd4d05823f4740a2bdef9'/>
<id>5ab6ed93cd3680f8b69dd4d05823f4740a2bdef9</id>
<content type='text'>
Make the system call honor `AT_SYMLINK_NOFOLLOW`.

Also enable this from `linux_faccessat2` where the issue arised the first time.
Update manual pages accordingly.

PR:			275295
Reported by:		kenrap@kennethraplee.com
Approved by:		kib@
Differential Revision:	https://reviews.freebsd.org/D46267
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make the system call honor `AT_SYMLINK_NOFOLLOW`.

Also enable this from `linux_faccessat2` where the issue arised the first time.
Update manual pages accordingly.

PR:			275295
Reported by:		kenrap@kennethraplee.com
Approved by:		kib@
Differential Revision:	https://reviews.freebsd.org/D46267
</pre>
</div>
</content>
</entry>
<entry>
<title>linux: Export linux_common_openflags()</title>
<updated>2024-05-23T19:40:46+00:00</updated>
<author>
<name>Ricardo Branco</name>
<email>rbranco@suse.de</email>
</author>
<published>2024-05-17T20:08:24+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=9c7b1bf27122f975ea70c81931d48b751f8a1bfa'/>
<id>9c7b1bf27122f975ea70c81931d48b751f8a1bfa</id>
<content type='text'>
Reviewed by: imp, kib
Pull Request: https://github.com/freebsd/freebsd-src/pull/1248
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by: imp, kib
Pull Request: https://github.com/freebsd/freebsd-src/pull/1248
</pre>
</div>
</content>
</entry>
<entry>
<title>Abstract UIO allocation and deallocation.</title>
<updated>2024-02-10T16:38:04+00:00</updated>
<author>
<name>Alfredo Mazzinghi</name>
<email>am2419@cl.cam.ac.uk</email>
</author>
<published>2024-01-18T13:04:41+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=61cc4830a7b16400efade3d884a59fda6d80d651'/>
<id>61cc4830a7b16400efade3d884a59fda6d80d651</id>
<content type='text'>
Introduce the allocuio() and freeuio() functions to allocate and
deallocate struct uio. This hides the actual allocator interface, so it
is easier to modify the sub-allocation layout of struct uio and the
corresponding iovec array.

Obtained from:	CheriBSD
Reviewed by:	kib, markj
MFC after:	2 weeks
Sponsored by:	CHaOS, EPSRC grant EP/V000292/1
Differential Revision:	https://reviews.freebsd.org/D43711
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Introduce the allocuio() and freeuio() functions to allocate and
deallocate struct uio. This hides the actual allocator interface, so it
is easier to modify the sub-allocation layout of struct uio and the
corresponding iovec array.

Obtained from:	CheriBSD
Reviewed by:	kib, markj
MFC after:	2 weeks
Sponsored by:	CHaOS, EPSRC grant EP/V000292/1
Differential Revision:	https://reviews.freebsd.org/D43711
</pre>
</div>
</content>
</entry>
</feed>
