freebsd-nq/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 Update apr to 1.7.0. See contrib/apr/CHANGES for a summary of changes. 2020-05-31 22:12:56 +00:00
apr-util Update apr-util to 1.6.1. See contrib/apr-util/CHANGES for a summary of 2020-06-01 10:14:45 +00:00
atf
bc Upgrade to version 3.2.3 2020-12-06 11:49:21 +00:00
bearssl Add libbearssl 2019-02-26 05:59:22 +00:00
blacklist blacklistd.conf.5: typo/grammar fixes 2020-05-19 00:15:19 +00:00
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 Upgrade to Bzip2 version 1.0.8. 2019-08-11 06:26:03 +00:00
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 MFV r355071: libbsdxml (expat) 2.2.9. 2019-11-25 07:48:16 +00:00
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 [PPC64] Fix GDB sigtramp detection 2019-11-01 11:28:43 +00:00
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 Revert r359385-r359387 2020-03-29 02:40:03 +00:00
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 pwcache.3: Explicitly document OOM condition 2020-05-05 17:55:45 +00:00
libc-vis
libcxxrt Make vector-related functions in libcxxrt's demangler static 2020-11-04 17:51:09 +00:00
libdivsufsort
libedit Fix arm and aarch64 builds of libedit after r352275 2019-09-14 21:49:42 +00:00
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 MFV r355890: 2019-12-21 21:05:53 +00:00
libucl
libxo Import libxo-1.4.0: 2020-01-25 21:16:45 +00:00
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 Add liblutok a lightweight C++ API for lua. 2020-03-23 18:26:23 +00:00
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 Update to 6.2-20200215 2020-02-19 17:09:08 +00:00
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 MFV 354917, 354918, 354919 2019-11-20 23:56:20 +00:00
opie
pam_modules/pam_passwdqc
pf
pjdfstest
pnpinfo
processor-trace Update Intel Processor Trace decoder library. 2019-10-10 12:46:34 +00:00
sendmail Key decleration of union semun on src version 2020-10-26 17:52:28 +00:00
serf
smbfs mount_smbfs: Issue a warning when .nsmbrc section name contains lowercase characters. 2020-01-03 12:54:14 +00:00
sqlite3 MFV 364467: 2020-08-24 18:13:44 +00:00
subversion Update Subversion to 1.14.0 LTS. See contrib/subversion/CHANGES for a 2020-06-01 10:27:05 +00:00
tcp_wrappers Remove a duplicate global (rfc931_timeout). 2019-07-17 23:43:14 +00:00
tcpdump Revert r362466 2020-06-22 07:46:24 +00:00
tcsh MFV r359393: tcsh: import 6974bc35a5cd 2020-03-28 15:00:55 +00:00
telnet telnet(1): Document -P option 2020-08-07 08:41:14 +00:00
tnftp Fix poor performance of ftp(1) due to small SO_SNDBUF and SO_RCVBUF. 2020-02-27 19:49:59 +00:00
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 Post CVE-2020-12695 cleanup patch: 2020-06-09 05:43:51 +00:00
xz liblzma: Make liblzma use libmd implementation of SHA256. 2020-06-20 21:32:07 +00:00