JÓ HÍREK

2018-07-08 Thread Mrs. Ursula Alice Walton
Kedves Kedvezményezettem, Biztos vagyok benne, hogy ez a levél meglepetésként fog megjelenni, mivel még soha nem találkoztunk, és akkor is megkérdeznéd, hogy miért döntöttem úgy, hogy választottam Önt a világ számos internethasználója között. Pontosan, nem tudom megmondani, hogy miért

Re: [PATCH net] net: diag: Don't double-free TCP_NEW_SYN_RECV sockets in tcp_abort

2018-07-08 Thread Lorenzo Colitti
On Sat, Jul 7, 2018 at 10:56 PM David Ahern wrote: > > Here is a packetdrill test : > > So I have to either learn how to use packetdrill or install a web server > and put load on it. If the Android tests are not publicly available then > the reference should be removed from the commit log. It is

Re: [PATCH net] net: diag: Don't double-free TCP_NEW_SYN_RECV sockets in tcp_abort

2018-07-08 Thread Lorenzo Colitti
On Sat, Jul 7, 2018 at 10:29 PM Eric Dumazet wrote: > >> Tested: passes Android sock_diag_test.py, which exercises this codepath > > > > If this Android test case exercises this path, why didn't it trigger > > the double free and thus cause this bug to be found much sooner? > > > > Just curious.

RE: IT Technical Report

2018-07-08 Thread Karen Sanford
Dear User This is a courtesy notice by Admin Team, and to inform you that your e-mail account has exceeded its quota of mail on the database server. E-mail accounts will be blocked from sending and receiving emails if your email account is not verified. Click on to Restore

KASAN: slab-out-of-bounds Read in pdu_read

2018-07-08 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:ca04b3cca11a Merge tag 'armsoc-fixes' of git://git.kernel... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1609e96840 kernel config: https://syzkaller.appspot.com/x/.config?x=2ca6c7a31d407f86

KASAN: use-after-free Read in __queue_work (2)

2018-07-08 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:ca04b3cca11a Merge tag 'armsoc-fixes' of git://git.kernel... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1066e6dc40 kernel config: https://syzkaller.appspot.com/x/.config?x=2ca6c7a31d407f86

[PATCH net-next] net/sched: flower: Fix null pointer dereference when run tc vlan command

2018-07-08 Thread Jianbo Liu
Zahari issued tc vlan command without setting vlan_ethtype, which will crash kernel. To avoid this, we must check tb[TCA_FLOWER_KEY_VLAN_ETH_TYPE] is not null before use it. Also we don't need to dump vlan_ethtype or cvlan_ethtype in this case. Fixes: d64efd0926ba ('net/sched: flower: Add supprt

linux-next: manual merge of the net-next tree with the net tree

2018-07-08 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: net/sched/act_tunnel_key.c between commit: 38230a3e0e09 ("net/sched: act_tunnel_key: fix NULL dereference when 'goto chain' is used") from the net tree and commit: 036bb44327f5 ("net: sched: change type of

linux-next: manual merge of the net-next tree with the net tree

2018-07-08 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: net/sched/act_csum.c between commit: 11a245e2f7bf ("net/sched: act_csum: fix NULL dereference when 'goto chain' is used") from the net tree and commit: 036bb44327f5 ("net: sched: change type of reference and bind

[PATCH bpf 0/1] bpf: btf: Fix endianness of bitfields

2018-07-08 Thread Okash Khawaja
Hi, This patch fixes endianness bug in btf_int_bits_seq_show(). Jakub Kicinski pointed out in a separate patch review for bpftool ("bpf: btf: add btf print functionality") that parsing of bitfield might not work on big endian machine. Similar parsing is performed in btf_int_bits_seq_show() and

[PATCH bpf 1/1] bpf: btf: Fix bitfield extraction for big endian

2018-07-08 Thread Okash Khawaja
When extracting bitfield from a number, btf_int_bits_seq_show() builds a mask and accesses least significant byte of the number in a way specific to little-endian. This patch fixes that by checking endianness of the machine and then shifting left and right the unneeded bits. Thanks to Martin Lau

linux-next: manual merge of the net-next tree with the net tree

2018-07-08 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: drivers/net/ethernet/aquantia/atlantic/aq_hw.h between commit: 94b3b542303f ("net: aquantia: vlan unicast address list correct handling") from the net tree and commit: c1af5427954b ("net: aquantia: Ethtool based

Re: [PATCH v2 net-next 5/5] net/sched: flower: Add supprt for matching on QinQ vlan headers

2018-07-08 Thread Jianbo Liu
The 07/08/2018 12:27, Zahari, Doychev wrote: > On Fri, Jul 06, 2018 at 05:38:16AM +, Jianbo Liu wrote: > > As support dissecting of QinQ inner and outer vlan headers, user can > > add rules to match on QinQ vlan headers. > > > > Signed-off-by: Jianbo Liu > > Acked-by: Jiri Pirko > > --- > >

Re: KASAN: use-after-free Read in tls_write_space

2018-07-08 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:c47078d6a33f tcp: remove redundant SOCK_DONE checks git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=120012c240 kernel config:

Re: [PATCH v2 00/14] ravb/sh_eth: fix sleep in atomic by reusing shared ethtool handlers

2018-07-08 Thread Sergei Shtylyov
On 7/9/2018 2:24 AM, Sergei Shtylyov wrote:     So you applied the whole series to net.git... that was somewhat     unexpected, at least by me. Care to share your reasoning? It's fixes a sleep in atomic which is a serious bug.    Do you realize that only patches 0, 1, 8, and 9 were real

Re: [PATCH v2 00/14] ravb/sh_eth: fix sleep in atomic by reusing shared ethtool handlers

2018-07-08 Thread Sergei Shtylyov
Hello! On 7/8/2018 2:58 AM, David Miller wrote: So you applied the whole series to net.git... that was somewhat unexpected, at least by me. Care to share your reasoning? It's fixes a sleep in atomic which is a serious bug. Do you realize that only patches 0, 1, 8, and 9 were

Re: KASAN: use-after-free Read in ipv6_gso_pull_exthdrs

2018-07-08 Thread Willem de Bruijn
On Sun, Jul 8, 2018 at 6:58 PM Willem de Bruijn wrote: > > On Fri, Jul 6, 2018 at 6:16 PM Willem de Bruijn > wrote: > > > > On Fri, Jul 6, 2018 at 1:55 PM syzbot > > wrote: > > > > > > syzbot has found a reproducer for the following crash on: > > > > > > HEAD commit:70ba5b6db96f ipv4:

Re: KASAN: use-after-free Read in ipv6_gso_pull_exthdrs

2018-07-08 Thread Willem de Bruijn
On Fri, Jul 6, 2018 at 6:16 PM Willem de Bruijn wrote: > > On Fri, Jul 6, 2018 at 1:55 PM syzbot > wrote: > > > > syzbot has found a reproducer for the following crash on: > > > > HEAD commit:70ba5b6db96f ipv4: Return EINVAL when ping_group_range sys.. > > git tree: net > > console

Re: [PATCH] move smp_rmb() after load of status

2018-07-08 Thread Willem de Bruijn
> @@ -394,25 +394,30 @@ static void __packet_set_status(struct packet_sock *po, > void *frame, int status) > static int __packet_get_status(struct packet_sock *po, void *frame) > { > union tpacket_uhdr h; > - > - smp_rmb(); > + int status; > > h.raw = frame; >

[PATCH iproute2-next] net:sched: add action inheritdsfield to skbedit

2018-07-08 Thread Qiaobin Fu
The new action inheritdsfield copies the field DS of IPv4 and IPv6 packets into skb->priority. This enables later classification of packets based on the DS field. Original idea by Jamal Hadi Salim Signed-off-by: Qiaobin Fu Reviewed-by: Michel Machado --- Note that the motivation for this

Re: [RFC] Add BPF_SYNCHRONIZE bpf(2) command

2018-07-08 Thread Mathieu Desnoyers
- On Jul 7, 2018, at 4:33 PM, Joel Fernandes joe...@google.com wrote: > On Fri, Jul 06, 2018 at 07:54:28PM -0700, Alexei Starovoitov wrote: >> On Fri, Jul 06, 2018 at 06:56:16PM -0700, Daniel Colascione wrote: >> > BPF_SYNCHRONIZE waits for any BPF programs active at the time of >> >

[PATCH net-next 09/12] mlxsw: reg: Add priority field for PTCEV2 register

2018-07-08 Thread Ido Schimmel
From: Jiri Pirko This is going to be needed for Spectrum-2 C-TCAM implementation. Signed-off-by: Jiri Pirko Signed-off-by: Ido Schimmel --- drivers/net/ethernet/mellanox/mlxsw/reg.h| 12 +++- drivers/net/ethernet/mellanox/mlxsw/spectrum1_acl_tcam.c | 2 +-

[PATCH net-next 02/12] mlxsw: spectrum_kvdl: Pass entry type to alloc/free

2018-07-08 Thread Ido Schimmel
From: Jiri Pirko Future Spectrum-2 KVD linear manager implementation needs to know type of the entry to alloc and free. So define the types in an enum and pass it down to alloc and free functions. Once the entry type is passed down, KVDL common part knows sizes of each entry types, so replace

[PATCH net-next 12/12] mlxsw: resources: Add couple of Spectrum-2 KVD resources

2018-07-08 Thread Ido Schimmel
From: Jiri Pirko These resources are needed for Spectrum-2 KVD linear management implementation. Signed-off-by: Jiri Pirko Signed-off-by: Ido Schimmel --- drivers/net/ethernet/mellanox/mlxsw/resources.h | 4 1 file changed, 4 insertions(+) diff --git

[PATCH net-next 08/12] mlxsw: spectrum_acl: Move block items encoding into Spectrum op

2018-07-08 Thread Ido Schimmel
From: Jiri Pirko Since Spectrum-2 encodes blocks into different HW layout, push this code into Spectrum-specific op. Signed-off-by: Jiri Pirko Signed-off-by: Ido Schimmel --- .../ethernet/mellanox/mlxsw/core_acl_flex_keys.c | 49 +++---

[PATCH net-next 01/12] mlxsw: spectrum_kvdl: Push out KVD linear management into ops

2018-07-08 Thread Ido Schimmel
From: Jiri Pirko In Spectrum-2 there is a different implementation of KVD linear management. Unlike in Spectrum where there is a single index space, in Spectrum-2 the indexes are per-resource. Also there is need to explicitly tell HW that an entry is no longer used. So push out the existing

[PATCH net-next 07/12] mlxsw: spectrum_acl: Convert mlxsw_afk_create args to ops

2018-07-08 Thread Ido Schimmel
From: Jiri Pirko Since the flex keys for Spectrum-2 differ not only in blocks definitions but also in encoding layout, prepare for the implementation and pass Spectrum/Spectrum-2 specific ops down to mlxsw_afk_create. Signed-off-by: Jiri Pirko Signed-off-by: Ido Schimmel ---

[PATCH net-next 05/12] mlxsw: spectrum_acl: Split TCAM handling 3 ways

2018-07-08 Thread Ido Schimmel
From: Jiri Pirko To allow easy and clean Spectrum-2 implementation for things that differ from Spectrum, split the existing ACL TCAM code 3 ways: 1) common code that calls Spectrum/Spectrum-2 specific ops 2) Spectrum ops implementations 3) common C-TCAM code that is going to be shared between

[PATCH net-next 10/12] mlxsw: spectrum_acl: Implement priority setting for rules inserted to TCAM

2018-07-08 Thread Ido Schimmel
From: Jiri Pirko For Spectrum-2, we need to insert priority to C-TCAM because HW needs that info in order to correctly process scenarios where rules are in both C-TCAM and A-TCAM. So extend the mlxsw_sp_acl_ctcam_entry_add() args to accept indication if priority needs to be filled up and

[PATCH net-next 00/12] mlxsw: More Spectrum-2 preparations

2018-07-08 Thread Ido Schimmel
Hi, This is the second and last set of preparations towards initial Spectrum-2 support in mlxsw. It mainly re-arranges parts of the code that need to work with both ASICs, but somewhat differ. The first three patches allow different ASICs to register different set of operations for KVD linear

[PATCH net-next 11/12] mlxsw: spectrum: Prepare for multiple FW versions for Spectrum and Spectrum-2

2018-07-08 Thread Ido Schimmel
From: Jiri Pirko Prepare for Spectrum-2 FW version checking and make mlxsw_sp_fw_rev_validate() per-ASIC as well as required FW revision and FW filename. Signed-off-by: Jiri Pirko Signed-off-by: Ido Schimmel --- drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 47 +-

[PATCH net-next 06/12] mlxsw: spectrum_acl: Add tcam init/fini ops

2018-07-08 Thread Ido Schimmel
From: Jiri Pirko Add ops to be called on driver instance init and fini. This is needed in order to be possible to do Spectrum-2 specific init and fini work. Signed-off-by: Jiri Pirko Signed-off-by: Ido Schimmel --- drivers/net/ethernet/mellanox/mlxsw/spectrum.h | 43 +

[PATCH net-next 04/12] mlxsw: spectrum_mr_tcam: Push Spectrum-specific operations into a separate file

2018-07-08 Thread Ido Schimmel
From: Jiri Pirko Since Spectrum-2 has different handling of TCAM, push Spectrum MR TCAM bits to a separate file accessible by ops which allows to implement Spectrum-2 specific ops. Signed-off-by: Jiri Pirko Signed-off-by: Ido Schimmel --- drivers/net/ethernet/mellanox/mlxsw/Makefile |

[PATCH net-next 03/12] mlxsw: spectrum_kvdl: Pass entry_count to free function

2018-07-08 Thread Ido Schimmel
From: Jiri Pirko For the Spectrum-2 KVD linear manager implementation, entry_count will be needed even for the free function. So pass it down. Signed-off-by: Jiri Pirko Signed-off-by: Ido Schimmel --- drivers/net/ethernet/mellanox/mlxsw/spectrum.h | 4 ++--

Re: [PATCH net-next 2/5 v2] net: gemini: Improve connection prints

2018-07-08 Thread Linus Walleij
On Wed, Jul 4, 2018 at 10:40 PM Andrew Lunn wrote: > On Wed, Jul 04, 2018 at 08:33:21PM +0200, Linus Walleij wrote: > > @@ -300,23 +305,26 @@ static void gmac_speed_set(struct net_device *netdev) > > status.bits.speed = GMAC_SPEED_1000; > > if (phydev->interface ==

[PATCH net-next] selftests: forwarding: mirror_lib: Tighten up VLAN capture

2018-07-08 Thread Petr Machata
The function do_test_span_vlan_dir_ips() is used for testing whether mirrored packets are VLAN-encapsulated. But since it only considers VLAN encapsulation, it may end up matching unmirrored ARP traffic as well. One consequence is a rare failure of mirror_gre_vlan_bridge_1q's

Re: [PATCH v2] rhashtable: add restart routine in rhashtable_free_and_destroy()

2018-07-08 Thread Herbert Xu
On Sun, Jul 08, 2018 at 11:55:51AM +0900, Taehee Yoo wrote: > rhashtable_free_and_destroy() cancels re-hash deferred work > then walks and destroys elements. at this moment, some elements can be > still in future_tbl. that elements are not destroyed. > > test case: > nft_rhash_destroy() calls

Re: [PATCH v2 net-next 5/5] net/sched: flower: Add supprt for matching on QinQ vlan headers

2018-07-08 Thread Zahari, Doychev
On Fri, Jul 06, 2018 at 05:38:16AM +, Jianbo Liu wrote: > As support dissecting of QinQ inner and outer vlan headers, user can > add rules to match on QinQ vlan headers. > > Signed-off-by: Jianbo Liu > Acked-by: Jiri Pirko > --- > include/uapi/linux/pkt_cls.h | 4 +++ >

[PATCH rdma-next 6/9] IB/mlx5: Introduce vendor create and destroy flow methods

2018-07-08 Thread Leon Romanovsky
From: Yishai Hadas Introduce vendor create and destroy flow methods on the uverbs flow object. This enables the driver to get its specific device attributes to match the underlay specification while still using the generic ib_flow object for cleanup and code sharing. The IB object's attributes

[PATCH rdma-next 4/9] IB/mlx5: Introduce flow steering matcher object

2018-07-08 Thread Leon Romanovsky
From: Yishai Hadas Introduce flow steering matcher object and its create and destroy methods. This matcher object holds some mlx5 specific driver properties that matches the underlay device specification when an mlx5 flow steering group is created. It will be used in downstream patches to be

[PATCH rdma-next 5/9] IB: Consider ib_flow creation by the KABI infrastructure

2018-07-08 Thread Leon Romanovsky
From: Yishai Hadas This patch considers the case that ib_flow is created by some device driver with its specific parameters using the KABI infrastructure. In that case both QP and ib_uflow_resources might not be applicable. Downstream patches from this series use the above functionality.

[PATCH rdma-next 9/9] IB/mlx5: Expose vendor flow trees

2018-07-08 Thread Leon Romanovsky
From: Yishai Hadas Expose mlx5 flow trees to be used by upper layers. Signed-off-by: Yishai Hadas Signed-off-by: Leon Romanovsky --- drivers/infiniband/hw/mlx5/flow.c| 9 + drivers/infiniband/hw/mlx5/main.c| 4 +++- drivers/infiniband/hw/mlx5/mlx5_ib.h | 3 +++ 3 files

[PATCH rdma-next 8/9] IB/mlx5: Add support for a flow table destination

2018-07-08 Thread Leon Romanovsky
From: Yishai Hadas Add support to set a destination that is a flow table, this can come from the DEVX destination. Signed-off-by: Yishai Hadas Signed-off-by: Leon Romanovsky --- drivers/infiniband/hw/mlx5/main.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git

[PATCH rdma-next 3/9] IB: Enable uverbs_destroy_def_handler to be used by drivers

2018-07-08 Thread Leon Romanovsky
From: Yishai Hadas Enable uverbs_destroy_def_handler to be used by drivers and replace current code to use it. Signed-off-by: Yishai Hadas Signed-off-by: Leon Romanovsky --- drivers/infiniband/core/uverbs.h | 3 --- drivers/infiniband/core/uverbs_std_types.c | 1 +

[PATCH rdma-next 7/9] IB/mlx5: Support adding flow steering rule by raw data

2018-07-08 Thread Leon Romanovsky
From: Yishai Hadas Add support to set a public flow steering rule which its destination is a TIR by using raw specification data. The logic follows the verbs API but instead of using ib_spec(s) the raw input data is used. Signed-off-by: Yishai Hadas Signed-off-by: Leon Romanovsky ---

[PATCH mlx5-next 2/9] net/mlx5: Add support for flow table destination number

2018-07-08 Thread Leon Romanovsky
From: Yishai Hadas Add support to set a destination from a flow table number. This functionality will be used in downstream patches from this series by the DEVX stuff. Signed-off-by: Yishai Hadas Signed-off-by: Leon Romanovsky --- .../mellanox/mlx5/core/diag/fs_tracepoint.c | 3 +++

[PATCH rdma-next 0/9] Support mlx5 flow steering with RAW data

2018-07-08 Thread Leon Romanovsky
From: Leon Romanovsky >From Yishai: This series introduces vendor create and destroy flow methods on the uverbs flow object by using the KABI infra-structure. It's done in a way that enables the driver to get its specific device attributes in a raw data to match its underlay specification

[PATCH mlx5-next 1/9] net/mlx5: Add forward compatible support for the FTE match data

2018-07-08 Thread Leon Romanovsky
From: Yishai Hadas Use the PRM size including the reserved when working with the FTE match data. This comes to support forward compatibility for cases that current reserved data will be exposed by the firmware and could be used by an application by DEVX without changing the kernel. Also drop

[PATCH v2 net-next 16/18] net/mlx5: Accel, add common metadata functions

2018-07-08 Thread Boris Pismenny
This patch adds common functions to handle mellanox metadata headers. These functions are used by IPsec and TLS to process FPGA metadata. Signed-off-by: Boris Pismenny --- .../net/ethernet/mellanox/mlx5/core/accel/accel.h | 37 ++

[PATCH v2 net-next 15/18] net/mlx5e: TLS, build TLS netdev from capabilities

2018-07-08 Thread Boris Pismenny
This patch enables TLS Rx based on available HW capabilities. Signed-off-by: Boris Pismenny --- drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls.c

[PATCH v2 net-next 17/18] net/mlx5e: IPsec, fix byte count in CQE

2018-07-08 Thread Boris Pismenny
This patch fixes the byte count indication in CQE for processed IPsec packets that contain a metadata header. Signed-off-by: Boris Pismenny --- drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c | 1 + drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.h | 2 +-

[PATCH v2 net-next 14/18] net/mlx5e: TLS, add software statistics

2018-07-08 Thread Boris Pismenny
This patch adds software statistics for TLS to count important events. Signed-off-by: Boris Pismenny --- drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls.c | 2 ++ drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls.h | 4

[PATCH v2 net-next 03/18] net: Add TLS rx resync NDO

2018-07-08 Thread Boris Pismenny
Add new netdev tls op for resynchornizing HW tls context Signed-off-by: Boris Pismenny --- include/linux/netdevice.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 03ed492..ef7dcf6 100644 --- a/include/linux/netdevice.h +++

[PATCH v2 net-next 09/18] tls: Add rx inline crypto offload

2018-07-08 Thread Boris Pismenny
This patch completes the generic infrastructure to offload TLS crypto to a network device. It enables the kernel to skip decryption and authentication of some skbs marked as decrypted by the NIC. In the fast path, all packets received are decrypted by the NIC and the performance is comparable to

[PATCH v2 net-next 18/18] net/mlx5e: Kconfig, mutually exclude compilation of TLS and IPsec accel

2018-07-08 Thread Boris Pismenny
We currently have no devices that support both TLS and IPsec using the accel framework, and the current code does not support both IPsec and TLS. This patch prevents such combinations. Signed-off-by: Boris Pismenny --- drivers/net/ethernet/mellanox/mlx5/core/Kconfig | 1 + 1 file changed, 1

[PATCH v2 net-next 02/18] net: Add TLS RX offload feature

2018-07-08 Thread Boris Pismenny
From: Ilya Lesokhin This patch adds a netdev feature to configure TLS RX inline crypto offload. Signed-off-by: Ilya Lesokhin Signed-off-by: Boris Pismenny --- include/linux/netdev_features.h | 2 ++ net/core/ethtool.c | 1 + 2 files changed, 3 insertions(+) diff --git

[PATCH v2 net-next 05/18] tls: Refactor tls_offload variable names

2018-07-08 Thread Boris Pismenny
For symmetry, we rename tls_offload_context to tls_offload_context_tx before we add tls_offload_context_rx. Signed-off-by: Boris Pismenny --- .../net/ethernet/mellanox/mlx5/core/en_accel/tls.h | 6 +++--- include/net/tls.h | 16 +++---

[PATCH v2 net-next 07/18] tls: Split tls_sw_release_resources_rx

2018-07-08 Thread Boris Pismenny
This patch splits tls_sw_release_resources_rx into two functions one which releases all inner software tls structures and another that also frees the containing structure. In TLS_DEVICE we will need to release the software structures without freeeing the containing structure, which contains other

[PATCH v2 net-next 01/18] net: Add decrypted field to skb

2018-07-08 Thread Boris Pismenny
The decrypted bit is propogated to cloned/copied skbs. This will be used later by the inline crypto receive side offload of tls. Signed-off-by: Boris Pismenny Signed-off-by: Ilya Lesokhin --- include/linux/skbuff.h | 7 ++- net/core/skbuff.c | 6 ++ 2 files changed, 12

[PATCH v2 net-next 10/18] net/mlx5e: TLS, refactor variable names

2018-07-08 Thread Boris Pismenny
For symmetry, we rename mlx5e_tls_offload_context to mlx5e_tls_offload_context_tx before we add mlx5e_tls_offload_context_rx. Signed-off-by: Boris Pismenny Reviewed-by: Aviad Yehezkel Reviewed-by: Tariq Toukan --- drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls.c | 2 +-

[PATCH v2 net-next 13/18] net/mlx5e: TLS, add Innova TLS rx data path

2018-07-08 Thread Boris Pismenny
Implement the TLS rx offload data path according to the requirements of the TLS generic NIC offload infrastructure. Special metadata ethertype is used to pass information to the hardware. When hardware loses synchronization a special resync request metadata message is used to request resync.

[PATCH v2 net-next 00/18] TLS offload rx, netdev & mlx5

2018-07-08 Thread Boris Pismenny
Hi, The following series provides TLS TX inline crypto offload. v1->v2: - Fix bisectability problems due to variable name changes - Fix potential uninitialized return value This series completes the generic infrastructure to offload TLS crypto to a network devices. It enables the kernel

[PATCH v2 net-next 04/18] tcp: Don't coalesce decrypted and encrypted SKBs

2018-07-08 Thread Boris Pismenny
Prevent coalescing of decrypted and encrypted SKBs in GRO and TCP layer. Signed-off-by: Boris Pismenny Signed-off-by: Ilya Lesokhin --- net/ipv4/tcp_input.c | 12 net/ipv4/tcp_offload.c | 3 +++ 2 files changed, 15 insertions(+) diff --git a/net/ipv4/tcp_input.c

[PATCH v2 net-next 12/18] net/mlx5e: TLS, add innova rx support

2018-07-08 Thread Boris Pismenny
Add the mlx5 implementation of the TLS Rx routines to add/del TLS contexts, also add the tls_dev_resync_rx routine to work with the TLS inline Rx crypto offload infrastructure. Signed-off-by: Boris Pismenny Signed-off-by: Ilya Lesokhin --- .../net/ethernet/mellanox/mlx5/core/en_accel/tls.c |

[PATCH v2 net-next 08/18] tls: Fill software context without allocation

2018-07-08 Thread Boris Pismenny
This patch allows tls_set_sw_offload to fill the context in case it was already allocated previously. We will use it in TLS_DEVICE to fill the RX software context. Signed-off-by: Boris Pismenny --- net/tls/tls_sw.c | 34 ++ 1 file changed, 22 insertions(+), 12

[PATCH v2 net-next 11/18] net/mlx5: Accel, add TLS rx offload routines

2018-07-08 Thread Boris Pismenny
In Innova TLS, TLS contexts are added or deleted via a command message over the SBU connection. The HW then sends a response message over the same connection. Complete the implementation for Innova TLS (FPGA-based) hardware by adding support for rx inline crypto offload. Signed-off-by: Boris

[PATCH v2 net-next 06/18] tls: Split decrypt_skb to two functions

2018-07-08 Thread Boris Pismenny
Previously, decrypt_skb also updated the TLS context. Now, decrypt_skb only decrypts the payload using the current context, while decrypt_skb_update also updates the state. Later, in the tls_device Rx flow, we will use decrypt_skb directly. Signed-off-by: Boris Pismenny --- include/net/tls.h |

Re: [PATCH net-next] tcp: remove redundant SOCK_DONE checks

2018-07-08 Thread David Miller
From: Eric Dumazet Date: Sat, 7 Jul 2018 23:15:56 -0700 > In both tcp_splice_read() and tcp_recvmsg(), we already test > sock_flag(sk, SOCK_DONE) right before evaluating sk->sk_state, > so "!sock_flag(sk, SOCK_DONE)" is always true. > > Signed-off-by: Eric Dumazet Wow, I think this code has

Re: [PATCH net-next 0/8] mlxsw: Spectrum-2 small ACL preparations

2018-07-08 Thread David Miller
From: Ido Schimmel Date: Sun, 8 Jul 2018 10:00:13 +0300 > This is the first set of changes towards Spectrum-2 support in the mlxsw > driver. It contains small changes that prepare the code for the later > introduction of Spectrum-2 support. > > The Spectrum-2 ASIC uses an algorithmic TCAM

[PATCH] net: sched: Fix warnings from xchg() on RCU'd cookie pointer.

2018-07-08 Thread David Miller
The kbuild test robot reports: >> net/sched/act_api.c:71:15: sparse: incorrect type in initializer (different >> address spaces) @@expected struct tc_cookie [noderef] *__ret @@ >> got [noderef] *__ret @@ net/sched/act_api.c:71:15:expected struct tc_cookie [noderef] *__ret

Re: [PATCH net] tcp: cleanup copied_seq and urg_data in tcp_disconnect

2018-07-08 Thread David Miller
From: Eric Dumazet Date: Sat, 7 Jul 2018 23:00:01 -0700 > tcp_zerocopy_receive() relies on tcp_inq() to limit number of bytes > requested by user. > > syzbot found that after tcp_disconnect(), tcp_inq() was returning > a stale value (number of bytes in queue before the disconnect). > > Note

[net-next:master 464/475] net/sched/act_api.c:71:15: sparse: incorrect type in initializer (different address spaces)

2018-07-08 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master head: e9ec8045644cf730d798cd8df8a6f8a86b7fba64 commit: eec94fdb04806790c7b7e6ea347820064cc6d467 [464/475] net: sched: use rcu for action cookie update reproduce: # apt-get install sparse git

[PATCH net-next 5/8] mlxsw: core_acl_flex_keys: Change SRC_SYS_PORT flex key element size

2018-07-08 Thread Ido Schimmel
From: Jiri Pirko The SRC_SYS_PORT is passed as 8 bit value down to hw anyway, so cap it in the driver as well. Also, in Spectrum-2 the FW iface for SRC_SYS_PORT is only 8 bits, so prepare for it. Signed-off-by: Jiri Pirko Signed-off-by: Ido Schimmel ---

[PATCH net-next 2/8] mlxsw: reg: Introduce Flex2 key type for PTAR register

2018-07-08 Thread Ido Schimmel
From: Jiri Pirko Introduce Flex2 key type for PTAR register which is used in Spectrum-2. Also, extend mlxsw_reg_ptar_pack() to set the value according to the caller. Signed-off-by: Jiri Pirko Signed-off-by: Ido Schimmel --- drivers/net/ethernet/mellanox/mlxsw/reg.h | 11

[PATCH net-next 7/8] mlxsw: core_acl_flex_actions: Allow the first set to be dummy

2018-07-08 Thread Ido Schimmel
From: Jiri Pirko In Spectrum-2, the real action sets are always in KVD linear. The first set is always empty and contains only pointer to the first real set in KVD linear. So provide possibility to specify the first set is the dummy one. Signed-off-by: Jiri Pirko Signed-off-by: Ido Schimmel

[PATCH net-next 1/8] mlxsw: spectrum: Change name of mlxsw_sp_afk_blocks to mlxsw_sp1_afk_blocks

2018-07-08 Thread Ido Schimmel
From: Jiri Pirko This is specific for Spectrum as Spectrum-2 has completely different key blocks. Signed-off-by: Jiri Pirko Signed-off-by: Ido Schimmel --- drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c | 4 ++-- drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_flex_keys.h | 4

[PATCH net-next 6/8] mlxsw: spectrum: Put pointer to flex action ops to mlxsw_sp

2018-07-08 Thread Ido Schimmel
From: Jiri Pirko Spectrum-2 need a slightly different handling of flexible actions. So put an ops pointer in mlxsw_sp struct and rename it. Signed-off-by: Jiri Pirko Signed-off-by: Ido Schimmel --- drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 2 ++

[PATCH net-next 4/8] mlxsw: core_acl_flex_keys: Split MAC and IP address flex key elements

2018-07-08 Thread Ido Schimmel
From: Jiri Pirko Since in Spectrum-2, MACs are split and IP addresses are split as well, in order to use the same elements for Spectrum and Spectrum-2 split them now. Signed-off-by: Jiri Pirko Signed-off-by: Ido Schimmel --- .../ethernet/mellanox/mlxsw/core_acl_flex_keys.h | 40

[PATCH net-next 8/8] mlxsw: core_acl_flex_actions: Fix helper to get the first KVD linear index

2018-07-08 Thread Ido Schimmel
From: Jiri Pirko The helper should return always KVD linear index of the second set. It is unused now, but going to be used soon. Signed-off-by: Jiri Pirko Signed-off-by: Ido Schimmel --- drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c | 11 ---

[PATCH net-next 3/8] mlxsw: spectrum_acl: Ignore always-zeroed bits in tp->prio

2018-07-08 Thread Ido Schimmel
From: Jiri Pirko The lowest 16 bits of tp->prio are always zero, so ignore them with a shift. Signed-off-by: Jiri Pirko Signed-off-by: Ido Schimmel --- drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH net-next 0/8] mlxsw: Spectrum-2 small ACL preparations

2018-07-08 Thread Ido Schimmel
Hi, This is the first set of changes towards Spectrum-2 support in the mlxsw driver. It contains small changes that prepare the code for the later introduction of Spectrum-2 support. The Spectrum-2 ASIC uses an algorithmic TCAM (A-TCAM) instead of a circuit TCAM (C-TCAM) as Spectrum, and thus

[PATCH net-next] tcp: remove redundant SOCK_DONE checks

2018-07-08 Thread Eric Dumazet
In both tcp_splice_read() and tcp_recvmsg(), we already test sock_flag(sk, SOCK_DONE) right before evaluating sk->sk_state, so "!sock_flag(sk, SOCK_DONE)" is always true. Signed-off-by: Eric Dumazet --- net/ipv4/tcp.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff

[PATCH net] tcp: cleanup copied_seq and urg_data in tcp_disconnect

2018-07-08 Thread Eric Dumazet
tcp_zerocopy_receive() relies on tcp_inq() to limit number of bytes requested by user. syzbot found that after tcp_disconnect(), tcp_inq() was returning a stale value (number of bytes in queue before the disconnect). Note that after this patch, ioctl(fd, SIOCINQ, ) is also fixed and returns 0,