[PATCH 093/141] mac80211: Fix fall-through warnings for Clang

2020-11-20 Thread Gustavo A. R. Silva
In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple warnings by explicitly adding multiple break statements instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva --- net/mac80211/cfg.c | 2

[PATCH 107/141] net: core: Fix fall-through warnings for Clang

2020-11-20 Thread Gustavo A. R. Silva
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a break statement instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva --- net/core/dev.c | 1 + 1 file changed, 1

[PATCH 108/141] netfilter: ipt_REJECT: Fix fall-through warnings for Clang

2020-11-20 Thread Gustavo A. R. Silva
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a break statement instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva --- net/ipv4/netfilter/ipt_REJECT.c | 1 +

[PATCH 110/141] net/packet: Fix fall-through warnings for Clang

2020-11-20 Thread Gustavo A. R. Silva
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a break statement instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva --- net/packet/af_packet.c | 1 + 1 file ch

[PATCH 111/141] net: plip: Fix fall-through warnings for Clang

2020-11-20 Thread Gustavo A. R. Silva
In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple warnings by explicitly adding multiple break statements instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva --- drivers/net/plip/plip.c

[PATCH 109/141] net: netrom: Fix fall-through warnings for Clang

2020-11-20 Thread Gustavo A. R. Silva
In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple warnings by explicitly adding multiple break statements instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva --- net/netrom/nr_route.c |

[PATCH 112/141] net: rose: Fix fall-through warnings for Clang

2020-11-20 Thread Gustavo A. R. Silva
In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple warnings by explicitly adding multiple break statements instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva --- net/rose/rose_route.c |

[PATCH 113/141] nl80211: Fix fall-through warnings for Clang

2020-11-20 Thread Gustavo A. R. Silva
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a break statement instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva --- net/wireless/nl80211.c | 1 + 1 file ch

[PATCH 115/141] rds: Fix fall-through warnings for Clang

2020-11-20 Thread Gustavo A. R. Silva
In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple warnings by explicitly adding multiple break statements instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva --- net/rds/tcp_connect.c |

[PATCH 117/141] rtl8xxxu: Fix fall-through warnings for Clang

2020-11-20 Thread Gustavo A. R. Silva
In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple warnings by replacing /* fall through */ comments with the new pseudo-keyword macro fallthrough; instead of letting the code fall through to the next case. Notice that Clang doesn't recognize /* fall through */ comments as imp

[PATCH 118/141] rtw88: Fix fall-through warnings for Clang

2020-11-20 Thread Gustavo A. R. Silva
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by replacing a /* fall through */ comment with the new pseudo-keyword macro fallthrough; instead of letting the code fall through to the next case. Notice that Clang doesn't recognize /* fall through */ comments as implicit f

[PATCH 116/141] rt2x00: Fix fall-through warnings for Clang

2020-11-20 Thread Gustavo A. R. Silva
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a break statement instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva --- drivers/net/wireless/ralink/rt2x00/rt2x

[PATCH 125/141] sctp: Fix fall-through warnings for Clang

2020-11-20 Thread Gustavo A. R. Silva
In preparation to enable -Wimplicit-fallthrough for Clang, fix a couple of warnings by explicitly adding a break statement and replacing a comment with a goto statement instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo

[PATCH 127/141] staging: qlge: Fix fall-through warnings for Clang

2020-11-20 Thread Gustavo A. R. Silva
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a break statement instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva --- drivers/staging/qlge/qlge_main.c | 1 +

[PATCH 130/141] tipc: Fix fall-through warnings for Clang

2020-11-20 Thread Gustavo A. R. Silva
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a break statement instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva --- net/tipc/link.c | 1 + 1 file changed,

[PATCH 119/141] rxrpc: Fix fall-through warnings for Clang

2020-11-20 Thread Gustavo A. R. Silva
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a break statement instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva --- net/rxrpc/af_rxrpc.c | 1 + 1 file chan

[PATCH 136/141] virtio_net: Fix fall-through warnings for Clang

2020-11-20 Thread Gustavo A. R. Silva
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a goto statement instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva --- drivers/net/virtio_net.c | 1 + 1 file c

[PATCH 129/141] SUNRPC: Fix fall-through warnings for Clang

2020-11-20 Thread Gustavo A. R. Silva
In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple warnings by explicitly adding multiple break statements instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva --- net/sunrpc/rpc_pipe.c |

[PATCH 137/141] wcn36xx: Fix fall-through warnings for Clang

2020-11-20 Thread Gustavo A. R. Silva
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by replacing a /* fall through */ comment with the new pseudo-keyword macro fallthrough; instead of letting the code fall through to the next case. Notice that Clang doesn't recognize /* fall through */ comments as implicit f

[PATCH 140/141] zd1201: Fix fall-through warnings for Clang

2020-11-20 Thread Gustavo A. R. Silva
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by replacing a /* Fall through */ comment with the new pseudo-keyword macro fallthrough; instead of letting the code fall through to the next case. Notice that Clang doesn't recognize /* Fall through */ comments as implicit f

[PATCH 139/141] xfrm: Fix fall-through warnings for Clang

2020-11-20 Thread Gustavo A. R. Silva
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a break statement instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva --- net/xfrm/xfrm_interface.c | 1 + 1 file

Re: [PATCH net-next v2] net: add annotation for sock_{lock,unlock}_fast

2020-11-20 Thread Jakub Kicinski
On Tue, 17 Nov 2020 19:43:49 +0100 Paolo Abeni wrote: > The static checker is fooled by the non-static locking scheme > implemented by the mentioned helpers. > Let's make its life easier adding some unconditional annotation > so that the helpers are now interpreted as a plain spinlock from > sparse

Re: [EXT] [PATCH 018/141] qed: Fix fall-through warnings for Clang

2020-11-20 Thread Igor Russkikh
On 20/11/2020 9:26 pm, Gustavo A. R. Silva wrote: > External Email > > -- > In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple > warnings by explicitly adding a couple of break statements instead of > just

RE: [PATCH net-next v3 2/7] dpaa_eth: add basic XDP support

2020-11-20 Thread Camelia Alexandra Groza
> -Original Message- > From: Maciej Fijalkowski > Sent: Friday, November 20, 2020 02:19 > To: Camelia Alexandra Groza > Cc: k...@kernel.org; bro...@redhat.com; sa...@kernel.org; > da...@davemloft.net; Madalin Bucur (OSS) > ; Ioana Ciornei ; > netdev@vger.kernel.org > Subject: Re: [PATCH n

Re: [PATCH bpf-next v2 2/5] selftests/bpf: xsk selftests - SKB POLL, NOPOLL

2020-11-20 Thread Yonghong Song
On 11/20/20 5:00 AM, Weqaar Janjua wrote: Adds following tests: 1. AF_XDP SKB mode Generic mode XDP is driver independent, used when the driver does not have support for XDP. Works on any netdevice using sockets and generic XDP path. XDP hook from netif_receive_skb(). a. nopol

Re: [PATCH 000/141] Fix fall-through warnings for Clang

2020-11-20 Thread Jakub Kicinski
On Fri, 20 Nov 2020 12:21:39 -0600 Gustavo A. R. Silva wrote: > This series aims to fix almost all remaining fall-through warnings in > order to enable -Wimplicit-fallthrough for Clang. > > In preparation to enable -Wimplicit-fallthrough for Clang, explicitly > add multiple break/goto/return/fallt

RE: [PATCH net-next v3 4/7] dpaa_eth: add XDP_TX support

2020-11-20 Thread Camelia Alexandra Groza
> -Original Message- > From: Maciej Fijalkowski > Sent: Friday, November 20, 2020 01:51 > To: Camelia Alexandra Groza > Cc: k...@kernel.org; bro...@redhat.com; sa...@kernel.org; > da...@davemloft.net; Madalin Bucur (OSS) > ; Ioana Ciornei ; > netdev@vger.kernel.org > Subject: Re: [PATCH n

Re: [PATCH net-next 1/3] dsa: add support for Arrow XRS700x tag trailer

2020-11-20 Thread Andrew Lunn
On Fri, Nov 20, 2020 at 12:16:25PM -0600, George McCollister wrote: > Add support for Arrow SpeedChips XRS700x single byte tag trailer. This > is modeled on tag_trailer.c which works in a similar way. > > Signed-off-by: George McCollister > --- > include/net/dsa.h | 2 ++ > net/dsa/Kconfig

Re: [PATCH net-next 00/13] Add mlx5 subfunction support

2020-11-20 Thread Samudrala, Sridhar
On 11/20/2020 9:58 AM, Alexander Duyck wrote: On Thu, Nov 19, 2020 at 5:29 PM Jakub Kicinski wrote: On Wed, 18 Nov 2020 21:35:29 -0700 David Ahern wrote: On 11/18/20 7:14 PM, Jakub Kicinski wrote: On Tue, 17 Nov 2020 14:49:54 -0400 Jason Gunthorpe wrote: On Tue, Nov 17, 2020 at 09:11:20A

Re: [PATCH][next] octeontx2-pf: Fix unintentional sign extension issue

2020-11-20 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Wed, 18 Nov 2020 13:05:20 + you wrote: > From: Colin Ian King > > The shifting of the u16 result from ntohs(proto) by 16 bits to the > left will be promoted to a 32 bit signed int and then sign-extended > to a u64.

Re: [PATCH v10,net-next,0/3] Add Support for Marvell OcteonTX2 Cryptographic

2020-11-20 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (refs/heads/master): On Wed, 18 Nov 2020 17:14:13 +0530 you wrote: > This patchset adds support for CPT in OcteonTX2 admin function(AF). > CPT is a cryptographic accelerator unit and it includes microcoded > Giga Cipher engines. > > OcteonTX2

Re: [PATCH net-next] net/mlx4_en: Remove unused performance counters

2020-11-20 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Wed, 18 Nov 2020 12:34:27 +0200 you wrote: > Performance analysis counters are maintained under the MLX4_EN_PERF_STAT > definition, which is never set. > Clean them up, with all related structures and logic. > > Signed-

Re: [PATCH][next] octeontx2-af: Fix access of iter->entry after iter object has been kfree'd

2020-11-20 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Wed, 18 Nov 2020 14:38:03 + you wrote: > From: Colin Ian King > > The call to pc_delete_flow can kfree the iter object, so the following > dev_err message that accesses iter->entry can accessmemory that has > just

Re: [PATCH][next] octeontx2-af: Fix return of uninitialized variable err

2020-11-20 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Wed, 18 Nov 2020 13:25:02 + you wrote: > From: Colin Ian King > > Currently the variable err may be uninitialized if several of the if > statements are not executed in function nix_tx_vtag_decfg and a garbage > val

Re: [Intel-wired-lan] [PATCH next-queue v2 3/3] igc: Add support for PTP getcrosststamp()

2020-11-20 Thread Vinicius Costa Gomes
Hi Jakub, Jakub Kicinski writes: > On Tue, 17 Nov 2020 17:21:48 -0800 Vinicius Costa Gomes wrote: >> > Also, what is the point of providing time measurements every 1 >> > millisecond? >> >> I sincerely have no idea. I had no power on how the hardware was >> designed, and how PTM was implement

Re: [PATCH net] cxgb4: fix the panic caused by non smac rewrite

2020-11-20 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Wed, 18 Nov 2020 20:02:13 +0530 you wrote: > SMT entry is allocated only when loopback Source MAC > rewriting is requested. Accessing SMT entry for non > smac rewrite cases results in kernel panic. > > Fix the panic caused b

Re: [PATCH net] cfg80211: fix callback type mismatches in wext-compat

2020-11-20 Thread Kees Cook
On Tue, Nov 17, 2020 at 12:59:02PM -0800, Sami Tolvanen wrote: > Instead of casting callback functions to type iw_handler, which trips > indirect call checking with Clang's Control-Flow Integrity (CFI), add > stub functions with the correct function type for the callbacks. > > Reported-by: Sedat D

Re: [PATCH net] net/sched: act_mpls: ensure LSE is pullable before reading it

2020-11-20 Thread Jakub Kicinski
On Wed, 18 Nov 2020 17:36:52 +0100 Davide Caratti wrote: > when 'act_mpls' is used to mangle the LSE, the current value is read from > the packet with mpls_hdr(): ensure that the label is contained in the skb > "linear" area. > > Found by code inspection. > > Fixes: 2a2ea50870ba ("net: sched: add

[PATCH] cxgb4: Fix build failure when CONFIG_TLS=m

2020-11-20 Thread Tom Seewald
After commit 9d2e5e9eeb59 ("cxgb4/ch_ktls: decrypted bit is not enough") whenever CONFIG_TLS=m and CONFIG_CHELSIO_T4=y, the following build failure occurs: ld: drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.o: in function `cxgb_select_queue': cxgb4_main.c:(.text+0x2dac): undefined reference to `tls

Re: [PATCH net] cfg80211: fix callback type mismatches in wext-compat

2020-11-20 Thread Kees Cook
On Tue, Nov 17, 2020 at 02:07:43PM -0800, Sami Tolvanen wrote: > On Tue, Nov 17, 2020 at 1:45 PM Kees Cook wrote: > > > > On Tue, Nov 17, 2020 at 12:59:02PM -0800, Sami Tolvanen wrote: > > > Instead of casting callback functions to type iw_handler, which trips > > > indirect call checking with Cla

Re: [PATCH 000/141] Fix fall-through warnings for Clang

2020-11-20 Thread Gustavo A. R. Silva
On 11/20/20 12:28, Joe Perches wrote: > On Fri, 2020-11-20 at 12:21 -0600, Gustavo A. R. Silva wrote: >> Hi all, >> >> This series aims to fix almost all remaining fall-through warnings in >> order to enable -Wimplicit-fallthrough for Clang. >> >> In preparation to enable -Wimplicit-fallthrough

Re: [PATCH v3 net-next 0/3] net/sched: fix over mtu packet of defrag in

2020-11-20 Thread Cong Wang
On Thu, Nov 19, 2020 at 3:39 PM wrote: > > From: wenxu > > Currently kernel tc subsystem can do conntrack in act_ct. But when several > fragment packets go through the act_ct, function tcf_ct_handle_fragments > will defrag the packets to a big one. But the last action will redirect > mirred to a

Re: [PATCH 000/141] Fix fall-through warnings for Clang

2020-11-20 Thread Gustavo A. R. Silva
Hi, On 11/20/20 12:53, Jakub Kicinski wrote: > On Fri, 20 Nov 2020 12:21:39 -0600 Gustavo A. R. Silva wrote: >> This series aims to fix almost all remaining fall-through warnings in >> order to enable -Wimplicit-fallthrough for Clang. >> >> In preparation to enable -Wimplicit-fallthrough for Cla

Re: [PATCH 000/141] Fix fall-through warnings for Clang

2020-11-20 Thread Kees Cook
On Fri, Nov 20, 2020 at 10:53:44AM -0800, Jakub Kicinski wrote: > On Fri, 20 Nov 2020 12:21:39 -0600 Gustavo A. R. Silva wrote: > > This series aims to fix almost all remaining fall-through warnings in > > order to enable -Wimplicit-fallthrough for Clang. > > > > In preparation to enable -Wimplici

Re: [PATCH net-next 2/3] net: dsa: add Arrow SpeedChips XRS700x driver

2020-11-20 Thread Andrew Lunn
> +static const struct xrs700x_mib xrs700x_mibs[] = { > + {XRS_RX_GOOD_OCTETS_L(0), "rx_good_octets"}, > + {XRS_RX_BAD_OCTETS_L(0), "rx_bad_octets"}, > + {XRS_RX_UNICAST_L(0), "rx_unicast"}, > + {XRS_RX_BROADCAST_L(0), "rx_broadcast"}, > + {XRS_RX_MULTICAST_L(0), "rx_multicast"}

Re: [PATCH bpf-next v2 2/5] selftests/bpf: xsk selftests - SKB POLL, NOPOLL

2020-11-20 Thread Weqaar Janjua
On Fri, 20 Nov 2020 at 18:54, Yonghong Song wrote: > > > > On 11/20/20 5:00 AM, Weqaar Janjua wrote: > > Adds following tests: > > > > 1. AF_XDP SKB mode > > Generic mode XDP is driver independent, used when the driver does > > not have support for XDP. Works on any netdevice using sockets

Re: [PATCH 000/141] Fix fall-through warnings for Clang

2020-11-20 Thread Jakub Kicinski
On Fri, 20 Nov 2020 11:30:40 -0800 Kees Cook wrote: > On Fri, Nov 20, 2020 at 10:53:44AM -0800, Jakub Kicinski wrote: > > On Fri, 20 Nov 2020 12:21:39 -0600 Gustavo A. R. Silva wrote: > > > This series aims to fix almost all remaining fall-through warnings in > > > order to enable -Wimplicit-fall

Re: [PATCH net-next v2 2/2] lib8390: Cleanup variables

2020-11-20 Thread Jakub Kicinski
On Wed, 18 Nov 2020 17:51:07 +0100 Armin Wolf wrote: > unsigned long e8390_base = dev->base_addr; > struct ei_device *ei_local = netdev_priv(dev); > - int send_length, output_page; > + int output_page; > unsigned long flags; The last two lines should be swapped to follow

Re: Is test_offload.py supposed to work?

2020-11-20 Thread Andrii Nakryiko
On Fri, Nov 20, 2020 at 7:49 AM Toke Høiland-Jørgensen wrote: > > Hi Jakub and Jiri > > I am investigating an error with XDP offload mode, and figured I'd run > 'test_offload.py' from selftests. However, I'm unable to get it to run > successfully; am I missing some config options, or has it simply

Re: [PATCH] net: mvpp2: divide fifo for dts-active ports only

2020-11-20 Thread Jakub Kicinski
On Wed, 18 Nov 2020 20:20:56 +0200 stef...@marvell.com wrote: > From: Stefan Chulski > > Tx/Rx FIFO is a HW resource limited by total size, but shared > by all ports of same CP110 and impacting port-performance. > Do not divide the FIFO for ports which are not enabled in DTS, > so active ports co

Re: [PATCH net-next 1/3] dsa: add support for Arrow XRS700x tag trailer

2020-11-20 Thread George McCollister
On Fri, Nov 20, 2020 at 12:58 PM Andrew Lunn wrote: > > On Fri, Nov 20, 2020 at 12:16:25PM -0600, George McCollister wrote: > > Add support for Arrow SpeedChips XRS700x single byte tag trailer. This > > is modeled on tag_trailer.c which works in a similar way. > > > > Signed-off-by: George McColli

[PATCH v23 05/23] LSM: Use lsmblob in security_secctx_to_secid

2020-11-20 Thread Casey Schaufler
Change the security_secctx_to_secid interface to use a lsmblob structure in place of the single u32 secid in support of module stacking. Change its callers to do the same. The security module hook is unchanged, still passing back a secid. The infrastructure passes the correct entry from the lsmblo

[PATCH v23 06/23] LSM: Use lsmblob in security_secid_to_secctx

2020-11-20 Thread Casey Schaufler
Change security_secid_to_secctx() to take a lsmblob as input instead of a u32 secid. It will then call the LSM hooks using the lsmblob element allocated for that module. The callers have been updated as well. This allows for the possibility that more than one module may be called upon to translate

Re: [PATCH v4 net-next 0/3] add support for sending RFC8335 PROBE

2020-11-20 Thread David Ahern
On 11/20/20 10:27 AM, Andreas Roeseler wrote: > On Thu, 2020-11-19 at 21:01 -0700, David Ahern wrote: >> On 11/19/20 8:51 PM, David Ahern wrote: >>> On 11/17/20 5:46 PM, Andreas Roeseler wrote: The popular utility ping has several severe limitations such as the inability to query spe

[PATCH v23 08/23] LSM: Use lsmblob in security_task_getsecid

2020-11-20 Thread Casey Schaufler
Change the security_task_getsecid() interface to fill in a lsmblob structure instead of a u32 secid in support of LSM stacking. Audit interfaces will need to collect all possible secids for possible reporting. Reviewed-by: Kees Cook Reviewed-by: John Johansen Acked-by: Stephen Smalley Acked-by:

[PATCH v23 13/23] LSM: Ensure the correct LSM context releaser

2020-11-20 Thread Casey Schaufler
Add a new lsmcontext data structure to hold all the information about a "security context", including the string, its size and which LSM allocated the string. The allocation information is necessary because LSMs have different policies regarding the lifecycle of these strings. SELinux allocates and

[PATCH v23 16/23] LSM: security_secid_to_secctx in netlink netfilter

2020-11-20 Thread Casey Schaufler
Change netlink netfilter interfaces to use lsmcontext pointers, and remove scaffolding. Reviewed-by: Kees Cook Reviewed-by: John Johansen Acked-by: Stephen Smalley Acked-by: Pablo Neira Ayuso Signed-off-by: Casey Schaufler Cc: netdev@vger.kernel.org Cc: netfilter-de...@vger.kernel.org --- ne

[PATCH v23 14/23] LSM: Use lsmcontext in security_secid_to_secctx

2020-11-20 Thread Casey Schaufler
Replace the (secctx,seclen) pointer pair with a single lsmcontext pointer to allow return of the LSM identifier along with the context and context length. This allows security_release_secctx() to know how to release the context. Callers have been modified to use or save the returned data from the n

[PATCH v23 17/23] NET: Store LSM netlabel data in a lsmblob

2020-11-20 Thread Casey Schaufler
Netlabel uses LSM interfaces requiring an lsmblob and the internal storage is used to pass information between these interfaces, so change the internal data from a secid to a lsmblob. Update the netlabel interfaces and their callers to accommodate the change. This requires that the modules using ne

[PATCH v23 20/23] Audit: Add new record for multiple process LSM attributes

2020-11-20 Thread Casey Schaufler
Create a new audit record type to contain the subject information when there are multiple security modules that require such data. This record is linked with the same timestamp and serial number using the audit_alloc_local() mechanism. The record is produced only in cases where there is more than o

Re: [PATCH bpf-next v2 5/5] selftests/bpf: xsk selftests - Bi-directional Sockets - SKB, DRV

2020-11-20 Thread Yonghong Song
On 11/20/20 5:00 AM, Weqaar Janjua wrote: Adds following tests: 1. AF_XDP SKB mode d. Bi-directional Sockets Configure sockets as bi-directional tx/rx sockets, sets up fill and completion rings on each socket, tx/rx in both directions. Only nopoll mode is used 2. AF_

Re: [PATCH 000/141] Fix fall-through warnings for Clang

2020-11-20 Thread Kees Cook
On Fri, Nov 20, 2020 at 11:51:42AM -0800, Jakub Kicinski wrote: > On Fri, 20 Nov 2020 11:30:40 -0800 Kees Cook wrote: > > On Fri, Nov 20, 2020 at 10:53:44AM -0800, Jakub Kicinski wrote: > > > On Fri, 20 Nov 2020 12:21:39 -0600 Gustavo A. R. Silva wrote: > > > > This series aims to fix almost all

Re: [PATCH] mwifiex: pcie: add enable_device_dump module parameter

2020-11-20 Thread Brian Norris
(Sorry if anything's a bit slow here. I don't really have time to write out full proposals myself.) On Fri, Oct 30, 2020 at 3:30 AM Tsuchiya Yuto wrote: > Let me know if splitting this patch like this works. 1) The first patch > is to add this module parameter but don't change the default behavio

Re: [k...@kernel.org: Re: [PATCH net-next v2 0/3] net: introduce rps_default_mask]

2020-11-20 Thread Jakub Kicinski
On Fri, 20 Nov 2020 19:39:24 +0200 Marcel Apfelbaum wrote: > > The CPU isolation is done statically at system boot by setting > > Linux kernel parameters, So the container management component, in > > this case the Machine Configuration Operator (for Openshift) or the > > K8s counterpart can't real

Re: [PATCH net-next v2] net: dsa: avoid potential use-after-free error

2020-11-20 Thread Jakub Kicinski
On Fri, 20 Nov 2020 20:01:49 +0200 Vladimir Oltean wrote: > On Thu, Nov 19, 2020 at 12:09:06PM +0100, Christian Eggers wrote: > > If dsa_switch_ops::port_txtstamp() returns false, clone will be freed > > immediately. Shouldn't store a pointer to freed memory. > > > > Signed-off-by: Christian Egger

Re: [PATCH net-next] net: stream: fix TCP references when INET is not enabled

2020-11-20 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Wed, 18 Nov 2020 11:44:38 -0800 you wrote: > Fix build of net/core/stream.o when CONFIG_INET is not enabled. > Fixes these build errors (sample): > > ld: net/core/stream.o: in function `sk_stream_write_space': > (.text+

Re: [PATCH 1/3] mwifiex: disable ps_mode explicitly by default instead

2020-11-20 Thread Brian Norris
On Fri, Oct 30, 2020 at 1:04 AM Tsuchiya Yuto wrote: > On Thu, 2020-10-29 at 11:25 -0700, Brian Norris wrote: > > For the record, Chrome OS supports plenty of mwifiex systems with 8897 > > (SDIO only) and 8997 (PCIe), with PS enabled, and you're hurting > > those. Your problem sounds to be exclusi

Re: [PATCH net-next v2] net: dsa: avoid potential use-after-free error

2020-11-20 Thread Vladimir Oltean
On Fri, Nov 20, 2020 at 12:59:21PM -0800, Jakub Kicinski wrote: > On Fri, 20 Nov 2020 20:01:49 +0200 Vladimir Oltean wrote: > > On Thu, Nov 19, 2020 at 12:09:06PM +0100, Christian Eggers wrote: > > > If dsa_switch_ops::port_txtstamp() returns false, clone will be freed > > > immediately. Shouldn't

Re: [PATCH net] net: openvswitch: fix TTL decrement action netlink message format

2020-11-20 Thread Jakub Kicinski
On Thu, 19 Nov 2020 04:04:04 -0500 Eelco Chaudron wrote: > Currently, the openvswitch module is not accepting the correctly formated > netlink message for the TTL decrement action. For both setting and getting > the dec_ttl action, the actions should be nested in the > OVS_DEC_TTL_ATTR_ACTION attri

Re: [PATCH net-next v2] net: dsa: avoid potential use-after-free error

2020-11-20 Thread Jakub Kicinski
On Fri, 20 Nov 2020 23:04:36 +0200 Vladimir Oltean wrote: > On Fri, Nov 20, 2020 at 12:59:21PM -0800, Jakub Kicinski wrote: > > On Fri, 20 Nov 2020 20:01:49 +0200 Vladimir Oltean wrote: > > > On Thu, Nov 19, 2020 at 12:09:06PM +0100, Christian Eggers wrote: > > > > If dsa_switch_ops::port_txtst

Re: [RFC net-next 1/2] ethtool: add support for controling the type of adaptive coalescing

2020-11-20 Thread Michal Kubecek
On Fri, Nov 20, 2020 at 02:39:38PM +0100, Andrew Lunn wrote: > On Fri, Nov 20, 2020 at 08:23:22AM +0100, Michal Kubecek wrote: > > On Fri, Nov 20, 2020 at 10:59:59AM +0800, tanhuazhong wrote: > > > On 2020/11/20 6:02, Michal Kubecek wrote: > > > > > > > > We could use a similar approach as struct

Re: [PATCH net] cfg80211: fix callback type mismatches in wext-compat

2020-11-20 Thread Johannes Berg
On Fri, 2020-11-20 at 11:26 -0800, Kees Cook wrote: > On Tue, Nov 17, 2020 at 02:07:43PM -0800, Sami Tolvanen wrote: > > On Tue, Nov 17, 2020 at 1:45 PM Kees Cook wrote: > > > On Tue, Nov 17, 2020 at 12:59:02PM -0800, Sami Tolvanen wrote: > > > > Instead of casting callback functions to type iw_ha

Re: [PATCH 117/141] rtl8xxxu: Fix fall-through warnings for Clang

2020-11-20 Thread Jes Sorensen
On 11/20/20 1:38 PM, Gustavo A. R. Silva wrote: > In preparation to enable -Wimplicit-fallthrough for Clang, fix > multiple warnings by replacing /* fall through */ comments with > the new pseudo-keyword macro fallthrough; instead of letting the > code fall through to the next case. > > Notice tha

Re: [PATCH bpf-next V7 8/8] bpf/selftests: activating bpf_check_mtu BPF-helper

2020-11-20 Thread Alexei Starovoitov
On Fri, Nov 20, 2020 at 05:18:47PM +0100, Jesper Dangaard Brouer wrote: > Adding selftest for BPF-helper bpf_check_mtu(). Making sure > it can be used from both XDP and TC. > > Signed-off-by: Jesper Dangaard Brouer > --- > tools/testing/selftests/bpf/prog_tests/check_mtu.c | 37 >

Re: [k...@kernel.org: Re: [PATCH net-next v2 0/3] net: introduce rps_default_mask]

2020-11-20 Thread Daniel Borkmann
On 11/20/20 6:39 PM, Marcel Apfelbaum wrote: +netdev [Sorry for the second email, I failed to set the text-only mode] On Fri, Nov 20, 2020 at 7:30 PM Marcel Apfelbaum wrote: [...] -- Forwarded message -- From: Jakub Kicinski To: Paolo Abeni Cc: Saeed Mahameed , netdev@vger.ke

[PATCH net-next] net: don't include ethtool.h from netdevice.h

2020-11-20 Thread Jakub Kicinski
linux/netdevice.h is included in very many places, touching any of its dependecies causes large incremental builds. Drop the linux/ethtool.h include, linux/netdevice.h just needs a forward declaration of struct ethtool_ops. Fix all the places which made use of this implicit include. Signed-off-b

Re: [PATCH bpf-next 3/6] libbpf: refactor CO-RE relocs to not assume a single BTF object

2020-11-20 Thread Martin KaFai Lau
On Thu, Nov 19, 2020 at 03:22:41PM -0800, Andrii Nakryiko wrote: > Refactor CO-RE relocation candidate search to not expect a single BTF, rather > return all candidate types with their corresponding BTF objects. This will > allow to extend CO-RE relocations to accommodate kernel module BTFs. Acked-

Re: [PATCH bpf-next] bpf: simplify task_file_seq_get_next()

2020-11-20 Thread Daniel Borkmann
On 11/20/20 1:28 AM, Song Liu wrote: Simplify task_file_seq_get_next() by removing two in/out arguments: task and fstruct. Use info->task and info->files instead. Cc: Yonghong Song Signed-off-by: Song Liu Applied, thanks!

[PATCH net-next] net: page_pool: Add page_pool_put_page_bulk() to page_pool.rst

2020-11-20 Thread Lorenzo Bianconi
Introduce page_pool_put_page_bulk() entry into the API section of page_pool.rst Signed-off-by: Lorenzo Bianconi --- Documentation/networking/page_pool.rst | 8 1 file changed, 8 insertions(+) diff --git a/Documentation/networking/page_pool.rst b/Documentation/networking/page_pool.rst

Re: [PATCH net] net: openvswitch: fix TTL decrement action netlink message format

2020-11-20 Thread Pravin Shelar
On Thu, Nov 19, 2020 at 1:04 AM Eelco Chaudron wrote: > > Currently, the openvswitch module is not accepting the correctly formated > netlink message for the TTL decrement action. For both setting and getting > the dec_ttl action, the actions should be nested in the > OVS_DEC_TTL_ATTR_ACTION attri

Re: [PATCH 000/141] Fix fall-through warnings for Clang

2020-11-20 Thread Miguel Ojeda
Hi Gustavo, On Fri, Nov 20, 2020 at 7:21 PM Gustavo A. R. Silva wrote: > > Hi all, > > This series aims to fix almost all remaining fall-through warnings in > order to enable -Wimplicit-fallthrough for Clang. Thanks for this. Since this warning is reliable in both/all compilers and we are event

Re: [PATCH net-next v6 0/6] netdevsim: add ethtool coalesce and ring settings

2020-11-20 Thread Jakub Kicinski
On Wed, 18 Nov 2020 21:45:16 +0100 Antonio Cardace wrote: > Output of ethtool-ring.sh and ethtool-coalesce.sh selftests: > > # ./ethtool-ring.sh > PASSED all 4 checks > # ./ethtool-coalesce.sh > PASSED all 22 checks > # ./ethtool-pause.sh > PASSED all 7 checks > > Changelog v5 -> v6 > - moved som

Re: [PATCH net-next v3 2/3] dpaa2-eth: use new PTP_MSGTYPE_* define(s)

2020-11-20 Thread Vladimir Oltean
On Fri, Nov 20, 2020 at 09:41:05AM +0100, Christian Eggers wrote: > Remove usage of magic numbers. > > Signed-off-by: Christian Eggers > Cc: Ioana Ciornei > Cc: Ioana Radulescu > Cc: Yangbo Lu > --- Reviewed-by: Vladimir Oltean

Re: [PATCH net-next v3 3/3] ptp: ptp_ines: use new PTP_MSGTYPE_* define(s)

2020-11-20 Thread Vladimir Oltean
On Fri, Nov 20, 2020 at 09:41:06AM +0100, Christian Eggers wrote: > Remove driver internal defines for this. Masking msgtype with 0xf is > already done within ptp_get_msgtype(). > > Signed-off-by: Christian Eggers > Cc: Richard Cochran > Cc: Kurt Kanzenbach > --- Reviewed-by: Vladimir Oltean

Re: [PATCH net-next v3 1/3] net: ptp: introduce common defines for PTP message types

2020-11-20 Thread Vladimir Oltean
On Fri, Nov 20, 2020 at 09:41:04AM +0100, Christian Eggers wrote: > Using PTP wide defines will obsolete different driver internal defines > and uses of magic numbers. > > Signed-off-by: Christian Eggers > Cc: Kurt Kanzenbach > --- Reviewed-by: Vladimir Oltean

Re: [PATCH net-next] net: don't include ethtool.h from netdevice.h

2020-11-20 Thread Johannes Berg
On Fri, 2020-11-20 at 14:13 -0800, Jakub Kicinski wrote: > linux/netdevice.h is included in very many places, touching any > of its dependecies causes large incremental builds. > > Drop the linux/ethtool.h include, linux/netdevice.h just needs > a forward declaration of struct ethtool_ops. > > Fi

Re: [PATCH net-next v3 0/3] net: ptp: introduce common defines for PTP message types

2020-11-20 Thread Vladimir Oltean
On Fri, Nov 20, 2020 at 09:41:03AM +0100, Christian Eggers wrote: > This series introduces commen defines for PTP event messages. Driver > internal defines are removed and some uses of magic numbers are replaced > by the new defines. > > Changes v2 --> v3 > -- > - extend commit des

[PATCH net v2 0/3] ibmvnic: fixes in reset path

2020-11-20 Thread Lijun Pan
Patch 1/3 and 2/3 notify peers in failover and migration reset. Patch 3/3 skips timeout reset if it is already resetting. Lijun Pan (3): ibmvnic: fix call_netdevice_notifiers in do_reset ibmvnic: notify peers when failover and migration happen ibmvnic: skip tx timeout reset while in resettin

[PATCH net v2 1/3] ibmvnic: fix call_netdevice_notifiers in do_reset

2020-11-20 Thread Lijun Pan
When netdev_notify_peers was substituted in commit 986103e7920c ("net/ibmvnic: Fix RTNL deadlock during device reset"), call_netdevice_notifiers(NETDEV_RESEND_IGMP, dev) was missed. Fix it now. Fixes: 986103e7920c ("net/ibmvnic: Fix RTNL deadlock during device reset") Signed-off-by: Lijun Pan ---

[PATCH net v2 3/3] ibmvnic: skip tx timeout reset while in resetting

2020-11-20 Thread Lijun Pan
Sometimes it takes longer than 5 seconds (watchdog timeout) to complete failover, migration, and other resets. In stead of scheduling another timeout reset, we wait for the current one to complete. Suggested-by: Brian King Signed-off-by: Lijun Pan --- v2: no change drivers/net/ethernet/ibm/ibm

[PATCH net v2 2/3] ibmvnic: notify peers when failover and migration happen

2020-11-20 Thread Lijun Pan
Commit 61d3e1d9bc2a ("ibmvnic: Remove netdev notify for failover resets") excluded the failover case for notify call because it said netdev_notify_peers() can cause network traffic to stall or halt. Current testing does not show network traffic stall or halt because of the notify call for failover

[PATCH net 01/15] ibmvnic: handle inconsistent login with reset

2020-11-20 Thread Lijun Pan
From: Dany Madden Inconsistent login with the vnicserver is causing the device to be removed. This does not give the device a chance to recover from error state. This patch schedules a FATAL reset instead to bring the adapter up. Signed-off-by: Dany Madden Signed-off-by: Lijun Pan --- drivers

[PATCH net 02/15] ibmvnic: process HMC disable command

2020-11-20 Thread Lijun Pan
From: Dany Madden Currently ibmvnic does not support the disable vnic command from the Hardware Management Console. This patch enables ibmvnic to process CRQ message 0x07, disable vnic adapter. Signed-off-by: Dany Madden --- drivers/net/ethernet/ibm/ibmvnic.c | 40 +

[PATCH net 05/15] ibmvnic: avoid memset null scrq msgs

2020-11-20 Thread Lijun Pan
From: Dany Madden scrq->msgs could be NULL during device reset, causing Linux to crash. So, check before memset scrq->msgs. Signed-off-by: Dany Madden Signed-off-by: Lijun Pan --- drivers/net/ethernet/ibm/ibmvnic.c | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) dif

[PATCH net 04/15] ibmvnic: remove free_all_rwi function

2020-11-20 Thread Lijun Pan
From: Dany Madden Remove free_all_rwi() since it is no longer used. (__ibmvnic_remove() was the last user of free_all_rwi()). Signed-off-by: Dany Madden --- drivers/net/ethernet/ibm/ibmvnic.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/

Re: [PATCH net-next v4 0/5] net/x25: netdev event handling

2020-11-20 Thread Xie He
On Thu, Nov 19, 2020 at 9:40 PM Martin Schiller wrote: > > Changes to v3: > o another complete rework of the patch-set to split event handling > for layer2 (LAPB) and layer3 (X.25) Thanks for your work!!

[PATCH net 10/15] ibmvnic: no reset timeout for 5 seconds after reset

2020-11-20 Thread Lijun Pan
From: Dany Madden Reset timeout is going off right after adapter reset. This patch ensures that timeout is scheduled if it has been 5 seconds since the last reset. 5 seconds is the default watchdog timeout. Signed-off-by: Dany Madden --- drivers/net/ethernet/ibm/ibmvnic.c | 11 +-- dri

[PATCH net 08/15] ibmvnic: track pending login

2020-11-20 Thread Lijun Pan
From: Sukadev Bhattiprolu If after ibmvnic sent a LOGIN and got a FAILOVER, it is possible that the worker thread will start the reset process and free the login response buffer before it gets a (now stale) LOGIN_RSP. The ibmvnic tasklet will then tries to access the login response buffer and cra

[PATCH net 06/15] ibmvnic: restore adapter state on failed reset

2020-11-20 Thread Lijun Pan
From: Dany Madden In a failed reset, driver could end up in VNIC_PROBED or VNIC_CLOSED state and cannot recover in subsequent resets, leaving it offline. This patch restores the adapter state to reset_state, the original state when reset was called. Signed-off-by: Dany Madden --- drivers/net/e

[PATCH net 00/15] ibmvnic: assorted bug fixes

2020-11-20 Thread Lijun Pan
Assorted fixes and improvements for ibmvnic bugs. Dany Madden (9): ibmvnic: handle inconsistent login with reset ibmvnic: process HMC disable command ibmvnic: stop free_all_rwi on failed reset ibmvnic: remove free_all_rwi function ibmvnic: avoid memset null scrq msgs ibmvnic: restore a

<    1   2   3   4   5   >