<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/compat/linux/linux_elf.c, branch release/13.2.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F13.2.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F13.2.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2023-02-09T07:55:24Z</updated>
<entry>
<title>linux(4): Deduplicate linux_trans_osrel().</title>
<updated>2023-02-09T07:55:24Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2023-02-02T14:58:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7125bd6e9f20473b1b161499e8235843fc62ae5e'/>
<id>urn:sha1:7125bd6e9f20473b1b161499e8235843fc62ae5e</id>
<content type='text'>
MFC after:		1 week

(cherry picked from commit 95b8603427d5759c5d6090ffaacfaf7f3b8fb926)
</content>
</entry>
<entry>
<title>linux(4): Deduplicate linux_copyout_strings().</title>
<updated>2023-02-09T07:55:23Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2023-02-02T14:58:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ee61a8204380979fb32a06d35d707211682fafa1'/>
<id>urn:sha1:ee61a8204380979fb32a06d35d707211682fafa1</id>
<content type='text'>
It is still present in the 32-bit Linuxulator on amd64.

MFC after:		1 week

(cherry picked from commit 6039e966ff276ff6bcb57f2f70e7d8ff376b24fd)
</content>
</entry>
<entry>
<title>linux(4): Use COMPAT_LINUX32 enstead of __ELF_WORD_SIZE.</title>
<updated>2023-02-09T07:54:16Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2023-02-02T14:58:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=cc79fd889da4466a29aa77893a64d64a95ec60b3'/>
<id>urn:sha1:cc79fd889da4466a29aa77893a64d64a95ec60b3</id>
<content type='text'>
COMPAT_LINUX32 option is defined for case when building 32-bit Linuxulator
for the 64-bit host. Usage of __ELF_WORD_SIZE is wrong here as it is equal to 32
on i386 too.

MFC after:		1 week

(cherry picked from commit 6f8439db241c7409275d77f5376e8505967bef67)
</content>
</entry>
<entry>
<title>linux(4): Microoptimize linux_elf.h for future use.</title>
<updated>2023-02-09T07:54:16Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2023-02-02T14:58:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4f5d095fb4afb59dca19c0fb3e5004711538d0bf'/>
<id>urn:sha1:4f5d095fb4afb59dca19c0fb3e5004711538d0bf</id>
<content type='text'>
In order to reduce code duplication move coredump support definitions
into the appropriate header and hide private definitions.

MFC after:		1 week

(cherry picked from commit 7446514533a40b376eaeb349ea33531ce9c711c2)
</content>
</entry>
<entry>
<title>elf_note_prpsinfo: handle more failures from proc_getargv()</title>
<updated>2022-08-09T19:47:32Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2022-06-03T08:21:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8a44a2c644fc6d4ec1740fcc0b3ff01eac989ddf'/>
<id>urn:sha1:8a44a2c644fc6d4ec1740fcc0b3ff01eac989ddf</id>
<content type='text'>
Resulting sbuf_len() from proc_getargv() might return 0 if user mangled
ps_strings enough. Also, sbuf_len() API contract is to return -1 if the
buffer overflowed. The later should not occur because get_ps_strings()
checks for catenated length, but check for this subtle detail explicitly
as well to be more resilent.

The end result is that p_comm is used in this situations.

Approved by:	so
Security:	FreeBSD-SA-22:09.elf
Reported by:	Josef 'Jeff' Sipek &lt;jeffpc@josefsipek.net&gt;
Reviewed by:	delphij, markj
admbugs:	988
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D35391

(cherry picked from commit 00d17cf342cd9f4f8fd1dcd79c8caec359145532)
</content>
</entry>
<entry>
<title>linux: Drop some unnecessary includes</title>
<updated>2022-06-17T19:33:38Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2022-06-17T19:33:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=862add4358d45ccb72f5df6c5382cc24856c5330'/>
<id>urn:sha1:862add4358d45ccb72f5df6c5382cc24856c5330</id>
<content type='text'>
Drop some unnecessary includes from Linuxulator ptrace
and coredump code.  No functional changes.

Sponsored By:   EPSRC
Differential Revision:  https://reviews.freebsd.org/D32925

(cherry picked from commit 06d5ef0aad20f703c15350663ce2600bae2fe189)
</content>
</entry>
<entry>
<title>linux(4): implement coredump support</title>
<updated>2022-06-17T19:33:02Z</updated>
<author>
<name>Edward Tomasz Napierala</name>
<email>trasz@FreeBSD.org</email>
</author>
<published>2021-06-30T16:45:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1b196c07b81d1ec547a4e57567c352e93080c9e5'/>
<id>urn:sha1:1b196c07b81d1ec547a4e57567c352e93080c9e5</id>
<content type='text'>
Implement dumping core for Linux binaries on amd64, for both
32- and 64-bit executables.  Some bits are still missing.

This is based on a prototype by chuck@.

Reviewed By:	kib
Sponsored By:	EPSRC
Differential Revision:	https://reviews.freebsd.org/D30019

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