Re: Project Financing

2018-09-18 Thread Gabriel Walker
Thank you for your time, We are looking for clients in your country with good business or project that requires financing to execute. Do get back to me if you are interested in this or you know anybody who has good business ideas but lack the necessary capital to fund his projects so we can

Re: [RFC PATCH bpf-next v3 7/7] selftests/bpf: add test cases for queue and stack maps

2018-09-18 Thread Mauricio Vasquez
On 09/18/2018 06:32 PM, Alexei Starovoitov wrote: On Tue, Sep 18, 2018 at 06:53:07AM +0200, Mauricio Vasquez B wrote: Two types of tests are done: - test_maps: only userspace api. - test_progs: userspace api and ebpf helpers. Signed-off-by: Mauricio Vasquez B --- kernel/bpf/helpers.c

Re: [RFC PATCH bpf-next v3 4/7] bpf: add bpf queue and stack maps

2018-09-18 Thread Mauricio Vasquez
On 09/18/2018 06:27 PM, Alexei Starovoitov wrote: On Tue, Sep 18, 2018 at 06:52:51AM +0200, Mauricio Vasquez B wrote: Implement two new kind of maps that support the peek, push and pop operations. A use case for this is to keep track of a pool of elements, like network ports in a SNAT.

Re: [RFC 4/5] netlink: prepare validate extack setting for recursion

2018-09-18 Thread Marcelo Ricardo Leitner
On Tue, Sep 18, 2018 at 03:12:11PM +0200, Johannes Berg wrote: > From: Johannes Berg > > In one of my previous patches in this area I introduced code > to pass out just the error message to store in the extack, for > use in NLA_REJECT. > > Change this code now to set both the error message and

Re: [PATCH net 0/2] ipv6: fix issues on accessing fib6_metrics

2018-09-18 Thread David Miller
From: Wei Wang Date: Tue, 18 Sep 2018 13:44:58 -0700 > From: Wei Wang > > The latest fix on the memory leak of fib6_metrics still causes > use-after-free. > This patch series first revert the previous fix and propose a new fix > that is more inline with ipv4 logic and is tested to fix the >

Re: [PATCH net] sfp: fix oops with ethtool -m

2018-09-18 Thread David Miller
From: Russell King Date: Tue, 18 Sep 2018 16:48:53 +0100 > If a network interface is created prior to the SFP socket being > available, ethtool can request module information. This unfortunately > leads to an oops: > > Unable to handle kernel NULL pointer dereference at virtual address

[PATCH iproute2-next] iplink: add ipvtap support

2018-09-18 Thread Hangbin Liu
IPVLAN and IPVTAP are using the same functions and parameters. So we can just add a new link_util with id ipvtap. Others are the same. Signed-off-by: Hangbin Liu --- ip/iplink.c | 4 ++-- ip/iplink_ipvlan.c| 28 ++-- man/man8/ip-link.8.in | 4 3

Re: [pull request][RESEND net 0/3] Mellanox, mlx5 fixes 2018-09-17

2018-09-18 Thread David Miller
From: Saeed Mahameed Date: Mon, 17 Sep 2018 20:49:25 -0700 > Sorry about the previous submission of this series which was mistakenly > marked for net-next, here I am resending with 'net' mark. > > This series provides three fixes to mlx5 core and mlx5e netdevice > driver. > > Please pull and

Re: [PATCH] net: emac: fix fixed-link setup for the RTL8363SB switch

2018-09-18 Thread David Miller
From: Christian Lamparter Date: Mon, 17 Sep 2018 17:22:40 +0200 > On the Netgear WNDAP620, the emac ethernet isn't receiving nor > xmitting any frames from/to the RTL8363SB (identifies itself > as a RTL8367RB). > > This is caused by the emac hardware not knowing the forced link > parameters for

Re: [PATCH net] selftests: pmtu: properly redirect stderr to /dev/null

2018-09-18 Thread David Miller
From: Sabrina Dubroca Date: Mon, 17 Sep 2018 15:30:06 +0200 > The cleanup function uses "$CMD 2 > /dev/null", which doesn't actually > send stderr to /dev/null, so when the netns doesn't exist, the error > message is shown. Use "2> /dev/null" instead, so that those messages > disappear, as was

Re: [RFC PATCH bpf-next v3 1/7] bpf: rename stack trace map

2018-09-18 Thread Mauricio Vasquez
On 09/18/2018 06:05 PM, Alexei Starovoitov wrote: On Tue, Sep 18, 2018 at 06:52:34AM +0200, Mauricio Vasquez B wrote: In the following patches queue and stack maps (FIFO and LIFO datastructures) will be implemented. In order to avoid confusion and a possible name clash rename stackmap.c to

Re: [PATCH][net-next] veth: rename pcpu_vstats as pcpu_lstats

2018-09-18 Thread David Miller
From: Li RongQing Date: Mon, 17 Sep 2018 18:46:55 +0800 > struct pcpu_vstats and pcpu_lstats have same members and > usage, and pcpu_lstats is used in many files, so rename > pcpu_vstats as pcpu_lstats to reduce duplicate definition > > Signed-off-by: Zhang Yu > Signed-off-by: Li RongQing

Re: [PATCH v2 2/2] netlink: add ethernet address policy types

2018-09-18 Thread David Miller
From: Johannes Berg Date: Mon, 17 Sep 2018 11:57:29 +0200 > From: Johannes Berg > > Commonly, ethernet addresses are just using a policy of > { .len = ETH_ALEN } > which leaves userspace free to send more data than it should, > which may hide bugs. > > Introduce NLA_EXACT_LEN which

Re: [PATCH v2 1/2] netlink: add NLA_REJECT policy type

2018-09-18 Thread David Miller
From: Johannes Berg Date: Mon, 17 Sep 2018 11:57:28 +0200 > From: Johannes Berg > > In some situations some netlink attributes may be used for output > only (kernel->userspace) or may be reserved for future use. It's > then helpful to be able to prevent userspace from using them in > messages

Re: [PATCH net 0/2] net: stmmac: Coalesce and tail addr fixes

2018-09-18 Thread David Miller
From: Jose Abreu Date: Mon, 17 Sep 2018 09:22:55 +0100 > The fix for coalesce timer and a fix in tail address setting that impacts > XGMAC2 operation. > > The series is: > Tested-by: Jerome Brunet > on a113 s400 board (single queue) Series applied and queued up for -stable.

Re: [PATCH net-next v2 03/10] net: sched: extend Qdisc with rcu

2018-09-18 Thread David Miller
From: Vlad Buslov Date: Mon, 17 Sep 2018 10:17:33 +0300 > +struct Qdisc *qdisc_lookup_rcu(struct net_device *dev, u32 handle) > +{ > + struct Qdisc *q; > + struct netdev_queue *nq; Reverse christmas tree for the local variables, please.

Re: [net-next 00/14][pull request] 40GbE Intel Wired LAN Driver Updates 2018-09-18

2018-09-18 Thread David Miller
From: Jeff Kirsher Date: Tue, 18 Sep 2018 15:37:17 -0700 > This series contains changes to i40evf so that it becomes a more > generic virtual function driver for current and future silicon. > > While doing the rename of i40evf to a more generic name of iavf, > we also put the driver on a severe

答复: [PATCH][net-next] netlink: avoid to allocate full skb when sending to many devices

2018-09-18 Thread Li,Rongqing
> On 09/17/2018 10:26 PM, Li RongQing wrote: > > if skb->head is vmalloc address, when this skb is delivered, full > > allocation for this skb is required, if there are many devices, the > > --- > > net/netlink/af_netlink.c | 14 -- > > 1 file changed, 8 insertions(+), 6 deletions(-)

Re: [PATCH bpf-next 2/2] xsk: fix bug when trying to use both copy and zero-copy on one queue id

2018-09-18 Thread Jakub Kicinski
On Tue, 18 Sep 2018 10:22:11 -0700, Y Song wrote: > > +/* The umem is stored both in the _rx struct and the _tx struct as we do > > + * not know if the device has more tx queues than rx, or the opposite. > > + * This might also change during run time. > > + */ > > +static void

[PATCH RFT net-next 2/2] net: phy: marvell: Avoid unnecessary soft reset

2018-09-18 Thread Florian Fainelli
The BMCR.RESET bit on Marvell PHYs appears to be acting as a commit operation, so we try to hit that bit which disrupts the link, only when an actual register programming required a change. Determine from marvell_set_polarity()'s return code whether the register value was changed and if it was,

[PATCH RFT net-next 1/2] net: phy: Stop with excessive soft reset

2018-09-18 Thread Florian Fainelli
While consolidating the PHY reset in phy_init_hw() an unconditionaly BMCR soft-reset I became quite trigger happy with those. This was later on deactivated for the Generic PHY driver on the premise that a prior software entity (e.g: bootloader) might have applied workarounds in commit 0878fff1f42c

[PATCH RFT net-next 0/2] net: phy: Eliminate unnecessary soft

2018-09-18 Thread Florian Fainelli
Hi all, This patch series eliminates unnecessary software resets of the PHY. This should hopefully not break anybody's hardware; but I would appreciate testing to make sure this is is the case. Sorry for this long email list, I wanted to make sure I reached out to all people who made changes to

Re: [PATCH net 2/2] ipv6: fix memory leak on dst->_metrics

2018-09-18 Thread Wei Wang
On Tue, Sep 18, 2018 at 4:25 PM David Ahern wrote: > > On 9/18/18 1:45 PM, Wei Wang wrote: > > From: Wei Wang > > > > When dst->_metrics and f6i->fib6_metrics share the same memory, both > > take reference count on the dst_metrics structure. However, when dst is > > destroyed, ip6_dst_destroy()

[PATCH 1/1] macsec: reflect the master interface state

2018-09-18 Thread Radu Rendec
This patch makes macsec interfaces reflect the state of the underlying interface: if the master interface changes state to up/down, the macsec interface changes its state accordingly. This closes a loophole in the macsec interface state logic: the macsec interface cannot be brought up if the

[PATCH 0/1] macsec: reflect the master interface state

2018-09-18 Thread Radu Rendec
Hi everyone, I came across an issue with macsec interfaces where they don't reflect the master interface state. On one hand you cannot set the macsec interface link state to up unless the master interface is already up, but on the other hand, if the master interface goes down while the macsec

Re: [PATCH bpf-next] flow_dissector: fix build failure without CONFIG_NET

2018-09-18 Thread Y Song
On Tue, Sep 18, 2018 at 1:20 PM Willem de Bruijn wrote: > > From: Willem de Bruijn > > If boolean CONFIG_BPF_SYSCALL is enabled, kernel/bpf/syscall.c will > call flow_dissector functions from net/core/flow_dissector.c. > > This causes this build failure if CONFIG_NET is disabled: > >

Re: [RFC PATCH bpf-next v3 7/7] selftests/bpf: add test cases for queue and stack maps

2018-09-18 Thread Alexei Starovoitov
On Tue, Sep 18, 2018 at 06:53:07AM +0200, Mauricio Vasquez B wrote: > Two types of tests are done: > - test_maps: only userspace api. > - test_progs: userspace api and ebpf helpers. > > Signed-off-by: Mauricio Vasquez B > --- > kernel/bpf/helpers.c |2 >

Re: [RFC PATCH bpf-next v3 4/7] bpf: add bpf queue and stack maps

2018-09-18 Thread Alexei Starovoitov
On Tue, Sep 18, 2018 at 06:52:51AM +0200, Mauricio Vasquez B wrote: > Implement two new kind of maps that support the peek, push and pop > operations. > > A use case for this is to keep track of a pool of elements, like > network ports in a SNAT. > > Signed-off-by: Mauricio Vasquez B > --- >

Re: [PATCH net 2/2] ipv6: fix memory leak on dst->_metrics

2018-09-18 Thread David Ahern
On 9/18/18 1:45 PM, Wei Wang wrote: > From: Wei Wang > > When dst->_metrics and f6i->fib6_metrics share the same memory, both > take reference count on the dst_metrics structure. However, when dst is > destroyed, ip6_dst_destroy() only invokes dst_destroy_metrics_generic() > which does not take

Re: [PATCH net 1/2] Revert "ipv6: fix double refcount of fib6_metrics"

2018-09-18 Thread David Ahern
On 9/18/18 1:44 PM, Wei Wang wrote: > From: Wei Wang > > This reverts commit e70a3aad44cc8b24986687ffc98c4a4f6ecf25ea. > > This change causes use-after-free on dst->_metrics. > Reported-by: John Sperbeck > Signed-off-by: Wei Wang > Signed-off-by: Eric Dumazet > --- > net/ipv6/route.c

Re: [RFC PATCH bpf-next v3 1/7] bpf: rename stack trace map

2018-09-18 Thread Alexei Starovoitov
On Tue, Sep 18, 2018 at 06:52:34AM +0200, Mauricio Vasquez B wrote: > In the following patches queue and stack maps (FIFO and LIFO > datastructures) will be implemented. In order to avoid confusion and > a possible name clash rename stackmap.c to stacktracemap.c and > stack_map_ops to

[net-next 02/14] iavf: diet and reformat

2018-09-18 Thread Jeff Kirsher
From: Jesse Brandeburg Remove a bunch of unused code and reformat a few lines. Also remove some now un-necessary files. Signed-off-by: Jesse Brandeburg Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/iavf/i40e_adminq.c | 27 -

[net-next 05/14] iavf: move i40evf files to new name

2018-09-18 Thread Jeff Kirsher
From: Jesse Brandeburg Simply move the i40evf files to the new name, updating the #includes to track the new names, and updating the Makefile as well. A future patch will remove the i40e references (after the code removal patches later in this series). Signed-off-by: Jesse Brandeburg

[net-next 07/14] iavf: rename device ID defines

2018-09-18 Thread Jeff Kirsher
From: Jesse Brandeburg Rename the device ID defines to have IAVF in them and remove all the unused defines. Signed-off-by: Jesse Brandeburg Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/iavf/i40e_adminq.c | 22 +-

[net-next 06/14] iavf: remove references to old names

2018-09-18 Thread Jeff Kirsher
From: Jesse Brandeburg Remove the register name references to I40E_VF* and change to IAVF_VF. Update the descriptor names and defines to the IAVF name. Signed-off-by: Jesse Brandeburg Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/iavf/i40e_adminq.c |

[net-next 01/14] intel-ethernet: rename i40evf to iavf

2018-09-18 Thread Jeff Kirsher
From: Jesse Brandeburg Rename the Intel Ethernet Adaptive Virtual Function driver (i40evf) to a new name (iavf) that is more consistent with the ongoing maintenance of the driver as the universal VF driver for multiple product lines. This first patch fixes up the directory names and the .ko

[net-next 10/14] iavf: replace i40e_debug with iavf version

2018-09-18 Thread Jeff Kirsher
From: Jesse Brandeburg Change another string (i40e_debug) Signed-off-by: Jesse Brandeburg Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/iavf/i40e_adminq.c | 28 +-- drivers/net/ethernet/intel/iavf/i40e_common.c | 12

[net-next 08/14] iavf: rename I40E_ADMINQ_DESC

2018-09-18 Thread Jeff Kirsher
From: Jesse Brandeburg Take care of some renames containing I40E_ADMINQ_DESC. Signed-off-by: Jesse Brandeburg Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/iavf/i40e_adminq.c | 18 +- drivers/net/ethernet/intel/iavf/i40e_adminq.h | 4

[net-next 00/14][pull request] 40GbE Intel Wired LAN Driver Updates 2018-09-18

2018-09-18 Thread Jeff Kirsher
This series contains changes to i40evf so that it becomes a more generic virtual function driver for current and future silicon. While doing the rename of i40evf to a more generic name of iavf, we also put the driver on a severe diet due to how much of the code was unneeded or was unused. The

[net-next 09/14] iavf: rename i40e_hw to iavf_hw

2018-09-18 Thread Jeff Kirsher
From: Jesse Brandeburg Fix up the i40e_hw names to new name, including versions inside other strings. Signed-off-by: Jesse Brandeburg Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/iavf/i40e_adminq.c | 43 ---

[net-next 13/14] iavf: finish renaming files to iavf

2018-09-18 Thread Jeff Kirsher
From: Jesse Brandeburg This finishes the process of renaming the files that make sense to rename (skipping adminq related files that talk to i40e), and fixes up the build and the #includes so that everything builds nicely. Signed-off-by: Jesse Brandeburg Tested-by: Andrew Bowers

[net-next 04/14] iavf: rename i40e_status to iavf_status

2018-09-18 Thread Jeff Kirsher
From: Jesse Brandeburg This is just a rename of an internal variable i40e_status, but it was a pretty big change and so deserved it's own patch. Signed-off-by: Jesse Brandeburg Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/iavf/i40e_adminq.c | 81

[net-next 14/14] intel-ethernet: use correct module license

2018-09-18 Thread Jeff Kirsher
From: Jesse Brandeburg We recently updated all our SPDX identifiers to correctly indicate our net/ethernet/intel/* drivers were always released and intended to be released under GPL v2, but the MODULE_LICENSE declaration was never updated. Fix the MODULE_LICENSE to be GPL v2, for all our

[net-next 11/14] iavf: tracing infrastructure rename

2018-09-18 Thread Jeff Kirsher
From: Jesse Brandeburg Rename the i40e_trace file and fix up all the callers to the new names inside the iavf_trace.h file. Signed-off-by: Jesse Brandeburg Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/iavf/iavf_main.c | 2 +-

Re: pegged softirq and NAPI race (?)

2018-09-18 Thread Eric Dumazet
On Tue, Sep 18, 2018 at 2:56 PM Song Liu wrote: > > > > > On Sep 18, 2018, at 2:46 PM, Eric Dumazet wrote: > > > > On Tue, Sep 18, 2018 at 2:41 PM Song Liu wrote: > >> > >> > >> > >>> > >> I would submit the patch if Eric prefer not to. :) > > > > > > Hmmm maybe the bug is really in

Re: pegged softirq and NAPI race (?)

2018-09-18 Thread Song Liu
> On Sep 18, 2018, at 2:46 PM, Eric Dumazet wrote: > > On Tue, Sep 18, 2018 at 2:41 PM Song Liu wrote: >> >> >> >>> >> I would submit the patch if Eric prefer not to. :) > > > Hmmm maybe the bug is really in ixgbe_netpoll() > > This whole ndo_poll_controller() stuff is crazy. >

Re: pegged softirq and NAPI race (?)

2018-09-18 Thread Eric Dumazet
On Tue, Sep 18, 2018 at 2:41 PM Song Liu wrote: > > > > > > I would submit the patch if Eric prefer not to. :) Hmmm maybe the bug is really in ixgbe_netpoll() This whole ndo_poll_controller() stuff is crazy. All sane implementations should only call napi_schedule()

Re: pegged softirq and NAPI race (?)

2018-09-18 Thread Song Liu
> On Sep 18, 2018, at 2:36 PM, Jeff Kirsher wrote: > > On Tue, 2018-09-18 at 14:21 -0700, Eric Dumazet wrote: >> >> On 09/18/2018 02:13 PM, Eric Dumazet wrote: >>> On Tue, Sep 18, 2018 at 1:37 PM Song Liu >>> wrote: Looks like a patch like the following fixes the issue for ixgbe.

Re: pegged softirq and NAPI race (?)

2018-09-18 Thread Song Liu
> On Sep 18, 2018, at 2:28 PM, Eric Dumazet wrote: > > On Tue, Sep 18, 2018 at 2:25 PM Florian Fainelli wrote: >> >> >> This would not be the only driver doing this unfortunately... should we >> add a __must_check annotation to help catch those (mis)uses? Though that >> could cause false

Re: pegged softirq and NAPI race (?)

2018-09-18 Thread Jeff Kirsher
On Tue, 2018-09-18 at 14:21 -0700, Eric Dumazet wrote: > > On 09/18/2018 02:13 PM, Eric Dumazet wrote: > > On Tue, Sep 18, 2018 at 1:37 PM Song Liu > > wrote: > > > > > > Looks like a patch like the following fixes the issue for ixgbe. > > > But I > > > cannot explain it yet. > > > > > > Does

Re: pegged softirq and NAPI race (?)

2018-09-18 Thread Florian Fainelli
On 09/18/2018 02:28 PM, Eric Dumazet wrote: > On Tue, Sep 18, 2018 at 2:25 PM Florian Fainelli wrote: >> >> >> This would not be the only driver doing this unfortunately... should we >> add a __must_check annotation to help catch those (mis)uses? Though that >> could cause false positives for

Re: [PATCH bpf-next] flow_dissector: fix build failure without CONFIG_NET

2018-09-18 Thread Randy Dunlap
On 9/18/18 1:20 PM, Willem de Bruijn wrote: > From: Willem de Bruijn > > If boolean CONFIG_BPF_SYSCALL is enabled, kernel/bpf/syscall.c will > call flow_dissector functions from net/core/flow_dissector.c. > > This causes this build failure if CONFIG_NET is disabled: > >

Re: pegged softirq and NAPI race (?)

2018-09-18 Thread Eric Dumazet
On Tue, Sep 18, 2018 at 2:25 PM Florian Fainelli wrote: > > > This would not be the only driver doing this unfortunately... should we > add a __must_check annotation to help catch those (mis)uses? Though that > could cause false positives for drivers using NAPI to clean their TX ring. > Well,

Re: pegged softirq and NAPI race (?)

2018-09-18 Thread Florian Fainelli
On 09/18/2018 02:13 PM, Eric Dumazet wrote: > On Tue, Sep 18, 2018 at 1:37 PM Song Liu wrote: >> > >> Looks like a patch like the following fixes the issue for ixgbe. But I >> cannot explain it yet. >> >> Does this ring a bell? > > I dunno, it looks like the NIC is generating an interrupt

Re: pegged softirq and NAPI race (?)

2018-09-18 Thread Eric Dumazet
On Tue, Sep 18, 2018 at 2:22 PM Song Liu wrote: > > Thanks Eric! > > I was looking at exactly this part. :) And it seems working! And this should also make busy polling a bit faster as well, avoiding enabling/receiving interrupts in the busy loop. > > I will run a bigger test and update

Re: pegged softirq and NAPI race (?)

2018-09-18 Thread Song Liu
> On Sep 18, 2018, at 2:13 PM, Eric Dumazet wrote: > > On Tue, Sep 18, 2018 at 1:37 PM Song Liu wrote: >> > >> Looks like a patch like the following fixes the issue for ixgbe. But I >> cannot explain it yet. >> >> Does this ring a bell? > > I dunno, it looks like the NIC is generating

Re: pegged softirq and NAPI race (?)

2018-09-18 Thread Eric Dumazet
On 09/18/2018 02:13 PM, Eric Dumazet wrote: > On Tue, Sep 18, 2018 at 1:37 PM Song Liu wrote: >> > >> Looks like a patch like the following fixes the issue for ixgbe. But I >> cannot explain it yet. >> >> Does this ring a bell? > > I dunno, it looks like the NIC is generating an interrupt

Re: pegged softirq and NAPI race (?)

2018-09-18 Thread Eric Dumazet
On Tue, Sep 18, 2018 at 1:37 PM Song Liu wrote: > > Looks like a patch like the following fixes the issue for ixgbe. But I > cannot explain it yet. > > Does this ring a bell? I dunno, it looks like the NIC is generating an interrupt while it should not, and constantly sets NAPI_STATE_MISSED.

[PATCH net 2/2] ipv6: fix memory leak on dst->_metrics

2018-09-18 Thread Wei Wang
From: Wei Wang When dst->_metrics and f6i->fib6_metrics share the same memory, both take reference count on the dst_metrics structure. However, when dst is destroyed, ip6_dst_destroy() only invokes dst_destroy_metrics_generic() which does not take care of READONLY metrics and does not release

[PATCH net 1/2] Revert "ipv6: fix double refcount of fib6_metrics"

2018-09-18 Thread Wei Wang
From: Wei Wang This reverts commit e70a3aad44cc8b24986687ffc98c4a4f6ecf25ea. This change causes use-after-free on dst->_metrics. The crash trace looks like this: [ 97.763269] BUG: KASAN: use-after-free in ip6_mtu+0x116/0x140 [ 97.769038] Read of size 4 at addr 881781d2cf84 by task

[PATCH net 0/2] ipv6: fix issues on accessing fib6_metrics

2018-09-18 Thread Wei Wang
From: Wei Wang The latest fix on the memory leak of fib6_metrics still causes use-after-free. This patch series first revert the previous fix and propose a new fix that is more inline with ipv4 logic and is tested to fix the use-after-free issue reported. Wei Wang (2): Revert "ipv6: fix

Re: [bpf-next, v4 1/5] flow_dissector: implements flow dissector BPF hook

2018-09-18 Thread Willem de Bruijn
On Tue, Sep 18, 2018 at 2:09 PM Eric Dumazet wrote: > > > > On 09/14/2018 07:46 AM, Petar Penkov wrote: > > From: Petar Penkov > > > > Adds a hook for programs of type BPF_PROG_TYPE_FLOW_DISSECTOR and > > attach type BPF_FLOW_DISSECTOR that is executed in the flow dissector > > path. The BPF

Re: pegged softirq and NAPI race (?)

2018-09-18 Thread Song Liu
> On Sep 18, 2018, at 11:17 AM, Eric Dumazet wrote: > > On Tue, Sep 18, 2018 at 10:51 AM Alexei Starovoitov wrote: >> >> On 9/18/18 6:45 AM, Eric Dumazet wrote: >>> On Tue, Sep 18, 2018 at 1:41 AM Song Liu wrote: We are debugging this issue that netconsole message triggers

[PATCH bpf-next] flow_dissector: fix build failure without CONFIG_NET

2018-09-18 Thread Willem de Bruijn
From: Willem de Bruijn If boolean CONFIG_BPF_SYSCALL is enabled, kernel/bpf/syscall.c will call flow_dissector functions from net/core/flow_dissector.c. This causes this build failure if CONFIG_NET is disabled: kernel/bpf/syscall.o: In function `__x64_sys_bpf':

Re: [Patch net-next] ipv4: initialize ra_mutex in inet_init_net()

2018-09-18 Thread Cong Wang
On Mon, Sep 17, 2018 at 12:25 AM Kirill Tkhai wrote: > In inet_init() the order of registration is: > > ip_mr_init(); > init_inet_pernet_ops(); > > This means, ipmr_net_ops pernet operations are before af_inet_ops > in pernet_list. So, there is a theoretical probability, sometimes

Re: [PATCH] net: phy: don't reschedule state machine when PHY is halted

2018-09-18 Thread Heiner Kallweit
On 18.09.2018 22:02, Florian Fainelli wrote: > On 09/18/2018 12:12 PM, Heiner Kallweit wrote: >> I think I've seen a similar or same patch before, not sure why it >> didn't make it yet. When being in state PHY_HALTED we don't have to >> reschedule the state machine, phy_start() will start it

Re: [PATCH] net: phy: don't reschedule state machine when PHY is halted

2018-09-18 Thread Florian Fainelli
On 09/18/2018 12:12 PM, Heiner Kallweit wrote: > I think I've seen a similar or same patch before, not sure why it > didn't make it yet. When being in state PHY_HALTED we don't have to > reschedule the state machine, phy_start() will start it again. Yes, this is conceptually the same patch as as

[PATCH net-next 2/2] net: phy: call state machine synchronously in phy_stop

2018-09-18 Thread Heiner Kallweit
phy_stop() may be called e.g. when suspending, therefore all needed actions should be performed synchronously. Therefore add a synchronous call to the state machine. Signed-off-by: Heiner Kallweit --- drivers/net/phy/phy.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH net-next 1/2] net: linkwatch: add check for netdevice being present to linkwatch_do_dev

2018-09-18 Thread Heiner Kallweit
When bringing down the netdevice (incl. detaching it) and calling netif_carrier_off directly or indirectly the latter triggers an asynchronous linkwatch event. This linkwatch event eventually may fail to access chip registers in the ndo_get_stats/ndo_get_stats64 callback because the device isn't

[PATCH net-next 0/2] net: phy: make phy_stop() synchronous

2018-09-18 Thread Heiner Kallweit
There have been few not that successful attempts in the past to make phy_stop() a synchronous call instead of just changing the state. Patch 1 of this series addresses an issue which prevented this change. At least for me it works fine now. Would appreciate if Geert could re-test as well that

[PATCH] net: phy: don't reschedule state machine when PHY is halted

2018-09-18 Thread Heiner Kallweit
I think I've seen a similar or same patch before, not sure why it didn't make it yet. When being in state PHY_HALTED we don't have to reschedule the state machine, phy_start() will start it again. Signed-off-by: Heiner Kallweit --- drivers/net/phy/phy.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH net-next] cxgb4vf: Add ethtool private flags for changing force_link_up

2018-09-18 Thread Jakub Kicinski
On Tue, 18 Sep 2018 18:37:23 +0530, Arjun Vynipadath wrote: > Forcing link up of virtual interfaces even when physical link is down > causes packet drops and ping failures during bonding failover. Hence > adding a ethtool private flag to toggle force_link_up whenever required. > > Signed-off-by:

Re: pegged softirq and NAPI race (?)

2018-09-18 Thread Eric Dumazet
On Tue, Sep 18, 2018 at 10:51 AM Alexei Starovoitov wrote: > > On 9/18/18 6:45 AM, Eric Dumazet wrote: > > On Tue, Sep 18, 2018 at 1:41 AM Song Liu wrote: > >> > >> We are debugging this issue that netconsole message triggers pegged softirq > >> (ksoftirqd taking 100% CPU for many seconds). We

Re: [bpf-next, v4 1/5] flow_dissector: implements flow dissector BPF hook

2018-09-18 Thread Eric Dumazet
On 09/14/2018 07:46 AM, Petar Penkov wrote: > From: Petar Penkov > > Adds a hook for programs of type BPF_PROG_TYPE_FLOW_DISSECTOR and > attach type BPF_FLOW_DISSECTOR that is executed in the flow dissector > path. The BPF program is per-network namespace ... > > + rcu_read_lock(); >

Re: pegged softirq and NAPI race (?)

2018-09-18 Thread Alexei Starovoitov
On 9/18/18 6:45 AM, Eric Dumazet wrote: > On Tue, Sep 18, 2018 at 1:41 AM Song Liu wrote: >> >> We are debugging this issue that netconsole message triggers pegged softirq >> (ksoftirqd taking 100% CPU for many seconds). We found this issue in >> production with both bnxt and ixgbe, on a 4.11

Re: [RFC 2/5] netlink: set extack error message in nla_validate()

2018-09-18 Thread Johannes Berg
On Tue, 2018-09-18 at 10:18 -0700, David Ahern wrote: > On 9/18/18 6:12 AM, Johannes Berg wrote: > > diff --git a/lib/nlattr.c b/lib/nlattr.c > > index 120ad569e13d..efbd6c1aff29 100644 > > --- a/lib/nlattr.c > > +++ b/lib/nlattr.c > > @@ -181,9 +181,13 @@ int nla_validate(const struct nlattr

Re: [PATCH bpf] tools: bpf: fix license for a compat header file

2018-09-18 Thread Y Song
On Tue, Sep 18, 2018 at 10:15 AM Jakub Kicinski wrote: > > libc_compat.h is used by libbpf so make sure it's licensed under > LGPL or BSD license. The license change should be OK, I'm the only > author of the file. > > Signed-off-by: Jakub Kicinski > Reviewed-by: Quentin Monnet Acked-by:

Re: [PATCH bpf-next 2/2] xsk: fix bug when trying to use both copy and zero-copy on one queue id

2018-09-18 Thread Y Song
On Tue, Sep 18, 2018 at 3:13 AM Magnus Karlsson wrote: > > Previously, the xsk code did not record which umem was bound to a > specific queue id. This was not required if all drivers were zero-copy > enabled as this had to be recorded in the driver anyway. So if a user > tried to bind two umems

Re: [RFC 1/5] netlink: remove NLA_NESTED_COMPAT

2018-09-18 Thread David Ahern
On 9/18/18 6:12 AM, Johannes Berg wrote: > From: Johannes Berg > > This isn't used anywhere, so we might as well get rid of it. > > Signed-off-by: Johannes Berg > --- > include/net/netlink.h | 2 -- > lib/nlattr.c | 11 --- > 2 files changed, 13 deletions(-) > Reviewed-by:

Re: [RFC 2/5] netlink: set extack error message in nla_validate()

2018-09-18 Thread David Ahern
On 9/18/18 6:12 AM, Johannes Berg wrote: > diff --git a/lib/nlattr.c b/lib/nlattr.c > index 120ad569e13d..efbd6c1aff29 100644 > --- a/lib/nlattr.c > +++ b/lib/nlattr.c > @@ -181,9 +181,13 @@ int nla_validate(const struct nlattr *head, int len, int > maxtype, > int rem; > >

[PATCH bpf] tools: bpf: fix license for a compat header file

2018-09-18 Thread Jakub Kicinski
libc_compat.h is used by libbpf so make sure it's licensed under LGPL or BSD license. The license change should be OK, I'm the only author of the file. Signed-off-by: Jakub Kicinski Reviewed-by: Quentin Monnet --- tools/include/tools/libc_compat.h | 2 +- 1 file changed, 1 insertion(+), 1

Re: pegged softirq and NAPI race (?)

2018-09-18 Thread Song Liu
> On Sep 18, 2018, at 9:33 AM, Eric Dumazet wrote: > > On Tue, Sep 18, 2018 at 9:19 AM Song Liu wrote: >> >> >> >>> On Sep 18, 2018, at 6:45 AM, Eric Dumazet wrote: >>> >>> On Tue, Sep 18, 2018 at 1:41 AM Song Liu wrote: We are debugging this issue that netconsole message

Re: pegged softirq and NAPI race (?)

2018-09-18 Thread Eric Dumazet
On Tue, Sep 18, 2018 at 9:19 AM Song Liu wrote: > > > > > On Sep 18, 2018, at 6:45 AM, Eric Dumazet wrote: > > > > On Tue, Sep 18, 2018 at 1:41 AM Song Liu wrote: > >> > >> We are debugging this issue that netconsole message triggers pegged softirq > >> (ksoftirqd taking 100% CPU for many

Re: pegged softirq and NAPI race (?)

2018-09-18 Thread Rik van Riel
On Tue, 2018-09-18 at 12:19 -0400, Song Liu wrote: > > On Sep 18, 2018, at 6:45 AM, Eric Dumazet > > wrote: > > > > On Tue, Sep 18, 2018 at 1:41 AM Song Liu > > wrote: > > > > > > We are debugging this issue that netconsole message triggers > > > pegged softirq > > > (ksoftirqd taking 100% CPU

Re: pegged softirq and NAPI race (?)

2018-09-18 Thread Song Liu
> On Sep 18, 2018, at 6:45 AM, Eric Dumazet wrote: > > On Tue, Sep 18, 2018 at 1:41 AM Song Liu wrote: >> >> We are debugging this issue that netconsole message triggers pegged softirq >> (ksoftirqd taking 100% CPU for many seconds). We found this issue in >> production with both bnxt and

[PATCH net-next v5 13/20] zinc: BLAKE2s x86_64 implementation

2018-09-18 Thread Jason A. Donenfeld
These implementations from Samuel Neves support AVX and AVX-512VL. Originally this used AVX-512F, but Skylake thermal throttling made AVX-512VL more attractive and possible to do with negligable difference. Signed-off-by: Jason A. Donenfeld Signed-off-by: Samuel Neves Cc: Andy Lutomirski Cc:

[bpf PATCH v4 2/3] bpf: sockmap, fix transition through disconnect without close

2018-09-18 Thread John Fastabend
It is possible (via shutdown()) for TCP socks to go trough TCP_CLOSE state via tcp_disconnect() without actually calling tcp_close which would then call our bpf_tcp_close() callback. Because of this a user could disconnect a socket then put it in a LISTEN state which would break our assumptions

[bpf PATCH v4 1/3] bpf: sockmap only allow ESTABLISHED sock state

2018-09-18 Thread John Fastabend
After this patch we only allow socks that are in ESTABLISHED state or are being added via a sock_ops event that is transitioning into an ESTABLISHED state. By allowing sock_ops events we allow users to manage sockmaps directly from sock ops programs. The two supported sock_ops ops are

[bpf PATCH v4 3/3] bpf: test_maps, only support ESTABLISHED socks

2018-09-18 Thread John Fastabend
Ensure that sockets added to a sock{map|hash} that is not in the ESTABLISHED state is rejected. Fixes: 1aa12bdf1bfb ("bpf: sockmap, add sock close() hook to remove socks") Signed-off-by: John Fastabend Acked-by: Yonghong Song --- tools/testing/selftests/bpf/test_maps.c | 10 +++--- 1

[bpf PATCH v4 0/3] bpf, sockmap ESTABLISHED state only

2018-09-18 Thread John Fastabend
Eric noted that using the close callback is not sufficient to catch all transitions from ESTABLISHED state to a LISTEN state. So this series does two things. First, only allow adding socks in ESTABLISH state and second use unhash callback to catch tcp_disconnect() transitions. v2: added check for

Re: [PATCH bpf-next] samples/bpf: fix a compilation failure

2018-09-18 Thread Daniel Borkmann
On 09/18/2018 07:08 AM, Yonghong Song wrote: > samples/bpf build failed with the following errors: > > $ make samples/bpf/ > ... > HOSTCC samples/bpf/sockex3_user.o > /data/users/yhs/work/net-next/samples/bpf/sockex3_user.c:16:8: error: > redefinition of ‘struct bpf_flow_keys’ >

[PATCH net] sfp: fix oops with ethtool -m

2018-09-18 Thread Russell King
If a network interface is created prior to the SFP socket being available, ethtool can request module information. This unfortunately leads to an oops: Unable to handle kernel NULL pointer dereference at virtual address 0008 pgd = (ptrval) [0008] *pgd=7c400831, *pte=,

Re: [PATCH bpf-next v2] tools/bpf: bpftool: improve output format for bpftool net

2018-09-18 Thread Daniel Borkmann
On 09/18/2018 01:13 AM, Yonghong Song wrote: > This is a followup patch for Commit f6f3bac08ff9 > ("tools/bpf: bpftool: add net support"). > Some improvements are made for the bpftool net output. > Specially, plain output is more concise such that > per attachment should nicely fit in one line. >

RE: [Intel-wired-lan] [PATCH net-next v2 02/14] iavf: diet and reformat

2018-09-18 Thread Bowers, AndrewX
> -Original Message- > From: Intel-wired-lan [mailto:intel-wired-lan-boun...@osuosl.org] On > Behalf Of Jesse Brandeburg > Sent: Friday, September 14, 2018 5:38 PM > To: netdev@vger.kernel.org; intel-wired-...@lists.osuosl.org > Subject: [Intel-wired-lan] [PATCH net-next v2 02/14] iavf:

Re: [PATCH][net-next] netlink: avoid to allocate full skb when sending to many devices

2018-09-18 Thread Eric Dumazet
On 09/17/2018 10:26 PM, Li RongQing wrote: > if skb->head is vmalloc address, when this skb is delivered, full > allocation for this skb is required, if there are many devices, > the full allocation will be called for every devices > > now using the first time allocated skb when iterate other

Re: pegged softirq and NAPI race (?)

2018-09-18 Thread Eric Dumazet
On Tue, Sep 18, 2018 at 1:41 AM Song Liu wrote: > > We are debugging this issue that netconsole message triggers pegged softirq > (ksoftirqd taking 100% CPU for many seconds). We found this issue in > production with both bnxt and ixgbe, on a 4.11 based kernel. This is easily > reproducible with

Re: [PATCH]ipv6: multicast: In mld_send_cr function moving read lock to second for loop

2018-09-18 Thread Guruswamy Basavaiah
> This will lead to deadlocks, idev->mc_lock must be taken with _bh(). Modified the existing spin_lock to spin_lock_bh > I have zero confidence in this change, did you do any stress testing > with lockdep enabled? It would have caught this quickly. With LOCKDEP enabled ran LTP multicast stress

Re: [PATCH net-next v3 1/2] netlink: ipv4 igmp join notifications

2018-09-18 Thread Patrick Ruddy
On Thu, 2018-09-13 at 10:03 -0700, Roopa Prabhu wrote: > On Thu, Sep 6, 2018 at 8:40 PM, Roopa Prabhu > wrote: > > On Thu, Sep 6, 2018 at 2:10 AM, Patrick Ruddy > > wrote: > > > Some userspace applications need to know about IGMP joins from the > > > kernel for 2 reasons: > > > 1. To allow the

[RFC 4/5] netlink: prepare validate extack setting for recursion

2018-09-18 Thread Johannes Berg
From: Johannes Berg In one of my previous patches in this area I introduced code to pass out just the error message to store in the extack, for use in NLA_REJECT. Change this code now to set both the error message and the bad attribute pointer, and carry around a boolean indicating that the

[RFC 2/5] netlink: set extack error message in nla_validate()

2018-09-18 Thread Johannes Berg
From: Johannes Berg In nla_parse() we already set this, but it makes sense to also do it in nla_validate() which already also sets the bad attribute pointer. CC: David Ahern Signed-off-by: Johannes Berg --- lib/nlattr.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git

  1   2   >