Ralph Dolmans
bda4c4a375
- improve dname_has_label(), add unit test
2020-01-16 17:50:44 +01:00
Ralph Dolmans
72c4c6b30c
- Fix the dname_has_label fix
2020-01-16 01:36:07 +01:00
Ralph Dolmans
9877e52161
Merge branch 'master' of github.com:NLnetLabs/unbound into rpz
2020-01-15 23:44:10 +01:00
Ralph Dolmans
627285af23
- Fix faulty assert
2020-01-15 23:19:24 +01:00
Ralph Dolmans
344f12dd99
- fix compiler warnings
2020-01-15 23:03:44 +01:00
Ralph Dolmans
14913d75c0
- processed RPZ review feedback
...
- fix potential locking issue
- add extra out of bound checks
2020-01-15 22:45:29 +01:00
W.C.A. Wijngaards
ea26e5038e
- Fix for memory leak when edns subnet config options are read when
...
compiled without edns subnet support.
2020-01-14 15:48:27 +01:00
W.C.A. Wijngaards
e149bc7046
- Fix unreachable code in ssl set options code.
2020-01-10 11:28:01 +01:00
Ralph Dolmans
2abaca7a49
- Fix dname_has_label() code review changes
2019-12-23 17:35:11 +01:00
Ralph Dolmans
ae4f6a259b
Proccess more review feedback
2019-12-23 16:02:43 +01:00
Florian Obser
0a499ec2ee
Fix typo to let serve-expired-ttl work with ub_ctx_set_option().
2019-12-10 18:03:24 +01:00
W.C.A. Wijngaards
6c3a0b54ed
- Fix Out of Bound Write Compressed Names in rdata_copy(),
...
reported by X41 D-Sec.
2019-12-03 16:18:47 +01:00
W.C.A. Wijngaards
2d444a5037
- Fix Insufficient Handling of Compressed Names in dname_pkt_copy(),
...
reported by X41 D-Sec.
2019-12-03 16:17:03 +01:00
W.C.A. Wijngaards
d2eb78e871
- Fix Assert Causing DoS in dname_pkt_copy(),
...
reported by X41 D-Sec.
2019-12-03 15:20:48 +01:00
Wouter Wijngaards
4edb16296b
Merge pull request #124 from rmetrich/basic_loglock
...
Changed log lock from 'quick' to 'basic' because this is an I/O lock.
2019-12-03 10:03:24 +01:00
Renaud Métrich
d63cb99649
Changed log lock from 'quick' to 'basic' because this is an I/O lock.
...
We cannot use a 'quick' lock (i.e. lock spinning on the CPU) for the log
lock because it can wait a lot on I/Os. Using a 'quick' lock leads to
eating the CPU for no good reason.
Example of 'pidstat' output when using various locks for log_lock:
- 'quick' lock and slow log file system (tail -f on the log file on XFS on RHEL 8)
04:15:11 PM UID TGID TID %usr %system %CPU CPU Command
04:15:21 PM 998 16431 - 100.00 4.20 100.00 2 unbound
04:15:21 PM 998 - 16431 31.00 1.00 32.00 2 |__unbound
04:15:21 PM 998 - 16432 31.30 0.80 32.10 0 |__unbound
04:15:21 PM 998 - 16433 30.20 1.40 31.60 1 |__unbound
04:15:21 PM 998 - 16434 30.70 1.00 31.70 3 |__unbound
- 'quick' lock and log file system being fast
04:15:40 PM UID TGID TID %usr %system %CPU CPU Command
04:15:50 PM 998 16431 - 10.00 1.60 11.60 1 unbound
04:15:50 PM 998 - 16431 2.50 0.50 3.00 1 |__unbound
04:15:50 PM 998 - 16432 2.30 0.40 2.70 3 |__unbound
04:15:50 PM 998 - 16433 2.70 0.30 3.00 0 |__unbound
04:15:50 PM 998 - 16434 2.60 0.40 3.00 2 |__unbound
- 'basic' lock (this commit) and slow log file system (tail -f on the log file on XFS on RHEL 8)
04:29:48 PM UID TGID TID %usr %system %CPU CPU Command
04:29:58 PM 998 11632 - 7.10 14.10 21.20 3 unbound
04:29:58 PM 998 - 11632 1.70 3.20 4.90 3 |__unbound
04:29:58 PM 998 - 11633 1.60 3.30 4.90 1 |__unbound
04:29:58 PM 998 - 11634 2.00 4.10 6.10 1 |__unbound
04:29:58 PM 998 - 11635 1.90 3.50 5.40 1 |__unbound
We can see in the above example, when 'basic' lock is used, that CPU
isn't consumed when log file system is slow.
Another reproducer scenario: put the log file on a NFS share with 'sync'
option.
2019-11-26 16:32:07 +01:00
Havard Eidnes
dc0b1699e5
In tcp_callback_writer(), don't disable time-out when changing to read.
2019-11-26 00:02:34 +01:00
W.C.A. Wijngaards
da4d6ffee3
- Fix Bad Randomness in Seed, reported by X41 D-Sec.
2019-11-20 14:40:50 +01:00
W.C.A. Wijngaards
3a49e683ed
- Fix Enum Name not Used, reported by X41 D-Sec.
2019-11-20 14:22:06 +01:00
W.C.A. Wijngaards
3907876eac
- Fix Unrequired Checks, reported by X41 D-Sec.
2019-11-20 14:05:54 +01:00
W.C.A. Wijngaards
09707fc403
- Fix Integer Underflow in Regional Allocator,
...
reported by X41 D-Sec.
2019-11-20 13:00:56 +01:00
W.C.A. Wijngaards
72d348de6a
- Fix Out-of-Bounds Read in dname_valid(),
...
reported by X41 D-Sec.
2019-11-20 11:38:11 +01:00
W.C.A. Wijngaards
7646c96259
- Fix Randomness Error not Handled Properly,
...
reported by X41 D-Sec.
2019-11-20 11:35:07 +01:00
W.C.A. Wijngaards
d8809c672a
- Fix Weak Entropy Used For Nettle,
...
reported by X41 D-Sec.
2019-11-20 11:28:53 +01:00
W.C.A. Wijngaards
c54fe82886
- Fix Shared Memory World Writeable,
...
reported by X41 D-Sec.
2019-11-20 11:13:45 +01:00
W.C.A. Wijngaards
226298bbd3
- Fix Integer Overflow in Regional Allocator,
...
reported by X41 D-Sec.
2019-11-19 15:38:05 +01:00
W.C.A. Wijngaards
79a6e9fbe2
- Fixes to please lint checks.
2019-11-19 12:10:03 +01:00
W.C.A. Wijngaards
442e95620e
- Portable grep usage for reuseport configure test.
...
- Check return type of HMAC_Init_ex for openssl 0.9.8.
2019-11-18 15:53:47 +01:00
W.C.A. Wijngaards
253d95a8ef
- update to bison output of 3.4.1 in code repository.
2019-11-18 10:50:54 +01:00
W.C.A. Wijngaards
d05d6b959a
- fixes for splint cleanliness, long vs int in SSL set_mode.
2019-11-13 15:16:27 +01:00
W.C.A. Wijngaards
5ac9bf3f9b
- iana portlist updated.
2019-11-13 11:37:06 +01:00
W.C.A. Wijngaards
380b87e21a
Merge remote-tracking branch 'origin/branch-1.9.4'
2019-10-03 11:37:22 +02:00
W.C.A. Wijngaards
b60c4a472c
Branch 1.9.4 prepares for 1.9.4 release from 1.9.3
2019-10-03 10:34:40 +02:00
W.C.A. Wijngaards
55bb4c1275
- The unbound.conf includes are sorted ascending, for include
...
statements with a '*' from glob.
2019-09-25 16:50:30 +02:00
Ralph Dolmans
9843b836ee
Merge branch 'master' into rpz
2019-09-09 17:17:43 +02:00
Ralph Dolmans
4ac33aa104
- Merge clean up
...
- revert dname2str off by one fix
- fix str2dname off by one at right location
2019-09-09 17:13:08 +02:00
Ralph Dolmans
2b5cd8e9b4
Merge remote-tracking branch 'ralph/feature/rpz' into rpz
2019-09-09 17:11:26 +02:00
W.C.A. Wijngaards
e45e9f1ce0
- 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.
2019-09-09 14:27:55 +02:00
W.C.A. Wijngaards
05b9f4fd28
- Fix #71 : fix openssl error squelch commit compilation error.
2019-09-04 08:44:19 +02:00
W.C.A. Wijngaards
1089fd6dc1
- 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.
2019-09-03 09:47:27 +02:00
W.C.A. Wijngaards
80c2c69fa7
- Fix log_dns_msg to log irrespective of minimal responses config.
2019-08-21 17:41:29 +02:00
W.C.A. Wijngaards
c1c75929fa
- iana portlist updated.
2019-08-15 13:07:26 +02:00
W.C.A. Wijngaards
b5a52f8c86
- Generate configlexer with newer flex.
2019-08-14 11:40:35 +02:00
W.C.A. Wijngaards
df0c844eed
- Fix to timeval_add for remaining second in microseconds.
2019-08-01 16:48:41 +02:00
W.C.A. Wijngaards
c94e13220b
- Fix #49 : Set no renegotiation on the SSL context to stop client
...
session renegotiation.
2019-07-19 08:18:06 +02:00
Ralph Dolmans
9ce7045413
- Fix doxygen issue
...
- Fix memory leak
- IANA ports update
- merge littlehash ASAN changes
2019-07-16 19:45:49 +02:00
Ralph Dolmans
a8d6147ae4
- Added RPZ response IP support
2019-07-16 18:43:16 +02:00
W.C.A. Wijngaards
368386c011
- Fix #48 : Unbound returns additional records on NODATA response,
...
if minimal-responses is enabled, also the additional for negative
responses is removed.
2019-07-12 14:34:35 +02:00
Ralph Dolmans
395d83cfc8
Procedures to parse RPZ ip address notation.
2019-06-24 16:01:01 +02:00
W.C.A. Wijngaards
78b2f1cc20
- Fix python dict reference and double free in config.
2019-06-18 17:25:08 +02:00