[PATCH net] tcp: limit sk_rcvlowat by the maximum receive buffer

2018-06-08 Thread Soheil Hassas Yeganeh
From: Soheil Hassas Yeganeh The user-provided value to setsockopt(SO_RCVLOWAT) can be larger than the maximum possible receive buffer. Such values mute POLLIN signals on the socket which can stall progress on the socket. Limit the user-provided value to half of the maximum receive buffer, i.e.,

Re: Qualcomm rmnet driver and qmi_wwan

2018-06-08 Thread Subash Abhinov Kasiviswanathan
This sounds like a good idea. I probably won't have any time to look at this in the near future, though. Sorry about that. Extremely overloaded both at work and private right now... But I trust that you and Daniele can work out something. Please keep me CCed, but don't expect timely replies.

Re: [PATCH net] failover: eliminate callback hell

2018-06-08 Thread Jakub Kicinski
On Fri, 8 Jun 2018 16:44:12 -0700, Siwei Liu wrote: > >> I have a somewhat different view regarding IFF_HIDDEN. The purpose of > >> that flag, as well as the 1-netdev model, is to have a means to > >> inherit the interface name from the VF, and to eliminate playing hacks > >> around renaming

Re: [PATCH net] failover: eliminate callback hell

2018-06-08 Thread Siwei Liu
On Fri, Jun 8, 2018 at 5:02 PM, Stephen Hemminger wrote: > On Fri, 8 Jun 2018 16:44:12 -0700 > Siwei Liu wrote: > >> On Fri, Jun 8, 2018 at 4:18 PM, Stephen Hemminger >> wrote: >> > On Fri, 8 Jun 2018 15:25:59 -0700 >> > Siwei Liu wrote: >> > >> >> On Wed, Jun 6, 2018 at 2:24 PM, Stephen

Re: [PATCH net-next] net: ipv6: Generate random IID for addresses on RAWIP devices

2018-06-08 Thread Subash Abhinov Kasiviswanathan
Actually, I think this is fine. RFC 7136 clarified this, and says: == Thus, we can conclude that the value of the "u" bit in IIDs has no particular meaning. In the case of an IID created from a MAC address according to RFC 4291, its value is determined by the MAC address, but

Re: [PATCH net] failover: eliminate callback hell

2018-06-08 Thread Stephen Hemminger
On Fri, 8 Jun 2018 16:44:12 -0700 Siwei Liu wrote: > On Fri, Jun 8, 2018 at 4:18 PM, Stephen Hemminger > wrote: > > On Fri, 8 Jun 2018 15:25:59 -0700 > > Siwei Liu wrote: > > > >> On Wed, Jun 6, 2018 at 2:24 PM, Stephen Hemminger > >> wrote: > >> > On Wed, 6 Jun 2018 15:30:27 +0300 > >> >

Re: [PATCH net] udp: fix rx queue len reported by diag and proc interface

2018-06-08 Thread David Miller
From: Paolo Abeni Date: Fri, 8 Jun 2018 11:35:40 +0200 > After commit 6b229cf77d68 ("udp: add batching to udp_rmem_release()") > the sk_rmem_alloc field does not measure exactly anymore the > receive queue length, because we batch the rmem release. The issue > is really apparent only after

Re: [PATCH net] failover: eliminate callback hell

2018-06-08 Thread Siwei Liu
On Fri, Jun 8, 2018 at 4:18 PM, Stephen Hemminger wrote: > On Fri, 8 Jun 2018 15:25:59 -0700 > Siwei Liu wrote: > >> On Wed, Jun 6, 2018 at 2:24 PM, Stephen Hemminger >> wrote: >> > On Wed, 6 Jun 2018 15:30:27 +0300 >> > "Michael S. Tsirkin" wrote: >> > >> >> On Wed, Jun 06, 2018 at 09:25:12AM

Re: [PATCH net] failover: eliminate callback hell

2018-06-08 Thread Stephen Hemminger
On Fri, 8 Jun 2018 15:25:59 -0700 Siwei Liu wrote: > On Wed, Jun 6, 2018 at 2:24 PM, Stephen Hemminger > wrote: > > On Wed, 6 Jun 2018 15:30:27 +0300 > > "Michael S. Tsirkin" wrote: > > > >> On Wed, Jun 06, 2018 at 09:25:12AM +0200, Jiri Pirko wrote: > >> > Tue, Jun 05, 2018 at 05:42:31AM

Re: [PATCH net] failover: eliminate callback hell

2018-06-08 Thread Siwei Liu
On Wed, Jun 6, 2018 at 2:54 PM, Samudrala, Sridhar wrote: > > > On 6/6/2018 2:24 PM, Stephen Hemminger wrote: >> >> On Wed, 6 Jun 2018 15:30:27 +0300 >> "Michael S. Tsirkin" wrote: >> >>> On Wed, Jun 06, 2018 at 09:25:12AM +0200, Jiri Pirko wrote: Tue, Jun 05, 2018 at 05:42:31AM CEST,

Re: [PATCH net v2] net/sched: act_simple: fix parsing of TCA_DEF_DATA

2018-06-08 Thread David Miller
From: Davide Caratti Date: Fri, 8 Jun 2018 05:02:31 +0200 > use nla_strlcpy() to avoid copying data beyond the length of TCA_DEF_DATA > netlink attribute, in case it is less than SIMP_MAX_DATA and it does not > end with '\0' character. > > v2: fix errors in the commit message, thanks Hangbin

Re: [PATCH net] net: aquantia: fix unsigned numvecs comparison with less than zero

2018-06-08 Thread David Miller
From: Igor Russkikh Date: Thu, 7 Jun 2018 17:54:37 -0400 > From: Colin Ian King > > From: Colin Ian King > > This was originally mistakenly submitted to net-next. Resubmitting to net. > > The comparison of numvecs < 0 is always false because numvecs is a u32 > and hence the error return

Re: [PATCH net] failover: eliminate callback hell

2018-06-08 Thread Siwei Liu
On Wed, Jun 6, 2018 at 2:24 PM, Stephen Hemminger wrote: > On Wed, 6 Jun 2018 15:30:27 +0300 > "Michael S. Tsirkin" wrote: > >> On Wed, Jun 06, 2018 at 09:25:12AM +0200, Jiri Pirko wrote: >> > Tue, Jun 05, 2018 at 05:42:31AM CEST, step...@networkplumber.org wrote: >> > >The net failover should

Re: [RFC PATCH 1/3] ebpf: add next_skb_frag bpf helper for sk filter

2018-06-08 Thread Tushar Dave
On 06/08/2018 02:46 PM, Tushar Dave wrote: On 06/08/2018 02:27 PM, Daniel Borkmann wrote: On 06/08/2018 11:00 PM, Tushar Dave wrote: Today socket filter only deals with linear skbs. This change allows ebpf programs to look into non-linear skb e.g. skb frags. This will be useful when users

Re: Fw: [Bug 199995] New: Ramdomly sent TCP Reset from Kernel with bonding mode "brodcast"

2018-06-08 Thread Eric Dumazet
On 06/08/2018 02:38 PM, Eric Dumazet wrote: > > > On 06/08/2018 02:04 PM, Michal Kubecek wrote: >> >> However, the lockless listener was introduced in 4.4 so it's not clear >> why reporter started encountering this after an upgrade from 4.13 to >> 4.15. > > Yes, I do not buy this at all. >

Re: [RFC PATCH 1/3] ebpf: add next_skb_frag bpf helper for sk filter

2018-06-08 Thread Tushar Dave
On 06/08/2018 02:27 PM, Daniel Borkmann wrote: On 06/08/2018 11:00 PM, Tushar Dave wrote: Today socket filter only deals with linear skbs. This change allows ebpf programs to look into non-linear skb e.g. skb frags. This will be useful when users need to look into data which is not contained

Re: Fw: [Bug 199995] New: Ramdomly sent TCP Reset from Kernel with bonding mode "brodcast"

2018-06-08 Thread Eric Dumazet
On 06/08/2018 02:04 PM, Michal Kubecek wrote: > On Fri, Jun 08, 2018 at 09:59:54AM -0700, Stephen Hemminger wrote: >> >> https://bugzilla.kernel.org/show_bug.cgi?id=15 >> >> Bug ID: 15 >>Summary: Ramdomly sent TCP Reset from Kernel with bonding mode >>

Re: [RFC PATCH 1/3] ebpf: add next_skb_frag bpf helper for sk filter

2018-06-08 Thread Daniel Borkmann
On 06/08/2018 11:00 PM, Tushar Dave wrote: > Today socket filter only deals with linear skbs. This change allows > ebpf programs to look into non-linear skb e.g. skb frags. This will be > useful when users need to look into data which is not contained in the > linear part of skb. Hmm, I don't

Re: Fw: [Bug 199995] New: Ramdomly sent TCP Reset from Kernel with bonding mode "brodcast"

2018-06-08 Thread Michal Kubecek
On Fri, Jun 08, 2018 at 09:59:54AM -0700, Stephen Hemminger wrote: > > https://bugzilla.kernel.org/show_bug.cgi?id=15 > > Bug ID: 15 >Summary: Ramdomly sent TCP Reset from Kernel with bonding mode > "brodcast" > > after a dist upgrade from

[RFC PATCH 3/3] rds: invoke sk filter attached to rds socket

2018-06-08 Thread Tushar Dave
RDS module sits on top of TCP (rds_tcp) and IB (rds_rdma), so messages arrive in form of skb (over TCP) and scatterlist (over IB/RDMA). However, because socket filter only deal with skb (e.g. struct skb as bpf context) we can only use socket filter for rds_tcp and not for rds_rdma. For that reason

[RFC PATCH 1/3] ebpf: add next_skb_frag bpf helper for sk filter

2018-06-08 Thread Tushar Dave
Today socket filter only deals with linear skbs. This change allows ebpf programs to look into non-linear skb e.g. skb frags. This will be useful when users need to look into data which is not contained in the linear part of skb. Signed-off-by: Tushar Dave Reviewed-by: Shannon Nelson

[RFC PATCH 2/3] samples/bpf: add sample RDS program

2018-06-08 Thread Tushar Dave
When run in server mode, the sample RDS program opens PF_RDS socket, attaches ebpf program to RDS socket which then uses bpf_skb_next_frag helper along with bpf tail calls to inspect skb linear and non-linear data. To ease testing, RDS client functionality is also added so that users can generate

[RFC PATCH 0/3] BPF socket filter to deal with skb frags

2018-06-08 Thread Tushar Dave
This RFC allows bpf socket filter programs to look into complete skb i.e. linear and non-linear part of skb. (patch1) For a proof of concept I'm using RDS sample program that uses bpf socket filter and inspect skb packet data from linear and non-linear part e.g. skb frags. (patch 2 and 3) I'm

Re: netdevice notifier and device private data

2018-06-08 Thread Michael Richardson
Alexander Aring wrote: Alex> I already see code outside who changed tun netdevice to the Alex> ARPHRD_6LOWPAN type and I suppose they running into this Alex> issue. (Btw: I don't know why somebody wants to changed that Alex> type to ARPHRD_6LOWPAN on tun). so that they can have

Re: netdevice notifier and device private data

2018-06-08 Thread Alexander Aring
Hi Stephen, On Fri, Jun 08, 2018 at 11:14:57AM -0700, Stephen Hemminger wrote: ... > > notifiers are always called with RTNL mutex held > and dev->type should not change unless RTNL is held. thanks for you answer. I am not talking about any race between notifiers vs dev->type change. I am

Re: Qualcomm rmnet driver and qmi_wwan

2018-06-08 Thread Bjørn Mork
Subash Abhinov Kasiviswanathan writes: >> I followed Dan's advice and prepared a very basic test patch >> (attached) for testing it through ip link. >> >> Basically things seem to be properly working with qmicli, but I needed >> to modify a bit qmi_wwan, so I'm adding Bjørn that maybe can help.

Re: [PATCH net] failover: eliminate callback hell

2018-06-08 Thread Michael S. Tsirkin
On Fri, Jun 08, 2018 at 11:30:08AM -0700, Stephen Hemminger wrote: > * what about nested KVM on Hyper-V? Would it make sense to > have a way to pass subset of VF queues to guest? No as long as hyper-v doesn't have a vIOMMU. -- MST

Re: [PATCH net] failover: eliminate callback hell

2018-06-08 Thread Stephen Hemminger
On Thu, 7 Jun 2018 20:22:15 +0300 "Michael S. Tsirkin" wrote: > On Thu, Jun 07, 2018 at 09:17:42AM -0700, Stephen Hemminger wrote: > > On Thu, 7 Jun 2018 18:41:31 +0300 > > "Michael S. Tsirkin" wrote: > > > > > > > Why would DPDK care what we do in the kernel? Isn't it just slapping > > > >

Re: netdevice notifier and device private data

2018-06-08 Thread Stephen Hemminger
On Fri, 8 Jun 2018 13:34:55 -0400 Alexander Aring wrote: > Hey netdev community, > > I am trying to solve some issue which Eric Dumazet points to me by > commit ca0edb131bdf ("ieee802154: 6lowpan: fix possible NULL deref in > lowpan_device_event()"). > > The issue is that dev->type can be

Re: [PATCH bpf] bpf: implement dummy fops for bpf objects

2018-06-08 Thread Alexei Starovoitov
On Fri, Jun 08, 2018 at 06:10:34PM +0200, Daniel Borkmann wrote: > syzkaller was able to trigger the following warning in > do_dentry_open(): > > WARNING: CPU: 1 PID: 4508 at fs/open.c:778 do_dentry_open+0x4ad/0xe40 > fs/open.c:778 > Kernel panic - not syncing: panic_on_warn set ... > >

[PATCH v2 1/1] iproute2: Add support for a few routing protocols

2018-06-08 Thread Donald Sharp
Add support for: BGP ISIS OSPF RIP EIGRP Routing protocols to iproute2. Signed-off-by: Donald Sharp --- v2: Update to latest version of code. etc/iproute2/rt_protos | 5 + lib/rt_names.c | 5 + 2 files changed, 10 insertions(+) diff --git a/etc/iproute2/rt_protos

[PATCH v2 0/1] Addition of new routing protocols for iproute2

2018-06-08 Thread Donald Sharp
The linux kernel recently accepted some new RTPROT values for some fairly standard routing protocols. This commit brings in support for iproute2 to handle these new values. v2 - Update to latest version of master which has rtnetlink.h code and drop of work already done. Donald Sharp (1):

netdevice notifier and device private data

2018-06-08 Thread Alexander Aring
Hey netdev community, I am trying to solve some issue which Eric Dumazet points to me by commit ca0edb131bdf ("ieee802154: 6lowpan: fix possible NULL deref in lowpan_device_event()"). The issue is that dev->type can be changed during runtime. We don't have any problems with the netdevice

Re: [PATCH 1/2] iproute2: Add support for a few routing protocols

2018-06-08 Thread Stephen Hemminger
On Fri, 8 Jun 2018 08:46:37 -0400 Donald Sharp wrote: > Add support for: > > BGP > ISIS > OSPF > RIP > EIGRP > > Routing protocols to iproute2. > > Signed-off-by: Donald Sharp > --- > etc/iproute2/rt_protos| 5 + > include/linux/rtnetlink.h | 5 + > lib/rt_names.c|

Re: Qualcomm rmnet driver and qmi_wwan

2018-06-08 Thread Subash Abhinov Kasiviswanathan
I followed Dan's advice and prepared a very basic test patch (attached) for testing it through ip link. Basically things seem to be properly working with qmicli, but I needed to modify a bit qmi_wwan, so I'm adding Bjørn that maybe can help. Bjørn, I'm trying to add support to rmnet in

Re: [PATCH iproute2 v2 0/2] display netns name instead of nsid

2018-06-08 Thread Stephen Hemminger
On Tue, 5 Jun 2018 15:08:29 +0200 Nicolas Dichtel wrote: > After these patches, the iproute2 name of netns is displayed instead of > the nsid. It's easier to read/understand. > > v1 -> v2: > - open netns socket and init netns map only when needed > > ip/ip_common.h | 3 +++ >

Re: [PATCH 2/2] iproute2: Remove leftover gated RT_PROT defines

2018-06-08 Thread Stephen Hemminger
On Fri, 8 Jun 2018 08:46:38 -0400 Donald Sharp wrote: > These values are not being used nor maintained, so remove. > > Signed-off-by: Donald Sharp > --- > etc/iproute2/rt_protos | 13 - > 1 file changed, 13 deletions(-) > > diff --git a/etc/iproute2/rt_protos

Fw: [Bug 199995] New: Ramdomly sent TCP Reset from Kernel with bonding mode "brodcast"

2018-06-08 Thread Stephen Hemminger
Begin forwarded message: Date: Fri, 08 Jun 2018 16:06:40 + From: bugzilla-dae...@bugzilla.kernel.org To: step...@networkplumber.org Subject: [Bug 15] New: Ramdomly sent TCP Reset from Kernel with bonding mode "brodcast" https://bugzilla.kernel.org/show_bug.cgi?id=15

Re: [PATCH net] kcm: fix races on sk_receive_queue

2018-06-08 Thread Paolo Abeni
On Fri, 2018-06-08 at 10:53 -0400, David Miller wrote: > From: Paolo Abeni > Date: Wed, 6 Jun 2018 15:16:29 +0200 > > > @@ -1126,7 +1132,7 @@ static int kcm_recvmsg(struct socket *sock, struct > > msghdr *msg, > > > > lock_sock(sk); > > > > - skb = kcm_wait_data(sk, flags, timeo,

[PATCH net] KEYS: DNS: fix parsing multiple options

2018-06-08 Thread Eric Biggers
From: Eric Biggers My recent fix for dns_resolver_preparse() printing very long strings was incomplete, as shown by syzbot which still managed to hit the WARN_ONCE() in set_precision() by adding a crafted "dns_resolver" key: precision 50001 too large WARNING: CPU: 7 PID: 864 at

[PATCH bpf] bpf: implement dummy fops for bpf objects

2018-06-08 Thread Daniel Borkmann
syzkaller was able to trigger the following warning in do_dentry_open(): WARNING: CPU: 1 PID: 4508 at fs/open.c:778 do_dentry_open+0x4ad/0xe40 fs/open.c:778 Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 4508 Comm: syz-executor867 Not tainted 4.17.0+ #90 Hardware name:

Re: [PATCH] net: phy: Add TJA1100 BroadR-Reach PHY driver.

2018-06-08 Thread Andrew Lunn
On Fri, Jun 08, 2018 at 05:45:32PM +0300, Kirill Kranke wrote: > Current generic PHY driver does not work with TJA1100 BroadR-REACH PHY > properly. TJA1100 does not have any standard ability enabled at MII_BMSR > register. Instead it has BroadR-REACH ability at MII_ESTATUS enabled, which > is not

RE: [PATCH ethtool 2/6] ethtool: fix RING_VF assignment

2018-06-08 Thread Keller, Jacob E
> -Original Message- > From: Ivan Vecera [mailto:c...@cera.cz] > Sent: Friday, June 08, 2018 2:20 AM > To: linvi...@tuxdriver.com > Cc: netdev@vger.kernel.org; Keller, Jacob E > Subject: [PATCH ethtool 2/6] ethtool: fix RING_VF assignment > > Fixes: 36ee712 ("ethtool: support queue and

[bpf PATCH v2 0/2] bpf, sockmap IPv6/TCP state fixes

2018-06-08 Thread John Fastabend
ULP are only valid with TCP in ESTABLISHED states. Sockmap was not following this rule so add a fix to only allow ESTABLISHED states to be added from the userspace side. On the BPF side we continue to allow adding sockets to maps from sock_ops events, but only events that are triggered when

[bpf PATCH v2 2/2] bpf: sockmap only allow ESTABLISHED sock state

2018-06-08 Thread John Fastabend
Per the note in the TLS ULP (which is actually a generic statement regarding ULPs) /* The TLS ulp is currently supported only for TCP sockets * in ESTABLISHED state. * Supporting sockets in LISTEN state will require us * to modify the accept implementation to clone rather then * share

[bpf PATCH v2 1/2] bpf: sockmap, fix crash when ipv6 sock is added

2018-06-08 Thread John Fastabend
This fixes a crash where we assign tcp_prot to IPv6 sockets instead of tcpv6_prot. Previously we overwrote the sk->prot field with tcp_prot even in the AF_INET6 case. This patch ensures the correct tcp_prot and tcpv6_prot are used. Further, only allow ESTABLISHED connections to join the map per

Re: [PATCH v2] net-fq: Add WARN_ON check for null flow.

2018-06-08 Thread Eric Dumazet
On 06/08/2018 07:10 AM, Ben Greear wrote: > Maybe whoever put this code together can take a stab at it. > This was one one the motivation for the Fixes: tag request. By doing a git blame, you can find which commit(s) added this code, and thus CC the author, who might not follow netdev@

Re: [PATCH net] kcm: fix races on sk_receive_queue

2018-06-08 Thread David Miller
From: Paolo Abeni Date: Wed, 6 Jun 2018 15:16:29 +0200 > @@ -1126,7 +1132,7 @@ static int kcm_recvmsg(struct socket *sock, struct > msghdr *msg, > > lock_sock(sk); > > - skb = kcm_wait_data(sk, flags, timeo, ); > + skb = kcm_wait_data(sk, flags, peek, timeo, ); > if

[PATCH] net: phy: Add TJA1100 BroadR-Reach PHY driver.

2018-06-08 Thread Kirill Kranke
Current generic PHY driver does not work with TJA1100 BroadR-REACH PHY properly. TJA1100 does not have any standard ability enabled at MII_BMSR register. Instead it has BroadR-REACH ability at MII_ESTATUS enabled, which is not handled by generic driver yet. Therefore generic driver is unable to

Re: [PATCH v2] net-fq: Add WARN_ON check for null flow.

2018-06-08 Thread Ben Greear
On 06/07/2018 05:13 PM, Cong Wang wrote: On Thu, Jun 7, 2018 at 4:48 PM, wrote: From: Ben Greear While testing an ath10k firmware that often crashed under load, I was seeing kernel crashes as well. One of them appeared to be a dereference of a NULL flow object in fq_tin_dequeue. I have

Re: [PATCH v2] net-fq: Add WARN_ON check for null flow.

2018-06-08 Thread Ben Greear
On 06/07/2018 04:59 PM, Cong Wang wrote: On Thu, Jun 7, 2018 at 4:48 PM, wrote: diff --git a/include/net/fq_impl.h b/include/net/fq_impl.h index be7c0fa..cb911f0 100644 --- a/include/net/fq_impl.h +++ b/include/net/fq_impl.h @@ -78,7 +78,10 @@ static struct sk_buff *fq_tin_dequeue(struct

Re: [PATCH] net: phy: Add TJA1100 BroadR-Reach PHY driver.

2018-06-08 Thread Andrew Lunn
On Fri, Jun 08, 2018 at 12:56:39PM +0300, Kirill Kranke wrote: > From: Kirill Kranke > > Current generic PHY driver does not work with TJA1100 BroadR-REACH PHY > properly. TJA1100 does not have any standard ability enabled at MII_BMSR > register. Instead it has BroadR-REACH ability at

[PATCH 1/2] iproute2: Add support for a few routing protocols

2018-06-08 Thread Donald Sharp
Add support for: BGP ISIS OSPF RIP EIGRP Routing protocols to iproute2. Signed-off-by: Donald Sharp --- etc/iproute2/rt_protos| 5 + include/linux/rtnetlink.h | 5 + lib/rt_names.c| 5 + 3 files changed, 15 insertions(+) diff --git a/etc/iproute2/rt_protos

[PATCH 0/2] Addition of new routing protocols for iproute2

2018-06-08 Thread Donald Sharp
The linux kernel recently accepted some new RTPROT values for some fairly standard routing protocols. This commit brings in support for iproute2 to handle these new values. Additionally clean up some long standing cruft in etc/iproute2/rt_protos Donald Sharp (2): iproute2: Add support for a

[PATCH 2/2] iproute2: Remove leftover gated RT_PROT defines

2018-06-08 Thread Donald Sharp
These values are not being used nor maintained, so remove. Signed-off-by: Donald Sharp --- etc/iproute2/rt_protos | 13 - 1 file changed, 13 deletions(-) diff --git a/etc/iproute2/rt_protos b/etc/iproute2/rt_protos index 3ffe8a6c..a965ad16 100644 --- a/etc/iproute2/rt_protos +++

[PATCH] net: phy: dp83822: use BMCR_ANENABLE instead of BMSR_ANEGCAPABLE for DP83620

2018-06-08 Thread Alvaro Gamez Machado
DP83620 register set is compatible with the DP83848, but it also supports 100base-FX. When the hardware is configured such as that fiber mode is enabled, autonegotiation is not possible. The chip, however, doesn't expose this information via BMSR_ANEGCAPABLE. Instead, this bit is always set high,

Re: Qualcomm rmnet driver and qmi_wwan

2018-06-08 Thread Daniele Palmas
Hi Dan and Subash, 2018-06-05 19:38 GMT+02:00 Subash Abhinov Kasiviswanathan : > On 2018-06-05 08:54, Dan Williams wrote: >> >> On Tue, 2018-06-05 at 11:38 +0200, Daniele Palmas wrote: >>> >>> Hi, >>> >>> 2018-02-21 20:47 GMT+01:00 Subash Abhinov Kasiviswanathan >>> : >>> > On 2018-02-21 04:38,

Re: net: do not allow changing SO_REUSEADDR/SO_REUSEPORT on bound sockets

2018-06-08 Thread Maciej Żenczykowski
I think we probably need to make sk->sk_reuse back into a boolean. (ie. eliminate SK_FORCE_REUSE) Then add a new tcp/udp sk->ignore_bind_conflicts boolean setting... (ie. not just for tcp, but sol_socket) [or perhaps SO_REPAIR, sk->repair or something] What I'm not certain of is exactly what

[PATCH] net: phy: Add TJA1100 BroadR-Reach PHY driver.

2018-06-08 Thread Kirill Kranke
From: Kirill Kranke Current generic PHY driver does not work with TJA1100 BroadR-REACH PHY properly. TJA1100 does not have any standard ability enabled at MII_BMSR register. Instead it has BroadR-REACH ability at MII_ESTATUS enabled, which is not handled by generic driver yet. Therefore generic

Re: [PATCH bpf-next v6 1/2] trace_helpers.c: Add helpers to poll multiple perf FDs for events

2018-06-08 Thread Toke Høiland-Jørgensen
Daniel Borkmann writes: > Hi Toke, > > On 06/06/2018 07:58 PM, Toke Høiland-Jørgensen wrote: >> Add two new helper functions to trace_helpers that supports polling >> multiple perf file descriptors for events. These are used to the XDP >> perf_event_output example, which needs to work with one

Re: [PATCH ethtool 5/6] ethtool: correctly free hkey when get_stringset() fails

2018-06-08 Thread Gal Pressman
On 08-Jun-18 12:20, Ivan Vecera wrote: > Memory allocated for 'hkey' is not freed when > get_stringset(..., ETH_SS_RSS_HASH_FUNCS...) fails. > > Fixes: b888f35 ("ethtool: Support for configurable RSS hash function") Thanks for fixing this! Please use the first 12 characters of the sha1 in the

[PATCH net] udp: fix rx queue len reported by diag and proc interface

2018-06-08 Thread Paolo Abeni
After commit 6b229cf77d68 ("udp: add batching to udp_rmem_release()") the sk_rmem_alloc field does not measure exactly anymore the receive queue length, because we batch the rmem release. The issue is really apparent only after commit 0d4a6608f68c ("udp: do rmem bulk free even if the rx sk queue

[PATCH ethtool 6/6] ethtool: remove unreachable code

2018-06-08 Thread Ivan Vecera
The default switch case is unreachable as the MAX_CHANNEL_NUM == 4. Fixes: a5e73bb ("ethtool:QSFP Plus/QSFP28 Diagnostics Information Support") Cc: Vidya Sagar Ravipati Signed-off-by: Ivan Vecera --- qsfp.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/qsfp.c b/qsfp.c index

[PATCH ethtool 1/6] ethtool: fix uninitialized return value

2018-06-08 Thread Ivan Vecera
Fixes: b0fe96d ("Ethtool: Implements ETHTOOL_PHY_GTUNABLE/ETHTOOL_PHY_STUNABLE and PHY downshift") Signed-off-by: Ivan Vecera --- ethtool.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ethtool.c b/ethtool.c index 2e87384..e7495fe 100644 --- a/ethtool.c +++

[PATCH ethtool 3/6] ethtool: remove unused global variable

2018-06-08 Thread Ivan Vecera
Fixes: 2c2ee7a ("ethtool: Add support for sfc register dumps") Signed-off-by: Ivan Vecera --- sfc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sfc.c b/sfc.c index 9478b38..b4c590f 100644 --- a/sfc.c +++ b/sfc.c @@ -3083,9 +3083,6 @@ static const struct efx_nic_reg_field

[PATCH ethtool 4/6] ethtool: several fixes in do_gregs()

2018-06-08 Thread Ivan Vecera
- correctly close gregs_dump_file in case of fstat() failure - check for error from realloc Fixes: be4c2d0 ("ethtool.c: fix dump_regs heap corruption") Cc: David Decotigny Signed-off-by: Ivan Vecera --- ethtool.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git

[PATCH ethtool 5/6] ethtool: correctly free hkey when get_stringset() fails

2018-06-08 Thread Ivan Vecera
Memory allocated for 'hkey' is not freed when get_stringset(..., ETH_SS_RSS_HASH_FUNCS...) fails. Fixes: b888f35 ("ethtool: Support for configurable RSS hash function") Cc: Gal Pressman Signed-off-by: Ivan Vecera --- ethtool.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-)

[PATCH ethtool 2/6] ethtool: fix RING_VF assignment

2018-06-08 Thread Ivan Vecera
Fixes: 36ee712 ("ethtool: support queue and VF fields for rxclass filters") Cc: Jacob Keller Signed-off-by: Ivan Vecera --- rxclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rxclass.c b/rxclass.c index ce4b382..42d122d 100644 --- a/rxclass.c +++ b/rxclass.c @@

[PATCH v6 net] stmmac: strip all VLAN tag types when kernel 802.1Q support is selected

2018-06-08 Thread Elad Nachman
stmmac reception handler calls stmmac_rx_vlan() to strip the vlan before calling napi_gro_receive(). The function assumes VLAN tagged frames are always tagged with 802.1Q protocol, and assigns ETH_P_8021Q to the skb by hard-coding the parameter on call to __vlan_hwaccel_put_tag() . This causes

Re: BUG: 4.14.11 unable to handle kernel NULL pointer dereference in xfrm_lookup

2018-06-08 Thread Kristian Evensen
Hi, On Wed, Jun 6, 2018 at 6:03 PM, Tobias Hommel wrote: > Sorry no progress until now, I currently do not get time to have a deeper look > into that. We're back to 4.1.6 right now. Thanks for letting me know. In the project I am currently involved in, we unfortunately don't have the option of

Re: [PATCH net v2] net/sched: act_simple: fix parsing of TCA_DEF_DATA

2018-06-08 Thread Simon Horman
On Fri, Jun 08, 2018 at 05:02:31AM +0200, Davide Caratti wrote: > use nla_strlcpy() to avoid copying data beyond the length of TCA_DEF_DATA > netlink attribute, in case it is less than SIMP_MAX_DATA and it does not > end with '\0' character. > > v2: fix errors in the commit message, thanks

Re: [PATCH ipsec] vti6: fix PMTU caching and reporting on xmit

2018-06-08 Thread Steffen Klassert
On Thu, Jun 07, 2018 at 10:11:02AM +0300, Eyal Birger wrote: > When setting the skb->dst before doing the MTU check, the route PMTU > caching and reporting is done on the new dst which is about to be > released. > > Instead, PMTU handling should be done using the original dst. > > This is

Re: [PATCH net-next v2 0/2] net: phy: improve PHY suspend/resume

2018-06-08 Thread Heiner Kallweit
On 05.06.2018 21:39, Heiner Kallweit wrote: > On 02.06.2018 22:27, Heiner Kallweit wrote: >> On 01.06.2018 02:10, Andrew Lunn wrote: Configuring the different WoL options isn't handled by writing to the PHY registers but by writing to chip / MAC registers. Therefore phy_suspend()