[PATCHv2 net] sctp: do not check port in sctp_inet6_cmp_addr

2018-04-11 Thread Xin Long
pf->cmp_addr() is called before binding a v6 address to the sock. It should not check ports, like in sctp_inet_cmp_addr. But sctp_inet6_cmp_addr checks the addr by invoking af(6)->cmp_addr, sctp_v6_cmp_addr where it also compares the ports. This would cause that setsockopt(SCTP_SOCKOPT_BINDX_ADD)

Re: [RFC net-next 1/2] net: net-porcfs: Reduce rcu lock critical section

2018-04-11 Thread Eric Dumazet
On 04/11/2018 04:47 PM, Saeed Mahameed wrote: > > Well if we allow devices to access HW counters via FW command > interfaces in ndo_get_stats and by testing mlx5 where we query up to 5 > hw registers, it could take 100us, still this is way smaller than 10sec > :) and it is really a nice rate to

Re: [PATCH v2] net: dsa: b53: Using sleep-able operations in b53_switch_reset_gpio

2018-04-11 Thread Phil Reid
On 12/04/2018 09:48, Jia-Ju Bai wrote: b53_switch_reset_gpio() is never called in atomic context. The call chain ending up at b53_switch_reset_gpio() is: [1] b53_switch_reset_gpio() <- b53_switch_reset() <- b53_reset_switch() <- b53_setup() b53_switch_reset_gpio() is set as ".setup" in str

Re: [PATCH v2] dec: tulip: de4x5: Replace mdelay with usleep_range in de4x5_hw_init

2018-04-11 Thread Jia-Ju Bai
On 2018/4/12 10:21, arvindY wrote: On Thursday 12 April 2018 07:00 AM, Jia-Ju Bai wrote: On 2018/4/12 0:16, James Bottomley wrote: On Wed, 2018-04-11 at 23:39 +0800, Jia-Ju Bai wrote: de4x5_hw_init() is never called in atomic context. de4x5_hw_init() is only called by de4x5_pci_probe(),

iproute2-4.16.0 no longer accepts routes via fe80::1

2018-04-11 Thread Thomas Deutschmann
Hi, I upgraded to iproute2-4.16.0 and rebooted my system. On start I noticed that my IPv6 default route via "fe80::1" was rejected: > # ip route add default via ff80::1 > Error: inet address is expected rather than "ff80::1". This works fine with

Re: [PATCH v2] dec: tulip: de4x5: Replace mdelay with usleep_range in de4x5_hw_init

2018-04-11 Thread arvindY
On Thursday 12 April 2018 07:00 AM, Jia-Ju Bai wrote: On 2018/4/12 0:16, James Bottomley wrote: On Wed, 2018-04-11 at 23:39 +0800, Jia-Ju Bai wrote: de4x5_hw_init() is never called in atomic context. de4x5_hw_init() is only called by de4x5_pci_probe(), which is only set as ".probe" in stru

Re: [RFC PATCH v2 03/14] xsk: add umem fill queue support and mmap

2018-04-11 Thread Michael S. Tsirkin
On Tue, Mar 27, 2018 at 06:59:08PM +0200, Björn Töpel wrote: > @@ -30,4 +31,18 @@ struct xdp_umem_reg { > __u32 frame_headroom; /* Frame head room */ > }; > > +/* Pgoff for mmaping the rings */ > +#define XDP_UMEM_PGOFF_FILL_QUEUE0x1 > + > +struct xdp_queue { > + __u32 head

Re: [PATCH] net: dsa: b53: Replace mdelay with msleep in b53_switch_reset_gpio

2018-04-11 Thread Jia-Ju Bai
On 2018/4/12 0:19, Florian Fainelli wrote: On 04/11/2018 12:14 AM, Jia-Ju Bai wrote: On 2018/4/11 13:30, Phil Reid wrote: On 11/04/2018 09:51, Jia-Ju Bai wrote: b53_switch_reset_gpio() is never called in atomic context. The call chain ending up at b53_switch_reset_gpio() is: [1] b53_switch

iproute2-4.16.0 no longer accepts routes via fe80::1

2018-04-11 Thread Thomas Deutschmann
Hi, I upgraded to iproute2-4.16.0 and rebooted my system. On start I noticed that my IPv6 default route via "fe80::1" was rejected: > # ip route add default via ff80::1 > Error: inet address is expected rather than "ff80::1". This works with

[PATCH v2] net: dsa: b53: Using sleep-able operations in b53_switch_reset_gpio

2018-04-11 Thread Jia-Ju Bai
b53_switch_reset_gpio() is never called in atomic context. The call chain ending up at b53_switch_reset_gpio() is: [1] b53_switch_reset_gpio() <- b53_switch_reset() <- b53_reset_switch() <- b53_setup() b53_switch_reset_gpio() is set as ".setup" in struct dsa_switch_ops. This function is not c

Re: [PATCH v2] dec: tulip: de4x5: Replace mdelay with usleep_range in de4x5_hw_init

2018-04-11 Thread Jia-Ju Bai
On 2018/4/12 0:16, James Bottomley wrote: On Wed, 2018-04-11 at 23:39 +0800, Jia-Ju Bai wrote: de4x5_hw_init() is never called in atomic context. de4x5_hw_init() is only called by de4x5_pci_probe(), which is only set as ".probe" in struct pci_driver. Despite never getting called from atomic

RE: WARNING in kobject_add_internal

2018-04-11 Thread Yuan, Linyu (NSB - CN/Shanghai)
Hi, I have a question, "can syzbot auto test each tree with newest changeset" ? > -Original Message- > From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org] > On Behalf Of Dmitry Vyukov > Sent: Wednesday, April 11, 2018 10:58 PM > To: syzbot > Cc: bri...@lists.linux-fou

[bpf PATCH 3/3] bpf: sockmap, fix double put_page on ENOMEM error in redirect path

2018-04-11 Thread John Fastabend
In the case where the socket memory boundary is hit the redirect path returns an ENOMEM error. However, before checking for this condition the redirect scatterlist buffer is setup with a valid page and length. This is never unwound so when the buffers are released latter in the error path we do a p

[bpf PATCH 1/3] bpf: sockmap, map_release does not hold refcnt for pinned maps

2018-04-11 Thread John Fastabend
Relying on map_release hook to decrement the reference counts when a map is removed only works if the map is not being pinned. In the pinned case the ref is decremented immediately and the BPF programs released. After this BPF programs may not be in-use which is not what the user would expect. Thi

[bpf PATCH 0/3] BPF, a couple sockmap fixes

2018-04-11 Thread John Fastabend
While testing sockmap with more programs (besides our test programs) I found a couple issues. The attached series fixes an issue where pinned maps were not working correctly, blocking sockets returned zero, and an error path that when the sock hit an out of memory case resulted in a double page_pu

[bpf PATCH 2/3] bpf: sockmap, sk_wait_event needed to handle blocking cases

2018-04-11 Thread John Fastabend
In the recvmsg handler we need to add a wait event to support the blocking use cases. Without this we return zero and may confuse user applications. In the wait event any data received on the sk either via sk_receive_queue or the psock ingress list will wake up the sock. Fixes: fa246693a111 ("bpf:

[PATCH net 4/4] nfp: flower: split and limit cmsg skb lists

2018-04-11 Thread Jakub Kicinski
From: Pieter Jansen van Vuuren Introduce a second skb list for handling control messages and limit the number of allowed messages. Some control messages are considered more crucial than others, resulting in the need for a second skb list. By splitting the list into a separate high and low priorit

[PATCH net 3/4] nfp: flower: move route ack control messages out of the workqueue

2018-04-11 Thread Jakub Kicinski
From: Pieter Jansen van Vuuren Previously we processed the route ack control messages in the workqueue, this unnecessarily loads the workqueue. We can deal with these messages sooner as we know we are going to drop them. Fixes: 8e6a9046b66a ("nfp: flower vxlan neighbour offload") Signed-off-by:

[PATCH net 1/4] nfp: ignore signals when communicating with management FW

2018-04-11 Thread Jakub Kicinski
We currently allow signals to interrupt the wait for management FW commands. Exiting the wait should not cause trouble, the FW will just finish executing the command in the background and new commands will wait for the old one to finish. However, this may not be what users expect (Ctrl-C not actu

[PATCH net 2/4] nfp: print a message when mutex wait is interrupted

2018-04-11 Thread Jakub Kicinski
When waiting for an NFP mutex is interrupted print a message to make root causing later error messages easier. Signed-off-by: Jakub Kicinski Reviewed-by: Dirk van der Merwe --- drivers/net/ethernet/netronome/nfp/nfpcore/nfp_mutex.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff

[PATCH net 0/4] nfp: improve signal handing on FW waits and flower control message processing

2018-04-11 Thread Jakub Kicinski
Hi! The first part of this set aims to improve handling of interrupted waits. Patch 1 makes waiting for management FW responses uninterruptible while patch 2 adds a message when signal arrives while waiting for an NFP mutex. We can't interrupt execution of FW commands so uninterruptible sleep se

Re: [RFC net-next 1/2] net: net-porcfs: Reduce rcu lock critical section

2018-04-11 Thread Saeed Mahameed
On Wed, 2018-04-11 at 15:30 -0700, Eric Dumazet wrote: > > On 04/11/2018 11:59 AM, Saeed Mahameed wrote: > > On Tue, 2018-04-10 at 13:35 -0700, Eric Dumazet wrote: > > > > > > On 04/10/2018 10:16 AM, David Miller wrote: > > > > > > > > The tradeoff here is that now you are doing two unnecessary

Re: [RFC v3 net-next 13/18] net/sched: Introduce the TBS Qdisc

2018-04-11 Thread Jesus Sanchez-Palencia
Hi, On 04/11/2018 01:16 PM, Thomas Gleixner wrote: Putting it all together, we end up with: 1) a new txtime aware qdisc, tbs, to be used per queue. Its cli will look like: $ tc qdisc add (...) tbs clockid CLOCK_REALTIME delta 15 offload sorting >>> >>> Why CLOCK

[net 1/1] tipc: fix missing initializer in tipc_sendmsg()

2018-04-11 Thread Jon Maloy
The stack variable 'dnode' in __tipc_sendmsg() may theoretically end up tipc_node_get_mtu() as an unitilalized variable. We fix this by intializing the variable at declaration. We also add a default else clause to the two conditional ones already there, so that we never end up in the named functio

Re: [PATCH net-next 1/5] virtio: Add support for SCTP checksum offloading

2018-04-11 Thread Michael S. Tsirkin
On Mon, Apr 02, 2018 at 09:40:02AM -0400, Vladislav Yasevich wrote: > To support SCTP checksum offloading, we need to add a new feature > to virtio_net, so we can negotiate support between the hypervisor > and the guest. > > The signalling to the guest that an alternate checksum needs to > be used

Re: [PATCH net-next 1/5] virtio: Add support for SCTP checksum offloading

2018-04-11 Thread Marcelo Ricardo Leitner
On Mon, Apr 02, 2018 at 09:40:02AM -0400, Vladislav Yasevich wrote: > To support SCTP checksum offloading, we need to add a new feature > to virtio_net, so we can negotiate support between the hypervisor > and the guest. > > The signalling to the guest that an alternate checksum needs to > be used

Re: [RFC net-next 1/2] net: net-porcfs: Reduce rcu lock critical section

2018-04-11 Thread Eric Dumazet
On 04/11/2018 11:59 AM, Saeed Mahameed wrote: > On Tue, 2018-04-10 at 13:35 -0700, Eric Dumazet wrote: >> >> On 04/10/2018 10:16 AM, David Miller wrote: >>> >>> The tradeoff here is that now you are doing two unnecessary atomic >>> operations per stats dump. >>> >>> That is what the RCU lock allo

Re: [PATCH bpf-next v8 05/11] seccomp,landlock: Enforce Landlock programs per process hierarchy

2018-04-11 Thread Mickaël Salaün
On 04/10/2018 06:48 AM, Alexei Starovoitov wrote: > On Mon, Apr 09, 2018 at 12:01:59AM +0200, Mickaël Salaün wrote: >> >> On 04/08/2018 11:06 PM, Andy Lutomirski wrote: >>> On Sun, Apr 8, 2018 at 6:13 AM, Mickaël Salaün wrote: On 02/27/2018 10:48 PM, Mickaël Salaün wrote: > > On

[PATCH net] strparser: Fix incorrect strp->need_bytes value.

2018-04-11 Thread Doron Roberts-Kedes
strp_data_ready resets strp->need_bytes to 0 if strp_peek_len indicates that the remainder of the message has been received. However, do_strp_work does not reset strp->need_bytes to 0. If do_strp_work completes a partial message, the value of strp->need_bytes will continue to reflect the needed byt

[GIT] Networking

2018-04-11 Thread David Miller
1) In ip_gre tunnel, handle the conflict between TUNNEL_{SEQ,CSUM} and GSO/LLTX properly. From Sabrina Dubroca. 2) Stop properly on error in lan78xx_read_otp(), from Phil Elwell. 3) Don't uncompress in slip before rstate is initialized, from Tejaswi Tanikella. 4) When using 1.x firmware

Re: [PATCH net] net: validate attribute sizes in neigh_dump_table()

2018-04-11 Thread David Ahern
On 4/11/18 3:46 PM, Eric Dumazet wrote: > Since neigh_dump_table() calls nlmsg_parse() without giving policy > constraints, attributes can have arbirary size that we must validate > ... > > Fixes: 21fdd092acc7 ("net: Add support for filtering neigh dump by master > device") > Signed-off-by: Er

[PATCH net] net: validate attribute sizes in neigh_dump_table()

2018-04-11 Thread Eric Dumazet
Since neigh_dump_table() calls nlmsg_parse() without giving policy constraints, attributes can have arbirary size that we must validate Reported by syzbot/KMSAN : BUG: KMSAN: uninit-value in neigh_master_filtered net/core/neighbour.c:2292 [inline] BUG: KMSAN: uninit-value in neigh_dump_table net

Re: [PATCH net 0/2] l2tp: tunnel creation fixes

2018-04-11 Thread David Miller
From: Guillaume Nault Date: Tue, 10 Apr 2018 21:01:07 +0200 > L2TP tunnel creation is racy. We need to make sure that the tunnel > returned by l2tp_tunnel_create() isn't going to be freed while the > caller is using it. This is done in patch #1, by separating tunnel > creation from tunnel registr

[PATCH net] tcp: md5: reject TCP_MD5SIG or TCP_MD5SIG_EXT on established sockets

2018-04-11 Thread Eric Dumazet
syzbot/KMSAN reported an uninit-value in tcp_parse_options() [1] I believe this was caused by a TCP_MD5SIG being set on live flow. This is highly unexpected, since TCP option space is limited. For instance, presence of TCP MD5 option automatically disables TCP TimeStamp option at SYN/SYNACK time

Re: [PATCH net-next] netns: filter uevents correctly

2018-04-11 Thread Eric W. Biederman
Christian Brauner writes: > On Wed, Apr 11, 2018 at 11:40:14AM -0500, Eric W. Biederman wrote: >> Christian Brauner writes: >> > Yeah, agreed. >> > But I think the patch is not complete. To guarantee that no non-initial >> > user namespace actually receives uevents we need to: >> > 1. only sent

Re: [PATCH net v2 2/6] bnxt_en: do not allow wildcard matches for L2 flows

2018-04-11 Thread Jakub Kicinski
On Wed, 11 Apr 2018 13:55:11 -0700, Michael Chan wrote: > On Wed, Apr 11, 2018 at 1:50 PM, Andy Gospodarek wrote: > > On Wed, Apr 11, 2018 at 01:41:31PM -0700, Michael Chan wrote: > > True, but I'm not sure that tc_cls_common_offload is used in all cases. > > Take red_offload() as one of those.

Re: [PATCH net v2 0/6] bnxt_en: Fixes for net.

2018-04-11 Thread David Miller
From: Michael Chan Date: Wed, 11 Apr 2018 11:50:12 -0400 > This bug fix series include NULL pointer fixes in ethtool -x code path > and in the error clean up path when freeing IRQs, a ring accounting bug > that missed rings used by the RDMA driver, and 3 bug fixes related to TC > Flower and VF-re

Re: [PATCH net v2 2/6] bnxt_en: do not allow wildcard matches for L2 flows

2018-04-11 Thread Jakub Kicinski
On Wed, 11 Apr 2018 11:50:14 -0400, Michael Chan wrote: > @@ -764,6 +788,41 @@ static bool bnxt_tc_can_offload(struct bnxt *bp, struct > bnxt_tc_flow *flow) > return false; > } > > + /* Currently source/dest MAC cannot be partial wildcard */ > + if (bits_set(&flow->l

BUG: corrupted list in team_nl_cmd_options_set

2018-04-11 Thread syzbot
Hello, syzbot hit the following crash on upstream commit b284d4d5a6785f8cd07eda2646a95782373cd01e (Tue Apr 10 19:25:30 2018 +) Merge tag 'ceph-for-4.17-rc1' of git://github.com/ceph/ceph-client syzbot dashboard link: https://syzkaller.appspot.com/bug?extid=4d4af685432dc0e56c91 C reproduce

Re: [PATCH] net/mlx5: remove some extraneous spaces in indentations

2018-04-11 Thread David Miller
From: Saeed Mahameed Date: Wed, 11 Apr 2018 18:23:41 + > Dave, if it is ok with you I would like to apply this into mlx5-next > branch so it won't cause any issues with our next pull requests to rdma > and netdev. Ok.

Re: [RFC PATCH v2 00/14] Introducing AF_XDP support

2018-04-11 Thread Alexei Starovoitov
On 4/11/18 5:17 AM, Björn Töpel wrote: In the current RFC you are required to create both an Rx and Tx queue to bind the socket, which is just weird for your "Rx on one device, Tx to another" scenario. I'll fix that in the next RFC. I would defer on adding new features until the key functional

[PATCH 4.4 004/190] x86/asm: Dont use RBP as a temporary register in csum_partial_copy_generic()

2018-04-11 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Josh Poimboeuf [ Upstream commit 42fc6c6cb1662ba2fa727dd01c9473c63be4e3b6 ] Andrey Konovalov reported the following warning while fuzzing the kernel with syzkaller: WARNING: kernel stack re

Re: [PATCH net v2 2/6] bnxt_en: do not allow wildcard matches for L2 flows

2018-04-11 Thread Michael Chan
On Wed, Apr 11, 2018 at 1:50 PM, Andy Gospodarek wrote: > On Wed, Apr 11, 2018 at 01:41:31PM -0700, Michael Chan wrote: >> On Wed, Apr 11, 2018 at 1:31 PM, Andy Gospodarek >> wrote: >> > On Wed, Apr 11, 2018 at 11:43:14AM -0700, Jakub Kicinski wrote: >> >> On Wed, 11 Apr 2018 11:50:14 -0400, Mich

[net 1/1] tipc: fix unbalanced reference counter

2018-04-11 Thread Jon Maloy
When a topology subscription is created, we may encounter (or KASAN may provoke) a failure to create a corresponding service instance in the binding table. Instead of letting the tipc_nametbl_subscribe() report the failure back to the caller, the function just makes a warning printout and returns,

Re: [PATCH] lan78xx: Don't reset the interface on open

2018-04-11 Thread David Miller
From: Phil Elwell Date: Tue, 10 Apr 2018 13:18:25 +0100 > Commit 92571a1aae40 ("lan78xx: Connect phy early") moves the PHY > initialisation into lan78xx_probe, but lan78xx_open subsequently calls > lan78xx_reset. As well as forcing a second round of link negotiation, > this reset frequently preve

Re: [PATCH net v2 2/6] bnxt_en: do not allow wildcard matches for L2 flows

2018-04-11 Thread Andy Gospodarek
On Wed, Apr 11, 2018 at 01:41:31PM -0700, Michael Chan wrote: > On Wed, Apr 11, 2018 at 1:31 PM, Andy Gospodarek > wrote: > > On Wed, Apr 11, 2018 at 11:43:14AM -0700, Jakub Kicinski wrote: > >> On Wed, 11 Apr 2018 11:50:14 -0400, Michael Chan wrote: > >> > @@ -764,6 +788,41 @@ static bool bnxt_tc

Re: [PATCH net v2 2/6] bnxt_en: do not allow wildcard matches for L2 flows

2018-04-11 Thread Michael Chan
On Wed, Apr 11, 2018 at 1:31 PM, Andy Gospodarek wrote: > On Wed, Apr 11, 2018 at 11:43:14AM -0700, Jakub Kicinski wrote: >> On Wed, 11 Apr 2018 11:50:14 -0400, Michael Chan wrote: >> > @@ -764,6 +788,41 @@ static bool bnxt_tc_can_offload(struct bnxt *bp, >> > struct bnxt_tc_flow *flow) >> >

Re: [PATCH net 1/2] tun: set the flags before registering the netdevice

2018-04-11 Thread David Miller
From: Sabrina Dubroca Date: Tue, 10 Apr 2018 16:28:55 +0200 > Otherwise, register_netdevice advertises the creation of the device with > the default flags, instead of what the user requested. > > Reported-by: Thomas Haller > Fixes: 1ec010e70593 ("tun: export flags, uid, gid, queue information o

Re: [PATCH net 2/2] tun: send netlink notification when the device is modified

2018-04-11 Thread David Miller
From: Sabrina Dubroca Date: Tue, 10 Apr 2018 16:28:56 +0200 > I added dumping of link information about tun devices over netlink in > commit 1ec010e70593 ("tun: export flags, uid, gid, queue information > over netlink"), but didn't add the missing netlink notifications when > the device's exporte

Re: [PATCH net v2 2/6] bnxt_en: do not allow wildcard matches for L2 flows

2018-04-11 Thread Andy Gospodarek
On Wed, Apr 11, 2018 at 11:43:14AM -0700, Jakub Kicinski wrote: > On Wed, 11 Apr 2018 11:50:14 -0400, Michael Chan wrote: > > @@ -764,6 +788,41 @@ static bool bnxt_tc_can_offload(struct bnxt *bp, > > struct bnxt_tc_flow *flow) > > return false; > > } > > > > + /* Currently sour

Re: [RFC v3 net-next 13/18] net/sched: Introduce the TBS Qdisc

2018-04-11 Thread Ivan Briano
On 04/11/2018 01:16 PM, Thomas Gleixner wrote: > On Tue, 10 Apr 2018, Jesus Sanchez-Palencia wrote: This will be provided by tbs if the socket which is transmitting packets is configured for deadline mode. >>> >>> You don't want the socket to decide that. The qdisc into which a socket >

Re: [PATCH net v2 2/6] bnxt_en: do not allow wildcard matches for L2 flows

2018-04-11 Thread Michael Chan
On Wed, Apr 11, 2018 at 11:43 AM, Jakub Kicinski wrote: > On Wed, 11 Apr 2018 11:50:14 -0400, Michael Chan wrote: >> @@ -764,6 +788,41 @@ static bool bnxt_tc_can_offload(struct bnxt *bp, struct >> bnxt_tc_flow *flow) >> return false; >> } >> >> + /* Currently source/dest M

[RFC PATCH] lan78xx: lan78xx_regs[] can be static

2018-04-11 Thread kbuild test robot
Fixes: 1373bfc60bd8 ("lan78xx: Add support to dump lan78xx registers") Signed-off-by: Fengguang Wu --- lan78xx.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c index cbeec78..df5c3eb 100644 --- a/drivers/net/usb/lan78x

Re: [RFC v3 net-next 13/18] net/sched: Introduce the TBS Qdisc

2018-04-11 Thread Thomas Gleixner
On Tue, 10 Apr 2018, Jesus Sanchez-Palencia wrote: > >> This will be provided by tbs if the socket which is transmitting packets is > >> configured for deadline mode. > > > > You don't want the socket to decide that. The qdisc into which a socket > > feeds defines the mode and the qdisc rejects re

[PATCH 4.9 005/310] x86/asm: Dont use RBP as a temporary register in csum_partial_copy_generic()

2018-04-11 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Josh Poimboeuf [ Upstream commit 42fc6c6cb1662ba2fa727dd01c9473c63be4e3b6 ] Andrey Konovalov reported the following warning while fuzzing the kernel with syzkaller: WARNING: kernel stack re

Re: [patch net] devlink: convert occ_get op to separate registration

2018-04-11 Thread Sasha Levin
On Wed, Apr 11, 2018 at 10:46:00AM +0200, gre...@linuxfoundation.org wrote: >On Tue, Apr 10, 2018 at 08:43:31PM +, Sasha Levin wrote: >> >Bots are starting to overwhelm actual content from human beings >> >on this list, and I want to put my foot on the brake right now >> >before it gets even mo

Re: [PATCH net] sctp: do not check port in sctp_inet6_cmp_addr

2018-04-11 Thread Neil Horman
On Thu, Apr 12, 2018 at 12:16:58AM +0800, Xin Long wrote: > On Wed, Apr 11, 2018 at 10:59 PM, Marcelo Ricardo Leitner > wrote: > > On Wed, Apr 11, 2018 at 10:36:07AM -0400, Neil Horman wrote: > >> On Wed, Apr 11, 2018 at 08:58:05PM +0800, Xin Long wrote: > >> > pf->cmp_addr() is called before bind

Re: [PATCH net-next] netns: filter uevents correctly

2018-04-11 Thread Christian Brauner
On Wed, Apr 11, 2018 at 02:16:23PM -0500, Eric W. Biederman wrote: > Christian Brauner writes: > > > On Wed, Apr 11, 2018 at 01:37:18PM -0500, Eric W. Biederman wrote: > >> Christian Brauner writes: > >> > >> > On Wed, Apr 11, 2018 at 11:40:14AM -0500, Eric W. Biederman wrote: > >> >> Christian

Re: [PATCH net-next] netns: filter uevents correctly

2018-04-11 Thread Christian Brauner
On Wed, Apr 11, 2018 at 01:37:18PM -0500, Eric W. Biederman wrote: > Christian Brauner writes: > > > On Wed, Apr 11, 2018 at 11:40:14AM -0500, Eric W. Biederman wrote: > >> Christian Brauner writes: > >> > Yeah, agreed. > >> > But I think the patch is not complete. To guarantee that no non-initi

Re: [RFC net-next 1/2] net: net-porcfs: Reduce rcu lock critical section

2018-04-11 Thread Saeed Mahameed
On Tue, 2018-04-10 at 13:35 -0700, Eric Dumazet wrote: > > On 04/10/2018 10:16 AM, David Miller wrote: > > > > The tradeoff here is that now you are doing two unnecessary atomic > > operations per stats dump. > > > > That is what the RCU lock allows us to avoid. > > > > dev_hold() and dev_put(

Re: WARNING: possible recursive locking detected

2018-04-11 Thread Julian Anastasov
Hello, On Wed, 11 Apr 2018, Dmitry Vyukov wrote: > On Wed, Apr 11, 2018 at 4:02 PM, syzbot > wrote: > > Hello, > > > > syzbot hit the following crash on upstream commit > > b284d4d5a6785f8cd07eda2646a95782373cd01e (Tue Apr 10 19:25:30 2018 +) > > Merge tag 'ceph-for-4.17-rc1' of git

Re: [PATCH net-next] Per interface IPv4 stats (CONFIG_IP_IFSTATS_TABLE)

2018-04-11 Thread Julian Anastasov
Hello, On Tue, 10 Apr 2018, Stephen Suryaputra wrote: > This is enhanced from the proposed patch by Igor Maravic in 2011 to > support per interface IPv4 stats. The enhancement is mainly adding a > kernel configuration option CONFIG_IP_IFSTATS_TABLE. > > Signed-off-by: Stephen Suryaputra

Re: [PATCH net-next] netns: filter uevents correctly

2018-04-11 Thread Eric W. Biederman
Christian Brauner writes: > On Wed, Apr 11, 2018 at 01:37:18PM -0500, Eric W. Biederman wrote: >> Christian Brauner writes: >> >> > On Wed, Apr 11, 2018 at 11:40:14AM -0500, Eric W. Biederman wrote: >> >> Christian Brauner writes: >> >> > Yeah, agreed. >> >> > But I think the patch is not comp

Re: [RFC PATCH net-next v6 2/4] net: Introduce generic bypass module

2018-04-11 Thread Samudrala, Sridhar
On 4/11/2018 8:51 AM, Jiri Pirko wrote: Tue, Apr 10, 2018 at 08:59:48PM CEST, sridhar.samudr...@intel.com wrote: This provides a generic interface for paravirtual drivers to listen for netdev register/unregister/link change events from pci ethernet devices with the same MAC and takeover their da

[PULL] virtio: feature pull

2018-04-11 Thread Michael S. Tsirkin
The following changes since commit dc32bb678e103afbcfa4d814489af0566307f528: vhost: add vsock compat ioctl (2018-03-20 03:17:42 +0200) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git tags/for_linus for you to fetch changes up to 6c64fe7f2a

Re: [PATCH v1 net 2/3] lan78xx: Add support to dump lan78xx registers

2018-04-11 Thread kbuild test robot
Hi Raghuram, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on net-next/master] [also build test WARNING on v4.16 next-20180411] [cannot apply to net/master] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url

Re: [PATCH] net/mlx5: remove some extraneous spaces in indentations

2018-04-11 Thread Saeed Mahameed
On Tue, 2018-04-10 at 17:27 -0600, Jason Gunthorpe wrote: > On Tue, Apr 10, 2018 at 05:22:54PM -0600, Jason Gunthorpe wrote: > > On Mon, Apr 09, 2018 at 01:43:36PM +0100, Colin Ian King wrote: > > > From: Colin Ian King > > > > > > There are several lines where there is an extraneous space > > >

Re: [RFC bpf-next v2 7/8] bpf: add documentation for eBPF helpers (51-57)

2018-04-11 Thread Quentin Monnet
2018-04-11 16:44 UTC+0100 ~ Quentin Monnet > 2018-04-10 09:58 UTC-0700 ~ Yonghong Song >> On 4/10/18 7:41 AM, Quentin Monnet wrote: >>> Add documentation for eBPF helper functions to bpf.h user header file. >>> This documentation can be parsed with the Python script provided in >>> another commit

Re: [PATCH net-next] Per interface IPv4 stats (CONFIG_IP_IFSTATS_TABLE)

2018-04-11 Thread Stephen Suryaputra
I read the thread and understand some of the concerns, but these are useful for network equipments. That's why in this patch, I made it as configuration option. If you have feedbacks, I'll appreciate them. I can resend when net-next is opened again. Thanks. On Wed, Apr 11, 2018 at 12:14 PM, Step

Re: [PATCH net-next] netns: filter uevents correctly

2018-04-11 Thread Christian Brauner
On Wed, Apr 11, 2018 at 11:40:14AM -0500, Eric W. Biederman wrote: > Christian Brauner writes: > > > On Tue, Apr 10, 2018 at 10:04:46AM -0500, Eric W. Biederman wrote: > >> Christian Brauner writes: > >> > >> > On Mon, Apr 09, 2018 at 06:21:31PM -0500, Eric W. Biederman wrote: > >> >> Christian

Re: [PATCH net-next] netns: filter uevents correctly

2018-04-11 Thread Eric W. Biederman
Christian Brauner writes: > On Tue, Apr 10, 2018 at 10:04:46AM -0500, Eric W. Biederman wrote: >> Christian Brauner writes: >> >> > On Mon, Apr 09, 2018 at 06:21:31PM -0500, Eric W. Biederman wrote: >> >> Christian Brauner writes: >> >> >> >> > On Thu, Apr 05, 2018 at 10:59:49PM -0500, Eric W

Re: [PATCH net] sctp: do not check port in sctp_inet6_cmp_addr

2018-04-11 Thread David Miller
From: Xin Long Date: Thu, 12 Apr 2018 00:16:58 +0800 > What do you think of: > > static int sctp_v6_cmp_addr(const union sctp_addr *addr1, > const union sctp_addr *addr2) > { > return __sctp_v6_cmp_addr(addr1, addr2) && >addr1->v6.sin_port == a

Re: [PATCH] net: dsa: b53: Replace mdelay with msleep in b53_switch_reset_gpio

2018-04-11 Thread Florian Fainelli
On 04/11/2018 12:14 AM, Jia-Ju Bai wrote: > > > On 2018/4/11 13:30, Phil Reid wrote: >> On 11/04/2018 09:51, Jia-Ju Bai wrote: >>> b53_switch_reset_gpio() is never called in atomic context. >>> >>> The call chain ending up at b53_switch_reset_gpio() is: >>> [1] b53_switch_reset_gpio() <- b53_swit

Re: [PATCH net] sctp: do not check port in sctp_inet6_cmp_addr

2018-04-11 Thread Xin Long
On Wed, Apr 11, 2018 at 10:59 PM, Marcelo Ricardo Leitner wrote: > On Wed, Apr 11, 2018 at 10:36:07AM -0400, Neil Horman wrote: >> On Wed, Apr 11, 2018 at 08:58:05PM +0800, Xin Long wrote: >> > pf->cmp_addr() is called before binding a v6 address to the sock. It >> > should not check ports, like i

Re: [PATCH v2] dec: tulip: de4x5: Replace mdelay with usleep_range in de4x5_hw_init

2018-04-11 Thread James Bottomley
On Wed, 2018-04-11 at 23:39 +0800, Jia-Ju Bai wrote: > de4x5_hw_init() is never called in atomic context. > > de4x5_hw_init() is only called by de4x5_pci_probe(), which is only  > set as ".probe" in struct pci_driver. > > Despite never getting called from atomic context, de4x5_hw_init()  > calls

Re: [PATCH net-next] Per interface IPv4 stats (CONFIG_IP_IFSTATS_TABLE)

2018-04-11 Thread Stephen Hemminger
On Tue, 10 Apr 2018 22:55:35 -0400 Stephen Suryaputra wrote: > This is enhanced from the proposed patch by Igor Maravic in 2011 to > support per interface IPv4 stats. The enhancement is mainly adding a > kernel configuration option CONFIG_IP_IFSTATS_TABLE. > > Signed-off-by: Stephen Suryaputra

4.15.13 kernel panic, ip_rcv_finish, nf_xfrm_me_harder warnings continue to fill dmesg

2018-04-11 Thread Denys Fedoryshchenko
Apr 11 18:01:34[99194.935520] general protection fault: [#1] SMP Apr 11 18:01:34[99194.935998] Modules linked in: pppoe pppox ppp_generic slhc ip_set_hash_net xt_nat xt_string xt_connmark xt_TCPMSS xt_mark xt_CT xt_set xt_tcpudp ip_set_bitmap_port ip_set nfnetlink iptable_raw iptable_filter

[PATCH net-next] Per interface IPv4 stats (CONFIG_IP_IFSTATS_TABLE)

2018-04-11 Thread Stephen Suryaputra
This is enhanced from the proposed patch by Igor Maravic in 2011 to support per interface IPv4 stats. The enhancement is mainly adding a kernel configuration option CONFIG_IP_IFSTATS_TABLE. Signed-off-by: Stephen Suryaputra --- drivers/net/vrf.c | 2 +- include/linux/inetdevice.h

Re: [PATCH] net: samsung: sxgbe: Replace mdelay with usleep_range in sxgbe_sw_reset

2018-04-11 Thread kbuild test robot
Hi Jia-Ju, Thank you for the patch! Yet something to improve: [auto build test ERROR on net-next/master] [also build test ERROR on v4.16 next-20180411] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

[PATCH v2] net: samsung: sxgbe: Replace mdelay with usleep_range in sxgbe_sw_reset

2018-04-11 Thread Jia-Ju Bai
sxgbe_sw_reset() is never called in atomic context. sxgbe_sw_reset() is only called by sxgbe_drv_probe(), which is only called by sxgbe_platform_probe(). sxgbe_platform_probe() is set as ".probe" in struct platform_driver. This function is not called in atomic context. Despite never getting call

[PATCH net v2 4/6] bnxt_en: Support max-mtu with VF-reps

2018-04-11 Thread Michael Chan
From: Sriharsha Basavapatna While a VF is configured with a bigger mtu (> 1500), any packets that are punted to the VF-rep (slow-path) get dropped by OVS kernel-datapath with the following message: "dropped over-mtu packet". Fix this by returning the max-mtu value for a VF-rep derived from its co

Re: [RFC PATCH net-next v6 2/4] net: Introduce generic bypass module

2018-04-11 Thread Jiri Pirko
Tue, Apr 10, 2018 at 08:59:48PM CEST, sridhar.samudr...@intel.com wrote: >This provides a generic interface for paravirtual drivers to listen >for netdev register/unregister/link change events from pci ethernet >devices with the same MAC and takeover their datapath. The notifier and >event handling

[PATCH net v2 2/6] bnxt_en: do not allow wildcard matches for L2 flows

2018-04-11 Thread Michael Chan
From: Andy Gospodarek Before this patch the following commands would succeed as far as the user was concerned: $ tc qdisc add dev p1p1 ingress $ tc filter add dev p1p1 parent : protocol all \ flower skip_sw action drop $ tc filter add dev p1p1 parent : protocol ipv4 \ flo

Re: [PATCH] net: samsung: sxgbe: Replace mdelay with usleep_range in sxgbe_sw_reset

2018-04-11 Thread kbuild test robot
Hi Jia-Ju, Thank you for the patch! Yet something to improve: [auto build test ERROR on net-next/master] [also build test ERROR on v4.16 next-20180411] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

[PATCH net v2 1/6] bnxt_en: Fix ethtool -x crash when device is down.

2018-04-11 Thread Michael Chan
Fix ethtool .get_rxfh() crash by checking for valid indirection table address before copying the data. Signed-off-by: Michael Chan --- drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/broadcom/b

[PATCH net v2 6/6] bnxt_en: Fix NULL pointer dereference at bnxt_free_irq().

2018-04-11 Thread Michael Chan
When open fails during ethtool -L ring change, for example, the driver may crash at bnxt_free_irq() because bp->bnapi is NULL. If we fail to allocate all the new rings, bnxt_open_nic() will free all the memory including bp->bnapi. Subsequent call to bnxt_close_nic() will try to dereference bp->bn

[PATCH net v2 0/6] bnxt_en: Fixes for net.

2018-04-11 Thread Michael Chan
This bug fix series include NULL pointer fixes in ethtool -x code path and in the error clean up path when freeing IRQs, a ring accounting bug that missed rings used by the RDMA driver, and 3 bug fixes related to TC Flower and VF-reps. v2: Fixed commit message of patch 4. Changed the pound sign t

[PATCH net v2 5/6] bnxt_en: Need to include RDMA rings in bnxt_check_rings().

2018-04-11 Thread Michael Chan
With recent changes to reserve both L2 and RDMA rings, we need to include the RDMA rings in bnxt_check_rings(). Otherwise we will under-estimate the rings we need during ethtool -L and may lead to failure. Fixes: fbcfc8e46741 ("bnxt_en: Reserve completion rings and MSIX for bnxt_re RDMA driver."

[PATCH net v2 3/6] bnxt_en: Ignore src port field in decap filter nodes

2018-04-11 Thread Michael Chan
From: Sriharsha Basavapatna The driver currently uses src port field (along with other fields) in the decap tunnel key, while looking up and adding tunnel nodes. This leads to redundant cfa_decap_filter_alloc() requests to the FW and flow-miss in the flow engine. Fix this by ignoring the src port

[RFC bpf-next v2 8/8] bpf: add documentation for eBPF helpers (58-64)

2018-04-11 Thread Quentin Monnet
2018-04-11 12:17 UTC+0200 ~ Jesper Dangaard Brouer > On Tue, 10 Apr 2018 15:41:57 +0100 > Quentin Monnet wrote: > >> diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h >> index 7343af4196c8..db090ad03626 100644 >> --- a/include/uapi/linux/bpf.h >> +++ b/include/uapi/linux/bpf.h >>

[RFC bpf-next v2 7/8] bpf: add documentation for eBPF helpers (51-57)

2018-04-11 Thread Quentin Monnet
2018-04-10 10:50 UTC-0700 ~ Andrey Ignatov > Quentin Monnet [Tue, 2018-04-10 07:43 -0700]: >> + * int bpf_bind(struct bpf_sock_addr_kern *ctx, struct sockaddr *addr, int >> addr_len) >> + * Description >> + * Bind the socket associated to *ctx* to the address pointed by >> + *

[RFC bpf-next v2 7/8] bpf: add documentation for eBPF helpers (51-57)

2018-04-11 Thread Quentin Monnet
2018-04-10 09:58 UTC-0700 ~ Yonghong Song > On 4/10/18 7:41 AM, Quentin Monnet wrote: >> Add documentation for eBPF helper functions to bpf.h user header file. >> This documentation can be parsed with the Python script provided in >> another commit of the patch series, in order to provide a RST do

[RFC bpf-next v2 3/8] bpf: add documentation for eBPF helpers (12-22)

2018-04-11 Thread Quentin Monnet
2018-04-10 15:43 UTC-0700 ~ Alexei Starovoitov > On Tue, Apr 10, 2018 at 03:41:52PM +0100, Quentin Monnet wrote: >> Add documentation for eBPF helper functions to bpf.h user header file. >> This documentation can be parsed with the Python script provided in >> another commit of the patch series, i

[RFC bpf-next v2 2/8] bpf: add documentation for eBPF helpers (01-11)

2018-04-11 Thread Quentin Monnet
2018-04-10 10:56 UTC-0700 ~ Alexei Starovoitov > On Tue, Apr 10, 2018 at 03:41:51PM +0100, Quentin Monnet wrote: >> Add documentation for eBPF helper functions to bpf.h user header file. >> This documentation can be parsed with the Python script provided in >> another commit of the patch series, i

[RFC bpf-next v2 1/8] bpf: add script and prepare bpf.h for new helpers documentation

2018-04-11 Thread Quentin Monnet
2018-04-10 11:16 UTC-0700 ~ Alexei Starovoitov > On Tue, Apr 10, 2018 at 03:41:50PM +0100, Quentin Monnet wrote: >> Remove previous "overview" of eBPF helpers from user bpf.h header. >> Replace it by a comment explaining how to process the new documentation >> (to come in following patches) with a

[PATCH v2] dec: tulip: de4x5: Replace mdelay with usleep_range in de4x5_hw_init

2018-04-11 Thread Jia-Ju Bai
de4x5_hw_init() is never called in atomic context. de4x5_hw_init() is only called by de4x5_pci_probe(), which is only set as ".probe" in struct pci_driver. Despite never getting called from atomic context, de4x5_hw_init() calls mdelay() to busily wait. This is not necessary and can be replaced

[PATCH v2 net 1/2] ibmvnic: Handle all login error conditions

2018-04-11 Thread Nathan Fontenot
There is a bug in handling the possible return codes from sending the login CRQ. The current code treats any non-success return value, minus failure to send the crq and a timeout waiting for a login response, as a need to re-send the login CRQ. This can put the drive in an infinite loop of trying t

[PATCH v2 net 0/2] ibmvnic: Fix parameter change request handling

2018-04-11 Thread Nathan Fontenot
When updating parameters for the ibmvnic driver there is a possibility of entering an infinite loop if a return value other that a partial success is received from sending the login CRQ. Also, a deadlock can occur on the rtnl lock if netdev_notify_peers() is called during driver reset for a parame

[PATCH v2 net 2/2] ibmvnic: Do not notify peers on parameter change resets

2018-04-11 Thread Nathan Fontenot
When attempting to change the driver parameters, such as the MTU value or number of queues, do not call netdev_notify_peers(). Doing so will deadlock on the rtnl_lock. Signed-off-by: Nathan Fontenot --- drivers/net/ethernet/ibm/ibmvnic.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

Re: [PATCH net 1/2] ibmvnic: Handle all login error conditions

2018-04-11 Thread Nathan Fontenot
On 04/11/2018 10:07 AM, David Miller wrote: > From: Nathan Fontenot > Date: Wed, 11 Apr 2018 09:37:21 -0500 > >> There is a bug in handling the possible return codes from sending the >> login CRQ. The current code treats any non-success return value, >> minus failure to send the crq and a timeout

  1   2   >