netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* commit b9ef5513c99b breaks ping to ipv6 linklocal addresses on debian buster
@ 2020-01-06  1:26 David Ahern
  2020-01-06  3:51 ` Tetsuo Handa
  0 siblings, 1 reply; 15+ messages in thread
From: David Ahern @ 2020-01-06  1:26 UTC (permalink / raw)
  To: Tetsuo Handa, Casey Schaufler, netdev

I am seeing ping failures to IPv6 linklocal addresses with Debian
buster. Easiest example to reproduce is:

$ ping -c1 -w1 ff02::1%eth1
connect: Invalid argument

$ ping -c1 -w1 ff02::1%eth1
PING ff02::01%eth1(ff02::1%eth1) 56 data bytes
64 bytes from fe80::e0:f9ff:fe0c:37%eth1: icmp_seq=1 ttl=64 time=0.059 ms


git bisect traced the failure to:

commit b9ef5513c99bf9c8bfd9c9e8051b67f52b2dee1e
Author: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Date:   Fri Apr 12 19:59:35 2019 +0900

    smack: Check address length before reading address family


Arguably ping is being stupid since the buster version is not setting
the address family properly (ping on stretch for example does):

$ strace -e connect ping6 -c1 -w1 ff02::1%eth1
connect(4, {sa_family=AF_UNSPEC,
sa_data="\4\1\0\0\0\0\377\2\0\0\0\0\0\0\0\0\0\0\0\0\0\1\3\0\0\0"}, 28) = 0

but the command works fine on kernels prior to this commit, so this is
breakage which goes against the Linux paradigm of "don't break userspace"

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2020-01-09  9:50 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-06  1:26 commit b9ef5513c99b breaks ping to ipv6 linklocal addresses on debian buster David Ahern
2020-01-06  3:51 ` Tetsuo Handa
2020-01-06  4:20   ` David Ahern
2020-01-06 11:04     ` Tetsuo Handa
2020-01-06 16:41       ` David Ahern
2020-01-06 21:03         ` Tetsuo Handa
2020-01-06 21:33           ` Casey Schaufler
2020-01-07 18:05           ` Casey Schaufler
2020-01-07 18:40           ` Casey Schaufler
2020-01-07 18:44             ` David Ahern
2020-01-08  2:41               ` David Ahern
2020-01-08 23:06                 ` Casey Schaufler
     [not found]                   ` <CAPA1RqAqBZNeN=T_FpApLo_-oZXeFctgGHcggY6xAXV+qHYcKg@mail.gmail.com>
2020-01-09  3:39                     ` David Ahern
2020-01-09  4:06                   ` David Ahern
2020-01-09  9:50                     ` Tetsuo Handa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).