Am Freitag, den 26.02.2016, 05:01 -0500 schrieb Carlos O'Donell:
> On Fri, Feb 26, 2016 at 3:57 AM, Fabian Niepelt <[email protected]
> e> wrote:
> >
> > I'll be gladly providing additional info if you require it.
> > Program received signal SIGSEGV, Segmentation fault.
> > 0x00007f146545e4fa in *__GI___libc_res_nsearch
> > (statp=0x7f14659f7300,
> > name=<optimized out>, class=<optimized out>, type=<optimized out>,
> > answer=0x7fff6d6c0df0 "2", anslen=<optimized out>,
> > answerp=0x7fff6d6c1660,
> > answerp2=0x7fff6d6c1658, nanswerp2=0x7fff6d6c167c,
> > resplen2=0x7fff6d6c1678, answerp2_malloced=0x200000032) at
> > res_query.c:393
> > 393 res_query.c: No such file or directory.
> 1) Download the tarball from the official CVE-2015-7547 tests here:
> https://sourceware.org/ml/libc-alpha/2016-02/msg00418.html
>
> 2) Comment out BUILDDIR (to build against your system libraries)
>
> 3) Run 'make' to build the test, and run them all one-by-one.
>
> Do any of them fail on your system?
>
> Cheers,
> Carlos.
>
Hello,
indeed most of them fail. I attached a text file with the output of the
failed tests. If a test is not included in the text file it is because
it didn't throw any errors.
I tried them on the system in question, another updated system and out
of curiosity on two opensuse systems, the results were the same. Is
there another prerequisite to running these tests?
Greetings
root@linux-6sir:~/glibc_tests > ./bug18665-tcp
info: old timeout value: 1
info: old retry attempt value: 4
info: old _res.options: 0x802c1
info: old _res.nscount value: 1
info: old _res.ndots value: 1
info: new timeout value: 1
info: new retry attempt value: 4
info: new _res.options: 0x802c1
info: new _res.nscount value: 3
info: new _res.ndots value: 1
info: server 0: 127.0.0.1/51085
info: server 1: 127.0.0.1/40189
info: server 2: 127.0.0.1/41315
error: addrinfo comparison failure
--- expected
+++ actual
@@ -1,2 +1 @@
-address: STREAM/TCP 10.0.3.6 80
-address: STREAM/TCP 2001:db8::4:6 80
+error: Name or service not known
error: addrinfo comparison failure
--- expected
+++ actual
@@ -1,2 +1 @@
-address: STREAM/TCP 10.0.3.6 80
-address: STREAM/TCP 2001:db8::4:6 80
+error: Name or service not known
error: addrinfo comparison failure
--- expected
+++ actual
@@ -1,2 +1 @@
-address: STREAM/TCP 10.0.3.6 80
-address: STREAM/TCP 2001:db8::4:6 80
+error: Name or service not known
error: 3 errors detected
Aborted (core dumped)
root@linux-6sir:~/glibc_tests > ./bug18665-tcp-2
info: old timeout value: 1
info: old retry attempt value: 4
info: old _res.options: 0x802c1
info: old _res.nscount value: 1
info: old _res.ndots value: 1
info: new timeout value: 1
info: new retry attempt value: 4
info: new _res.options: 0x802c1
info: new _res.nscount value: 3
info: new _res.ndots value: 1
info: server 0: 127.0.0.1/52584
info: server 1: 127.0.0.1/39059
info: server 2: 127.0.0.1/55518
info: name: www.example
info: initial_address_count: 2
info: subsequent_address_count: 3
info: name: www.example
info: initial_address_count: 124
info: subsequent_address_count: 2000
info: name: www1.example
info: initial_address_count: 124
info: subsequent_address_count: 2000
info: name: www12.example
info: initial_address_count: 124
info: subsequent_address_count: 2000
info: name: www123.example
info: initial_address_count: 124
info: subsequent_address_count: 2000
info: name: www.example
info: initial_address_count: 2
info: subsequent_address_count: 3
info: name: www.example
info: initial_address_count: 124
info: subsequent_address_count: 2000
info: name: www1.example
info: initial_address_count: 124
info: subsequent_address_count: 2000
info: name: www12.example
info: initial_address_count: 124
info: subsequent_address_count: 2000
info: name: www123.example
info: initial_address_count: 124
info: subsequent_address_count: 2000
info: name: www.example
info: initial_address_count: 2
info: subsequent_address_count: 3
info: name: www.example
info: initial_address_count: 124
info: subsequent_address_count: 2000
info: name: www1.example
info: initial_address_count: 124
info: subsequent_address_count: 2000
info: name: www12.example
info: initial_address_count: 124
info: subsequent_address_count: 2000
info: name: www123.example
info: initial_address_count: 124
info: subsequent_address_count: 2000
info: name: www.example
info: initial_address_count: 2
info: subsequent_address_count: 3
[...]
^C
root@linux-6sir:~/glibc_tests > ./tst-basic
info: old timeout value: 1
info: old retry attempt value: 4
info: old _res.options: 0x802c1
info: old _res.nscount value: 1
info: old _res.ndots value: 1
info: new timeout value: 1
info: new retry attempt value: 4
info: new _res.options: 0x802c1
info: new _res.nscount value: 3
info: new _res.ndots value: 1
info: server 0: 127.0.0.1/53644
info: server 1: 127.0.0.1/35595
info: server 2: 127.0.0.1/36343
error: hostent comparison failure
--- expected
+++ actual
@@ -1,2 +1 @@
-name: www.example
-address: 192.0.2.17
+error: HOST_NOT_FOUND
error: hostent comparison failure
--- expected
+++ actual
@@ -1,2 +1 @@
-name: www.example
-address: 192.0.2.17
+error: HOST_NOT_FOUND
error: hostent comparison failure
--- expected
+++ actual
@@ -1,2 +1 @@
-name: www.example
-address: 192.0.2.17
+error: HOST_NOT_FOUND
error: hostent comparison failure
--- expected
+++ actual
@@ -1,2 +1 @@
-name: www.example
-address: 192.0.2.17
+error: HOST_NOT_FOUND
error: hostent comparison failure
--- expected
+++ actual
@@ -1,3 +1 @@
-name: www.example
-alias: alias.example
-address: 192.0.2.18
+error: HOST_NOT_FOUND
error: hostent comparison failure
--- expected
+++ actual
@@ -1,3 +1 @@
-name: www.example
-alias: alias.example
-address: 192.0.2.18
+error: HOST_NOT_FOUND
error: hostent comparison failure
--- expected
+++ actual
@@ -1,3 +1 @@
-name: www.example
-alias: alias.example
-address: 192.0.2.18
+error: HOST_NOT_FOUND
error: hostent comparison failure
--- expected
+++ actual
@@ -1,3 +1 @@
-name: www.example
-alias: alias.example
-address: 192.0.2.18
+error: HOST_NOT_FOUND
error: hostent comparison failure
--- expected
+++ actual
@@ -1,2 +1 @@
-name: www.example
-address: 2001:db8::1
+error: HOST_NOT_FOUND
error: hostent comparison failure
--- expected
+++ actual
@@ -1,2 +1 @@
-name: www.example
-address: 2001:db8::1
+error: HOST_NOT_FOUND
error: hostent comparison failure
--- expected
+++ actual
@@ -1,3 +1 @@
-name: www.example
-alias: alias.example
-address: 2001:db8::2
+error: HOST_NOT_FOUND
error: hostent comparison failure
--- expected
+++ actual
@@ -1,3 +1 @@
-name: www.example
-alias: alias.example
-address: 2001:db8::2
+error: HOST_NOT_FOUND
error: addrinfo comparison failure
--- expected
+++ actual
@@ -1,6 +1 @@
-address: STREAM/TCP 192.0.2.17 80
-address: DGRAM/UDP 192.0.2.17 80
-address: RAW/IP 192.0.2.17 80
-address: STREAM/TCP 2001:db8::1 80
-address: DGRAM/UDP 2001:db8::1 80
-address: RAW/IP 2001:db8::1 80
+error: Name or service not known
error: addrinfo comparison failure
--- expected
+++ actual
@@ -1,6 +1 @@
-address: STREAM/TCP 192.0.2.18 80
-address: DGRAM/UDP 192.0.2.18 80
-address: RAW/IP 192.0.2.18 80
-address: STREAM/TCP 2001:db8::2 80
-address: DGRAM/UDP 2001:db8::2 80
-address: RAW/IP 2001:db8::2 80
+error: Name or service not known
error: addrinfo comparison failure
--- expected
+++ actual
@@ -1,3 +1 @@
-address: STREAM/TCP 192.0.2.17 80
-address: DGRAM/UDP 192.0.2.17 80
-address: RAW/IP 192.0.2.17 80
+error: Name or service not known
error: addrinfo comparison failure
--- expected
+++ actual
@@ -1,3 +1 @@
-address: STREAM/TCP 192.0.2.18 80
-address: DGRAM/UDP 192.0.2.18 80
-address: RAW/IP 192.0.2.18 80
+error: Name or service not known
error: addrinfo comparison failure
--- expected
+++ actual
@@ -1,3 +1 @@
-address: STREAM/TCP 2001:db8::1 80
-address: DGRAM/UDP 2001:db8::1 80
-address: RAW/IP 2001:db8::1 80
+error: Name or service not known
error: addrinfo comparison failure
--- expected
+++ actual
@@ -1,3 +1 @@
-address: STREAM/TCP 2001:db8::2 80
-address: DGRAM/UDP 2001:db8::2 80
-address: RAW/IP 2001:db8::2 80
+error: Name or service not known
error: hostent comparison failure
--- expected
+++ actual
@@ -1,2 +1 @@
-name: t.www.example
-address: 192.0.2.19
+error: HOST_NOT_FOUND
error: hostent comparison failure
--- expected
+++ actual
@@ -1,2 +1 @@
-name: t.www.example
-address: 192.0.2.19
+error: HOST_NOT_FOUND
error: hostent comparison failure
--- expected
+++ actual
@@ -1,2 +1 @@
-name: t.www.example
-address: 192.0.2.19
+error: HOST_NOT_FOUND
error: hostent comparison failure
--- expected
+++ actual
@@ -1,2 +1 @@
-name: t.www.example
-address: 192.0.2.19
+error: HOST_NOT_FOUND
error: hostent comparison failure
--- expected
+++ actual
@@ -1,3 +1 @@
-name: www.example
-alias: t.alias.example
-address: 192.0.2.20
+error: HOST_NOT_FOUND
error: hostent comparison failure
--- expected
+++ actual
@@ -1,3 +1 @@
-name: www.example
-alias: t.alias.example
-address: 192.0.2.20
+error: HOST_NOT_FOUND
error: hostent comparison failure
--- expected
+++ actual
@@ -1,3 +1 @@
-name: www.example
-alias: t.alias.example
-address: 192.0.2.20
+error: HOST_NOT_FOUND
error: hostent comparison failure
--- expected
+++ actual
@@ -1,3 +1 @@
-name: www.example
-alias: t.alias.example
-address: 192.0.2.20
+error: HOST_NOT_FOUND
error: hostent comparison failure
--- expected
+++ actual
@@ -1,2 +1 @@
-name: t.www.example
-address: 2001:db8::3
+error: HOST_NOT_FOUND
error: hostent comparison failure
--- expected
+++ actual
@@ -1,2 +1 @@
-name: t.www.example
-address: 2001:db8::3
+error: HOST_NOT_FOUND
error: hostent comparison failure
--- expected
+++ actual
@@ -1,3 +1 @@
-name: www.example
-alias: t.alias.example
-address: 2001:db8::4
+error: HOST_NOT_FOUND
error: hostent comparison failure
--- expected
+++ actual
@@ -1,3 +1 @@
-name: www.example
-alias: t.alias.example
-address: 2001:db8::4
+error: HOST_NOT_FOUND
error: addrinfo comparison failure
--- expected
+++ actual
@@ -1,6 +1 @@
-address: STREAM/TCP 192.0.2.19 80
-address: DGRAM/UDP 192.0.2.19 80
-address: RAW/IP 192.0.2.19 80
-address: STREAM/TCP 2001:db8::3 80
-address: DGRAM/UDP 2001:db8::3 80
-address: RAW/IP 2001:db8::3 80
+error: Name or service not known
error: addrinfo comparison failure
--- expected
+++ actual
@@ -1,6 +1 @@
-address: STREAM/TCP 192.0.2.20 80
-address: DGRAM/UDP 192.0.2.20 80
-address: RAW/IP 192.0.2.20 80
-address: STREAM/TCP 2001:db8::4 80
-address: DGRAM/UDP 2001:db8::4 80
-address: RAW/IP 2001:db8::4 80
+error: Name or service not known
error: addrinfo comparison failure
--- expected
+++ actual
@@ -1,3 +1 @@
-address: STREAM/TCP 192.0.2.19 80
-address: DGRAM/UDP 192.0.2.19 80
-address: RAW/IP 192.0.2.19 80
+error: Name or service not known
error: addrinfo comparison failure
--- expected
+++ actual
@@ -1,3 +1 @@
-address: STREAM/TCP 192.0.2.20 80
-address: DGRAM/UDP 192.0.2.20 80
-address: RAW/IP 192.0.2.20 80
+error: Name or service not known
error: addrinfo comparison failure
--- expected
+++ actual
@@ -1,3 +1 @@
-address: STREAM/TCP 2001:db8::3 80
-address: DGRAM/UDP 2001:db8::3 80
-address: RAW/IP 2001:db8::3 80
+error: Name or service not known
error: addrinfo comparison failure
--- expected
+++ actual
@@ -1,3 +1 @@
-address: STREAM/TCP 2001:db8::4 80
-address: DGRAM/UDP 2001:db8::4 80
-address: RAW/IP 2001:db8::4 80
+error: Name or service not known
error: 36 errors detected
Aborted (core dumped)
root@linux-6sir:~/glibc_tests > ./tst-maxpacket
info: old timeout value: 1
info: old retry attempt value: 4
info: old _res.options: 0x802c1
info: old _res.nscount value: 1
info: old _res.ndots value: 1
info: new timeout value: 1
info: new retry attempt value: 4
info: new _res.options: 0x802c1
info: new _res.nscount value: 3
info: new _res.ndots value: 1
info: server 0: 127.0.0.1/51171
info: server 1: 127.0.0.1/51428
info: server 2: 127.0.0.1/46842
error: res_send for size 512: -1 (Success)
Aborted (core dumped)
root@linux-6sir:~/glibc_tests > ./tst-partial-fail
info: old timeout value: 1
info: old retry attempt value: 4
info: old _res.options: 0x802c1
info: old _res.nscount value: 1
info: old _res.ndots value: 1
info: new timeout value: 1
info: new retry attempt value: 4
info: new _res.options: 0x802c1
info: new _res.nscount value: 3
info: new _res.ndots value: 1
info: server 0: 127.0.0.1/40987
info: server 1: 127.0.0.1/35157
info: server 2: 127.0.0.1/35963
info: test case -4/-4
- -4 -4 error: No address associated with hostname
+ -4 -4 error: Name or service not known
info: old timeout value: 1
info: old retry attempt value: 4
info: old _res.options: 0x802c1
info: old _res.nscount value: 1
info: old _res.ndots value: 1
info: new timeout value: 1
info: new retry attempt value: 4
info: new _res.options: 0x802c1
info: new _res.nscount value: 3
info: new _res.ndots value: 1
info: server 0: 127.0.0.1/45727
info: server 1: 127.0.0.1/32896
info: server 2: 127.0.0.1/49856
[...]
error: 1 errors encountered
Aborted (core dumped)
root@linux-6sir:~/glibc_tests > ./tst-reverse
info: old timeout value: 1
info: old retry attempt value: 4
info: old _res.options: 0x802c1
info: old _res.nscount value: 1
info: old _res.ndots value: 1
info: new timeout value: 1
info: new retry attempt value: 4
info: new _res.options: 0x802c1
info: new _res.nscount value: 3
info: new _res.ndots value: 1
info: server 0: 127.0.0.1/50355
info: server 1: 127.0.0.1/41108
info: server 2: 127.0.0.1/58830
error: hostent comparison failure
--- expected
+++ actual
@@ -1 +1 @@
-error: NO_ADDRESS
+error: HOST_NOT_FOUND
error: hostent comparison failure
--- expected
+++ actual
@@ -1,2 +1 @@
-name: aab.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-address: 192.0.2.2
+error: HOST_NOT_FOUND
error: getnameinfo difference for 2
expected: aab.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
actual: 192.0.2.2
Aborted (core dumped)
root@linux-6sir:~/glibc_tests > ./tst-rotate
info: tcp=0 nscount=1 disable=-1 drop=-1
info: old timeout value: 1
info: old retry attempt value: 4
info: old _res.options: 0x802c1
info: old _res.nscount value: 1
info: old _res.ndots value: 1
info: new timeout value: 1
info: new retry attempt value: 4
info: new _res.options: 0x802c1
info: new _res.nscount value: 1
info: new _res.ndots value: 1
info: server 0: 127.0.0.1/33794
error: hostent comparison failure
--- expected
+++ actual
@@ -1,2 +1 @@
-name: host.example
-address: 192.0.2.1
+error: HOST_NOT_FOUND
error: hostent comparison failure
--- expected
+++ actual
@@ -1,2 +1 @@
-name: host.example
-address: 192.0.2.1
+error: HOST_NOT_FOUND
error: hostent comparison failure
--- expected
+++ actual
@@ -1,2 +1 @@
-name: host.example
-address: 192.0.2.1
+error: HOST_NOT_FOUND
error: addrinfo comparison failure
--- expected
+++ actual
@@ -1 +1 @@
-address: STREAM/TCP 192.0.2.1 80
+error: Name or service not known
error: hostent comparison failure
--- expected
+++ actual
@@ -1,2 +1 @@
-name: 2.host.example
-address: 192.0.2.2
+error: HOST_NOT_FOUND
error: hostent comparison failure
--- expected
+++ actual
@@ -1,2 +1 @@
-name: 2.host.example
-address: 192.0.2.2
+error: HOST_NOT_FOUND
error: hostent comparison failure
--- expected
+++ actual
@@ -1,2 +1 @@
-name: 2.host.example
-address: 192.0.2.2
+error: HOST_NOT_FOUND
error: addrinfo comparison failure
--- expected
+++ actual
@@ -1 +1 @@
-address: STREAM/TCP 192.0.2.2 80
+error: Name or service not known
error: hostent comparison failure
--- expected
+++ actual
@@ -1,2 +1 @@
-name: host.example
-address: 2001:db8::1
+error: HOST_NOT_FOUND
error: hostent comparison failure
--- expected
+++ actual
@@ -1,2 +1 @@
-name: host.example
-address: 2001:db8::1
+error: HOST_NOT_FOUND
error: addrinfo comparison failure
--- expected
+++ actual
@@ -1 +1 @@
-address: STREAM/TCP 2001:db8::1 80
+error: Name or service not known
error: hostent comparison failure
--- expected
+++ actual
@@ -1,2 +1 @@
-name: 2.host.example
-address: 2001:db8::2
+error: HOST_NOT_FOUND
error: hostent comparison failure
--- expected
+++ actual
@@ -1,2 +1 @@
-name: 2.host.example
-address: 2001:db8::2
+error: HOST_NOT_FOUND
error: addrinfo comparison failure
--- expected
+++ actual
@@ -1 +1 @@
-address: STREAM/TCP 2001:db8::2 80
+error: Name or service not known
error: addrinfo comparison failure
--- expected
+++ actual
@@ -1,2 +1 @@
-address: STREAM/TCP 192.0.2.1 80
-address: STREAM/TCP 2001:db8::1 80
+error: Name or service not known
error: addrinfo comparison failure
--- expected
+++ actual
@@ -1,2 +1 @@
-address: STREAM/TCP 192.0.2.2 80
-address: STREAM/TCP 2001:db8::2 80
+error: Name or service not known
error: nscount=1, but no query to server 0
Aborted (core dumped)
root@linux-6sir:~/glibc_tests > ./tst-search
info: old timeout value: 1
info: old retry attempt value: 4
info: old _res.options: 0x802c1
info: old _res.nscount value: 1
info: old _res.ndots value: 1
info: new timeout value: 1
info: new retry attempt value: 4
info: new _res.options: 0x802c1
info: new _res.nscount value: 3
info: new _res.ndots value: 1
info: server 0: 127.0.0.1/52154
info: server 1: 127.0.0.1/57871
info: server 2: 127.0.0.1/35280
error: hostent comparison failure
--- expected
+++ actual
@@ -1,3 +1 @@
-name: file.corp.example.com
-address: 10.5.0.0
-address: 10.5.0.1
+error: TRY_AGAIN
error: hostent comparison failure
--- expected
+++ actual
@@ -1,3 +1 @@
-name: file.corp.example.com
-address: 10.5.0.0
-address: 10.5.0.1
+error: TRY_AGAIN
error: res_search ("file")
Aborted (core dumped)
root@linux-6sir:~/glibc_tests > head -100 tst-size-sweep.out
info: old timeout value: 1
info: old retry attempt value: 4
info: old _res.options: 0x802c1
info: old _res.nscount value: 1
info: old _res.ndots value: 1
info: new timeout value: 1
info: new retry attempt value: 4
info: new _res.options: 0x802c1
info: new _res.nscount value: 3
info: new _res.ndots value: 1
info: server 0: 127.0.0.1/60408
info: server 1: 127.0.0.1/35351
info: server 2: 127.0.0.1/42052
error: addrinfo comparison failure
--- expected
+++ actual
@@ -1,2 +1 @@
-address: STREAM/TCP 255.0.0.0 80
-address: STREAM/TCP 2001:db8::0:0:0 80
+error: Name or service not known
error: addrinfo comparison failure
--- expected
+++ actual
@@ -1,4 +1 @@
-address: STREAM/TCP 255.0.0.0 80
-address: STREAM/TCP 255.0.1.0 80
-address: STREAM/TCP 2001:db8::0:0:0 80
-address: STREAM/TCP 2001:db8::0:1:0 80
+error: Name or service not known
error: addrinfo comparison failure
--- expected
+++ actual
@@ -1,6 +1 @@
-address: STREAM/TCP 255.0.0.0 80
-address: STREAM/TCP 255.0.1.0 80
-address: STREAM/TCP 255.0.2.0 80
-address: STREAM/TCP 2001:db8::0:0:0 80
-address: STREAM/TCP 2001:db8::0:1:0 80
-address: STREAM/TCP 2001:db8::0:2:0 80
+error: Name or service not known
error: addrinfo comparison failure
--- expected
+++ actual
@@ -1,8 +1 @@
-address: STREAM/TCP 255.0.0.0 80
-address: STREAM/TCP 255.0.1.0 80
-address: STREAM/TCP 255.0.2.0 80
-address: STREAM/TCP 255.0.3.0 80
-address: STREAM/TCP 2001:db8::0:0:0 80
-address: STREAM/TCP 2001:db8::0:1:0 80
-address: STREAM/TCP 2001:db8::0:2:0 80
-address: STREAM/TCP 2001:db8::0:3:0 80
+error: Name or service not known
error: addrinfo comparison failure