<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/compat/linux, branch releng/14.2</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F14.2</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F14.2'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2024-09-29T22:37:02Z</updated>
<entry>
<title>linuxulator: ignore AT_NO_AUTOMOUNT for all stat variants</title>
<updated>2024-09-29T22:37:02Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2024-09-19T21:11:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=99d3ce80ba07e751226a7ff07afc51ad2d79ccce'/>
<id>urn:sha1:99d3ce80ba07e751226a7ff07afc51ad2d79ccce</id>
<content type='text'>
Commit ff39d74aa99a ignored AT_NO_AUTOMOUNT for statx(), but did not
change fstat64() or newfstatat(), which also take an equivalent flags
argument.  Add a linux_to_bsd_stat_flags() helper and use it in all
three places.

PR:		281526
Reviewed by:	trasz
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D46711

(cherry picked from commit 3cf834d069d1dcdbe464ea74624930eaf916715d)
</content>
</entry>
<entry>
<title>faccessat(2): Honor AT_SYMLINK_NOFOLLOW</title>
<updated>2024-09-26T13:13:50Z</updated>
<author>
<name>Fernando Apesteguía</name>
<email>fernape@FreeBSD.org</email>
</author>
<published>2024-08-11T15:43:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ddbbc129ae0fc35cef2834b308097ae1490176e3'/>
<id>urn:sha1:ddbbc129ae0fc35cef2834b308097ae1490176e3</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

(cherry picked from commit 5ab6ed93cd3680f8b69dd4d05823f4740a2bdef9)
</content>
</entry>
<entry>
<title>linux64: Fix the build on arm64 with bti checking</title>
<updated>2024-09-02T08:48:10Z</updated>
<author>
<name>Andrew Turner</name>
<email>andrew@FreeBSD.org</email>
</author>
<published>2024-06-04T12:47:52Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d5e29c62e923bd8e7a7355a0d3c5e4767c869ddf'/>
<id>urn:sha1:d5e29c62e923bd8e7a7355a0d3c5e4767c869ddf</id>
<content type='text'>
When we enable checking for BTI on arm64 we need to include an ELF
note in all object files linked into a module.

As using objcopy from a binary to an ELF object file doesn't add the
note switch to using .incbin from an assembly file. This allows us to
add the needed note without affecting the included object.

Reviewed by:	imp, kib, emaste
Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D45468

(cherry picked from commit bed65d85c631c3a8e60a81a15a5a745c8ef92fbe)
(cherry picked from commit ec69d230933f82c7c142b053882255aa57475463)
</content>
</entry>
<entry>
<title>linux(4): Add const qualifier to the value parameter of function handle_string()</title>
<updated>2024-05-28T04:21:20Z</updated>
<author>
<name>Zhenlei Huang</name>
<email>zlei@FreeBSD.org</email>
</author>
<published>2024-05-28T04:21:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1b3f88bc809526cc7cd22c88b4fdaadf1a2e5e75'/>
<id>urn:sha1:1b3f88bc809526cc7cd22c88b4fdaadf1a2e5e75</id>
<content type='text'>
The content that `value` point to is not going to be altered by function
handle_string().

MFC after:	1 week

(cherry picked from commit 68c890b4433d3655c7df91cc43f89f4d6a8b35e4)
</content>
</entry>
<entry>
<title>linux: ignore setsockopt(IPV6_RECVERR)</title>
<updated>2024-04-27T12:59:46Z</updated>
<author>
<name>Lexi Winter</name>
<email>lexi@le-Fay.ORG</email>
</author>
<published>2024-04-22T21:58:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8c81694af438fee9071f826efcc9f1633c50ab3d'/>
<id>urn:sha1:8c81694af438fee9071f826efcc9f1633c50ab3d</id>
<content type='text'>
Under Linux, the socket options IP_RECVERR and IPV6_RECVERR are used to
receive socket errors via a dedicated 'error queue' which can be
retrieved via recvmsg().  FreeBSD does not support this functionality.

For IPv4, the sysctl compat.linux.ignore_ip_recverr can be set to 1 to
silently ignore attempts to set IP_RECVERR and return success to the
application, which is wrong, but is required for (among other things)
a functional DNS client in recent versions of glibc.

Add support for ignoring IPV6_RECVERR, controlled by the same sysctl.
This fixes DNS in Linux when using IPv6 resolvers.

Reviewed by: imp, Jose Luis Duran
Pull Request: https://github.com/freebsd/freebsd-src/pull/1118

(cherry picked from commit ca63710d3668cf6f3cb4faf065d8b4eeffa028ad)
</content>
</entry>
<entry>
<title>linux: require vnet(9) context in ifname_bsd_to_linux_name()</title>
<updated>2024-03-11T16:11:56Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2024-03-03T20:56:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f45ecf5fe4076fac300cd1e2e93877ff1762c93a'/>
<id>urn:sha1:f45ecf5fe4076fac300cd1e2e93877ff1762c93a</id>
<content type='text'>
This function is used by netlink(9) only.  The netlink(9) taskqueue thread
runs in the vnet of the socket whose request the thread is processing
right now.  This is a correct vnet and resetting it to vnet0 is incorrect.
If the function is to be used by any other caller in addition to
netlink(9), it would be caller's responsiblity to provide correct vnet(9).

Reviewed by:		melifaro, dchagin
Differential Revision:	https://reviews.freebsd.org/D44191
PR:			277286

(cherry picked from commit 2f5a315b307447f91891c96fb23c7333fa406f2f)
</content>
</entry>
<entry>
<title>Abstract UIO allocation and deallocation.</title>
<updated>2024-03-09T04:27:20Z</updated>
<author>
<name>Alfredo Mazzinghi</name>
<email>am2419@cl.cam.ac.uk</email>
</author>
<published>2024-01-18T13:04:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2de742797b5fbcb1b7bf8c3e8dc36dddd051abb0'/>
<id>urn:sha1:2de742797b5fbcb1b7bf8c3e8dc36dddd051abb0</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

(cherry picked from commit 61cc4830a7b16400efade3d884a59fda6d80d651)
</content>
</entry>
<entry>
<title>linux_pwd_onexec: do not abort image activation if emul path does not exist</title>
<updated>2024-02-29T00:24:06Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2024-02-10T05:02:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=38595c9d739bf69ff1270e575b1cbdcfe47284a7'/>
<id>urn:sha1:38595c9d739bf69ff1270e575b1cbdcfe47284a7</id>
<content type='text'>
(cherry picked from commit 99fa799a19abeb70b1034f65407c276b64709bdc)
</content>
</entry>
<entry>
<title>linux: Check for copyout errors in ioctl handlers</title>
<updated>2024-01-04T13:42:13Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2023-12-27T15:13:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0328de3def9cf24590b7e5262d35bde3a5e42447'/>
<id>urn:sha1:0328de3def9cf24590b7e5262d35bde3a5e42447</id>
<content type='text'>
In preparation for annotating copyin() and friends with
__result_use_check.

Reviewed by:	dchagin
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D43199

(cherry picked from commit b9924c202fc34004d4164cdc50f88d8fcef26279)
</content>
</entry>
<entry>
<title>netlink: move NETLINK define to opt_global.h</title>
<updated>2023-10-16T07:42:33Z</updated>
<author>
<name>Kristof Provost</name>
<email>kp@FreeBSD.org</email>
</author>
<published>2023-10-12T19:55:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ff15498894e2546fcce7ffc24967e714de3805ed'/>
<id>urn:sha1:ff15498894e2546fcce7ffc24967e714de3805ed</id>
<content type='text'>
Move the NETLINK define into opt_global.h so we can rely on it being
set correctly, without having to remember to include opt_netlink.h.
This ensures that the NETLINK define is correctly set. If not we
may end up with unloadable modules, due to missing symbols (such as
nlmsg_get_group_writer).

PR:		274306
Reviewed by:	imp, markj
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D42179

(cherry picked from commit ab393e9548f8cc0ee28499c411963b798ebb38a5)
</content>
</entry>
</feed>
