| #
8feb8d22
|
| 26-Feb-2026 |
Konstantin Belousov <kib@FreeBSD.org> |
linuxolator: translate LINUX_RENAME_NOREPLACE into our AT_RENAME_NOREPLACE
Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.or
linuxolator: translate LINUX_RENAME_NOREPLACE into our AT_RENAME_NOREPLACE
Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D55539
show more ...
|
| #
1f302006
|
| 26-Feb-2026 |
Konstantin Belousov <kib@FreeBSD.org> |
kern_renameat(9): add flags argument
Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D55539
|
| #
8066b892
|
| 09-Feb-2026 |
Konstantin Belousov <kib@FreeBSD.org> |
kern/vfs_unmount.c: promote flags to uint64_t
to prevent sign-extension, causing unexpected flags to be passed to dounmount(). The mnt_flags and MNT_* constants are 64bit wide.
Suggested and revie
kern/vfs_unmount.c: promote flags to uint64_t
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
show more ...
|
| #
110f2567
|
| 07-Feb-2026 |
Rick Macklem <rmacklem@FreeBSD.org> |
linux_file.c: Fix handling of NFS getdents() emulation
Bugzilla PR#292282 reports a problem, where a Linux binary running in the Linuxulator gets bogus entries in a readdir()/getdents() reply when t
linux_file.c: Fix handling of NFS getdents() emulation
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 <jwillia3@proton.me> Reviewed by: markj MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D54679
show more ...
|
| #
fe21dbf7
|
| 08-Dec-2025 |
Ricardo Branco <rbranco@suse.de> |
linux: Implement F_DUPFD_QUERY fcntl with kcmp(2) KCMP_FILE
Signed-off-by: Ricardo Branco <rbranco@suse.de> Reviewed by: kib Pull Request: https://github.com/freebsd/freebsd-src/pull/1920
|
| #
6b49d119
|
| 14-Jul-2025 |
Kyle Evans <kevans@FreeBSD.org> |
kern: allow kern_shm_open2 of an anonymous preconstructed shmfd
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, whic
kern: allow kern_shm_open2 of an anonymous preconstructed shmfd
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
show more ...
|
| #
3965de64
|
| 06-Jun-2025 |
Mark Johnston <markj@FreeBSD.org> |
linux: Add inotify support
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. D
linux: Add inotify support
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
show more ...
|
| #
5ab6ed93
|
| 11-Aug-2024 |
Fernando Apesteguía <fernape@FreeBSD.org> |
faccessat(2): Honor AT_SYMLINK_NOFOLLOW
Make the system call honor `AT_SYMLINK_NOFOLLOW`.
Also enable this from `linux_faccessat2` where the issue arised the first time. Update manual pages accordi
faccessat(2): Honor AT_SYMLINK_NOFOLLOW
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
show more ...
|
| #
9c7b1bf2
|
| 17-May-2024 |
Ricardo Branco <rbranco@suse.de> |
linux: Export linux_common_openflags()
Reviewed by: imp, kib Pull Request: https://github.com/freebsd/freebsd-src/pull/1248
|
| #
61cc4830
|
| 18-Jan-2024 |
Alfredo Mazzinghi <am2419@cl.cam.ac.uk> |
Abstract UIO allocation and deallocation.
Introduce the allocuio() and freeuio() functions to allocate and deallocate struct uio. This hides the actual allocator interface, so it is easier to modify
Abstract UIO allocation and deallocation.
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
show more ...
|
| #
c987ff4d
|
| 20-Aug-2023 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Replace linux32_copyinuio by freebsd32_copyinuio
MFC after: 1 month
|
| #
d6cb9e72
|
| 20-Aug-2023 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Return EAGAIN instead of ENOBUFS for non-blocking sockets in pwrite
MFC after: 1 month
|
| #
dfbb3e2a
|
| 20-Aug-2023 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Return EAGAIN instead of ENOBUFS for non-blocking sockets in pwritev
MFC after: 1 month
|
| #
4231b825
|
| 20-Aug-2023 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Add a dedicated writev syscall wrapper
Adding a writev syscall wrapper is needed due to Linux family of write syscalls doesn't distinguish between in kernel blocking operations and always
linux(4): Add a dedicated writev syscall wrapper
Adding a writev syscall wrapper is needed due to Linux family of write syscalls doesn't distinguish between in kernel blocking operations and always returns EAGAIN while FreeBSD can return ENOBUFS.
MFC after: 1 month
show more ...
|
| #
e58ff664
|
| 20-Aug-2023 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Add a write syscall wrapper
Adding a write syscall wrapper is needed due to Linux family of write syscalls doesn't distinguish between in kernel blocking operations and always returns EAGA
linux(4): Add a write syscall wrapper
Adding a write syscall wrapper is needed due to Linux family of write syscalls doesn't distinguish between in kernel blocking operations and always returns EAGAIN while FreeBSD can return ENOBUFS.
MFC after: 1 month
show more ...
|
| #
3460fab5
|
| 18-Aug-2023 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Remove sys/cdefs.h inclusion where it's not needed due to 685dc743
|
| #
685dc743
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
| #
77294677
|
| 18-Jul-2023 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Use M_LINUX for malloc type in getdents
MFC after: 2 weeks
|
| #
e27e3fa7
|
| 18-Jul-2023 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Use M_LINUX for malloc type in getdents64
MFC after: 2 weeks
|
| #
b27f3237
|
| 18-Jul-2023 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Delete a useless variable in getdents64
MFC after: 2 weeks
|
| #
13d049ab
|
| 18-Jul-2023 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Use M_LINUX for malloc type in readdir
MFC after: 2 weeks
|
| #
fffb2e8d
|
| 18-Jul-2023 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Delete a useless variable in readdir
MFC after: 2 weeks
|
| #
fc1c787a
|
| 18-Jul-2023 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Properly allocate buffer for kern_getdirentries in readdir
Looks like prior to ino64 project the size of the struct linux_dirent was greater (or equal) to the size of the native struct dir
linux(4): Properly allocate buffer for kern_getdirentries in readdir
Looks like prior to ino64 project the size of the struct linux_dirent was greater (or equal) to the size of the native struct dirent so the native dirent fit into the buffer. After ino64 project the size of the native struct dirent has increased.
Spotted by gcc12. MFC after: 2 weeks
show more ...
|
| #
fd745e1d
|
| 29-May-2023 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Use pwd_altroot() to tell namei() about ABI root path
PR: 72920 Differential Revision: https://reviews.freebsd.org/D40090 MFC after: 2 month
|
| #
4d846d26
|
| 10-May-2023 |
Warner Losh <imp@FreeBSD.org> |
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause.
Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
show more ...
|