* 4.4-rc7 failure report @ 2015-12-28 21:53 Doug Ledford 2015-12-28 22:20 ` Daniel Borkmann 0 siblings, 1 reply; 13+ messages in thread From: Doug Ledford @ 2015-12-28 21:53 UTC (permalink / raw) To: David Miller, David Miller, netdev [-- Attachment #1: Type: text/plain, Size: 1342 bytes --] Hi Dave, The 4.4-rc7 kernel is failing for me. In my case, all of my vlan interfaces are failing to obtain a dhcp address using dhclient. I've tried a hand built 4.4-rc7, and the Fedora rawhide 4.4-rc7 kernel, both failed. I've tried NetworkManager and the old SysV network service, both fail. I tried a working dhclient from rhel7 on the Fedora rawhide install and it failed too. Running tcpdump on the interface shows the dhcp request going out, and a dhcp response coming back in. Running strace on dhclient shows that it writes the dhcp request, but it never recvs a dhcp response. If I manually bring the interface up with a static IP address then I'm able to run typical IP traffic across the link (aka, ping). It would seem that when dhclient registers a packet filter on the socket, that filter is preventing it from ever getting the dhcp response. The same dhclient works on any non-vlan interfaces in the system, so the filter must work for non-vlan interfaces. Aside from the fact that the interface is a vlan, we also use a priority egress map on the interface, and we use PFC flow control. Let me know if you need anymore to debug the issue, or email me off list and I can get you logins to my reproducer machines. -- Doug Ledford <dledford@redhat.com> GPG KeyID: 0E572FDD [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 884 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: 4.4-rc7 failure report 2015-12-28 21:53 4.4-rc7 failure report Doug Ledford @ 2015-12-28 22:20 ` Daniel Borkmann 2015-12-29 1:26 ` Doug Ledford 0 siblings, 1 reply; 13+ messages in thread From: Daniel Borkmann @ 2015-12-28 22:20 UTC (permalink / raw) To: Doug Ledford; +Cc: David Miller, David Miller, netdev On 12/28/2015 10:53 PM, Doug Ledford wrote: > The 4.4-rc7 kernel is failing for me. In my case, all of my vlan > interfaces are failing to obtain a dhcp address using dhclient. I've > tried a hand built 4.4-rc7, and the Fedora rawhide 4.4-rc7 kernel, both > failed. I've tried NetworkManager and the old SysV network service, > both fail. I tried a working dhclient from rhel7 on the Fedora rawhide > install and it failed too. Running tcpdump on the interface shows the > dhcp request going out, and a dhcp response coming back in. Running > strace on dhclient shows that it writes the dhcp request, but it never > recvs a dhcp response. If I manually bring the interface up with a > static IP address then I'm able to run typical IP traffic across the > link (aka, ping). It would seem that when dhclient registers a packet > filter on the socket, that filter is preventing it from ever getting the > dhcp response. The same dhclient works on any non-vlan interfaces in > the system, so the filter must work for non-vlan interfaces. Aside from > the fact that the interface is a vlan, we also use a priority egress map > on the interface, and we use PFC flow control. Let me know if you need > anymore to debug the issue, or email me off list and I can get you > logins to my reproducer machines. When you say 4.4-rc7 kernel is failing for you, what latest kernel version was working, where the socket filter was properly receiving the response on your vlan iface? Are you reasonably sure that the skb is dropped at the BPF filter attached to the dhcp's packet socket? Can you dump the BPF code of the filter? Are there any vlan offloading settings the filter is not taking into account (in the sense of classic BPF extensions, tcpdump/libpcap finally managed to cope with this)? ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: 4.4-rc7 failure report 2015-12-28 22:20 ` Daniel Borkmann @ 2015-12-29 1:26 ` Doug Ledford 2015-12-30 3:43 ` Alexei Starovoitov 0 siblings, 1 reply; 13+ messages in thread From: Doug Ledford @ 2015-12-29 1:26 UTC (permalink / raw) To: Daniel Borkmann; +Cc: David Miller, David Miller, netdev [-- Attachment #1: Type: text/plain, Size: 2698 bytes --] On 12/28/2015 05:20 PM, Daniel Borkmann wrote: > On 12/28/2015 10:53 PM, Doug Ledford wrote: >> The 4.4-rc7 kernel is failing for me. In my case, all of my vlan >> interfaces are failing to obtain a dhcp address using dhclient. I've >> tried a hand built 4.4-rc7, and the Fedora rawhide 4.4-rc7 kernel, both >> failed. I've tried NetworkManager and the old SysV network service, >> both fail. I tried a working dhclient from rhel7 on the Fedora rawhide >> install and it failed too. Running tcpdump on the interface shows the >> dhcp request going out, and a dhcp response coming back in. Running >> strace on dhclient shows that it writes the dhcp request, but it never >> recvs a dhcp response. If I manually bring the interface up with a >> static IP address then I'm able to run typical IP traffic across the >> link (aka, ping). It would seem that when dhclient registers a packet >> filter on the socket, that filter is preventing it from ever getting the >> dhcp response. The same dhclient works on any non-vlan interfaces in >> the system, so the filter must work for non-vlan interfaces. Aside from >> the fact that the interface is a vlan, we also use a priority egress map >> on the interface, and we use PFC flow control. Let me know if you need >> anymore to debug the issue, or email me off list and I can get you >> logins to my reproducer machines. > > When you say 4.4-rc7 kernel is failing for you, what latest kernel version > was working, where the socket filter was properly receiving the response on > your vlan iface? v4.3 final works. I haven't bisected where in the 4.4 series it quits working. I can do that tomorrow. > Are you reasonably sure that the skb is dropped at the BPF > filter attached to the dhcp's packet socket? No. I'm only reasonably sure that without a filter it works, I don't know if it gets dropped at the BPF filter or something else when the filter is added. It could be an interaction between the filter and PFC or vlan or anything else for all I know. But I figured the level of detail I gave should make it easy to reproduce locally by interested parties. > Can you dump the BPF code of > the filter? It's whatever the filter is that dhclient uses. I'm pretty sure that's a pretty standard filter. And I tried known working dhclients in order to make sure it wasn't the latest dhclient's fault. > Are there any vlan offloading settings the filter is not taking > into account (in the sense of classic BPF extensions, tcpdump/libpcap > finally > managed to cope with this)? Have no clue. -- Doug Ledford <dledford@redhat.com> GPG KeyID: 0E572FDD [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 884 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: 4.4-rc7 failure report 2015-12-29 1:26 ` Doug Ledford @ 2015-12-30 3:43 ` Alexei Starovoitov 2015-12-30 3:44 ` Doug Ledford 0 siblings, 1 reply; 13+ messages in thread From: Alexei Starovoitov @ 2015-12-30 3:43 UTC (permalink / raw) To: Doug Ledford; +Cc: Daniel Borkmann, David Miller, netdev On Mon, Dec 28, 2015 at 08:26:44PM -0500, Doug Ledford wrote: > On 12/28/2015 05:20 PM, Daniel Borkmann wrote: > > On 12/28/2015 10:53 PM, Doug Ledford wrote: > >> The 4.4-rc7 kernel is failing for me. In my case, all of my vlan > >> interfaces are failing to obtain a dhcp address using dhclient. I've > >> tried a hand built 4.4-rc7, and the Fedora rawhide 4.4-rc7 kernel, both > >> failed. I've tried NetworkManager and the old SysV network service, > >> both fail. I tried a working dhclient from rhel7 on the Fedora rawhide > >> install and it failed too. Running tcpdump on the interface shows the > >> dhcp request going out, and a dhcp response coming back in. Running > >> strace on dhclient shows that it writes the dhcp request, but it never > >> recvs a dhcp response. If I manually bring the interface up with a > >> static IP address then I'm able to run typical IP traffic across the > >> link (aka, ping). It would seem that when dhclient registers a packet > >> filter on the socket, that filter is preventing it from ever getting the > >> dhcp response. The same dhclient works on any non-vlan interfaces in > >> the system, so the filter must work for non-vlan interfaces. Aside from > >> the fact that the interface is a vlan, we also use a priority egress map > >> on the interface, and we use PFC flow control. Let me know if you need > >> anymore to debug the issue, or email me off list and I can get you > >> logins to my reproducer machines. > > > > When you say 4.4-rc7 kernel is failing for you, what latest kernel version > > was working, where the socket filter was properly receiving the response on > > your vlan iface? > > v4.3 final works. I haven't bisected where in the 4.4 series it quits > working. I can do that tomorrow. I've tried to reproduce, but cannot seem to make dnsmasq work properly over vlan, so bisect would be great. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: 4.4-rc7 failure report 2015-12-30 3:43 ` Alexei Starovoitov @ 2015-12-30 3:44 ` Doug Ledford 2015-12-30 4:16 ` Alexei Starovoitov 0 siblings, 1 reply; 13+ messages in thread From: Doug Ledford @ 2015-12-30 3:44 UTC (permalink / raw) To: Alexei Starovoitov; +Cc: Daniel Borkmann, David Miller, netdev [-- Attachment #1: Type: text/plain, Size: 2261 bytes --] On 12/29/2015 10:43 PM, Alexei Starovoitov wrote: > On Mon, Dec 28, 2015 at 08:26:44PM -0500, Doug Ledford wrote: >> On 12/28/2015 05:20 PM, Daniel Borkmann wrote: >>> On 12/28/2015 10:53 PM, Doug Ledford wrote: >>>> The 4.4-rc7 kernel is failing for me. In my case, all of my vlan >>>> interfaces are failing to obtain a dhcp address using dhclient. I've >>>> tried a hand built 4.4-rc7, and the Fedora rawhide 4.4-rc7 kernel, both >>>> failed. I've tried NetworkManager and the old SysV network service, >>>> both fail. I tried a working dhclient from rhel7 on the Fedora rawhide >>>> install and it failed too. Running tcpdump on the interface shows the >>>> dhcp request going out, and a dhcp response coming back in. Running >>>> strace on dhclient shows that it writes the dhcp request, but it never >>>> recvs a dhcp response. If I manually bring the interface up with a >>>> static IP address then I'm able to run typical IP traffic across the >>>> link (aka, ping). It would seem that when dhclient registers a packet >>>> filter on the socket, that filter is preventing it from ever getting the >>>> dhcp response. The same dhclient works on any non-vlan interfaces in >>>> the system, so the filter must work for non-vlan interfaces. Aside from >>>> the fact that the interface is a vlan, we also use a priority egress map >>>> on the interface, and we use PFC flow control. Let me know if you need >>>> anymore to debug the issue, or email me off list and I can get you >>>> logins to my reproducer machines. >>> >>> When you say 4.4-rc7 kernel is failing for you, what latest kernel version >>> was working, where the socket filter was properly receiving the response on >>> your vlan iface? >> >> v4.3 final works. I haven't bisected where in the 4.4 series it quits >> working. I can do that tomorrow. > > I've tried to reproduce, but cannot seem to make dnsmasq work properly > over vlan, so bisect would be great. > Yeah, I've been working on it. Issues with available machines that reproduce combined with what hardware they have and whether or not that hardware works at various steps in the bisection :-/ -- Doug Ledford <dledford@redhat.com> GPG KeyID: 0E572FDD [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 884 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: 4.4-rc7 failure report 2015-12-30 3:44 ` Doug Ledford @ 2015-12-30 4:16 ` Alexei Starovoitov 2015-12-30 9:38 ` Daniel Borkmann 2015-12-31 2:02 ` Doug Ledford 0 siblings, 2 replies; 13+ messages in thread From: Alexei Starovoitov @ 2015-12-30 4:16 UTC (permalink / raw) To: Doug Ledford; +Cc: Daniel Borkmann, David Miller, netdev On Tue, Dec 29, 2015 at 10:44:31PM -0500, Doug Ledford wrote: > On 12/29/2015 10:43 PM, Alexei Starovoitov wrote: > > On Mon, Dec 28, 2015 at 08:26:44PM -0500, Doug Ledford wrote: > >> On 12/28/2015 05:20 PM, Daniel Borkmann wrote: > >>> On 12/28/2015 10:53 PM, Doug Ledford wrote: > >>>> The 4.4-rc7 kernel is failing for me. In my case, all of my vlan > >>>> interfaces are failing to obtain a dhcp address using dhclient. I've > >>>> tried a hand built 4.4-rc7, and the Fedora rawhide 4.4-rc7 kernel, both > >>>> failed. I've tried NetworkManager and the old SysV network service, > >>>> both fail. I tried a working dhclient from rhel7 on the Fedora rawhide > >>>> install and it failed too. Running tcpdump on the interface shows the > >>>> dhcp request going out, and a dhcp response coming back in. Running > >>>> strace on dhclient shows that it writes the dhcp request, but it never > >>>> recvs a dhcp response. If I manually bring the interface up with a > >>>> static IP address then I'm able to run typical IP traffic across the > >>>> link (aka, ping). It would seem that when dhclient registers a packet > >>>> filter on the socket, that filter is preventing it from ever getting the > >>>> dhcp response. The same dhclient works on any non-vlan interfaces in > >>>> the system, so the filter must work for non-vlan interfaces. Aside from > >>>> the fact that the interface is a vlan, we also use a priority egress map > >>>> on the interface, and we use PFC flow control. Let me know if you need > >>>> anymore to debug the issue, or email me off list and I can get you > >>>> logins to my reproducer machines. > >>> > >>> When you say 4.4-rc7 kernel is failing for you, what latest kernel version > >>> was working, where the socket filter was properly receiving the response on > >>> your vlan iface? > >> > >> v4.3 final works. I haven't bisected where in the 4.4 series it quits > >> working. I can do that tomorrow. > > > > I've tried to reproduce, but cannot seem to make dnsmasq work properly > > over vlan, so bisect would be great. > > > > Yeah, I've been working on it. Issues with available machines that > reproduce combined with what hardware they have and whether or not that > hardware works at various steps in the bisection :-/ I've looked through all bpf related commits between v4.3..HEAD and don't see anything suspicious. Could it be that your setup exploited a bug that was fixed by 28f9ee22bcdd ("vlan: Do not put vlan headers back on bridge and macvlan ports") Could you also provide more details on vlan+dhcp setup to help narrow it down if bisect is taking too long. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: 4.4-rc7 failure report 2015-12-30 4:16 ` Alexei Starovoitov @ 2015-12-30 9:38 ` Daniel Borkmann 2015-12-30 15:11 ` Dave Jones 2015-12-31 2:02 ` Doug Ledford 1 sibling, 1 reply; 13+ messages in thread From: Daniel Borkmann @ 2015-12-30 9:38 UTC (permalink / raw) To: Alexei Starovoitov, Doug Ledford; +Cc: David Miller, netdev On 12/30/2015 05:16 AM, Alexei Starovoitov wrote: > On Tue, Dec 29, 2015 at 10:44:31PM -0500, Doug Ledford wrote: >> On 12/29/2015 10:43 PM, Alexei Starovoitov wrote: >>> On Mon, Dec 28, 2015 at 08:26:44PM -0500, Doug Ledford wrote: >>>> On 12/28/2015 05:20 PM, Daniel Borkmann wrote: >>>>> On 12/28/2015 10:53 PM, Doug Ledford wrote: >>>>>> The 4.4-rc7 kernel is failing for me. In my case, all of my vlan >>>>>> interfaces are failing to obtain a dhcp address using dhclient. I've >>>>>> tried a hand built 4.4-rc7, and the Fedora rawhide 4.4-rc7 kernel, both >>>>>> failed. I've tried NetworkManager and the old SysV network service, >>>>>> both fail. I tried a working dhclient from rhel7 on the Fedora rawhide >>>>>> install and it failed too. Running tcpdump on the interface shows the >>>>>> dhcp request going out, and a dhcp response coming back in. Running >>>>>> strace on dhclient shows that it writes the dhcp request, but it never >>>>>> recvs a dhcp response. If I manually bring the interface up with a >>>>>> static IP address then I'm able to run typical IP traffic across the >>>>>> link (aka, ping). It would seem that when dhclient registers a packet >>>>>> filter on the socket, that filter is preventing it from ever getting the >>>>>> dhcp response. The same dhclient works on any non-vlan interfaces in >>>>>> the system, so the filter must work for non-vlan interfaces. Aside from >>>>>> the fact that the interface is a vlan, we also use a priority egress map >>>>>> on the interface, and we use PFC flow control. Let me know if you need >>>>>> anymore to debug the issue, or email me off list and I can get you >>>>>> logins to my reproducer machines. >>>>> >>>>> When you say 4.4-rc7 kernel is failing for you, what latest kernel version >>>>> was working, where the socket filter was properly receiving the response on >>>>> your vlan iface? >>>> >>>> v4.3 final works. I haven't bisected where in the 4.4 series it quits >>>> working. I can do that tomorrow. >>> >>> I've tried to reproduce, but cannot seem to make dnsmasq work properly >>> over vlan, so bisect would be great. >> >> Yeah, I've been working on it. Issues with available machines that >> reproduce combined with what hardware they have and whether or not that >> hardware works at various steps in the bisection :-/ > > I've looked through all bpf related commits between v4.3..HEAD and don't see > anything suspicious. Could it be that your setup exploited a bug that was fixed by Agreed, also went over the bpf history yesterday and didn't find anything that could be related to this issue between the two tags. The filter that dhclient seems to be using is (common/bpf.c): struct bpf_insn dhcp_bpf_filter [] = { /* Make sure this is an IP packet... */ BPF_STMT (BPF_LD + BPF_H + BPF_ABS, 12), BPF_JUMP (BPF_JMP + BPF_JEQ + BPF_K, ETHERTYPE_IP, 0, 8), /* Make sure it's a UDP packet... */ BPF_STMT (BPF_LD + BPF_B + BPF_ABS, 23), BPF_JUMP (BPF_JMP + BPF_JEQ + BPF_K, IPPROTO_UDP, 0, 6), /* Make sure this isn't a fragment... */ BPF_STMT(BPF_LD + BPF_H + BPF_ABS, 20), BPF_JUMP(BPF_JMP + BPF_JSET + BPF_K, 0x1fff, 4, 0), /* Get the IP header length... */ BPF_STMT (BPF_LDX + BPF_B + BPF_MSH, 14), /* Make sure it's to the right port... */ BPF_STMT (BPF_LD + BPF_H + BPF_IND, 16), BPF_JUMP (BPF_JMP + BPF_JEQ + BPF_K, 67, 0, 1), /* patch */ /* If we passed all the tests, ask for the whole packet. */ BPF_STMT(BPF_RET+BPF_K, (u_int)-1), /* Otherwise, drop it. */ BPF_STMT(BPF_RET+BPF_K, 0), }; Given that this drop doesn't strictly need to be caused by filter code, it would be nice if you could pin the location down where the packet gets dropped exactly. Perhaps dropwatch or perf with '-e skb:kfree_skb -a -g dhclient <iface>', etc could help to get a first overview to dig into details then. > 28f9ee22bcdd ("vlan: Do not put vlan headers back on bridge and macvlan ports") > > Could you also provide more details on vlan+dhcp setup to help narrow it > down if bisect is taking too long. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: 4.4-rc7 failure report 2015-12-30 9:38 ` Daniel Borkmann @ 2015-12-30 15:11 ` Dave Jones 2015-12-30 16:55 ` Eric Dumazet 0 siblings, 1 reply; 13+ messages in thread From: Dave Jones @ 2015-12-30 15:11 UTC (permalink / raw) To: Daniel Borkmann; +Cc: Alexei Starovoitov, Doug Ledford, David Miller, netdev On Wed, Dec 30, 2015 at 10:38:56AM +0100, Daniel Borkmann wrote: > Given that this drop doesn't strictly need to be caused by filter code, > it would be nice if you could pin the location down where the packet gets > dropped exactly. Perhaps dropwatch or perf with '-e skb:kfree_skb -a -g > dhclient <iface>', etc could help to get a first overview to dig into > details then. Wild stab in the dark, but.. Could this bug be another symptom fixed by http://article.gmane.org/gmane.linux.network/392885 ? Dave ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: 4.4-rc7 failure report 2015-12-30 15:11 ` Dave Jones @ 2015-12-30 16:55 ` Eric Dumazet 2015-12-30 17:50 ` David Miller 0 siblings, 1 reply; 13+ messages in thread From: Eric Dumazet @ 2015-12-30 16:55 UTC (permalink / raw) To: Dave Jones Cc: Daniel Borkmann, Alexei Starovoitov, Doug Ledford, David Miller, netdev On Wed, 2015-12-30 at 10:11 -0500, Dave Jones wrote: > On Wed, Dec 30, 2015 at 10:38:56AM +0100, Daniel Borkmann wrote: > > > Given that this drop doesn't strictly need to be caused by filter code, > > it would be nice if you could pin the location down where the packet gets > > dropped exactly. Perhaps dropwatch or perf with '-e skb:kfree_skb -a -g > > dhclient <iface>', etc could help to get a first overview to dig into > > details then. > > Wild stab in the dark, but.. > Could this bug be another symptom fixed by http://article.gmane.org/gmane.linux.network/392885 ? dhclient does not use async io ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: 4.4-rc7 failure report 2015-12-30 16:55 ` Eric Dumazet @ 2015-12-30 17:50 ` David Miller 2015-12-30 18:47 ` Doug Ledford 2015-12-30 19:08 ` Eric Dumazet 0 siblings, 2 replies; 13+ messages in thread From: David Miller @ 2015-12-30 17:50 UTC (permalink / raw) To: eric.dumazet; +Cc: davej, daniel, alexei.starovoitov, dledford, netdev From: Eric Dumazet <eric.dumazet@gmail.com> Date: Wed, 30 Dec 2015 11:55:25 -0500 > On Wed, 2015-12-30 at 10:11 -0500, Dave Jones wrote: >> On Wed, Dec 30, 2015 at 10:38:56AM +0100, Daniel Borkmann wrote: >> >> > Given that this drop doesn't strictly need to be caused by filter code, >> > it would be nice if you could pin the location down where the packet gets >> > dropped exactly. Perhaps dropwatch or perf with '-e skb:kfree_skb -a -g >> > dhclient <iface>', etc could help to get a first overview to dig into >> > details then. >> >> Wild stab in the dark, but.. >> Could this bug be another symptom fixed by http://article.gmane.org/gmane.linux.network/392885 ? > > dhclient does not use async io But the bug causes requests to "LOOK" like async I/O, right? ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: 4.4-rc7 failure report 2015-12-30 17:50 ` David Miller @ 2015-12-30 18:47 ` Doug Ledford 2015-12-30 19:08 ` Eric Dumazet 1 sibling, 0 replies; 13+ messages in thread From: Doug Ledford @ 2015-12-30 18:47 UTC (permalink / raw) To: David Miller, eric.dumazet; +Cc: davej, daniel, alexei.starovoitov, netdev [-- Attachment #1: Type: text/plain, Size: 1542 bytes --] On 12/30/2015 12:50 PM, David Miller wrote: > From: Eric Dumazet <eric.dumazet@gmail.com> > Date: Wed, 30 Dec 2015 11:55:25 -0500 > >> On Wed, 2015-12-30 at 10:11 -0500, Dave Jones wrote: >>> On Wed, Dec 30, 2015 at 10:38:56AM +0100, Daniel Borkmann wrote: >>> >>> > Given that this drop doesn't strictly need to be caused by filter code, >>> > it would be nice if you could pin the location down where the packet gets >>> > dropped exactly. Perhaps dropwatch or perf with '-e skb:kfree_skb -a -g >>> > dhclient <iface>', etc could help to get a first overview to dig into >>> > details then. >>> >>> Wild stab in the dark, but.. >>> Could this bug be another symptom fixed by http://article.gmane.org/gmane.linux.network/392885 ? >> >> dhclient does not use async io > > But the bug causes requests to "LOOK" like async I/O, right? > I got my hands on a machine that's reliable, so the bisecting is finally progressing again. The machines with ocrdma devices can have link issues, the machines with mlx5 devices don't support vlans in all kernel versions, and some of my machines with mlx4 devices simply didn't have their Ethernet port plugged in. I managed to check out a machine with mlx4 in IB/Eth mode that is otherwise reliable on all of the kernel versions the bisection covers and modified its setup to show me at a glance if the dhcp on vlan is working and now I'm probably over half down with the bisection. -- Doug Ledford <dledford@redhat.com> GPG KeyID: 0E572FDD [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 884 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: 4.4-rc7 failure report 2015-12-30 17:50 ` David Miller 2015-12-30 18:47 ` Doug Ledford @ 2015-12-30 19:08 ` Eric Dumazet 1 sibling, 0 replies; 13+ messages in thread From: Eric Dumazet @ 2015-12-30 19:08 UTC (permalink / raw) To: David Miller; +Cc: davej, daniel, alexei.starovoitov, dledford, netdev On Wed, 2015-12-30 at 12:50 -0500, David Miller wrote: > From: Eric Dumazet <eric.dumazet@gmail.com> > Date: Wed, 30 Dec 2015 11:55:25 -0500 > > > On Wed, 2015-12-30 at 10:11 -0500, Dave Jones wrote: > >> On Wed, Dec 30, 2015 at 10:38:56AM +0100, Daniel Borkmann wrote: > >> > >> > Given that this drop doesn't strictly need to be caused by filter code, > >> > it would be nice if you could pin the location down where the packet gets > >> > dropped exactly. Perhaps dropwatch or perf with '-e skb:kfree_skb -a -g > >> > dhclient <iface>', etc could help to get a first overview to dig into > >> > details then. > >> > >> Wild stab in the dark, but.. > >> Could this bug be another symptom fixed by http://article.gmane.org/gmane.linux.network/392885 ? > > > > dhclient does not use async io > > But the bug causes requests to "LOOK" like async I/O, right? This is not how I understood the bug. By having a bit set (because we lacked a clear of wq->flags), we have : sock_wake_async() ... case SOCK_WAKE_WAITD: if (test_bit(SOCKWQ_ASYNC_WAITDATA, &wq->flags)) break; So we never call kill_fasync() ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: 4.4-rc7 failure report 2015-12-30 4:16 ` Alexei Starovoitov 2015-12-30 9:38 ` Daniel Borkmann @ 2015-12-31 2:02 ` Doug Ledford 1 sibling, 0 replies; 13+ messages in thread From: Doug Ledford @ 2015-12-31 2:02 UTC (permalink / raw) To: Alexei Starovoitov; +Cc: Daniel Borkmann, David Miller, netdev [-- Attachment #1: Type: text/plain, Size: 6259 bytes --] On 12/29/2015 11:16 PM, Alexei Starovoitov wrote: > On Tue, Dec 29, 2015 at 10:44:31PM -0500, Doug Ledford wrote: >> On 12/29/2015 10:43 PM, Alexei Starovoitov wrote: >>> On Mon, Dec 28, 2015 at 08:26:44PM -0500, Doug Ledford wrote: >>>> On 12/28/2015 05:20 PM, Daniel Borkmann wrote: >>>>> On 12/28/2015 10:53 PM, Doug Ledford wrote: >>>>>> The 4.4-rc7 kernel is failing for me. In my case, all of my vlan >>>>>> interfaces are failing to obtain a dhcp address using dhclient. I've >>>>>> tried a hand built 4.4-rc7, and the Fedora rawhide 4.4-rc7 kernel, both >>>>>> failed. I've tried NetworkManager and the old SysV network service, >>>>>> both fail. I tried a working dhclient from rhel7 on the Fedora rawhide >>>>>> install and it failed too. Running tcpdump on the interface shows the >>>>>> dhcp request going out, and a dhcp response coming back in. Running >>>>>> strace on dhclient shows that it writes the dhcp request, but it never >>>>>> recvs a dhcp response. If I manually bring the interface up with a >>>>>> static IP address then I'm able to run typical IP traffic across the >>>>>> link (aka, ping). It would seem that when dhclient registers a packet >>>>>> filter on the socket, that filter is preventing it from ever getting the >>>>>> dhcp response. The same dhclient works on any non-vlan interfaces in >>>>>> the system, so the filter must work for non-vlan interfaces. Aside from >>>>>> the fact that the interface is a vlan, we also use a priority egress map >>>>>> on the interface, and we use PFC flow control. Let me know if you need >>>>>> anymore to debug the issue, or email me off list and I can get you >>>>>> logins to my reproducer machines. >>>>> >>>>> When you say 4.4-rc7 kernel is failing for you, what latest kernel version >>>>> was working, where the socket filter was properly receiving the response on >>>>> your vlan iface? >>>> >>>> v4.3 final works. I haven't bisected where in the 4.4 series it quits >>>> working. I can do that tomorrow. >>> >>> I've tried to reproduce, but cannot seem to make dnsmasq work properly >>> over vlan, so bisect would be great. >>> >> >> Yeah, I've been working on it. Issues with available machines that >> reproduce combined with what hardware they have and whether or not that >> hardware works at various steps in the bisection :-/ > > I've looked through all bpf related commits between v4.3..HEAD and don't see > anything suspicious. Could it be that your setup exploited a bug that was fixed by > 28f9ee22bcdd ("vlan: Do not put vlan headers back on bridge and macvlan ports") > > Could you also provide more details on vlan+dhcp setup to help narrow it > down if bisect is taking too long. > My bisection got down to the last few steps and just didn't make sense. So, I ended up starting it over. I'm not sure how/why I saw that v4.3 worked the first time around, but the second time around it failed. So I also tried a pre-made 4.2.8-300 kernel from Fedora 23 and it failed as well. The problem at least spans 4.2 through 4.4, so it's been a while. I'll continue searching more kernels tomorrow, but I've been doing this while I still have company in town for the holidays so I'm gonna go be with them when I'm done writing this. I've recently made some changes to my network setup here, so that might be related to why I'm seeing it now. I'll provide details on my test setup in case any of it helps people on this: Ethernet network is used for RDMA testing. Switches are Mellanox 56GigE switches. The ports with multiple vlans are all set in hybrid mode, untagged frames to vlan 40, tagged frames for vlans 43 and 45 allowed. Switch has DCB enabled, priority 5 is no-drop, ports are set to use PFC and MTU 9216 and LLDP is enabled on the ports as well. The head node of the cluster runs dhcpd on the vlans (as well as the InfiniBand ports). The test machine has a static IP address configured for each port/vlan in the server's config. On the client, I've set the base interface to dhcp, vlan 43 to static IP assignment, and vlan 45 to dhcp. This allows me to see at a glance if things are working since I know if the base device gets an IP and vlan 45 doesn't and instead times out and goes away, then the dhcp on the vlan failed. (I needed to set one vlan to static so the vlan creation didn't depend on dhcp success because with some kernel versions and some hardware types, namely mlx5, vlans weren't working at all and you could mistake no vlans made for a problem with dhcp when it was really a problem with vlans on mlx5 hardware). This is the failing device's config: [root@rdma-perf-00 ~]$ more /etc/sysconfig/network-scripts/ifcfg-mlx4_roce.45 DEVICE=mlx4_roce.45 VLAN=yes VLAN_ID=45 REORDER_HDR=0 VLAN_EGRESS_PRIORITY_MAP=0:5,1:5,2:5,3:5,4:5,5:5,6:5,7:5 TYPE=Vlan ONBOOT=yes BOOTPROTO=dhcp DEFROUTE=no PEERDNS=no PEERROUTES=yes IPV4_FAILURE_FATAL=yes IPV6INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=no IPV6_PEERDNS=no IPV6_PEERROUTES=yes IPV6_FAILURE_FATAL=no NAME=mlx4_roce.45 And if the interface actually comes up, there is this NetworkManager dispatcher script: [root@rdma-perf-00 ~]$ more /etc/NetworkManager/dispatcher.d/98-mlx4_roce.45-egress.conf #!/bin/sh interface=$1 status=$2 [ "$interface" = mlx4_roce.45 ] || exit 0 case $status in up) tc qdisc add dev mlx4_roce root mqprio num_tc 8 map 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 queues 32@0 32@32 32@64 32@96 32@128 32@160 32@192 32@224 # tc_wrap.py -i mlx4_roce -u 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5 ;; esac The base device's config file is this: [root@rdma-perf-00 ~]$ more /etc/sysconfig/network-scripts/ifcfg-mlx4_roce DEVICE=mlx4_roce TYPE=Ethernet ONBOOT=yes HWADDR=00:02:c9:31:77:91 BOOTPROTO=dhcp DEFROUTE=no PEERDNS=no PEERROUTES=yes IPV4_FAILURE_FATAL=yes IPV6INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=no IPV6_PEERDNS=no IPV6_PEERROUTES=yes IPV6_FAILURE_FATAL=no MTU=9000 NAME=mlx4_roce Let me know if you need any more details on the setup. I'll report back when I've actually *really* identified when the bug appeared. -- Doug Ledford <dledford@redhat.com> GPG KeyID: 0E572FDD [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 884 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2015-12-31 2:02 UTC | newest] Thread overview: 13+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-12-28 21:53 4.4-rc7 failure report Doug Ledford 2015-12-28 22:20 ` Daniel Borkmann 2015-12-29 1:26 ` Doug Ledford 2015-12-30 3:43 ` Alexei Starovoitov 2015-12-30 3:44 ` Doug Ledford 2015-12-30 4:16 ` Alexei Starovoitov 2015-12-30 9:38 ` Daniel Borkmann 2015-12-30 15:11 ` Dave Jones 2015-12-30 16:55 ` Eric Dumazet 2015-12-30 17:50 ` David Miller 2015-12-30 18:47 ` Doug Ledford 2015-12-30 19:08 ` Eric Dumazet 2015-12-31 2:02 ` Doug Ledford
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).