]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
8 years agoDo not overwrite cache dumps
Michał Kępień [Tue, 20 Feb 2018 12:59:27 +0000 (13:59 +0100)] 
Do not overwrite cache dumps

Unless configured otherwise in named.conf, "rndc dumpdb" causes a cache
dump to be written to a file called "named_dump.db" in the working
directory of the given named instance.  Repeatedly using this command
throughout different checks in the cacheclean system test causes cache
dumps for older checks to be overwritten, which hinders failure
diagnosis.  Prevent this by moving each cache dump to a check-specific
location after running "rndc dumpdb".

Furthermore, during the "check flushtree clears adb correctly" check,
dump_cache() is called twice without renaming the resulting files.
Prevent the first cache dump from being overwritten by moving it to a
different file before calling "rndc dumpdb" for the second time.

8 years agoAssign an index to each check in the cacheclean system test
Michał Kępień [Tue, 20 Feb 2018 12:59:25 +0000 (13:59 +0100)] 
Assign an index to each check in the cacheclean system test

This will enable storing per-check forensic data, which facilitates
troubleshooting test failures.

8 years ago[master] Merge branch 'master' of ssh://repo.isc.org/proj/git/prod/bind9
Evan Hunt [Mon, 19 Feb 2018 09:25:15 +0000 (01:25 -0800)] 
[master] Merge branch 'master' of ssh://repo.isc.org/proj/git/prod/bind9

8 years agoregen master
Tinderbox User [Mon, 19 Feb 2018 01:09:05 +0000 (01:09 +0000)] 
regen master

8 years agoupdate copyright notice / whitespace
Tinderbox User [Sun, 18 Feb 2018 23:47:45 +0000 (23:47 +0000)] 
update copyright notice / whitespace

8 years agonewcopyrights
Tinderbox User [Sun, 18 Feb 2018 23:30:15 +0000 (23:30 +0000)] 
newcopyrights

8 years ago[master] add missing release notes, update README
Evan Hunt [Sun, 18 Feb 2018 03:56:31 +0000 (19:56 -0800)] 
[master] add missing release notes, update README

8 years ago[master] synchronize
Evan Hunt [Sun, 18 Feb 2018 03:21:26 +0000 (19:21 -0800)] 
[master] synchronize

8 years agoMerge branch 'master' into 'master'
Ondřej Surý [Fri, 16 Feb 2018 22:19:26 +0000 (17:19 -0500)] 
Merge branch 'master' into 'master'

Master

See merge request isc-projects/bind9!36

8 years agoMerge branch 'gitlab-ci-limit-runners' into 'master'
Michał Kępień [Fri, 16 Feb 2018 11:36:12 +0000 (06:36 -0500)] 
Merge branch 'gitlab-ci-limit-runners' into 'master'

Limit the combination of architectures and distributions that are normally run

See merge request isc-projects/bind9!33

8 years agoMerge branch 'fix-dnstap-output-file-rolling' into 'master'
Michał Kępień [Fri, 16 Feb 2018 10:20:41 +0000 (05:20 -0500)] 
Merge branch 'fix-dnstap-output-file-rolling' into 'master'

Fix dnstap output file rolling

See merge request isc-projects/bind9!21

8 years agoLimit the combination of architectures and distributions that are normally run
Ondřej Surý [Fri, 16 Feb 2018 09:35:12 +0000 (10:35 +0100)] 
Limit the combination of architectures and distributions that are normally run

8 years agoAdd CHANGES entry
Michał Kępień [Fri, 16 Feb 2018 08:38:48 +0000 (09:38 +0100)] 
Add CHANGES entry

4894. [bug] named could crash while rolling a dnstap output file.
[RT #46942]

8 years agoMake dns_dt_send() call dns_dt_reopen() asynchronously
Michał Kępień [Mon, 5 Feb 2018 20:04:39 +0000 (21:04 +0100)] 
Make dns_dt_send() call dns_dt_reopen() asynchronously

Instead of checking current dnstap output file size and potentially
synchronously calling dns_dt_reopen() upon every call to dns_dt_send():

  - call dns_dt_reopen() asynchronously by queuing an event to the task
    specified at dnstap environment creation time,

  - ensure no roll event is outstanding before checking dnstap output
    file size and potentially queuing another roll event.

This causes dnstap output files to exceed their configured size limits,
but prevents any two threads from performing the roll simultaneously
(which causes crashes).

8 years agoMake dns_dt_reopen() request task-exclusive mode on its own
Michał Kępień [Mon, 5 Feb 2018 20:22:53 +0000 (21:22 +0100)] 
Make dns_dt_reopen() request task-exclusive mode on its own

Instead of relying on the caller to set up task-exclusive mode, make
dns_dt_reopen() enforce task-exclusive mode itself, using the task
specified at dnstap environment creation time.

8 years agoAdd dns_dt_create2()
Michał Kępień [Mon, 5 Feb 2018 20:19:44 +0000 (21:19 +0100)] 
Add dns_dt_create2()

Implement a new variant of dns_dt_create() to enable a dnstap
environment structure to hold the task in the context of which
dns_dt_reopen() will be executed.

8 years ago4893. [bug] Address various issues reported by cppcheck. [GL #51]
Mark Andrews [Fri, 16 Feb 2018 02:24:39 +0000 (21:24 -0500)] 
4893.   [bug]           Address various issues reported by cppcheck. [GL #51]

See merge request isc-projects/bind9!26

8 years agoregen master
Tinderbox User [Fri, 16 Feb 2018 01:09:12 +0000 (01:09 +0000)] 
regen master

8 years agos/cppchecker/cppcheck
Mark Andrews [Fri, 16 Feb 2018 00:24:29 +0000 (11:24 +1100)] 
s/cppchecker/cppcheck

8 years agoadd GL issue number
Mark Andrews [Fri, 16 Feb 2018 00:21:16 +0000 (11:21 +1100)] 
add GL issue number

8 years ago[master] add missing release note
Evan Hunt [Fri, 16 Feb 2018 00:19:25 +0000 (16:19 -0800)] 
[master] add missing release note

8 years agoadd CHANGES note
Mark Andrews [Thu, 15 Feb 2018 23:34:49 +0000 (10:34 +1100)] 
add CHANGES note

8 years agonewcopyrights
Tinderbox User [Thu, 15 Feb 2018 23:30:12 +0000 (23:30 +0000)] 
newcopyrights

8 years agoadd POST(len);
Mark Andrews [Thu, 15 Feb 2018 21:41:41 +0000 (08:41 +1100)] 
add POST(len);

8 years agoconditionally declare stacksize
Mark Andrews [Thu, 15 Feb 2018 21:37:33 +0000 (08:37 +1100)] 
conditionally declare stacksize

8 years agoadd POST(len);
Mark Andrews [Thu, 15 Feb 2018 07:18:19 +0000 (18:18 +1100)] 
add POST(len);

8 years agoClarify calculation precedence for '&' and '?'
Mark Andrews [Thu, 15 Feb 2018 07:09:29 +0000 (18:09 +1100)] 
Clarify calculation precedence for '&' and '?'

8 years agoadd POST(tl)
Mark Andrews [Thu, 15 Feb 2018 05:21:57 +0000 (16:21 +1100)] 
add POST(tl)

8 years agoreturn failure count
Mark Andrews [Thu, 15 Feb 2018 05:14:08 +0000 (16:14 +1100)] 
return failure count

8 years agoconditionally declare strbuf
Mark Andrews [Thu, 15 Feb 2018 05:07:01 +0000 (16:07 +1100)] 
conditionally declare strbuf

8 years agotest for == 0 rather than <= as value is unsigned
Mark Andrews [Thu, 15 Feb 2018 05:04:01 +0000 (16:04 +1100)] 
test for == 0 rather than <= as value is unsigned

8 years agoadd brackets
Mark Andrews [Thu, 15 Feb 2018 04:58:19 +0000 (15:58 +1100)] 
add brackets

8 years agoreorder test to silence cppcheck
Mark Andrews [Thu, 15 Feb 2018 04:53:47 +0000 (15:53 +1100)] 
reorder test to silence cppcheck

8 years agoremove event which is only used for sizeof
Mark Andrews [Thu, 15 Feb 2018 04:00:34 +0000 (15:00 +1100)] 
remove event which is only used for sizeof

8 years agoremember the masters count
Mark Andrews [Thu, 15 Feb 2018 03:56:13 +0000 (14:56 +1100)] 
remember the masters count

8 years agoreorder test to silence cppcheck
Mark Andrews [Thu, 15 Feb 2018 03:50:36 +0000 (14:50 +1100)] 
reorder test to silence cppcheck

8 years agouse %u instead of %d
Mark Andrews [Thu, 15 Feb 2018 03:25:37 +0000 (14:25 +1100)] 
use %u instead of %d

8 years agouse %u instead of %d
Mark Andrews [Thu, 15 Feb 2018 03:23:54 +0000 (14:23 +1100)] 
use %u instead of %d

8 years agouse %u instead of %d
Mark Andrews [Thu, 15 Feb 2018 03:23:15 +0000 (14:23 +1100)] 
use %u instead of %d

8 years agouse %u instead of %d
Mark Andrews [Thu, 15 Feb 2018 03:21:42 +0000 (14:21 +1100)] 
use %u instead of %d

8 years agouse %u instead of %d
Mark Andrews [Thu, 15 Feb 2018 03:20:16 +0000 (14:20 +1100)] 
use %u instead of %d

8 years agouse %u instead of %d
Mark Andrews [Thu, 15 Feb 2018 02:43:13 +0000 (13:43 +1100)] 
use %u instead of %d

8 years agouse %u instead of %d
Mark Andrews [Thu, 15 Feb 2018 02:29:22 +0000 (13:29 +1100)] 
use %u instead of %d

8 years agouse %u instead of %d
Mark Andrews [Thu, 15 Feb 2018 02:27:03 +0000 (13:27 +1100)] 
use %u instead of %d

8 years agouse %u instead of %d
Mark Andrews [Thu, 15 Feb 2018 02:26:09 +0000 (13:26 +1100)] 
use %u instead of %d

8 years agouse %u instead of %d
Mark Andrews [Thu, 15 Feb 2018 02:23:11 +0000 (13:23 +1100)] 
use %u instead of %d

8 years agocase to unsigned; reorder expression
Mark Andrews [Thu, 15 Feb 2018 02:20:59 +0000 (13:20 +1100)] 
case to unsigned; reorder expression

8 years agosimplify expression
Mark Andrews [Thu, 15 Feb 2018 02:11:25 +0000 (13:11 +1100)] 
simplify expression

8 years agouse %u and preserve unsigned property
Mark Andrews [Thu, 15 Feb 2018 01:38:22 +0000 (12:38 +1100)] 
use %u and preserve unsigned property

8 years agomake declaration and use of setnocookie fully conditional
Mark Andrews [Thu, 15 Feb 2018 01:36:03 +0000 (12:36 +1100)] 
make declaration and use of setnocookie fully conditional

8 years agocast to unsigned
Mark Andrews [Thu, 15 Feb 2018 01:24:56 +0000 (12:24 +1100)] 
cast to unsigned

8 years agopreserve unsigned property
Mark Andrews [Thu, 15 Feb 2018 01:24:33 +0000 (12:24 +1100)] 
preserve unsigned property

8 years agouse %u instead of %d
Mark Andrews [Thu, 15 Feb 2018 01:11:17 +0000 (12:11 +1100)] 
use %u instead of %d

8 years agomake both arguments of & unsigned
Mark Andrews [Thu, 15 Feb 2018 01:08:52 +0000 (12:08 +1100)] 
make both arguments of & unsigned

8 years agouse %u instead of %d
Mark Andrews [Thu, 15 Feb 2018 01:04:33 +0000 (12:04 +1100)] 
use %u instead of %d

8 years agouse %u instead of %d
Mark Andrews [Thu, 15 Feb 2018 00:52:33 +0000 (11:52 +1100)] 
use %u instead of %d

8 years agouse %u instead of %d
Mark Andrews [Thu, 15 Feb 2018 00:41:13 +0000 (11:41 +1100)] 
use %u instead of %d

8 years agoshift unsigned (~0U) rather than signed (~0) contant
Mark Andrews [Wed, 14 Feb 2018 13:41:13 +0000 (00:41 +1100)] 
shift unsigned (~0U) rather than signed (~0) contant

8 years agouse %u instead of %d
Mark Andrews [Wed, 14 Feb 2018 13:24:11 +0000 (00:24 +1100)] 
use %u instead of %d

8 years agounsigned constants
Mark Andrews [Wed, 14 Feb 2018 13:16:19 +0000 (00:16 +1100)] 
unsigned constants

8 years agounsigned constants
Mark Andrews [Wed, 14 Feb 2018 13:14:06 +0000 (00:14 +1100)] 
unsigned constants

8 years agouse %u instead of %d
Mark Andrews [Wed, 14 Feb 2018 13:03:05 +0000 (00:03 +1100)] 
use %u instead of %d

8 years agouse %u instead of %d
Mark Andrews [Wed, 14 Feb 2018 13:02:14 +0000 (00:02 +1100)] 
use %u instead of %d

8 years agouse %u instead of %d
Mark Andrews [Wed, 14 Feb 2018 13:00:17 +0000 (00:00 +1100)] 
use %u instead of %d

8 years agoprevent implict conversion to signed
Mark Andrews [Wed, 14 Feb 2018 09:32:51 +0000 (20:32 +1100)] 
prevent implict conversion to signed

8 years agouse %u instead of %d
Mark Andrews [Wed, 14 Feb 2018 08:33:25 +0000 (19:33 +1100)] 
use %u instead of %d

8 years agoINSIST ipnum6 != NULL
Mark Andrews [Wed, 14 Feb 2018 08:31:16 +0000 (19:31 +1100)] 
INSIST ipnum6 != NULL

8 years agouse %u instead of %d
Mark Andrews [Wed, 14 Feb 2018 08:28:13 +0000 (19:28 +1100)] 
use %u instead of %d

8 years agouse %u instead of %d
Mark Andrews [Wed, 14 Feb 2018 08:26:37 +0000 (19:26 +1100)] 
use %u instead of %d

8 years agotest for >= 0 and use %d instead of %u
Mark Andrews [Wed, 14 Feb 2018 08:24:48 +0000 (19:24 +1100)] 
test for >= 0 and use %d instead of %u

8 years agoformally cast to int; use %u instead of %d
Mark Andrews [Wed, 14 Feb 2018 08:20:38 +0000 (19:20 +1100)] 
formally cast to int; use %u instead of %d

8 years agoformally cast to int
Mark Andrews [Wed, 14 Feb 2018 08:13:56 +0000 (19:13 +1100)] 
formally cast to int

8 years agouse %u instead of %d
Mark Andrews [Wed, 14 Feb 2018 08:09:23 +0000 (19:09 +1100)] 
use %u instead of %d

8 years agouse %u instead of %d
Mark Andrews [Wed, 14 Feb 2018 08:08:40 +0000 (19:08 +1100)] 
use %u instead of %d

8 years agouse %u instead of %d
Mark Andrews [Wed, 14 Feb 2018 08:08:18 +0000 (19:08 +1100)] 
use %u instead of %d

8 years agouse %u instead of %d
Mark Andrews [Wed, 14 Feb 2018 08:07:27 +0000 (19:07 +1100)] 
use %u instead of %d

8 years agocopyrights
Mark Andrews [Wed, 14 Feb 2018 07:54:05 +0000 (18:54 +1100)] 
copyrights

8 years agouse %u instead of %d
Mark Andrews [Wed, 14 Feb 2018 07:46:15 +0000 (18:46 +1100)] 
use %u instead of %d

8 years agouse %u instead of %d
Mark Andrews [Wed, 14 Feb 2018 07:41:08 +0000 (18:41 +1100)] 
use %u instead of %d

8 years agouse %u instead of %d
Mark Andrews [Wed, 14 Feb 2018 07:39:31 +0000 (18:39 +1100)] 
use %u instead of %d

8 years agouse %u instead of %d
Mark Andrews [Wed, 14 Feb 2018 07:39:05 +0000 (18:39 +1100)] 
use %u instead of %d

8 years agomake declarations consistent
Mark Andrews [Wed, 14 Feb 2018 07:36:08 +0000 (18:36 +1100)] 
make declarations consistent

8 years agoreport argument error in human form
Mark Andrews [Wed, 14 Feb 2018 07:32:49 +0000 (18:32 +1100)] 
report argument error in human form

8 years agouse %u instead of %d
Mark Andrews [Wed, 14 Feb 2018 07:25:57 +0000 (18:25 +1100)] 
use %u instead of %d

8 years agouse %u instead of %d
Mark Andrews [Wed, 14 Feb 2018 07:24:22 +0000 (18:24 +1100)] 
use %u instead of %d

8 years agouse %u instead of %d
Mark Andrews [Wed, 14 Feb 2018 07:21:56 +0000 (18:21 +1100)] 
use %u instead of %d

8 years agouse %u instead of %d
Mark Andrews [Wed, 14 Feb 2018 07:21:29 +0000 (18:21 +1100)] 
use %u instead of %d

8 years agouse %u instead of %d
Mark Andrews [Wed, 14 Feb 2018 07:20:46 +0000 (18:20 +1100)] 
use %u instead of %d

8 years agouse %u instead of %i
Mark Andrews [Wed, 14 Feb 2018 07:18:12 +0000 (18:18 +1100)] 
use %u instead of %i

8 years agouse %u instead of %d
Mark Andrews [Wed, 14 Feb 2018 07:08:06 +0000 (18:08 +1100)] 
use %u instead of %d

8 years agouse %u rather than %d; pass a unsigned int pointer
Mark Andrews [Wed, 14 Feb 2018 07:06:09 +0000 (18:06 +1100)] 
use %u rather than %d; pass a unsigned int pointer

8 years agoclear *logp
Mark Andrews [Wed, 14 Feb 2018 06:53:23 +0000 (17:53 +1100)] 
clear *logp

8 years agouse %u instead of %d
Mark Andrews [Wed, 14 Feb 2018 06:51:05 +0000 (17:51 +1100)] 
use %u instead of %d

8 years agosigned vs unsigned fixes
Mark Andrews [Wed, 14 Feb 2018 06:41:30 +0000 (17:41 +1100)] 
signed vs unsigned fixes

8 years agoMerge branch 'fix-loadpending-handling' into 'master'
Michał Kępień [Thu, 15 Feb 2018 21:18:32 +0000 (16:18 -0500)] 
Merge branch 'fix-loadpending-handling' into 'master'

Fix DNS_ZONEFLG_LOADPENDING handling

See merge request isc-projects/bind9!22

8 years ago[master] copyrights
Evan Hunt [Thu, 15 Feb 2018 19:56:13 +0000 (11:56 -0800)] 
[master] copyrights

8 years agoAdd CHANGES entry
Michał Kępień [Thu, 15 Feb 2018 19:31:55 +0000 (20:31 +0100)] 
Add CHANGES entry

4892. [bug] named could leak memory when "rndc reload" was invoked
before all zone loading actions triggered by a previous
"rndc reload" command were completed. [RT #47076]

8 years agoDo not recheck DNS_ZONEFLG_LOADPENDING in zone_asyncload()
Michał Kępień [Thu, 15 Feb 2018 19:31:54 +0000 (20:31 +0100)] 
Do not recheck DNS_ZONEFLG_LOADPENDING in zone_asyncload()

Remove a block of code which dates back to commit 8a2ab2b9203, when
dns_zone_asyncload() did not yet check DNS_ZONEFLG_LOADPENDING.
Currently, no race in accessing DNS_ZONEFLG_LOADPENDING is possible any
more, because:

  - dns_zone_asyncload() is still the only function which may queue
    zone_asyncload(),

  - dns_zone_asyncload() accesses DNS_ZONEFLG_LOADPENDING under a lock
    (and potentially queues an event under the same lock),

  - DNS_ZONEFLG_LOADPENDING is not cleared until the load actually
    completes.

Thus, the rechecking code can be safely removed from zone_asyncload().

Note that this also brings zone_asyncload() to a state in which the
completion callback is always invoked.  This is required to prevent
leaking memory in case something goes wrong in zone_asyncload() and a
zone table the zone belongs to is indefinitely left with a positive
reference count.

8 years agoAsynchronous zone load events have no way of getting canceled
Michał Kępień [Thu, 15 Feb 2018 19:31:53 +0000 (20:31 +0100)] 
Asynchronous zone load events have no way of getting canceled

Code handling cancellation of asynchronous zone load events was likely
copied over from other functions when asynchronous zone loading was
first implemented in commit 8a2ab2b9203.  However, unlike those other
functions, asynchronous zone loading events currently have no way of
getting canceled once they get posted, which means the aforementioned
code is effectively dead.  Remove it to prevent confusion.

8 years agoOnly clear DNS_ZONEFLG_LOADPENDING in zone_asyncload() if zone loading is completed...
Michał Kępień [Thu, 15 Feb 2018 19:31:51 +0000 (20:31 +0100)] 
Only clear DNS_ZONEFLG_LOADPENDING in zone_asyncload() if zone loading is completed immediately

zone_load() is not always synchronous, it may only initiate an
asynchronous load and return DNS_R_CONTINUE, which means zone loading
has not yet been completed.  In such a case, zone_asyncload() must not
clear DNS_ZONEFLG_LOADPENDING immediately and leave that up to
zone_postload().