1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-04 09:09:56 +00:00
freebsd/contrib
Marcin Wojtas b62ae61446 Fix abort in jemalloc extent coalescing.
Fix error in extent_try_coalesce_impl(), which could cause abort
to happen when trying to coalesce extents backwards. The error could
happen because of how extent_before_get() function works. This function
gets address of previous extent, by subtracting page size from current
extent address. If current extent is located at PAGE_SIZE offset, this
address resolved to 0x0000. An assertion in rtree_leaf_elm_lookup
then caused the running program to abort.

This problem was discovered when trying to build world on 32-bit
machines with ASLR and PIE enabled. The problem was encountered
on armv7 and i386 machines, but most likely other 32-bit
architectures are affected as well.

While this patch fixes one problem with buildworld on 32-bit platforms
with ASLR, the build still fails, however it happens much later
and due to lack of memory.

The change is aligned with accepted fix in the upstream Jemalloc
repository (https://github.com/jemalloc/jemalloc/pull/1973).
As it doesn't apply on top of Jemalloc tree, its updated version
was eventually merged: https://github.com/jemalloc/jemalloc/pull/2003

PR: 249937
Submitted by: Dawid Gorecki <dgr@semihalf.com>
Obtained from: Semihalf
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D27025
2020-12-18 10:09:21 +00:00
..
apr
apr-util
atf
bc Upgrade to version 3.2.3 2020-12-06 11:49:21 +00:00
bearssl
blacklist
bmake Merge bmake-20201117 2020-11-20 06:02:31 +00:00
bsnmp snmpmod(3): fix typo under the COMMUNITIES section 2020-11-05 21:37:24 +00:00
byacc byacc: fix UBSan signed shift range error 2020-09-23 12:54:42 +00:00
bzip2
capsicum-test Revert r358001 in favor of r366509 2020-10-07 07:55:55 +00:00
com_err
cortex-strings
dialog
diff
dma
ee ee(1): Whitespace cleanup 2020-12-10 10:58:30 +00:00
elftoolchain addr2line: fix allocation leak in error path 2020-12-03 14:41:11 +00:00
expat
file Revert r362261, "Re-apply r333944 to unbreak ports" 2020-06-29 13:30:48 +00:00
flex [flex] Fix compilation issue under mips-gcc-6.4 2020-07-14 05:00:08 +00:00
gdb
gdtoa
googletest Re-enable disabled googletest-port-test tests after r363820 2020-08-04 02:20:15 +00:00
hyperv/tools
ipfilter Remove a random equal sign from the example. It should not be there. 2020-10-27 04:35:47 +00:00
jemalloc Fix abort in jemalloc extent coalescing. 2020-12-18 10:09:21 +00:00
kyua
ldns Fix crash in drill(1) when IP has two subsequent dots 2020-06-22 23:13:14 +00:00
ldns-host
less MFV r366990: less v563. 2020-10-24 15:58:42 +00:00
lib9p Import lib9p 9d5aee77bcc1bf0e79b0a3bfefff5fdf2146283c. 2020-10-03 18:52:54 +00:00
libarchive MFV r368607: 2020-12-13 16:26:37 +00:00
libbegemot
libc-pwcache
libc-vis
libcxxrt Make vector-related functions in libcxxrt's demangler static 2020-11-04 17:51:09 +00:00
libdivsufsort
libedit
libevent
libexecinfo Pull in fix from upstream NetBSD rev. 1.5: 2020-09-21 16:43:38 +00:00
libgnuregex This fixes some fun type size truncation that shows up giving errors like 2020-10-16 14:28:13 +00:00
libpcap
libucl
libxo
llvm-project Merge commit 28de0fb48 from llvm git (by Luís Marques): 2020-12-09 18:37:43 +00:00
lua MFC r366760: lua: update to 5.3.6 2020-10-16 17:03:27 +00:00
lutok
mandoc flua: Add a libjail module 2020-10-24 17:08:59 +00:00
mknod
mtree fts_read: Handle error from a NULL return better. 2020-12-08 23:38:26 +00:00
ncurses
netbsd-tests libc: regex: partial revert of r368358 2020-12-05 14:38:46 +00:00
netcat Adjust .Dd, missed in r363084. 2020-07-10 19:58:07 +00:00
ngatm
ntp MFV r362565: 2020-06-24 01:51:05 +00:00
nvi Fix buildworld on Linux/macOS after nvi update 2020-10-12 10:42:24 +00:00
ofed infiniband-diags: Fix memory leak in dump_multicast_tables 2020-08-31 16:18:48 +00:00
one-true-awk Fix another UBSan error in awk 2020-09-21 19:03:12 +00:00
openbsm Fixup some incorrect information and some comments. These changes 2020-07-28 20:06:16 +00:00
opencsd/decoder Update opencsd to 0.14.2 2020-06-17 10:42:20 +00:00
openpam Merge upstream r948: fix race condition in openpam_ttyconv(3). 2020-11-19 05:46:59 +00:00
openresolv
opie
pam_modules/pam_passwdqc
pf
pjdfstest
pnpinfo
processor-trace
sendmail Key decleration of union semun on src version 2020-10-26 17:52:28 +00:00
serf
smbfs
sqlite3 MFV 364467: 2020-08-24 18:13:44 +00:00
subversion
tcp_wrappers
tcpdump Revert r362466 2020-06-22 07:46:24 +00:00
tcsh
telnet telnet(1): Document -P option 2020-08-07 08:41:14 +00:00
tnftp
traceroute ping: fix some man pages and tests after r368045 2020-11-26 04:55:02 +00:00
tzcode ctime(3): Bump .Dd after r362165 2020-06-17 11:57:48 +00:00
tzdata Import tzdata 2020c 2020-10-22 01:05:34 +00:00
unbound MFV r368746: 2020-12-18 04:23:20 +00:00
unvis
vis
wpa
xz liblzma: Make liblzma use libmd implementation of SHA256. 2020-06-20 21:32:07 +00:00