Re: [PATCH net] net: gso: Fix skb_segment splat when splitting gso_size mangled skb having linear-headed frag_list

2019-09-05 Thread Shmulik Ladkani
On Thu, 5 Sep 2019 17:51:20 -0400 Willem de Bruijn wrote: > On Thu, Sep 5, 2019 at 2:36 PM Shmulik Ladkani > wrote: > > > > + if (mss != GSO_BY_FRAGS && > > + (skb_shinfo(head_skb)->gso_type & SKB_GSO_DODGY)) { > > + /* gso_size is untrusted. > > +*

Re: [PATCH net] net: gso: Fix skb_segment splat when splitting gso_size mangled skb having linear-headed frag_list

2019-09-05 Thread Shmulik Ladkani
On Thu, 5 Sep 2019 14:49:44 -0700 Alexander Duyck wrote: > I would change the order of the tests you use here so that we can > eliminate the possibility of needing to perform many tests for the > more common cases. You could probably swap "list_skb" and "mss != > GSO_BY_FRAGS" since list_skb is m

Re: [BACKPORT 4.14.y v2 5/6] ppp: mppe: Revert "ppp: mppe: Add softdep to arc4"

2019-09-05 Thread Baolin Wang
On Fri, 6 Sep 2019 at 00:16, Eric Biggers wrote: > > On Thu, Sep 05, 2019 at 11:10:45AM +0800, Baolin Wang wrote: > > From: Eric Biggers > > > > [Upstream commit 25a09ce79639a8775244808c17282c491cff89cf] > > > > Commit 0e5a610b5ca5 ("ppp: mppe: switch to RC4 library interface"), > > which was mer

Re: [patch net-next] net: fib_notifier: move fib_notifier_ops from struct net into per-net struct

2019-09-05 Thread Jiri Pirko
Fri, Sep 06, 2019 at 07:54:39AM CEST, eric.duma...@gmail.com wrote: > > >On 9/5/19 8:06 PM, Jiri Pirko wrote: >> From: Jiri Pirko >> >> No need for fib_notifier_ops to be in struct net. It is used only by >> fib_notifier as a private data. Use net_generic to introduce per-net >> fib_notifier stru

Re: [patch net-next] net: fib_notifier: move fib_notifier_ops from struct net into per-net struct

2019-09-05 Thread Eric Dumazet
On 9/5/19 8:06 PM, Jiri Pirko wrote: > From: Jiri Pirko > > No need for fib_notifier_ops to be in struct net. It is used only by > fib_notifier as a private data. Use net_generic to introduce per-net > fib_notifier struct and move fib_notifier_ops there. > > ... > static struct pernet_oper

Re: [PATCH v2 2/2] PTP: add support for one-shot output

2019-09-05 Thread Richard Cochran
On Thu, Sep 05, 2019 at 01:03:46PM +0300, Felipe Balbi wrote: > This a bit confusing, really. Specially when the comment right above > those flags states: > > /* PTP_xxx bits, for the flags field within the request structures. */ Agreed, it is confusing. Go ahead and remove this comment. > Seem

Re: [PATCH] net-ipv6: addrconf_f6i_alloc - fix non-null pointer check to !IS_ERR()

2019-09-05 Thread Eric Dumazet
On Fri, Sep 6, 2019 at 5:56 AM Maciej Żenczykowski wrote: > > From: Maciej Żenczykowski > > Fixes a stupid bug I recently introduced... > ip6_route_info_create() returns an ERR_PTR(err) and not a NULL on error. > > Fixes: d55a2e374a94 ("net-ipv6: fix excessive RTF_ADDRCONF flag on ::1/128 > loca

Need more information on "ifi_change" in "struct ifinfomsg"

2019-09-05 Thread dhan lin
Hi All, There is a field called ifi_change in "struct ifinfomsg". man page for rtnetlink says its for future use and should be always set to 0x. But ive run some sample tests, to confirm the value is not as per man pages explanation. Its 0 most of the times and non-zero sometimes. I've t

[PATCH] net-ipv6: addrconf_f6i_alloc - fix non-null pointer check to !IS_ERR()

2019-09-05 Thread Maciej Żenczykowski
From: Maciej Żenczykowski Fixes a stupid bug I recently introduced... ip6_route_info_create() returns an ERR_PTR(err) and not a NULL on error. Fixes: d55a2e374a94 ("net-ipv6: fix excessive RTF_ADDRCONF flag on ::1/128 local route (and others)'") Cc: David Ahern Cc: Lorenzo Colitti Cc: Eric Du

RE: [PATCH bpf-next] kbuild: replace BASH-specific ${@:2} with shift and ${@}

2019-09-05 Thread yamada.masahiro
> -Original Message- > From: Andrii Nakryiko > Sent: Friday, September 06, 2019 3:00 AM > To: b...@vger.kernel.org; netdev@vger.kernel.org; a...@fb.com; > dan...@iogearbox.net > Cc: andrii.nakry...@gmail.com; kernel-t...@fb.com; Andrii Nakryiko > ; Stephen Rothwell ; Yamada, > Masahiro/山

Re: [PATCH v2] net-ipv6: fix excessive RTF_ADDRCONF flag on ::1/128 local route (and others)

2019-09-05 Thread Maciej Żenczykowski
> Shouldn't it use > > if (!IS_ERR(f6i)) > f6i->dst_nocount = true; > > ??? Yes, certainly. I'll send a fix.

[PATCH net v2] isdn/capi: check message length in capi_write()

2019-09-05 Thread Eric Biggers
From: Eric Biggers syzbot reported: BUG: KMSAN: uninit-value in capi_write+0x791/0xa90 drivers/isdn/capi/capi.c:700 CPU: 0 PID: 10025 Comm: syz-executor379 Not tainted 4.20.0-rc7+ #2 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call

RE: [PATCH REPOST 1/2] can: flexcan: fix deadlock when using self wakeup

2019-09-05 Thread Joakim Zhang
> -Original Message- > From: Sean Nyekjaer > Sent: 2019年9月5日 21:18 > To: Joakim Zhang ; m...@pengutronix.de; > linux-...@vger.kernel.org > Cc: w...@grandegger.com; netdev@vger.kernel.org; dl-linux-imx > ; Martin Hundebøll > Subject: Re: [PATCH REPOST 1/2] can: flexcan: fix deadlock when

[PATCH net-next,v3 3/4] net: flow_offload: mangle action at byte level

2019-09-05 Thread Pablo Neira Ayuso
The flow mangle action is originally modeled after the tc pedit action, this has a number of shortcomings: 1) The tc pedit offset must be set on the 32-bits boundaries. Many protocol header field offsets are not aligned to 32-bits, eg. port destination, port source and ethernet destination.

[PATCH net-next,v3 1/4] net: flow_offload: flip mangle action mask

2019-09-05 Thread Pablo Neira Ayuso
Userspace tc pedit action performs a bitwise NOT operation on the mask. All of the existing drivers in the tree undo this operation. Prepare the mangle mask in the way the drivers expect from the tc_setup_flow_action() function. Signed-off-by: Pablo Neira Ayuso --- drivers/net/ethernet/chelsio/c

[PATCH net-next,v3 2/4] net: flow_offload: bitwise AND on mangle action value field

2019-09-05 Thread Pablo Neira Ayuso
Drivers perform a bitwise AND on the value and the mask. Update tc_setup_flow_action() to perform this operation so drivers do not need to do this. Signed-off-by: Pablo Neira Ayuso --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c | 3 +-- drivers/net/ethernet/mellanox/mlx5/core/en_tc.c

[PATCH net-next,v3 4/4] netfilter: nft_payload: packet mangling offload support

2019-09-05 Thread Pablo Neira Ayuso
This patch allows for mangling packet fields using hardware offload infrastructure. Signed-off-by: Pablo Neira Ayuso --- net/netfilter/nft_payload.c | 73 + 1 file changed, 73 insertions(+) diff --git a/net/netfilter/nft_payload.c b/net/netfilter/nft_

[PATCH net-next,v3 0/4] flow_offload: update mangle action representation

2019-09-05 Thread Pablo Neira Ayuso
This patch updates the mangle action representation: Patch 1) Undo bitwise NOT operation on the mangle mask (coming from tc pedit userspace). Patch 2) mangle value &= mask from the front-end side. Patch 3) adjust offset, length and coalesce consecutive pedit keys into one singl

Re: [PATCH bpf-next] kbuild: replace BASH-specific ${@:2} with shift and ${@}

2019-09-05 Thread Yonghong Song
On 9/5/19 10:59 AM, Andrii Nakryiko wrote: > ${@:2} is BASH-specific extension, which makes link-vmlinux.sh rely on > BASH. Use shift and ${@} instead to fix this issue. > > Reported-by: Stephen Rothwell > Fixes: 341dfcf8d78e ("btf: expose BTF info through sysfs") > Cc: Stephen Rothwell > Cc:

Re: [PATCH v2 bpf-next 2/3] bpf: implement CAP_BPF

2019-09-05 Thread Alexei Starovoitov
On Thu, Sep 05, 2019 at 10:37:03AM +0200, Daniel Borkmann wrote: > On 9/4/19 5:21 PM, Alexei Starovoitov wrote: > > On 9/4/19 8:16 AM, Daniel Borkmann wrote: > > > opening/creating BPF maps" error="Unable to create map > > > /run/cilium/bpffs/tc/globals/cilium_lxc: operation not permitted" > > > su

Re: [PATCH net] net: gso: Fix skb_segment splat when splitting gso_size mangled skb having linear-headed frag_list

2019-09-05 Thread Willem de Bruijn
On Thu, Sep 5, 2019 at 2:36 PM Shmulik Ladkani wrote: > > Historically, support for frag_list packets entering skb_segment() was > limited to frag_list members terminating on exact same gso_size > boundaries. This is verified with a BUG_ON since commit 89319d3801d1 > ("net: Add frag_list support t

[net-next 06/14] net/mlx5: fix missing assignment of variable err

2019-09-05 Thread Saeed Mahameed
From: Colin Ian King The error return from a call to mlx5_flow_namespace_set_peer is not being assigned to variable err and hence the error check following the call is currently not working. Fix this by assigning ret as intended. Addresses-Coverity: ("Logically dead code") Fixes: 8463daf17e80 (

[net-next 11/14] net/mlx5: DR, Fix error return code in dr_domain_init_resources()

2019-09-05 Thread Saeed Mahameed
From: Wei Yongjun Fix to return negative error code -ENOMEM from the error handling case instead of 0, as done elsewhere in this function. Fixes: 4ec9e7b02697 ("net/mlx5: DR, Expose steering domain functionality") Signed-off-by: Wei Yongjun Signed-off-by: Saeed Mahameed --- drivers/net/ethern

[net-next 01/14] net/mlx5e: Fix static checker warning of potential pointer math issue

2019-09-05 Thread Saeed Mahameed
From: Eran Ben Elisha Cited patch have an issue in WARN_ON_ONCE check, with wrong address ranges are compared. Fix that by changing pointer types from u64* to void*. This will also make code simpler to read. In addition mlx5e_hv_vhca_fill_ring_stats can get void pointer, so remove the unnecessar

[net-next 08/14] net/mlx5e: kTLS, Remove unused function parameter

2019-09-05 Thread Saeed Mahameed
From: Tariq Toukan SKB parameter is no longer used in tx_post_resync_dump(), remove it. Signed-off-by: Tariq Toukan Reviewed-by: Eran Ben Elisha Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletio

[net-next 09/14] net/mlx5e: Remove unnecessary clear_bit()s

2019-09-05 Thread Saeed Mahameed
From: Maxim Mikityanskiy Don't clear MLX5E_SQ_STATE_ENABLED on error in mlx5e_open_txqsq and mlx5e_open_icosq, because it's not set there, and is 0 by default. Fixes: acc6c5953af1 ("net/mlx5e: Split open/close channels to stages") Fixes: 9d18b5144a0a ("net/mlx5e: Split open/close ICOSQ into stag

[net-next 07/14] net/mlx5: Use PTR_ERR_OR_ZERO rather than its implementation

2019-09-05 Thread Saeed Mahameed
From: zhong jiang PTR_ERR_OR_ZERO contains if(IS_ERR(...)) + PTR_ERR. It is better to use it directly. hence just replace it. Signed-off-by: zhong jiang Acked-by: Saeed Mahameed Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 5 + 1 file changed, 1 ins

[net-next 14/14] net/mlx5e: Add port buffer's congestion counters

2019-09-05 Thread Saeed Mahameed
From: Aya Levin Add 3 counters per priority to ethtool using PPCNT: 1) rx_prio[p]_buf_discard - the number of packets discarded by device due to lack of per host receive buffers 2) rx_prio[p]_cong_discard - the number of packets discarded by device due to per host congestion 3) rx_prio[p]_m

[net-next 12/14] net/mlx5: DR, Remove redundant dev_name print from err log

2019-09-05 Thread Saeed Mahameed
mlx5_core_err already prints the name of the device. Signed-off-by: Saeed Mahameed --- .../mellanox/mlx5/core/steering/dr_domain.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_domain.c b/drivers/ne

[net-next 13/14] net/mlx5: Expose HW capability bits for port buffer per priority congestion counters

2019-09-05 Thread Saeed Mahameed
From: Aya Levin Map capability bit indicating that HCA supports port buffer's congestion counters. Also map registers with the corresponding counters. Signed-off-by: Aya Levin Reviewed-by: Moshe Shemesh Signed-off-by: Saeed Mahameed --- include/linux/mlx5/device.h | 1 + include/linux/mlx

[net-next 10/14] net/mlx5: DR, Remove useless set memory to zero use memset()

2019-09-05 Thread Saeed Mahameed
From: Wei Yongjun The memory return by kzalloc() has already be set to zero, so remove useless memset(0). Signed-off-by: Wei Yongjun Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethe

[net-next 05/14] net/mlx5: fix spelling mistake "offlaods" -> "offloads"

2019-09-05 Thread Saeed Mahameed
From: Colin Ian King There is a spelling mistake in a NL_SET_ERR_MSG_MOD error message. Fix it. Signed-off-by: Colin Ian King Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/devlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/eth

[pull request][net-next 00/14] Mellanox, mlx5 cleanups & port congestion stats

2019-09-05 Thread Saeed Mahameed
Hi Dave, This series provides 12 mlx5 cleanup patches and last 2 patches provide port congestion stats to ethtool. For more information please see tag log below. Please pull and let me know if there is any problem. Thanks, Saeed. --- The following changes since commit 0e5b36bc4c1fccfc18dd851d9

[net-next 03/14] net/mlx5e: Use ipv6_stub to avoid dependency with ipv6 being a module

2019-09-05 Thread Saeed Mahameed
mlx5 is dependent on IPv6 tristate since we use ipv6's nd_tbl directly, alternatively we can use ipv6_stub->nd_tbl and remove the dependency. Reported-by: Walter Harms Reviewed-by: Mark Bloch Reviewed-by: Vlad Buslov Signed-off-by: Saeed Mahameed --- .../net/ethernet/mellanox/mlx5/core/Kconfi

[net-next 02/14] net/mlx5: Kconfig: Fix MLX5_CORE dependency with PCI_HYPERV_INTERFACE

2019-09-05 Thread Saeed Mahameed
From: Mao Wenan When MLX5_CORE=y and PCI_HYPERV_INTERFACE=m, below errors are found: drivers/net/ethernet/mellanox/mlx5/core/en_main.o: In function `mlx5e_nic_enable': en_main.c:(.text+0xb649): undefined reference to `mlx5e_hv_vhca_stats_create' drivers/net/ethernet/mellanox/mlx5/core/en_main.o:

[net-next 04/14] net/mlx5e: Remove leftover declaration

2019-09-05 Thread Saeed Mahameed
From: Roi Dayan This function was removed in the cited commit below. Fixes: 13e509a4c194 ("net/mlx5e: Remove leftover code from the PF netdev being uplink rep") Signed-off-by: Roi Dayan Reviewed-by: Vlad Buslov Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/en_rep

Re: [PATCH net] net: gso: Fix skb_segment splat when splitting gso_size mangled skb having linear-headed frag_list

2019-09-05 Thread Alexander Duyck
On Thu, Sep 5, 2019 at 11:36 AM Shmulik Ladkani wrote: > > Historically, support for frag_list packets entering skb_segment() was > limited to frag_list members terminating on exact same gso_size > boundaries. This is verified with a BUG_ON since commit 89319d3801d1 > ("net: Add frag_list support

Re: [PATCH net-next v4 1/1] net: openvswitch: Set OvS recirc_id from tc chain index

2019-09-05 Thread Pravin Shelar
On Wed, Sep 4, 2019 at 6:56 AM Paul Blakey wrote: > > Offloaded OvS datapath rules are translated one to one to tc rules, > for example the following simplified OvS rule: > > recirc_id(0),in_port(dev1),eth_type(0x0800),ct_state(-trk) > actions:ct(),recirc(2) > > Will be translated to the followin

[net-next 12/16] ice: update Tx context struct

2019-09-05 Thread Jeff Kirsher
From: Ashish Shah Add internal usage flag, bit 91 as described in spec. Update width of internal queue state to 122 also as described in spec. Signed-off-by: Ashish Shah Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ice/ice_common.c| 3 ++- drivers/n

[net-next 05/16] ice: move code closer together

2019-09-05 Thread Jeff Kirsher
From: Jesse Brandeburg This is a simple patch to move the assignment to a local variable closer to the site where the local variable is used. This can help readability and also maybe performance, although the performance enhancement is really dependent upon the compiler. No functional change.

[net-next 14/16] ice: Minor refactor in queue management

2019-09-05 Thread Jeff Kirsher
From: Anirudh Venkataramanan Remove q_left_tx and q_left_rx from the PF struct as these can be obtained by calling ice_get_avail_txq_count and ice_get_avail_rxq_count respectively. The function ice_determine_q_usage is only setting num_lan_tx and num_lan_rx in the PF structure, and these are lat

[net-next 07/16] ice: change work limit to a constant

2019-09-05 Thread Jeff Kirsher
From: Jesse Brandeburg The driver has supported a transmit work limit that was configurable from ethtool for a long time, but there are no good use cases for having it be a variable that can be changed at run time. In addition, this variable was noted to be causing performance overhead due to ca

[net-next 06/16] ice: small efficiency fixes

2019-09-05 Thread Jeff Kirsher
From: Jesse Brandeburg Add a small bit of efficiency to the code by adding a prefetch of the port_info structure in order to help avoid a cache miss a little later on in execution. Also add an unlikely statement to a branch which generally will never happen in normal operation. Signed-off-by: J

[net-next 13/16] ice: Allow for delayed LLDP MIB change registration

2019-09-05 Thread Jeff Kirsher
From: Dave Ertman Add an additional boolean parameter to the ice_init_dcb function. This boolean controls if the LLDP MIB change events are registered for. Also, add a new function defined ice_cfg_lldp_mib_change. The additional function is necessary to be able to register for LLDP MIB change

[net-next 02/16] ice: Add ice_get_main_vsi to get PF/main VSI

2019-09-05 Thread Jeff Kirsher
From: Anirudh Venkataramanan There are multiple places where we currently use ice_find_vsi_by_type to get the PF (a.k.a. main) VSI. The PF VSI by definition is always the first element in the pf->vsi array (i.e. pf->vsi[0]). So instead add and use a new helper function ice_get_main_vsi, which jus

[net-next 15/16] ice: change default number of receive descriptors

2019-09-05 Thread Jeff Kirsher
From: Jesse Brandeburg The driver should start out with a reasonable number of descriptors that can prevent drops due to a CPU being in a power management state. Change the default number of descriptors to 2048. The user can always change the value at runtime. Transmit descriptor counts are not

[net-next 10/16] ice: Check for DCB capability before initializing DCB

2019-09-05 Thread Jeff Kirsher
From: Anirudh Venkataramanan Check the ICE_FLAG_DCB_CAPABLE before calling ice_init_pf_dcb. Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ice/ice_dcb_lib.c | 3 --- drivers/net/ethernet/intel/ice/ice_main.c| 15

[net-next 09/16] ice: report link down for VF when PF's queues are not enabled

2019-09-05 Thread Jeff Kirsher
From: Lukasz Czapnik This is port of a fix from i40e commit 2ad1274fa35a ("i40e: don't report link up for a VF who hasn't enabled queues") Older VF drivers do not respond well to receiving a link up notification before queues are enabled. This can cause their state machine to think that it is sa

[net-next 11/16] ice: Report VF link status with opcode to get resources

2019-09-05 Thread Jeff Kirsher
From: Akeem G Abodunrin This patch changes how and when the driver report link status, instead of waiting till the call to enable queues for VF, we should report link status earlier with opcode to get VF resources - So as to avoid reporting erroneous information, especially when queues have not b

[net-next 08/16] ice: Reliably reset VFs

2019-09-05 Thread Jeff Kirsher
From: Mitch Williams When a PFR (or bigger reset) occurs, the device clears the VF_MBX_ARQLEN register for all VFs. But if a VFR is triggered by a VF, the device does NOT clear this register, and the VF driver will never see the reset. When this happens, the VF driver will eventually timeout and

[net-next 16/16] ice: Rework around device/function capabilities

2019-09-05 Thread Jeff Kirsher
From: Anirudh Venkataramanan ice_parse_caps is printing capabilities in a different way when compared to the variable names. This makes it difficult to search for the right strings in the debug logs. So this patch updates the print strings to be exactly the same as the fields' name in the structu

[net-next 00/16][pull request] 100GbE Intel Wired LAN Driver Updates 2019-09-05

2019-09-05 Thread Jeff Kirsher
This series contains updates to ice driver. Brett fixes the setting of num_q_vectors by using the maximum number between the allocated transmit and receive queues. Anirudh simplifies the code to use a helper function to return the main VSI, which is the first element in the pf->vsi array. Adds a

[net-next 03/16] ice: Check root pointer for validity

2019-09-05 Thread Jeff Kirsher
From: Anirudh Venkataramanan ice_sched_get_tc_node uses pi->root without checking for NULL. Add a check to prevent NULL pointer dereference. Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ice/ice_sched.c | 2 +- 1 fil

[net-next 01/16] ice: Update fields in ice_vsi_set_num_qs when reconfiguring

2019-09-05 Thread Jeff Kirsher
From: Brett Creeley Currently when vsi->req_txqs or vsi->req_rxqs are set we don't correctly set the number of vsi->num_q_vectors. Fix this by setting the number of queue vectors based on the max between the vsi->alloc_txqs and vsi->alloc_rxqs. Signed-off-by: Brett Creeley Tested-by: Andrew Bow

[net-next 04/16] ice: clean up arguments

2019-09-05 Thread Jeff Kirsher
From: Jesse Brandeburg There are a couple of functions that don't need two arguments passed in when the second argument already had access to the pointer pointed to by the first. Remove the unnecessary arguments. Signed-off-by: Jesse Brandeburg Signed-off-by: Tony Nguyen Tested-by: Andrew Bow

RE: [Intel-wired-lan] [PATCH] iavf: fix MAC address setting for VFs when filter is rejected

2019-09-05 Thread Bowers, AndrewX
> -Original Message- > From: Intel-wired-lan [mailto:intel-wired-lan-boun...@osuosl.org] On > Behalf Of Stefan Assmann > Sent: Wednesday, September 4, 2019 11:34 PM > To: intel-wired-...@lists.osuosl.org > Cc: netdev@vger.kernel.org; da...@davemloft.net; sassm...@kpanic.de > Subject: [Intel

Re: [PATCH net] tcp: ulp: fix possible crash in tcp_diag_get_aux_size()

2019-09-05 Thread Eric Dumazet
On Thu, Sep 5, 2019 at 10:20 PM Eric Dumazet wrote: > > tcp_diag_get_aux_size() can be called with sockets in any state. > > icsk_ulp_ops is only present for full sockets. > > For SYN_RECV or TIME_WAIT ones we would access garbage. > > Fixes: 61723b393292 ("tcp: ulp: add functions to dump ulp-spec

[PATCH net] tcp: ulp: fix possible crash in tcp_diag_get_aux_size()

2019-09-05 Thread Eric Dumazet
tcp_diag_get_aux_size() can be called with sockets in any state. icsk_ulp_ops is only present for full sockets. For SYN_RECV or TIME_WAIT ones we would access garbage. Fixes: 61723b393292 ("tcp: ulp: add functions to dump ulp-specific information") Signed-off-by: Eric Dumazet Reported-by: Luke

Re: [PATCH net-next] net/mlx5: DR, Fix error return code in dr_domain_init_resources()

2019-09-05 Thread Saeed Mahameed
On Thu, 2019-09-05 at 09:56 +, Wei Yongjun wrote: > Fix to return negative error code -ENOMEM from the error handling > case instead of 0, as done elsewhere in this function. > > Fixes: 4ec9e7b02697 ("net/mlx5: DR, Expose steering domain > functionality") > Signed-off-by: Wei Yongjun > Appl

Re: [PATCH net-next] net/mlx5: DR, Remove useless set memory to zero use memset()

2019-09-05 Thread Saeed Mahameed
On Thu, 2019-09-05 at 09:53 +, Wei Yongjun wrote: > The memory return by kzalloc() has already be set to zero, so > remove useless memset(0). > > Signed-off-by: Wei Yongjun Applied to net-next-mlx5. Thanks !

Zdravstvujte! Vas interesujut klientskie bazy dannyh?

2019-09-05 Thread netdev
Zdravstvujte! Vas interesujut klientskie bazy dannyh?

Re: [PATCH v2] net-ipv6: fix excessive RTF_ADDRCONF flag on ::1/128 local route (and others)

2019-09-05 Thread Eric Dumazet
On 9/2/19 6:23 PM, Maciej Żenczykowski wrote: > From: Maciej Żenczykowski > > There is a subtle change in behaviour introduced by: > commit c7a1ce397adacaf5d4bb2eab0a738b5f80dc3e43 > 'ipv6: Change addrconf_f6i_alloc to use ip6_route_info_create' > > Before that patch /proc/net/ipv6_route

[PATCH net] net: gso: Fix skb_segment splat when splitting gso_size mangled skb having linear-headed frag_list

2019-09-05 Thread Shmulik Ladkani
Historically, support for frag_list packets entering skb_segment() was limited to frag_list members terminating on exact same gso_size boundaries. This is verified with a BUG_ON since commit 89319d3801d1 ("net: Add frag_list support to skb_segment"), quote: As such we require all frag_list mem

Re: rtnl_lock() question

2019-09-05 Thread Rustad, Mark D
On Sep 4, 2019, at 4:23 PM, Saeed Mahameed wrote: some allocations require parameters that should remain valid and constant across the whole reconfiguration procedure such params.num_channels, so they must be done inside the lock. You could always check if those parameters have changed once u

[patch net-next] net: fib_notifier: move fib_notifier_ops from struct net into per-net struct

2019-09-05 Thread Jiri Pirko
From: Jiri Pirko No need for fib_notifier_ops to be in struct net. It is used only by fib_notifier as a private data. Use net_generic to introduce per-net fib_notifier struct and move fib_notifier_ops there. Signed-off-by: Jiri Pirko --- include/net/net_namespace.h | 3 --- net/core/fib_notif

[PATCH bpf-next] kbuild: replace BASH-specific ${@:2} with shift and ${@}

2019-09-05 Thread Andrii Nakryiko
${@:2} is BASH-specific extension, which makes link-vmlinux.sh rely on BASH. Use shift and ${@} instead to fix this issue. Reported-by: Stephen Rothwell Fixes: 341dfcf8d78e ("btf: expose BTF info through sysfs") Cc: Stephen Rothwell Cc: Masahiro Yamada Signed-off-by: Andrii Nakryiko --- scrip

Applied "spi: Use an abbreviated pointer to ctlr->cur_msg in __spi_pump_messages" to the spi tree

2019-09-05 Thread Mark Brown
The patch spi: Use an abbreviated pointer to ctlr->cur_msg in __spi_pump_messages has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in

From Dr Tracy William

2019-09-05 Thread Tracy William
-- Hello Dear, how are you doing. Its my pleasure to contact you for a long term relationship. I was just surfing through the Internet when i found your email address. I want to make a new and special friend. Lets keep in touch and get to know more about each other and see what happens in future.

Re: [PATCH v3 bpf-next 2/3] bpf: implement CAP_BPF

2019-09-05 Thread Song Liu
> On Sep 4, 2019, at 8:15 PM, Alexei Starovoitov > wrote: > > On Thu, Sep 05, 2019 at 02:51:51AM +, Song Liu wrote: >> >> >>> On Sep 4, 2019, at 6:32 PM, Alexei Starovoitov >>> wrote: >>> >>> On Thu, Sep 05, 2019 at 12:34:36AM +, Song Liu wrote: > On Sep 4, 2019,

[PATCH 7/8] netfilter: nft_quota: add quota object update support

2019-09-05 Thread Pablo Neira Ayuso
From: Fernando Fernandez Mancera Signed-off-by: Fernando Fernandez Mancera Signed-off-by: Pablo Neira Ayuso --- net/netfilter/nft_quota.c | 29 ++--- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/net/netfilter/nft_quota.c b/net/netfilter/nft_quota.c ind

[PATCH 1/8] netfilter: nf_tables: Introduce new 64-bit helper register functions

2019-09-05 Thread Pablo Neira Ayuso
From: Ander Juaristi Introduce new helper functions to load/store 64-bit values onto/from registers: - nft_reg_store64 - nft_reg_load64 This commit also re-orders all these helpers from smallest to largest target bit size. Signed-off-by: Ander Juaristi Signed-off-by: Pablo Neira Ayuso ---

[PATCH 3/8] netfilter: nfnetlink_log: add support for VLAN information

2019-09-05 Thread Pablo Neira Ayuso
From: Michael Braun Currently, there is no vlan information (e.g. when used with a vlan aware bridge) passed to userspache, HWHEADER will contain an 08 00 (ip) suffix even for tagged ip packets. Therefore, add an extra netlink attribute that passes the vlan information to userspace similarly to

[PATCH 6/8] netfilter: nf_tables: Introduce stateful object update operation

2019-09-05 Thread Pablo Neira Ayuso
From: Fernando Fernandez Mancera This patch adds the infrastructure needed for the stateful object update support. Signed-off-by: Fernando Fernandez Mancera Signed-off-by: Pablo Neira Ayuso --- include/net/netfilter/nf_tables.h | 9 + net/netfilter/nf_tables_api.c | 78 ++

[PATCH 0/8] Netfilter updates for net-next

2019-09-05 Thread Pablo Neira Ayuso
Hi, The following patchset contains Netfilter updates for net-next: 1) Add nft_reg_store64() and nft_reg_load64() helpers, from Ander Juaristi. 2) Time matching support, also from Ander Juaristi. 3) VLAN support for nfnetlink_log, from Michael Braun. 4) Support for set element deletions from t

[PATCH 4/8] netfilter: nft_dynset: support for element deletion

2019-09-05 Thread Pablo Neira Ayuso
From: Ander Juaristi This patch implements the delete operation from the ruleset. It implements a new delete() function in nft_set_rhash. It is simpler to use than the already existing remove(), because it only takes the set and the key as arguments, whereas remove() expects a full nft_set_elem

[PATCH 8/8] netfilter: nf_tables: fix possible null-pointer dereference in object update

2019-09-05 Thread Pablo Neira Ayuso
From: Fernando Fernandez Mancera Not all objects have an update operation. If the object type doesn't implement an update operation and the user tries to update it will hit EOPNOTSUPP. Fixes: d62d0ba97b58 ("netfilter: nf_tables: Introduce stateful object update operation") Signed-off-by: Fernan

[PATCH 5/8] netfilter: not mark a spinlock as __read_mostly

2019-09-05 Thread Pablo Neira Ayuso
From: Li RongQing when spinlock is locked/unlocked, its elements will be changed, so marking it as __read_mostly is not suitable. and remove a duplicate definition of nf_conntrack_locks_all_lock strange that compiler does not complain. Signed-off-by: Li RongQing Signed-off-by: Pablo Neira Ayus

[PATCH 2/8] netfilter: nft_meta: support for time matching

2019-09-05 Thread Pablo Neira Ayuso
From: Ander Juaristi This patch introduces meta matches in the kernel for time (a UNIX timestamp), day (a day of week, represented as an integer between 0-6), and hour (an hour in the current day, or: number of seconds since midnight). All values are taken as unsigned 64-bit integers. The 'time

Re: [PATCH iproute2-next] bpf: fix snprintf truncation warning

2019-09-05 Thread Stephen Hemminger
On Thu, 5 Sep 2019 13:44:55 +0200 Andrea Claudi wrote: > On Thu, Sep 5, 2019 at 12:15 AM David Ahern wrote: > > > > On 9/4/19 9:50 AM, Andrea Claudi wrote: > > > gcc v9.2.1 produces the following warning compiling iproute2: > > > > > > bpf.c: In function ‘bpf_get_work_dir’: > > > bpf.c:784:49:

[PATCH bpf-next v2 4/6] selftests/bpf: test_progs: convert test_sockopt_multi

2019-09-05 Thread Stanislav Fomichev
Move the files, adjust includes, remove entry from Makefile & .gitignore Signed-off-by: Stanislav Fomichev --- tools/testing/selftests/bpf/.gitignore| 1 - tools/testing/selftests/bpf/Makefile | 3 +- .../sockopt_multi.c} | 62 +++ 3 fi

[PATCH bpf-next v2 2/6] selftests/bpf: test_progs: convert test_sockopt

2019-09-05 Thread Stanislav Fomichev
Move the files, adjust includes, remove entry from Makefile & .gitignore Signed-off-by: Stanislav Fomichev --- tools/testing/selftests/bpf/.gitignore| 1 - tools/testing/selftests/bpf/Makefile | 3 +- .../{test_sockopt.c => prog_tests/sockopt.c} | 50 +++ 3 fi

[PATCH bpf-next v2 3/6] selftests/bpf: test_progs: convert test_sockopt_sk

2019-09-05 Thread Stanislav Fomichev
Move the files, adjust includes, remove entry from Makefile & .gitignore Signed-off-by: Stanislav Fomichev --- tools/testing/selftests/bpf/.gitignore| 1 - tools/testing/selftests/bpf/Makefile | 3 +- .../sockopt_sk.c} | 60 --- tool

[PATCH bpf-next v2 5/6] selftests/bpf: test_progs: convert test_sockopt_inherit

2019-09-05 Thread Stanislav Fomichev
Move the files, adjust includes, remove entry from Makefile & .gitignore I also added pthread_cond_wait for the server thread startup. We don't want to connect to the server that's not yet up (for some reason this existing race is now more prominent with test_progs). Signed-off-by: Stanislav Fomi

[PATCH bpf-next v2 6/6] selftests/bpf: test_progs: convert test_tcp_rtt

2019-09-05 Thread Stanislav Fomichev
Move the files, adjust includes, remove entry from Makefile & .gitignore Signed-off-by: Stanislav Fomichev --- tools/testing/selftests/bpf/.gitignore| 1 - tools/testing/selftests/bpf/Makefile | 3 +- .../{test_tcp_rtt.c => prog_tests/tcp_rtt.c} | 83 ++- 3 fi

[PATCH bpf-next v2 1/6] selftests/bpf: test_progs: add test__join_cgroup helper

2019-09-05 Thread Stanislav Fomichev
test__join_cgroup() combines the following operations that usually go hand in hand and returns cgroup fd: * setup cgroup environment (make sure cgroupfs is mounted) * mkdir cgroup * join cgroup It also marks a test as a "cgroup cleanup needed" and removes cgroup state after the test is done

[PATCH bpf-next v2 0/6] selftests/bpf: move sockopt tests under test_progs

2019-09-05 Thread Stanislav Fomichev
Now that test_progs is shaping into more generic test framework, let's convert sockopt tests to it. This requires adding a helper to create and join a cgroup first (test__join_cgroup). Since we already hijack stdout/stderr that shouldn't be a problem (cgroup helpers log to stderr). The rest of the

Re: [PATCH REPOST 1/2] can: flexcan: fix deadlock when using self wakeup

2019-09-05 Thread Marc Kleine-Budde
On 9/5/19 3:17 PM, Sean Nyekjaer wrote: > > > On 05/09/2019 09.10, Joakim Zhang wrote: >> Hi Sean, >> >> Could you update lastest flexcan driver using linux-can-next/flexcan and >> then merge below two patches from linux-can/testing? >> d0b53616716e (HEAD -> testing, origin/testing) can: flexcan

pull-request: bpf-next 2019-09-05

2019-09-05 Thread Daniel Borkmann
Hi David, The following pull-request contains BPF updates for your *net-next* tree. The main changes are: 1) Add the ability to use unaligned chunks in the AF_XDP umem. By relaxing where the chunks can be placed, it allows to use an arbitrary buffer size and place whenever there is a free

Re: [PATCH net 03/11] bonding: split IFF_BONDING into IFF_BONDING and IFF_BONDING_SLAVE

2019-09-05 Thread Taehee Yoo
On Thu, 5 Sep 2019 at 04:22, Jay Vosburgh wrote: > Hi Jay, Thank you for the review! > Taehee Yoo wrote: > > >The IFF_BONDING means bonding master or bonding slave device. > > > >->ndo_add_slave() sets IFF_BONDING flag and ->ndo_del_slave() removes > >IFF_BONDING flag. > >This routine makes a p

RE: [PATCH net] net: sched: fix reordering issues

2019-09-05 Thread John Fastabend
Eric Dumazet wrote: > Whenever MQ is not used on a multiqueue device, we experience > serious reordering problems. Bisection found the cited > commit. > > The issue can be described this way : > > - A single qdisc hierarchy is shared by all transmit queues. > (eg : tc qdisc replace dev eth0 roo

Re: [PATCH REPOST 1/2] can: flexcan: fix deadlock when using self wakeup

2019-09-05 Thread Sean Nyekjaer
On 05/09/2019 09.10, Joakim Zhang wrote: Hi Sean, Could you update lastest flexcan driver using linux-can-next/flexcan and then merge below two patches from linux-can/testing? d0b53616716e (HEAD -> testing, origin/testing) can: flexcan: add LPSR mode support for i.MX7D 803eb6bad65b can: fle

Re: [PATCH bpf] bpf: fix precision tracking of stack slots

2019-09-05 Thread Daniel Borkmann
On 9/4/19 12:16 AM, Alexei Starovoitov wrote: The problem can be seen in the following two tests: 0: (bf) r3 = r10 1: (55) if r3 != 0x7b goto pc+0 2: (7a) *(u64 *)(r3 -8) = 0 3: (79) r4 = *(u64 *)(r10 -8) .. 0: (85) call bpf_get_prandom_u32#7 1: (bf) r3 = r10 2: (55) if r3 != 0x7b goto pc+0 3: (7

Re: [PATCH bpf-next v3 0/4] xsk: various CPU barrier and {READ, WRITE}_ONCE

2019-09-05 Thread Daniel Borkmann
On 9/4/19 1:49 PM, Björn Töpel wrote: This is a four patch series of various barrier, {READ, WRITE}_ONCE cleanups in the AF_XDP socket code. More details can be found in the corresponding commit message. Previous revisions: v1 [4] and v2 [5]. For an AF_XDP socket, most control plane operations a

Re: [PATCH bpf-next] selftests/bpf: precision tracking tests

2019-09-05 Thread Daniel Borkmann
On 9/4/19 12:51 AM, Alexei Starovoitov wrote: Add two tests to check that stack slot marking during backtracking doesn't trigger 'spi > allocated_stack' warning. One test is using BPF_ST insn. Another is using BPF_STX. Signed-off-by: Alexei Starovoitov Applied, thanks!

Re: [PATCH bpf-next] ixgbe: fix xdp handle calculations

2019-09-05 Thread Daniel Borkmann
On 9/5/19 3:12 AM, Kevin Laatz wrote: Currently, we don't add headroom to the handle in ixgbe_zca_free, ixgbe_alloc_buffer_slow_zc and ixgbe_alloc_buffer_zc. The addition of the headroom to the handle was removed in commit d8c3061e5edd ("ixgbe: modify driver for handling offsets"), which will bre

Re: [PATCH bpf-next] i40e: fix xdp handle calculations

2019-09-05 Thread Daniel Borkmann
On 9/5/19 3:11 AM, Kevin Laatz wrote: Currently, we don't add headroom to the handle in i40e_zca_free, i40e_alloc_buffer_slow_zc and i40e_alloc_buffer_zc. The addition of the headroom to the handle was removed in commit 2f86c806a8a8 ("i40e: modify driver for handling offsets"), which will break t

IPv6 temporary addresses (Fwd: New Version Notification for draft-ietf-6man-rfc4941bis-03.txt)

2019-09-05 Thread Fernando Gont
Folks, We are working in a revision of RFC4941 (temporary addresses), to address issues found in such spec -- for example, RFC4941 leads to the same interface identifiers being employed for different prefixes (which of course has privacy implications) The current version of the revised spec is av

[PATCH v1] stmmac: platform: adjust messages and move to dev level

2019-09-05 Thread Andy Shevchenko
This patch amends the error and warning messages across the platform driver. It includes the following changes: - append \n to the end of messages - change pr_* macros to dev_* Signed-off-by: Andy Shevchenko --- .../ethernet/stmicro/stmmac/stmmac_platform.c | 22 +++ 1 file cha

[PATCH iproute2 1/4] devlink: Add helper for left justification print

2019-09-05 Thread Tariq Toukan
From: Aya Levin Introduce a helper function which wraps code that adds a left hand side space separator unless it follows a newline. Fixes: e3d0f0c0e3d8 ("devlink: add option to generate JSON output") Signed-off-by: Aya Levin Acked-by: Jiri Pirko Signed-off-by: Tariq Toukan --- devlink/devli

[PATCH iproute2 0/4] Devlink health FMSG fixes and enhancements

2019-09-05 Thread Tariq Toukan
Hi, This patchset by Aya enhances FMSG output and fixes bugs in devlink health. Patch 1 adds a helper function wrapping repeating code which determines whether left-hand-side space separator in needed or not. It's not needed after a newline. Patch 2 fixes left justification of FMSG output. Pr

  1   2   >