From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 13069 invoked from network); 17 Feb 2022 13:31:13 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 17 Feb 2022 13:31:13 -0000 Received: (qmail 25614 invoked by uid 550); 17 Feb 2022 13:31:11 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 24554 invoked from network); 17 Feb 2022 13:31:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uEq43uH8weBcJ+TSIiFVeHpkKHdql49rLeY/kCQ+1bo=; b=am8RAAVoUSyMFAn7PvXGxD2iUWialwjGMPUmumbW7Yse3oBvbYqnJdOvhomY25Xh0v cvTX53csiArbtGnoFHKAWdGLue8Itgfs4onuGrxrwzSDWTfa1lZKEh/WpJI+FaoWSxPc IpJefk3Be+E5jK6pNvs7/1xuq25UhDJt8iBqJSSD/sBaC3IzhmodbkM67FulabgiXnd5 YxJiVTOB1pxbqH2Ueimeu/Zn4a4SZyOc5wTaIKzMuFF3DpUwHwWlMAHoCXS0czh47qYL wcPTq0A2BzYywaJ/tgSEPUhS4TYhPEvCPFZk3BxBGHU9HnaOKv/+B89OBfoMgxZqofo8 DcIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uEq43uH8weBcJ+TSIiFVeHpkKHdql49rLeY/kCQ+1bo=; b=Gi3zmqcE0gTmB0L4lRXnVsdOOxSdlFk7E13kCR5FaL8GjO8nJfoadA6LGhMdkiheqL 2pqmvqoYgaoeA1bD5O9kNBbzCbECO+gZD9FrMebsoH9piG0w4h020i7JtzO1fq6AO5lH b/eBChB8vBOfQN7BoZNINPOac5M26PUM7uFI441FNWAUvTM834nbCswhifMwzOgiJ/cU tX258rTrvfiyFpyDnckdg1A51GRi40KOHXq9Vl3vPzMoDwLkF3Buuh0rMoKyRE7a5GJv 1TfiZW3qrFNMJA1zwy1uQvakXZ2sGbdrFpFErB5DZwBdCqcnerN0NSZ5LC19bq+AqTgm SbPA== X-Gm-Message-State: AOAM530SD1kPkPywRsRAbE5q1x6ySJ4gR9m0AkAGO+zNshllF3DV4SQ9 Vor10CKOVL/XfpYTKKk61/XvJtkxu+750UmfyCqseI5Nob8= X-Google-Smtp-Source: ABdhPJxIyq6IBloYboEI/NlEg/mj0Hy90e9APM97p1uFhTUlUqfMf5/fWjMmkSjEM73uRCgPC5C3Uo+e3hTwxwPWYdE= X-Received: by 2002:a05:6512:332a:b0:443:77b5:d917 with SMTP id l10-20020a056512332a00b0044377b5d917mr2120733lfe.386.1645104658973; Thu, 17 Feb 2022 05:30:58 -0800 (PST) MIME-Version: 1.0 References: <20220215174420.GL7074@brightrain.aerifal.cx> <20220216014153.GM7074@brightrain.aerifal.cx> <20220216213335.GO7074@brightrain.aerifal.cx> <20220217132434.GP7074@brightrain.aerifal.cx> In-Reply-To: <20220217132434.GP7074@brightrain.aerifal.cx> From: Satadru Pramanik Date: Thu, 17 Feb 2022 08:30:47 -0500 Message-ID: To: Rich Felker Cc: musl@lists.openwall.com Content-Type: multipart/alternative; boundary="000000000000d1071505d836c635" Subject: Re: [musl] Re: musl getaddr info breakage on older kernels --000000000000d1071505d836c635 Content-Type: text/plain; charset="UTF-8" *This is a failure:* tcpdump -i any -vvv host 192.168.0.115 tcpdump: listening on any, link-type LINUX_SLL (Linux cooked v1), capture size 262144 bytes 08:29:38.043849 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 56) 192.168.0.115.60625 > office.lan.53: [udp sum ok] 0+ A? google.com. (28) 08:29:38.044237 IP (tos 0x0, ttl 64, id 11463, offset 0, flags [DF], proto UDP (17), length 72) office.lan.53 > 192.168.0.115.60625: [bad udp cksum 0x820a -> 0x5c7d!] 0 q: A? google.com. 1/0/0 google.com. [2m15s] A 142.250.80.110 (44) 08:29:38.047754 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 56) 192.168.0.115.60625 > office.lan.53: [udp sum ok] 0+ AAAA? google.com. (28) 08:29:38.048078 IP (tos 0x0, ttl 64, id 11464, offset 0, flags [DF], proto UDP (17), length 84) office.lan.53 > 192.168.0.115.60625: [bad udp cksum 0x8216 -> 0xb42f!] 0 q: AAAA? google.com. 1/0/0 google.com. [4m26s] AAAA 2607:f8b0:4006:80d::200e (56) 08:29:38.048955 IP (tos 0xc0, ttl 64, id 59728, offset 0, flags [none], proto ICMP (1), length 112) 192.168.0.115 > office.lan: ICMP 192.168.0.115 udp port 60625 unreachable, length 92 IP (tos 0x0, ttl 64, id 11464, offset 0, flags [DF], proto UDP (17), length 84) office.lan.53 > 192.168.0.115.60625: [udp sum ok] 0 q: AAAA? google.com. 1/0/0 google.com. [4m26s] AAAA 2607:f8b0:4006:80d::200e (56) 08:29:39.476101 IP (tos 0x0, ttl 64, id 12690, offset 0, flags [DF], proto TCP (6), length 52) 192.168.0.115.51204 > lga34s35-in-f3.1e100.net.80: Flags [.], cksum 0xa666 (correct), seq 1466707759, ack 3358943837, win 115, options [nop,nop,TS val 198422160 ecr 2351261566], length 0 08:29:39.478914 IP (tos 0x80, ttl 122, id 6227, offset 0, flags [none], proto TCP (6), length 52) lga34s35-in-f3.1e100.net.80 > 192.168.0.115.51204: Flags [.], cksum 0xa5b7 (correct), seq 1, ack 1, win 282, options [nop,nop,TS val 2351306585 ecr 198377148], length 0 ^C 7 packets captured 7 packets received by filter 0 packets dropped by kernel *Two successes and one failure:* # tcpdump -i any -vvv host 192.168.0.115 tcpdump: listening on any, link-type LINUX_SLL (Linux cooked v1), capture size 262144 bytes 08:28:16.906114 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 56) 192.168.0.115.34033 > office.lan.53: [udp sum ok] 0+ A? google.com. (28) 08:28:16.906243 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 56) 192.168.0.115.34033 > office.lan.53: [udp sum ok] 0+ AAAA? google.com. (28) 08:28:16.906512 IP (tos 0x0, ttl 64, id 8977, offset 0, flags [DF], proto UDP (17), length 72) office.lan.53 > 192.168.0.115.34033: [bad udp cksum 0x820a -> 0xc40b!] 0 q: A? google.com. 1/0/0 google.com. [3m37s] A 142.250.80.110 (44) 08:28:16.906696 IP (tos 0x0, ttl 64, id 8978, offset 0, flags [DF], proto UDP (17), length 84) office.lan.53 > 192.168.0.115.34033: [bad udp cksum 0x8216 -> 0x1d02!] 0 q: AAAA? google.com. 1/0/0 google.com. [5s] AAAA 2607:f8b0:4006:820::200e (56) 08:28:19.257368 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 56) 192.168.0.115.53048 > office.lan.53: [udp sum ok] 0+ A? google.com. (28) 08:28:19.257466 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 56) 192.168.0.115.53048 > office.lan.53: [udp sum ok] 0+ AAAA? google.com. (28) 08:28:19.257680 IP (tos 0x0, ttl 64, id 9078, offset 0, flags [DF], proto UDP (17), length 72) office.lan.53 > 192.168.0.115.53048: [bad udp cksum 0x820a -> 0x79c7!] 0 q: A? google.com. 1/0/0 google.com. [3m34s] A 142.250.80.110 (44) 08:28:19.257849 IP (tos 0x0, ttl 64, id 9079, offset 0, flags [DF], proto UDP (17), length 84) office.lan.53 > 192.168.0.115.53048: [bad udp cksum 0x8216 -> 0xd2bd!] 0 q: AAAA? google.com. 1/0/0 google.com. [2s] AAAA 2607:f8b0:4006:820::200e (56) 08:28:20.354244 IP (tos 0x0, ttl 64, id 52155, offset 0, flags [DF], proto TCP (6), length 52) 192.168.0.115.53400 > lga34s35-in-f4.1e100.net.443: Flags [.], cksum 0xf854 (correct), seq 2594363947, ack 50065344, win 135, options [nop,nop,TS val 198343040 ecr 3566225862], length 0 08:28:20.358922 IP (tos 0x0, ttl 122, id 3787, offset 0, flags [none], proto TCP (6), length 52) lga34s35-in-f4.1e100.net.443 > 192.168.0.115.53400: Flags [.], cksum 0xa7b0 (correct), seq 1, ack 1, win 276, options [nop,nop,TS val 3566270916 ecr 198252953], length 0 08:28:20.482219 IP (tos 0x0, ttl 64, id 27145, offset 0, flags [DF], proto TCP (6), length 52) 192.168.0.115.54184 > bc-in-f188.1e100.net.5228: Flags [.], cksum 0x4e35 (correct), seq 2783933939, ack 881888313, win 249, options [nop,nop,TS val 198343168 ecr 855506216], length 0 08:28:20.492954 IP (tos 0x0, ttl 59, id 49690, offset 0, flags [none], proto TCP (6), length 52) bc-in-f188.1e100.net.5228 > 192.168.0.115.54184: Flags [.], cksum 0xfdcb (correct), seq 1, ack 1, win 274, options [nop,nop,TS val 855551371 ecr 198253037], length 0 08:28:20.860748 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 56) 192.168.0.115.49427 > office.lan.53: [udp sum ok] 0+ A? google.com. (28) 08:28:20.860857 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 56) 192.168.0.115.49427 > office.lan.53: [udp sum ok] 0+ AAAA? google.com. (28) 08:28:20.861401 IP (tos 0x0, ttl 64, id 9095, offset 0, flags [DF], proto UDP (17), length 72) office.lan.53 > 192.168.0.115.49427: [bad udp cksum 0x820a -> 0x87ed!] 0 q: A? google.com. 1/0/0 google.com. [3m33s] A 142.250.80.110 (44) 08:28:20.861738 IP (tos 0x0, ttl 64, id 9096, offset 0, flags [DF], proto UDP (17), length 84) office.lan.53 > 192.168.0.115.49427: [bad udp cksum 0x8216 -> 0xe0e3!] 0 q: AAAA? google.com. 1/0/0 google.com. [1s] AAAA 2607:f8b0:4006:820::200e (56) 08:28:20.862682 IP (tos 0xc0, ttl 64, id 59726, offset 0, flags [none], proto ICMP (1), length 112) 192.168.0.115 > office.lan: ICMP 192.168.0.115 udp port 49427 unreachable, length 92 IP (tos 0x0, ttl 64, id 9096, offset 0, flags [DF], proto UDP (17), length 84) office.lan.53 > 192.168.0.115.49427: [udp sum ok] 0 q: AAAA? google.com. 1/0/0 google.com. [1s] AAAA 2607:f8b0:4006:820::200e (56) 08:28:21.985759 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 192.168.0.115 tell office.lan, length 28 08:28:22.133507 ARP, Ethernet (len 6), IPv4 (len 4), Reply 192.168.0.115 is-at 20:68:9d:0f:33:44 (oui Unknown), length 46 ^C 19 packets captured 19 packets received by filter 0 packets dropped by kernel On Thu, Feb 17, 2022 at 8:24 AM Rich Felker wrote: > On Thu, Feb 17, 2022 at 08:17:36AM -0500, Satadru Pramanik wrote: > > Looks like reverting that commit works, but interestingly, only > > stochastically. > > > > chronos@localhost > > /usr/local/tmp/crew/musl_getaddrinfo_test.20220217125953.dir $ > > ../musl_getaddrinfo_test google.com > > getaddrinfo: Try again > > chronos@localhost > > /usr/local/tmp/crew/musl_getaddrinfo_test.20220217125953.dir $ > > ../musl_getaddrinfo_test google.com > > AF_INET6: 2607:f8b0:4006:81c::200e > > AF_INET: 142.250.80.46 > > chronos@localhost > > /usr/local/tmp/crew/musl_getaddrinfo_test.20220217125953.dir $ > > ../musl_getaddrinfo_test google.com > > AF_INET6: 2607:f8b0:4006:81c::200e > > AF_INET: 142.250.80.46 > > chronos@localhost > > /usr/local/tmp/crew/musl_getaddrinfo_test.20220217125953.dir $ > > ../musl_getaddrinfo_test google.com > > getaddrinfo: Try again > > chronos@localhost > > /usr/local/tmp/crew/musl_getaddrinfo_test.20220217125953.dir $ > > ../musl_getaddrinfo_test google.com > > AF_INET6: 2607:f8b0:4006:81c::200e > > AF_INET: 142.250.80.46 > > chronos@localhost > > /usr/local/tmp/crew/musl_getaddrinfo_test.20220217125953.dir $ > > ../musl_getaddrinfo_test google.com > > AF_INET6: 2607:f8b0:4006:81c::200e > > AF_INET: 142.250.80.46 > > chronos@localhost > > /usr/local/tmp/crew/musl_getaddrinfo_test.20220217125953.dir $ > > ../musl_getaddrinfo_test google.com > > getaddrinfo: Try again > > chronos@localhost > > /usr/local/tmp/crew/musl_getaddrinfo_test.20220217125953.dir $ > > ../musl_getaddrinfo_test google.com > > AF_INET6: 2607:f8b0:4006:81c::200e > > AF_INET: 142.250.80.46 > > chronos@localhost > > /usr/local/tmp/crew/musl_getaddrinfo_test.20220217125953.dir $ > > ../musl_getaddrinfo_test google.com > > getaddrinfo: Try again > > chronos@localhost > > /usr/local/tmp/crew/musl_getaddrinfo_test.20220217125953.dir $ > > ../musl_getaddrinfo_test google.com > > getaddrinfo: Try again > > chronos@localhost > > /usr/local/tmp/crew/musl_getaddrinfo_test.20220217125953.dir $ > > ../musl_getaddrinfo_test google.com > > AF_INET6: 2607:f8b0:4006:81c::200e > > AF_INET: 142.250.80.46 > > Can you tcpdump these again and see if there's network traffic when it > fails? This sounds more like the nameserver being unreliable. > --000000000000d1071505d836c635 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
This is a failure:
tcpdump -i any -v= vv host 192.168.0.115
tcpdump: listening on any, link-type LINUX_SLL (Li= nux cooked v1), capture size 262144 bytes
08:29:38.043849 IP (tos 0x0, t= tl 64, id 0, offset 0, flags [DF], proto UDP (17), length 56)
=C2=A0 =C2= =A0 192.168.0.115.60625 > office.lan.53: [udp sum ok] 0+ A? google.com. (28)
08:29:38.044237 IP (tos 0x0, ttl = 64, id 11463, offset 0, flags [DF], proto UDP (17), length 72)
=C2=A0 = =C2=A0 office.lan.53 > 192.168.0.115.60625: [bad udp cksum 0x820a -> = 0x5c7d!] 0 q: A? google.com. 1/0/0 google.com. [2m15s] A 142.250.80.110 (44)
08= :29:38.047754 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (1= 7), length 56)
=C2=A0 =C2=A0 192.168.0.115.60625 > office.lan.53: [ud= p sum ok] 0+ AAAA? google.com. (28)
08= :29:38.048078 IP (tos 0x0, ttl 64, id 11464, offset 0, flags [DF], proto UD= P (17), length 84)
=C2=A0 =C2=A0 office.lan.53 > 192.168.0.115.60625:= [bad udp cksum 0x8216 -> 0xb42f!] 0 q: AAAA? google.com. 1/0/0 google.com. [4m= 26s] AAAA 2607:f8b0:4006:80d::200e (56)
08:29:38.048955 IP (tos 0xc0, tt= l 64, id 59728, offset 0, flags [none], proto ICMP (1), length 112)
=C2= =A0 =C2=A0 192.168.0.115 > office.lan: ICMP 192.168.0.115 udp port 60625= unreachable, length 92
=C2=A0 =C2=A0 =C2=A0 =C2=A0 IP (tos 0x0, ttl 64,= id 11464, offset 0, flags [DF], proto UDP (17), length 84)
=C2=A0 =C2= =A0 office.lan.53 > 192.168.0.115.60625: [udp sum ok] 0 q: AAAA? google.com. 1/0/0 = google.com. [4m26s] AAAA 2607:f8b0:4006:80d::200e (56)
08:29:39.4761= 01 IP (tos 0x0, ttl 64, id 12690, offset 0, flags [DF], proto TCP (6), leng= th 52)
=C2=A0 =C2=A0 192.168.0.115.51204 > lga34s35-in-f3.1e100.net.8= 0: Flags [.], cksum 0xa666 (correct), seq 1466707759, ack 3358943837, win 1= 15, options [nop,nop,TS val 198422160 ecr 2351261566], length 0
08:29:39= .478914 IP (tos 0x80, ttl 122, id 6227, offset 0, flags [none], proto TCP (= 6), length 52)
=C2=A0 =C2=A0 lga34s35-in-f3.1e100.net.80 > 192.168.0.= 115.51204: Flags [.], cksum 0xa5b7 (correct), seq 1, ack 1, win 282, option= s [nop,nop,TS val 2351306585 ecr 198377148], length 0
^C
7 packets ca= ptured
7 packets received by filter
0 packets dropped by kernel

Two successes and one failure:

# tcpdump -i any -vvv host 192.168.0.115
tcpdump: listening on any, lin= k-type LINUX_SLL (Linux cooked v1), capture size 262144 bytes
08:28:16.9= 06114 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), leng= th 56)
=C2=A0 =C2=A0 192.168.0.115.34033 > office.lan.53: [udp sum ok= ] 0+ A? google.com. (28)
08:28:16.9062= 43 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length = 56)
=C2=A0 =C2=A0 192.168.0.115.34033 > office.lan.53: [udp sum ok] 0= + AAAA? google.com. (28)
08:28:16.9065= 12 IP (tos 0x0, ttl 64, id 8977, offset 0, flags [DF], proto UDP (17), leng= th 72)
=C2=A0 =C2=A0 office.lan.53 > 192.168.0.115.34033: [bad udp ck= sum 0x820a -> 0xc40b!] 0 q: A? google.com<= /a>. 1/0/0 google.com. [3m37s] A 142.250.= 80.110 (44)
08:28:16.906696 IP (tos 0x0, ttl 64, id 8978, offset 0, flag= s [DF], proto UDP (17), length 84)
=C2=A0 =C2=A0 office.lan.53 > 192.= 168.0.115.34033: [bad udp cksum 0x8216 -> 0x1d02!] 0 q: AAAA? google.com. 1/0/0 goo= gle.com. [5s] AAAA 2607:f8b0:4006:820::200e (56)
08:28:19.257368 IP = (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 56)=C2=A0 =C2=A0 192.168.0.115.53048 > office.lan.53: [udp sum ok] 0+ A? <= a href=3D"http://google.com">google.com. (28)
08:28:19.257466 IP (to= s 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 56)
= =C2=A0 =C2=A0 192.168.0.115.53048 > office.lan.53: [udp sum ok] 0+ AAAA?= google.com. (28)
08:28:19.257680 IP (= tos 0x0, ttl 64, id 9078, offset 0, flags [DF], proto UDP (17), length 72)<= br>=C2=A0 =C2=A0 office.lan.53 > 192.168.0.115.53048: [bad udp cksum 0x8= 20a -> 0x79c7!] 0 q: A? google.com. 1/= 0/0 google.com. [3m34s] A 142.250.80.110 = (44)
08:28:19.257849 IP (tos 0x0, ttl 64, id 9079, offset 0, flags [DF],= proto UDP (17), length 84)
=C2=A0 =C2=A0 office.lan.53 > 192.168.0.1= 15.53048: [bad udp cksum 0x8216 -> 0xd2bd!] 0 q: AAAA? google.com. 1/0/0 google.com= . [2s] AAAA 2607:f8b0:4006:820::200e (56)
08:28:20.354244 IP (tos 0x= 0, ttl 64, id 52155, offset 0, flags [DF], proto TCP (6), length 52)
=C2= =A0 =C2=A0 192.168.0.115.53400 > lga34s35-in-f4.1e100.net.443: Flags [.]= , cksum 0xf854 (correct), seq 2594363947, ack 50065344, win 135, options [n= op,nop,TS val 198343040 ecr 3566225862], length 0
08:28:20.358922 IP (to= s 0x0, ttl 122, id 3787, offset 0, flags [none], proto TCP (6), length 52)<= br>=C2=A0 =C2=A0 lga34s35-in-f4.1e100.net.443 > 192.168.0.115.53400: Fla= gs [.], cksum 0xa7b0 (correct), seq 1, ack 1, win 276, options [nop,nop,TS = val 3566270916 ecr 198252953], length 0
08:28:20.482219 IP (tos 0x0, ttl= 64, id 27145, offset 0, flags [DF], proto TCP (6), length 52)
=C2=A0 = =C2=A0 192.168.0.115.54184 > bc-in-f188.1e100.net.5228: Flags [.], cksum= 0x4e35 (correct), seq 2783933939, ack 881888313, win 249, options [nop,nop= ,TS val 198343168 ecr 855506216], length 0
08:28:20.492954 IP (tos 0x0, = ttl 59, id 49690, offset 0, flags [none], proto TCP (6), length 52)
=C2= =A0 =C2=A0 bc-in-f188.1e100.net.5228 > 192.168.0.115.54184: Flags [.], c= ksum 0xfdcb (correct), seq 1, ack 1, win 274, options [nop,nop,TS val 85555= 1371 ecr 198253037], length 0
08:28:20.860748 IP (tos 0x0, ttl 64, id 0,= offset 0, flags [DF], proto UDP (17), length 56)
=C2=A0 =C2=A0 192.168.= 0.115.49427 > office.lan.53: [udp sum ok] 0+ A? google.com. (28)
08:28:20.860857 IP (tos 0x0, ttl 64, id 0, of= fset 0, flags [DF], proto UDP (17), length 56)
=C2=A0 =C2=A0 192.168.0.1= 15.49427 > office.lan.53: [udp sum ok] 0+ AAAA? google.com. (28)
08:28:20.861401 IP (tos 0x0, ttl 64, id 9095,= offset 0, flags [DF], proto UDP (17), length 72)
=C2=A0 =C2=A0 office.l= an.53 > 192.168.0.115.49427: [bad udp cksum 0x820a -> 0x87ed!] 0 q: A= ? google.com. 1/0/0 google.com. [3m33s] A 142.250.80.110 (44)
08:28:20.861738 I= P (tos 0x0, ttl 64, id 9096, offset 0, flags [DF], proto UDP (17), length 8= 4)
=C2=A0 =C2=A0 office.lan.53 > 192.168.0.115.49427: [bad udp cksum = 0x8216 -> 0xe0e3!] 0 q: AAAA? google.com. 1/0/0 google.com. [1s] AAAA 2607:f8b0= :4006:820::200e (56)
08:28:20.862682 IP (tos 0xc0, ttl 64, id 59726, off= set 0, flags [none], proto ICMP (1), length 112)
=C2=A0 =C2=A0 192.168.0= .115 > office.lan: ICMP 192.168.0.115 udp port 49427 unreachable, length= 92
=C2=A0 =C2=A0 =C2=A0 =C2=A0 IP (tos 0x0, ttl 64, id 9096, offset 0, = flags [DF], proto UDP (17), length 84)
=C2=A0 =C2=A0 office.lan.53 > = 192.168.0.115.49427: [udp sum ok] 0 q: AAAA? = google.com. 1/0/0 google.com. [1s] AA= AA 2607:f8b0:4006:820::200e (56)
08:28:21.985759 ARP, Ethernet (len 6), = IPv4 (len 4), Request who-has 192.168.0.115 tell office.lan, length 28
0= 8:28:22.133507 ARP, Ethernet (len 6), IPv4 (len 4), Reply 192.168.0.115 is-= at 20:68:9d:0f:33:44 (oui Unknown), length 46
^C
19 packets captured<= br>19 packets received by filter
0 packets dropped by kernel

On= Thu, Feb 17, 2022 at 8:24 AM Rich Felker <dalias@aerifal.cx> wrote:
On Thu, Feb 17, 2022 at 08:17:36AM -0500, Satadru = Pramanik wrote:
> Looks like reverting that commit works, but interestingly, only
> stochastically.
>
> chronos@localhost
> /usr/local/tmp/crew/musl_getaddrinfo_test.20220217125953.dir $
> ../musl_getaddrinfo_test google.com
> getaddrinfo: Try again
> chronos@localhost
> /usr/local/tmp/crew/musl_getaddrinfo_test.20220217125953.dir $
> ../musl_getaddrinfo_test google.com
> AF_INET6: 2607:f8b0:4006:81c::200e
> AF_INET: 142.250.80.46
> chronos@localhost
> /usr/local/tmp/crew/musl_getaddrinfo_test.20220217125953.dir $
> ../musl_getaddrinfo_test google.com
> AF_INET6: 2607:f8b0:4006:81c::200e
> AF_INET: 142.250.80.46
> chronos@localhost
> /usr/local/tmp/crew/musl_getaddrinfo_test.20220217125953.dir $
> ../musl_getaddrinfo_test google.com
> getaddrinfo: Try again
> chronos@localhost
> /usr/local/tmp/crew/musl_getaddrinfo_test.20220217125953.dir $
> ../musl_getaddrinfo_test google.com
> AF_INET6: 2607:f8b0:4006:81c::200e
> AF_INET: 142.250.80.46
> chronos@localhost
> /usr/local/tmp/crew/musl_getaddrinfo_test.20220217125953.dir $
> ../musl_getaddrinfo_test google.com
> AF_INET6: 2607:f8b0:4006:81c::200e
> AF_INET: 142.250.80.46
> chronos@localhost
> /usr/local/tmp/crew/musl_getaddrinfo_test.20220217125953.dir $
> ../musl_getaddrinfo_test google.com
> getaddrinfo: Try again
> chronos@localhost
> /usr/local/tmp/crew/musl_getaddrinfo_test.20220217125953.dir $
> ../musl_getaddrinfo_test google.com
> AF_INET6: 2607:f8b0:4006:81c::200e
> AF_INET: 142.250.80.46
> chronos@localhost
> /usr/local/tmp/crew/musl_getaddrinfo_test.20220217125953.dir $
> ../musl_getaddrinfo_test google.com
> getaddrinfo: Try again
> chronos@localhost
> /usr/local/tmp/crew/musl_getaddrinfo_test.20220217125953.dir $
> ../musl_getaddrinfo_test google.com
> getaddrinfo: Try again
> chronos@localhost
> /usr/local/tmp/crew/musl_getaddrinfo_test.20220217125953.dir $
> ../musl_getaddrinfo_test google.com
> AF_INET6: 2607:f8b0:4006:81c::200e
> AF_INET: 142.250.80.46

Can you tcpdump these again and see if there's network traffic when it<= br> fails? This sounds more like the nameserver being unreliable.
--000000000000d1071505d836c635--