freebsd-skq/contrib
Conrad Meyer 8dd74db753 auditd(8): fix long-standing uninitialized memory use bug
The bogus use could lead to an infinite loop depending on how fast the
audit_warn script to execute.

By fixing read(2) interruptibility, d060887 (r335899) revealed another bug
in auditd_wait_for_events.  When read is interrupted by SIGCHLD,
auditd_reap_children will always return with errno set to ECHILD.  But
auditd_wait_for_events checks errno after that point, expecting it to be
unchanged since read.  As a result, it calls auditd_handle_trigger with bogus
stack garbage.  The result is the error message "Got unknown trigger 48."  Fix
by simply ignoring errno at that point; there's only one value it could've
possibly had, thanks to the check up above.

The best part is we've had a fix for this for like 18 months and just never
merged it.  Merge it now.

PR:		234209
Reported by:	Marie Helene Kvello-Aune <freebsd AT mhka.no> (2018-12)
Submitted by:	asomers (2018-07)
Reviewed by:	me (in OpenBSM)
Obtained from:	OpenBSM
X-MFC-With:	r335899
Security:	¯\_(ツ)_/¯
Differential Revision:	https://github.com/openbsm/openbsm/pull/45
2019-11-28 00:46:03 +00:00
..
amd amd: add deprecation warning on program startup 2019-11-22 15:06:07 +00:00
apr
apr-util
atf
bearssl
binutils binutils: Fix bugs found by -Wpointer-compare 2019-10-24 22:34:48 +00:00
blacklist blacklistd.conf.5: pluralization correction 2019-11-06 17:01:35 +00:00
bmake
bsnmp Fix the byte order of IPv4 address parsed from begemotSnmpdTransInetStatus 2019-11-19 16:29:47 +00:00
byacc
bzip2
capsicum-test
com_err
compiler-rt Fix llvm-libunwind userspace build on ARM 2019-11-05 03:20:40 +00:00
cortex-strings
dialog
diff
dma
dtc
ee
elftoolchain ELF toolchain: Add PowerPC VMX and VSX note decode to readelf 2019-11-19 02:11:00 +00:00
expat MFV r355071: libbsdxml (expat) 2.2.9. 2019-11-25 07:48:16 +00:00
file MFV r354798: 2019-11-18 04:22:04 +00:00
flex
gcc
gcclibs
gdb [PPC64] Fix GDB sigtramp detection 2019-11-01 11:28:43 +00:00
gdtoa
googletest Work around gcc's inability to compile an incomplete type in googletest, 2019-09-14 19:19:38 +00:00
gperf
hyperv/tools
ipfilter Implement the dynamic add (-A) and removal (-R) of ippool pools 2019-09-27 00:29:12 +00:00
jemalloc Revert r354605: Update jemalloc to version 5.2.1. 2019-11-11 05:06:49 +00:00
ldns
ldns-host
less
libarchive MFV r352731: 2019-09-26 01:50:20 +00:00
libbegemot
libc-pwcache
libc-vis
libc++ Merge commit 371ea70bb from llvm git (by Louis Dionne): 2019-11-11 17:41:56 +00:00
libcxxrt Include <stdint.h> in unwind-arm.h, since it uses uint32_t and uint64_t 2019-09-13 21:00:19 +00:00
libdivsufsort
libedit Fix arm and aarch64 builds of libedit after r352275 2019-09-14 21:49:42 +00:00
libevent
libexecinfo Sync up with NetBSD libexecinfo changes 2014-2019 2019-10-26 06:59:59 +00:00
libgnuregex
libpcap
libstdc++
libucl
libunwind Fix llvm-libunwind userspace build on ARM 2019-11-05 03:20:40 +00:00
libxo Import libxo-1.3.1: 2019-11-07 18:06:44 +00:00
llvm Merge commit a751f557d from llvm git (by Simon Atanasyan): 2019-11-21 20:36:46 +00:00
lua
mandoc
mknod
mtree mtree -O: Fix not descending on hash collisions 2019-09-12 20:46:46 +00:00
ncurses
netbsd-tests Re-apply fixed r354847 2019-11-20 19:43:34 +00:00
netcat
ngatm
ntp Disable ntpd stack gap. When ASLR with STACK GAP != 0 ntpd suffers SIGSEGV. 2019-11-15 16:34:35 +00:00
nvi
ofed
one-true-awk
openbsm auditd(8): fix long-standing uninitialized memory use bug 2019-11-28 00:46:03 +00:00
opencsd/decoder Remove a stale file left after merging. 2019-10-10 13:44:12 +00:00
openmp Enable OpenMP for powerpc64 2019-09-26 18:24:04 +00:00
openpam
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 Fix various -Wpointer-compare warnings 2019-10-08 21:14:09 +00:00
serf
smbfs
sqlite3 MFV r354257: 2019-11-03 01:25:46 +00:00
subversion
tcp_wrappers
tcpdump
tcsh Update tcsh to git revision 83c5be0 bringing in a number of bug fixes. 2019-10-21 21:21:34 +00:00
telnet
tnftp
traceroute
tzcode
tzdata Import tzdata 2019c 2019-09-12 00:19:16 +00:00
unbound
unvis
vis
wpa
xz