Commit Graph

272284 Commits

Author SHA1 Message Date
christos a3dd92aca3 resolve conflicts 2019-12-15 17:08:21 +00:00
tsutsui 1e72df6a03 Remove clause 3 and 4 leftovers from TNF licenses in more sources.
Confirmed by martin@ in PR/54760.
2019-12-15 16:48:25 +00:00
christos 77513ecfba OpenPAM Tabebuia 2019-02-24
- BUGFIX: Fix off-by-one bug in pam_getenv(3) which was introduced in
   OpenPAM Radula.

 - ENHANCE: Add unit tests for pam_{get,put,set}env(3).
2019-12-15 16:44:27 +00:00
christos 4ee10d9658 new nsd and unbound 2019-12-15 16:27:43 +00:00
christos 5b490f6c36 merge conflicts 2019-12-15 16:26:04 +00:00
christos 87edd195b7 resolve conflicts 2019-12-15 16:16:34 +00:00
tkusumi e4ac703578 dm: Rename dm specific atoi() to atoi64()
This is uint64_t version, not sys/lib/libsa/atoi.c.
2019-12-15 16:14:27 +00:00
christos febe9f0745 3 December 2019: Wouter
- Fix #52: do not log transient network full errors unless higher
	  verbosity is set.
	- Fix checkconf test for new error output string.
	- tag for 4.2.4rc1 release.

27 November 2017 Jeroen
	- Fix regressions in configparser.y

22 November 2019: Wouter
	- Fix #48: Add make distclean that removes config.h made by configure.
	  And add maintainer-clean that removes bison and flex output.

18 November 2019: Wouter
	- Detect fixed time memcmp for openssl 0.9.8 compatibility.
	- Detect EC_KEY_new_by_curve_name for openssl 0.9.8.
	- include limits.h for UINT_MAX.
	- If no recvmmsg, dont use msg_flags member, but errno for error,
	  where our fallback function left it, msg_flags also does not exist
	  on some systems.
	- Remove unused variable warning for portability.

14 November 2019: Wouter
	- Fix checkconf test with filenames that sort in the same order.
	- Tag for 4.2.3rc1.  Branch master is 4.2.4 in development.

11 November 2019: Wouter
	- Fix #44: document that remote-control is a top-level nsd.conf
	  attribute.
	- Fix compile on OSX.
	- Fix for #44: nicer top-level clause documentation.

22 October 2019: Jeroen
	- Number of different UDP handlers has been reduced to one. recvmmsg
	  and sendmmsg implementations are now used on all platforms.
	  Compatible implementations are in place for systems that lack the
	  system calls.
	- Socket options are now set in designated functions for easy reuse.
	- Socket setup has been simplified for easy reuse.
	- Configuration parser is now aware of the context in which an option
	  was specified.

21 October 2019: Wouter
	- For #21 add
	  contrib/patch_for_s6_startup_and_other_service_supervisors.diff
	  that adds support for readiness notification with READY_FD from
	  Cameron Nemo.

17 October 2019: Jeroen
	- Fix #40: Merge small fixes for confine-to-zone by Greg Bock.

15 October 2019: Jeroen
	- For #39: Merge confine-to-zone feature contributes by Greg Bock.

26 September 2019: Wouter
	- Fix #38: log address and failure reason with tls handshake errors,
	  squelches (the same as unbound) some unless high verbosity is used.
	- Fixup clang analysis warning in xfrd_parse_received_xfr_packet
	  master dereference.

25 September 2019: Wouter
	- The nsd.conf includes are sorted ascending, for include statements
	  with a '*' from glob.

16 September 2019: Wouter
	- Fixup warnings during --disable-ipv6 compile.
	- Fixup unit test executable to run without IPv6.

4 September 2019: Wouter
	- Fix #35: excessive logging of ixfr failures, it stops the log when
	  fallback to axfr is possible. log is enabled at high verbosity.

2 September 2019: Wouter
	- For #21: pidfile "" allows to run NSD without a pidfile, for
	  startup management tools like daemontools.

28 August 2019: Wouter
	- In tests check for tls test tool availability.

19 August 2019: Wouter
	- Tag for 4.2.2 release.  Git master contains 4.2.3 in development.

13 August 2019: Wouter
	- Fix error message for out of zone data to have more information.
	- Tag for 4.2.2rc2.

12 August 2019: Wouter
	- Fix #33: Fix segfault in service of remaining streams on exit.

6 August 2019: Wouter
	- Tag for 4.2.2rc1.

5 August 2019: Wouter
	- PR #31: nsd-control: Add missing stdio header.
	- PR #32: tsig: Fix compilation without HAVE_SSL.
	- Cleanup tls context on xfrd exit.

31 July 2019: Wouter
	- Fix #29: SSHFP check NULL pointer dereference.
	- Fix #30: SSHFP check failure due to missing domain name.
	- Fix to timeval_add in minievent for remaining second in microseconds.

22 July 2019: Wouter
	- Set timeout for refetch immediately, only spread load when there
	  are retries.

19 July 2019: Wouter
	- Set no renegotiation on the SSL context to stop client
	  session renegotiation.

18 July 2019: Wouter
	- Fix #25: NSD doesn't refresh zones after extended downtime,
	  it refreshes the old zones, with a random delay of a couple of
	  seconds to spread the load.
	- Fix so that expired zones stay expired when server is down a
	  long time.

17 July 2019: Wouter
	- Fix that NSD warns for wrong length of the hash in SSHFP records.

15 July 2019: Wouter
	- PR #23: Fix typo in nsd.conf man-page.

4 July 2019: Wouter
	- Set version to 4.2.2 in development.
	- clean memory on exit of nsd-checkzone for memory debug.
	- Fix #20: CVE-2019-13207 Stack-based Buffer Overflow in the
	  dname_concatenate() function.  Reported by Frederic Cambus.
	  It causes the zone parser to crash on a malformed zone file,
	  with assertions enabled, an assertion catches it.
	- Fix #19: Out-of-bounds read caused by improper validation of
	  array index.  Reported by Frederic Cambus.  The zone parser
	  fails on type SIG because of mismatched definition with RRSIG.

2 July 2019: Wouter
	- Tag for 4.2.1rc1

27 June 2019: Wouter
	- Fix unit test for added options and no dot after zone updated
	  log message.
	- Fix compile without accept4.

21 June 2019: Wouter
	- Omit remaining tcp processing if the list is empty.
	- Fix output of nsd-checkconf -h.

20 June 2019: Wouter
	- Initialize event structures before event_set, to stop uninitialized
	  values from setting event library lists and assertions, that would
	  sometimes also show after event_del.
	- Added num.tls and num.tls6 stat counters.
	- PR #12: send-buffer-size, receive-buffer-size,
	  tcp-reject-overflow options for nsd.conf, from Jeroen Koekkoek.
	- Do not use symbol from libc, instead use own replacement, if not
	  available, for accept4.
	- Fix #14, tcp connections have 1/10 to be active and have to work
	  every second, and then they get time to complete during a reload,
	  this is a process that lingers with the old version during a version
	  update.

19 June 2019: Wouter
	- Fix tls handshake event callback function mistake, reported
	  by Mykhailo Danylenko.

18 June 2019: Wouter
	- Fix #15: crash in SSL library, initialize variables for TCP access
	  when TLS is configured.

14 June 2019: Wouter
	- Fix to init event not pointer, in reassignment.

12 June 2019: Wouter
	- Fix to init event structure for reassignment.

11 June 2019: Wouter
	- NSD 4.2.0 release.  Current development is 4.2.1.
	- Fixup of RELNOTES, corrected RFC reference for 4892.
	- Fix #13: Stray dot at the end of some log entries, removes dot
	  after updated serial number in log entry.
	- Fix TLS cipher selection, the previous was redundant, prefers
	  CHACHA20-POLY1305 over AESGCM and was not as readable as it could be.
	- Consolidate server tls context create and remote control context
	  create, with hardening for the remote control tls context too.

6 June 2019: Wouter
	- NSD 4.2.0rc1 tag.

4 June 2019: Wouter
	- Fix unit test for outgoing interface to use random port numbers for
	  the outgoing interface config.

29 May 2019: Wouter
	- Fix to guard _OPENBSD_SOURCE from redefinition.

28 May 2019: Wouter
	- Fix to define _OPENBSD_SOURCE to get reallocarray on NetBSD.

16 May 2019: Wouter
	- Fix #10: Fix memory leaks caused by duplicate rr and include
	  instructions.

6 May 2019: Wouter
	- Note CII best practices badge for NSD on the README.md.

2 May 2019: Wouter
	- Fix .gitignore for unit test generated files.
	- Fix checkconf unit test for hide-identity and tls.

1 May 2019: Wouter
	- Fix makedist.sh for use with git.
	- Nicer output on travis for clang analysis.
	- Add .gitignore file to exclude built files from version tracking.
	- Add README.md file in repository with compile instructions.
	- Fix .gitignore for dnstap files and aclocal temp.
	- Add aclocal to README.md for pkgconfig for some configure options.

25 April 2019: Wouter
	- Add tls.tpkg unit test for DNS over TLS functionality.

18 April 2019: Wouter
	- Fix to avoid buffer alloc with global buffer in tls write handler.
	- Fix to initialize event structure when accepting TCP connection.
	- Use travis for build check, initial unit test and clang analysis.
	- Disable SSLv2,3,TLSv1.0,1.1 if TLS1.2 is available in libssl.
	- Disable weak ciphers, enable CIPHER_SERVER_PREFERENCE.
	- further setup ssl ctx after the keys are loaded, for ECDH.
	- TLS OCSP stapling support, enabled with tls-service-ocsp: filename,
	  patch from Andreas Schulze.

17 April 2019: Wouter
	- Fix to share openssl init code, and perform it once.

16 April 2019: Andreas via Sara
	- Patch to add support for TCP Fast Open
	- Patch to add support for tls service on a specified tls port

16 April 2019: Wouter
	- Fix #4249: The option hide-identity: yes stops NSD from responding
	  with the hostname for chaos class queries.  Implements the RFC4829
	  security considerations.
	- Remove starttls, this signalling method was not standardized.
	- Remove TO bit, this signalling method was not standardized.
	- Remove unused first_query and tls_ok states.
	- Remove sign-compare warning in tls packet send code.
	- Fix spelling in comment and log printout.
	- Fix potential uninitialized variable.
	- Fix documentation for DNS over TLS, and set default port 853.
	- Fix to add missing comment.
	- Fix that the TLS handshake routine sets the correct event to
	  continue when done.
	- Fix that TLS renegotiation calls the read and write routines again
	  with the same parameters when the desired event has been satisfied.
	- Fix that TCP Fastopen has better error message and supports OSX.
	- Fix log for fastopen with verbosity.
	- Squelch TLS handshake failure log until verbosity 3.
	- Add per-zone statistics for TLS queries, and dnstap for TLS queries,
	  and rcode and TCflag statistics for TCP and TLS queries.

25 March 2019: Wouter
	- Print IP address when bind socket fails with error.

21 March 2019: Wouter
	- Fix spelling error in release notes.
	- Fix to delete unused zparser.default_apex member.
2019-12-15 16:00:52 +00:00
christos 01049ae6d5 Import unbound 1.9.6:
6 December 2019: Wouter
	- Fix ipsecmod compile.
	- Fix Makefile.in for ipset module compile, from Adi Prasaja.

5 December 2019: Wouter
	- unbound-fuzzers.tar.bz2: three programs for fuzzing, that are 1:1
	  replacements for unbound-fuzzme.c that gets created after applying
	  the contrib/unbound-fuzzme.patch.  They are contributed by
	  Eric Sesterhenn from X41 D-Sec.
	- tag for 1.9.6rc1.

4 December 2019: Wouter
	- Fix lock type for memory purify log lock deletion.
	- Fix testbound for alloccheck runs, memory purify and lock checks.
	- update contrib/fastrpz.patch to apply more cleanly.
	- Fix Make Test Fails when Configured With --enable-alloc-nonregional,
	  reported by X41 D-Sec.

3 December 2019: Wouter
	- Merge pull request #124 from rmetrich: Changed log lock
	  from 'quick' to 'basic' because this is an I/O lock.
	- Fix text around serial arithmatic used for RRSIG times to refer
	  to correct RFC number.
	- Fix Assert Causing DoS in synth_cname(),
	  reported by X41 D-Sec.
	- Fix similar code in auth_zone synth cname to add the extra checks.
	- Fix Assert Causing DoS in dname_pkt_copy(),
	  reported by X41 D-Sec.
	- Fix OOB Read in sldns_wire2str_dname_scan(),
	  reported by X41 D-Sec.
	- Fix Out of Bounds Write in sldns_str2wire_str_buf(),
	  reported by X41 D-Sec.
	- Fix Out of Bounds Write in sldns_b64_pton(),
	  fixed by check in sldns_str2wire_int16_data_buf(),
	  reported by X41 D-Sec.
	- Fix Insufficient Handling of Compressed Names in dname_pkt_copy(),
	  reported by X41 D-Sec.
	- Fix Out of Bound Write Compressed Names in rdata_copy(),
	  reported by X41 D-Sec.
	- Fix Hang in sldns_wire2str_pkt_scan(),
	  reported by X41 D-Sec.
	  This further lowers the max to 256.
	- Fix snprintf() supports the n-specifier,
	  reported by X41 D-Sec.
	- Fix Bad Indentation, in dnscrypt.c,
	  reported by X41 D-Sec.
	- Fix Client NONCE Generation used for Server NONCE,
	  reported by X41 D-Sec.
	- Fix compile error in dnscrypt.
	- Fix _vfixed not Used, removed from sbuffer code,
	  reported by X41 D-Sec.
	- Fix Hardcoded Constant, reported by X41 D-Sec.
	- make depend

2 December 2019: Wouter
	- Merge pull request #122 from he32: In tcp_callback_writer(),
	  don't disable time-out when changing to read.

22 November 2019: George
	- Fix compiler warnings.

22 November 2019: Wouter
	- Fix dname loop maximum, reported by Eric Sesterhenn from X41 D-Sec.
	- Add make distclean that removes everything configure produced,
	  and make maintainer-clean that removes bison and flex output.

20 November 2019: Wouter
	- Fix Out of Bounds Read in rrinternal_get_owner(),
	  reported by X41 D-Sec.
	- Fix Race Condition in autr_tp_create(),
	  reported by X41 D-Sec.
	- Fix Shared Memory World Writeable,
	  reported by X41 D-Sec.
	- Adjust unbound-control to make stats_shm a read only operation.
	- Fix Weak Entropy Used For Nettle,
	  reported by X41 D-Sec.
	- Fix Randomness Error not Handled Properly,
	  reported by X41 D-Sec.
	- Fix Out-of-Bounds Read in dname_valid(),
	  reported by X41 D-Sec.
	- Fix Config Injection in create_unbound_ad_servers.sh,
	  reported by X41 D-Sec.
	- Fix Local Memory Leak in cachedb_init(),
	  reported by X41 D-Sec.
	- Fix Integer Underflow in Regional Allocator,
	  reported by X41 D-Sec.
	- Upgrade compat/getentropy_linux.c to version 1.46 from OpenBSD.
	- Synchronize compat/getentropy_win.c with version 1.5 from
	  OpenBSD, no changes but makes the file, comments, identical.
	- Upgrade compat/getentropy_solaris.c to version 1.13 from OpenBSD.
	- Upgrade compat/getentropy_osx.c to version 1.12 from OpenBSD.
	- Changes to compat/getentropy files for,
	  no link to openssl if using nettle, and hence config.h for
	  HAVE_NETTLE variable.
	  compat definition of MAP_ANON, for older systems.
	  ifdef stdint.h inclusion for older systems.
	  ifdef sha2.h inclusion for older systems.
	- Fixed Compat Code Diverging from Upstream, reported by X41 D-Sec.
	- Fix compile with --enable-alloc-checks, reported by X41 D-Sec.
	- Fix Terminating Quotes not Written, reported by X41 D-Sec.
	- Fix Useless memset() in validator, reported by X41 D-Sec.
	- Fix Unrequired Checks, reported by X41 D-Sec.
	- Fix Enum Name not Used, reported by X41 D-Sec.
	- Fix NULL Pointer Dereference via Control Port,
	  reported by X41 D-Sec.
	- Fix Bad Randomness in Seed, reported by X41 D-Sec.
	- Fix python examples/calc.py for eval, reported by X41 D-Sec.
	- Fix comments for doxygen in dns64.

19 November 2019: Wouter
	- Fix CVE-2019-18934, shell execution in ipsecmod.
	- 1.9.5 is 1.9.4 with bugfix, trunk is 1.9.6 in development.
	- Fix authzone printout buffer length check.
	- Fixes to please lint checks.
	- Fix Integer Overflow in Regional Allocator,
	  reported by X41 D-Sec.
	- Fix Unchecked NULL Pointer in dns64_inform_super()
	  and ipsecmod_new(), reported by X41 D-Sec.
	- Fix Out-of-bounds Read in rr_comment_dnskey(),
	  reported by X41 D-Sec.
	- Fix Integer Overflows in Size Calculations,
	  reported by X41 D-Sec.
	- Fix Integer Overflow to Buffer Overflow in
	  sldns_str2wire_dname_buf_origin(), reported by X41 D-Sec.
	- Fix Out of Bounds Read in sldns_str2wire_dname(),
	  reported by X41 D-Sec.
	- Fix Out of Bounds Write in sldns_bget_token_par(),
	  reported by X41 D-Sec.

18 November 2019: Wouter
	- In unbound-host use separate variable for get_option to please
	  code checkers.
	- update to bison output of 3.4.1 in code repository.
	- Provide a prototype for compat malloc to remove compile warning.
	- Portable grep usage for reuseport configure test.
	- Check return type of HMAC_Init_ex for openssl 0.9.8.
	- gitignore .source tempfile used for compatible make.

13 November 2019: Wouter
	- iana portlist updated.
	- contrib/fastrpz.patch updated to apply for current code.
	- fixes for splint cleanliness, long vs int in SSL set_mode.

11 November 2019: Wouter
	- Fix #109: check number of arguments for stdin-pipes in
	  unbound-control and fail if too many arguments.
	- Merge #102 from jrtc27: Add getentropy emulation for FreeBSD.

24 October 2019: Wouter
	- Fix #99: Memory leak in ub_ctx (event_base will never be freed).

23 October 2019: George
	- Add new configure option `--enable-fully-static` to enable full static
	  build if requested; in relation to #91.

23 October 2019: Wouter
	- Merge #97: manpage: Add missing word on unbound.conf,
	  from Erethon.

22 October 2019: Wouter
	- drop-tld.diff: adds option drop-tld: yesno that drops 2 label
	  queries, to stop random floods.  Apply with
	  patch -p1 < contrib/drop-tld.diff and compile.
	  From Saksham Manchanda (Secure64).  Please note that we think this
	  will drop DNSKEY and DS lookups for tlds and hence break DNSSEC
	  lookups for downstream clients.

7 October 2019: Wouter
	- Add doxygen comments to unbound-anchor source address code, in #86.

3 October 2019: Wouter
	- Merge #90 from vcunat: fix build with nettle-3.5.
	- Merge 1.9.4 release with fix for vulnerability CVE-2019-16866.
	- Continue with development of 1.9.5.
	- Merge #86 from psquarejho: Added -b source address option to
	  smallapp/unbound-anchor.c, from Lukas Wunner.

26 September 2019: Wouter
	- Merge #87 from hardfalcon: Fix contrib/unbound.service.in,
	  Drop CAP_KILL, use + prefix for ExecReload= instead.

25 September 2019: Wouter
	- The unbound.conf includes are sorted ascending, for include
	  statements with a '*' from glob.

23 September 2019: Wouter
	- Merge #85 for #84 from sam-lunt: Add kill capability to systemd
	  service file to fix that systemctl reload fails.

20 September 2019: Wouter
	- Merge #82 from hardfalcon: Downgrade CAP_NET_ADMIN to CAP_NET_RAW
	  in unbound.service.
	- Merge #81 from Maryse47: Consistently use /dev/urandom instead
	  of /dev/random in scripts and docs.
	- Merge #83 from Maryse47: contrib/unbound.service.in: do not fork
	  into the background.

19 September 2019: Wouter
	- Fix #78: Memory leak in outside_network.c.
	- Merge pull request #76 from Maryse47: Improvements and fixes for
	  systemd unbound.service.
	- oss-fuzz badge on README.md.
	- Fix fix for #78 to also free service callback struct.
	- Fix for oss-fuzz build warning.
	- Fix wrong response ttl for prepended short CNAME ttls, this would
	  create a wrong zero_ttl response count with serve-expired enabled.
	- Merge #80 from stasic: Improve wording in man page.

11 September 2019: Wouter
	- Use explicit bzero for wiping clear buffer of hash in cachedb,
	  reported by Eric Sesterhenn from X41 D-Sec.

9 September 2019: Wouter
	- Fix #72: configure --with-syslog-facility=LOCAL0-7 with default
	  LOG_DAEMON (as before) can set the syslog facility that the server
	  uses to log messages.

4 September 2019: Wouter
	- Fix #71: fix openssl error squelch commit compilation error.

3 September 2019: Wouter
	- squelch DNS over TLS errors 'ssl handshake failed crypto error'
	  on low verbosity, they show on verbosity 3 (query details), because
	  there is a high volume and the operator cannot do anything for the
	  remote failure.  Specifically filters the high volume errors.

2 September 2019: Wouter
	- ipset module #28: log that an address is added, when verbosity high.
	- ipset: refactor long routine into three smaller ones.
	- updated Makefile dependencies.

23 August 2019: Wouter
	- Fix contrib/fastrpz.patch asprintf return value checks.

22 August 2019: Wouter
	- Fix that pkg-config is setup before --enable-systemd needs it.
	- 1.9.3rc2 release candidate tag.  And this became the 1.9.3 release.
	  Master is 1.9.4 in development.

21 August 2019: Wouter
	- Fix log_dns_msg to log irrespective of minimal responses config.

19 August 2019: Ralph
	- Document limitation of pidfile removal outside of chroot directory.

16 August 2019: Wouter
	- Fix unittest valgrind false positive uninitialised value report,
	  where if gcc 9.1.1 uses -O2 (but not -O1) then valgrind 3.15.0
	  issues an uninitialised value for the token buffer at the str2wire.c
	  rrinternal_get_owner() strcmp with the '@' value.  Rewritten to use
	  straight character comparisons removes the false positive.  Also
	  valgrinds --expensive-definedness-checks=yes can stop this false
	  positive.
	- Please doxygen's parser for "@" occurrence in doxygen comment.
	- Fixup contrib/fastrpz.patch
	- Remove warning about unknown cast-function-type warning pragma.

15 August 2019: Wouter
	- iana portlist updated.
	- Fix autotrust temp file uniqueness windows compile.
	- avoid warning about upcast on 32bit systems for autotrust.
	- escape commandline contents for -V.
	- Fix character buffer size in ub_ctx_hosts.
	- 1.9.3rc1 release candidate tag.
	- Option -V prints if TCP fastopen is available.

14 August 2019: George
	- Fix #59, when compiled with systemd support check that we can properly
	  communicate with systemd through the `NOTIFY_SOCKET`.

14 August 2019: Wouter
	- Generate configlexer with newer flex.
	- Fix warning for unused variable for compilation without systemd.

12 August 2019: George
	- Introduce `-V` option to print the version number and build options.
	  Previously reported build options like linked libs and linked modules
	  are now moved from `-h` to `-V` as well for consistency.
	- PACKAGE_BUGREPORT now also includes link to GitHub issues.

1 August 2019: Wouter
	- For #52 #53, second context does not close logfile override.
	- Fix #52 #53, fix for example fail program.
	- Fix to return after failed auth zone http chunk write.
	- Fix to remove unused test for task_probe existance.
	- Fix to timeval_add for remaining second in microseconds.
	- Check repinfo in worker_handle_request, if null, drop it.

29 July 2019: Wouter
	- Add verbose log message when auth zone file is written, at level 4.
	- Add hex print of trust anchor pointer to trust anchor file temp
	  name to make it unique, for libunbound created multiple contexts.

23 July 2019: Wouter
	- Fix question section mismatch in local zone redirect.

19 July 2019: Wouter
	- Fix #49: Set no renegotiation on the SSL context to stop client
	  session renegotiation.

12 July 2019: Wouter
	- Fix #48: Unbound returns additional records on NODATA response,
	  if minimal-responses is enabled, also the additional for negative
	  responses is removed.

9 July 2019: Ralph
	- Fix in respip addrtree selection. Absence of addr_tree_init_parents()
	  call made it impossible to go up the tree when the matching netmask is
	  too specific.

5 July 2019: Ralph
	- Fix for possible assertion failure when answering respip CNAME from
	  cache.

25 June 2019: Wouter
	- For #45, check that 127.0.0.1 and ::1 are not used in unbound.conf
	  when do-not-query-localhost is turned on, or at default on,
	  unbound-checkconf prints a warning if it is found in forward-addr or
	  stub-addr statements.

24 June 2019: Wouter
	- Fix memleak in unit test, reported from the clang 8.0 static analyzer.

18 June 2019: Wouter
	- PR #28: IPSet module, by Kevin Chou.  Created a module to support
	  the ipset that could add the domain's ip to a list easily.
	  Needs libmnl, and --enable-ipset and config it, doc/README.ipset.md.
	- Fix to omit RRSIGs from addition to the ipset.
	- Fix to make unbound-control with ipset, remove unused variable,
	  use unsigned type because of comparison, and assign null instead
	  of compare with it.  Remade lex and yacc output.
	- make depend
	- Added documentation to the ipset files (for doxygen output).
	- Merge PR #6: Python module: support multiple instances
	- Merge PR #5: Python module: define constant MODULE_RESTART_NEXT
	- Merge PR #4: Python module: assign something useful to the
	  per-query data store 'qdata'
	- Fix python dict reference and double free in config.

17 June 2019: Wouter
	- Master contains version 1.9.3 in development.
	- Fix #39: In libunbound, leftover logfile is close()d unpredictably.
	- Fix for #24: Fix abort due to scan of auth zone masters using old
	  address from previous scan.

12 June 2019: Wouter
	- Fix another spoolbuf storage code point, in prefetch.
	- 1.9.2rc3 release candidate tag.  Which became the 1.9.2 release
	  on 17 June 2019.

11 June 2019: Wouter
	- Fix that fixes the Fix that spoolbuf is not used to store tcp
	  pipelined response between mesh send and callback end, this fixes
	  error cases that did not use the correct spoolbuf.
	- 1.9.2rc2 release candidate tag.

6 June 2019: Wouter
	- 1.9.2rc1 release candidate tag.

4 June 2019: Wouter
	- iana portlist updated.

29 May 2019: Wouter
	- Fix to guard _OPENBSD_SOURCE from redefinition.

28 May 2019: Wouter
	- Fix to define _OPENBSD_SOURCE to get reallocarray on NetBSD.
	- gitignore config.h.in~.

27 May 2019: Wouter
	- Fix double file close in tcp pipelined response code.

24 May 2019: Wouter
	- Fix that spoolbuf is not used to store tcp pipelined response
	  between mesh send and callback end.

20 May 2019: Wouter
	- Note that so-reuseport at extreme load is better turned off,
	  otherwise queries are not distributed evenly, on Linux 4.4.x.

16 May 2019: Wouter
	- Fix #31: swig 4.0 and python module.

13 May 2019: Wouter
	- Squelch log messages from tcp send about connection reset by peer.
	  They can be enabled with verbosity at higher values for diagnosing
	  network connectivity issues.
	- Attempt to fix malformed tcp response.

9 May 2019: Wouter
	- Revert fix for oss-fuzz, error is in that build script that
	  unconditionally includes .o files detected by configure, also
	  when the machine architecture uses different LIBOBJS files.

8 May 2019: Wouter
	- Attempt to fix build failure in oss-fuzz because of reallocarray.
	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14648.
	  Does not omit compile flags from commandline.

7 May 2019: Wouter
	- Fix edns-subnet locks, in error cases the lock was not unlocked.
	- Fix doxygen output error on readme markdown vignettes.

6 May 2019: Wouter
	- Fix #29: Solaris 11.3 and missing symbols be64toh, htobe64.
	- Fix #30: AddressSanitizer finding in lookup3.c.  This sets the
	  hash function to use a slower but better auditable code that does
	  not read beyond array boundaries.  This makes code better security
	  checkable, and is better for security.  It is fixed to be slower,
	  but not read outside of the array.

2 May 2019: Wouter
	- contrib/fastrpz.patch updated for code changes, and with git diff.
	- Fix .gitignore, add pythonmod and dnstap generated files.
	  And unit test generated files, and generated doc files.

1 May 2019: Wouter
	- Update makedist for git.
	- Nicer travis output for clang analysis.
	- PR #16: XoT support, AXFR over TLS, turn it on with
	  master: <ip>#<authname> in unbound.conf.  This uses TLS to
	  download the AXFR (or IXFR).

25 April 2019: Wouter
	- Fix wrong query name in local zone redirect answers with a CNAME,
	  the copy of the local alias is in unpacked form.

18 April 2019: Ralph
	- Scrub RRs from answer section when reusing NXDOMAIN message for
	  subdomain answers.
	- For harden-below-nxdomain: do not consider a name to be non-exitent
	  when message contains a CNAME record.

18 April 2019: Wouter
	- travis build file.

16 April 2019: Wouter
	- Better braces in if statement in TCP fastopen code.
	- iana portlist updated.

15 April 2019: Wouter
	- Fix tls write event for read state change to re-call SSL_write and
	  not resume the TLS handshake.

11 April 2019: George
	- Update python documentation for init_standard().
	- Typos.

11 April 2019: Wouter
	- Fix that auth zone uses correct network type for sockets for
	  SOA serial probes.  This fixes that probes fail because earlier
	  probe addresses are unreachable.
	- Fix that auth zone fails over to next master for timeout in tcp.
	- Squelch SSL read and write connection reset by peer and broken pipe
	  messages.  Verbosity 2 and higher enables them.

8 April 2019: Wouter
	- Fix to use event_assign with libevent for thread-safety.
	- verbose information about auth zone lookup process, also lookup
	  start, timeout and fail.
	- Fix #17: Add python module example from Jan Janak, that is a
	  plugin for the Unbound DNS resolver to resolve DNS records in
	  multicast DNS [RFC 6762] via Avahi.  The plugin communicates
	  with Avahi via DBus. The comment section at the beginning of
	  the file contains detailed documentation.
	- Fix to wipe ssl ticket keys from memory with explicit_bzero,
	  if available.

5 April 2019: Wouter
	- Fix to reinit event structure for accepted TCP (and TLS) sockets.

4 April 2019: Wouter
	- Fix spelling error in log output for event method.

3 April 2019: Wouter
	- Move goto label in answer_from_cache to the end of the function
	  where it is more visible.
	- Fix auth-zone NSEC3 response for wildcard nodata answers,
	  include the closest encloser in the answer.

2 April 2019: Wouter
	- Fix auth-zone NSEC3 response for empty nonterminals with exact
	  match nsec3 records.
	- Fix for out of bounds integers, thanks to OSTIF audit.  It is in
	  allocation debug code.
	- Fix for auth zone nsec3 ent fix for wildcard nodata.

25 March 2019: Wouter
	- Fix that tls-session-ticket-keys: "" on its own in unbound.conf
	  disables the tls session ticker key calls into the OpenSSL API.
	- Fix crash if tls-servic-pem not filled in when necessary.

21 March 2019: Wouter
	- Fix #4240: Fix whitespace cleanup in example.conf.

19 March 2019: Wouter
	- add type CAA to libpyunbound (accessing libunbound from python).

18 March 2019: Wouter
	- Add log message, at verbosity 4, that says the query is encrypted
	  with TLS, if that is enabled for the query.
	- Fix #4239: set NOTIMPL when deny-any is enabled, for RFC8482.

7 March 2019: Wouter
	- Fix for #4233: guard use of NDEBUG, so that it can be passed in
	  CFLAGS into configure.
2019-12-15 15:28:12 +00:00
tkusumi 46f1475944 dm: Style cleanups (no functional changes) 2019-12-15 14:39:42 +00:00
pgoyette cd4e04efe1 Initialize the module_hook synchronization variables in rump, too.
Fixes recently reported test failures for dev/sysmon/t_swsensor
and net/if_vlan/t_vlan
2019-12-15 14:21:34 +00:00
jakllsch 86825cd5cc style fix/KNF 2019-12-15 14:18:16 +00:00
martin 42fb6d79a5 After installing boot blocks with RUN_NO_CLEAR (and handling the
potential errors) make sure to clear the stdscreen.
2019-12-15 13:39:24 +00:00
martin b04e34683a Disable (pretty useless and obscure) message when checking for Ultrix
comaptible labels.
2019-12-15 12:50:39 +00:00
martin 36c3b68377 Do not show disklabel command invocation by default (only if there are
errors).
2019-12-15 12:09:55 +00:00
martin 3a4f84ca06 Reject (what we consider) empty/invalid fake disklabels no matter whether
we have other partitioning schemes available or not.
2019-12-15 12:01:05 +00:00
wiz 3bb7993d91 Fix xrefs. 2019-12-15 11:49:28 +00:00
martin ebdfc2d74c Fix overlapping partitions display 2019-12-15 11:22:46 +00:00
tkusumi b83e697e45 dm: Make targets' ->sync() optional
Apparently some targets have nothing to sync, so make it optional.
2019-12-15 10:12:45 +00:00
tkusumi 37b6bcc115 dm: Make targets' ->secsize() optional
and make a caller assume secsize 0 if ->secsize not present.
This allows a dummy function to be removed which was added in
"dm: Add dummy target ->sync()/->secsize() to prevent panic on modload(8)".
2019-12-15 09:42:29 +00:00
rin d83f8a8ef1 Belatedly catch up with MI com(4) change in com.c rev. 1.351:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/ic/com.c#rev1.351

XXX
pullup to netbsd-9
2019-12-15 09:38:40 +00:00
tkusumi c3c15a2869 dm: "unsigned" -> "unsigned int" for consistency
Use either one, but not both.
2019-12-15 09:22:28 +00:00
rin 9c8c7bd7d2 Do not mask out LK bit (bit 31) from M_BCTR, which distinguishes
bcctr and bcctrl.

Fix build failure for ibm4xx kernels with GCC8.

XXX
pullup to netbsd-9, -8, and -7
2019-12-15 06:05:00 +00:00
tkusumi 8026110e0c dm: Rename targets' ->status() to ->table() given ->info() exists
Since now that dm targets in NetBSD have ->info() for "status",
->status() should be renamed to ->table() for "table",
given how dm target status was originally designed in Linux kernel.

taken-from: DragonFlyBSD
2019-12-15 05:56:02 +00:00
christos cd7f626ab2 bump date 2019-12-15 04:50:28 +00:00
christos bf48319541 treat empty variables are unset (Steffen Nurpmeso) 2019-12-15 04:17:38 +00:00
christos a7f52e3116 PR/54768: elo: Missing cksum(1) convenience links (and docs) for new sha2
functions.
2019-12-15 03:55:56 +00:00
christos 6d8018ef1c PR/54767: elo: fix incorrect test (mlelstv)
Add symbolic constants and reference to the standard.
2019-12-15 03:38:17 +00:00
manu 74438c9ae2 Fix typo that caused two instructions to be commented out
Oddly, that did not break booting.
2019-12-15 02:58:21 +00:00
manu c99d51c86d Restore multiboot 2 header in amd64 kernel
The header must appear below 32k offset in the kernel file, but we
have to make sure it does not load at low addresses, otherwise we
break BIOS boot.

.text section used to load at 0x200000, we just load multiboot section
there, and have .text loaded just after.
2019-12-15 02:56:40 +00:00
riastradh 540e0470eb Fix typo -- acknowledge interrupts _and_ errors. 2019-12-15 01:16:33 +00:00
mrg ec202c93ab ensure to call drm_mode_config_cleanup() when erroring.
tripped up 'active lock in free' checks, and perhaps
lead to other lock corruption.  (crash with un-init lock
in arpresolve that does not make sense now seems to not
occur either.)
2019-12-15 01:00:58 +00:00
mrg 5036a53a61 rework slightly to avoid stupid gcc warnings.
ok jmcneill.
2019-12-15 00:49:00 +00:00
ad 7121cb9fbf The uvmexp.pdpending change was incorrect - revert for now. 2019-12-14 21:36:00 +00:00
christos b54315f23d PR/54756: germain: Avoid confusion caused by overuse of the word "file" both
as a noun and an argument name.
2019-12-14 20:46:13 +00:00
martin 8b681df095 Pass proper track size when initializing the default alignment - this is
important with sunlabels.
2019-12-14 20:41:58 +00:00
christos ddf3269588 PR/54764: elo: Incorrect '+file' filename completion in mail(1)
Add propel completion stem so that file completion works.
pullup-9
2019-12-14 20:28:02 +00:00
christos 4169a5f39b PR/54765: elo: Minor error in the mail(1) man page (-F description truncated)
pullup-9
2019-12-14 20:23:38 +00:00
christos d13b4aaeef PR/54766: elo: Broken mime-hooks handling in mail(1)
pullup-9.
2019-12-14 20:21:43 +00:00
martin d26d794880 If a fictious label has no RAW_PART assume there is no valid disk label. 2019-12-14 19:26:17 +00:00
ad 83fea69fbb Merge from yamt-pagecache: use radixtree for page lookup.
rbtree page lookup was introduced during the NetBSD 5.0 development cycle to
bypass lock contention problems with the (then) global page hash, and was a
temporary solution to allow us to make progress.radixtree is the intended
replacement.

Ok yamt@.
2019-12-14 17:31:53 +00:00
ad 6857513180 Merge from yamt-pagecache: use radixtree for page lookup.
rbtree page lookup was introduced during the NetBSD 5.0 development cycle to
bypass lock contention problems with the (then) global page hash, and was a
temporary solution to allow us to make progress.  radixtree is the intended
replacement.

Ok yamt@.
2019-12-14 17:28:58 +00:00
riastradh 5b4211c2aa Nix trailing whitespace. 2019-12-14 17:24:43 +00:00
skrll 94041adfe7 revert previous - i was confused about boot files on rpi + aarch64 2019-12-14 17:24:30 +00:00
riastradh bd6c4f7f79 Remove never-used Mersenne twister from libkern. 2019-12-14 17:23:47 +00:00
riastradh 4d17a0f3c2 Omit vestigial unused commented-out experiment. 2019-12-14 17:23:31 +00:00
tkusumi 47e84ce6c8 dm: Don't try to implement "status" as subset of "table"
The way dm_table_status_ioctl() implements "status" and "table" is
not compatible with Linux kernel. Some targets have different outputs
that "status" can't be implemented as subset of "table".

Add ->info() handler to sync with "status" behavior in Linux kernel.
Some targets which currently exist in NetBSD (I think striped)
as well as some minor targets that I plan to port to NetBSD
can/should implement ->info(), but will do that in a different commit.

taken-from: DragonFlyBSD
2019-12-14 17:15:54 +00:00
skrll ddbcef3d72 Allow RPI firmware boots to work again 2019-12-14 17:04:02 +00:00
riastradh 08c4e556e6 Just use KASSERTMSG and panic. No need for custom wrappers. 2019-12-14 16:58:38 +00:00
riastradh f239e801cc Remove charade dancing around now-dead RCU patent. 2019-12-14 16:58:25 +00:00