[patch net-next v3 09/11] mlxsw: pci: Add support for getting resource through devlink

2018-01-14 Thread Jiri Pirko
From: Arkadi Sharshevsky Up until now the KVD partition was static. This patch introduces the ability to get the resource sizes via devlink. In case the resource is not available the default configuration is used. Signed-off-by: Arkadi Sharshevsky

[patch net-next v3 04/11] devlink: Add relation between dpipe and resource

2018-01-14 Thread Jiri Pirko
From: Arkadi Sharshevsky The hardware processes which are modeled via dpipe commonly use some internal hardware resources. Such relation can improve the understanding of hardware limitations. The number of resource's unit consumed per table's entry are also provided for

[patch net-next v3 11/11] mlxsw: documentation: Add resources ABI documentation

2018-01-14 Thread Jiri Pirko
From: Arkadi Sharshevsky Add resources ABI documentation. Signed-off-by: Arkadi Sharhsevsky Signed-off-by: Jiri Pirko --- Documentation/ABI/testing/devlink-resource-mlxsw | 33 1 file changed, 33

[patch net-next v3 00/11] Add support for resource abstraction

2018-01-14 Thread Jiri Pirko
From: Jiri Pirko Arkadi says: Many of the ASIC's internal resources are limited and are shared between several hardware procedures. For example, unified hash-based memory can be used for many lookup purposes, like FDB and LPM. In many cases the user can provide a partitioning

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

2018-01-14 Thread Eran Ben Elisha
On Mon, Jan 15, 2018 at 1:52 AM, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the net-next tree got a conflict in: > > include/linux/mlx5/mlx5_ifc.h > > between commit: > > 8978cc921fc7 ("{net,ib}/mlx5: Don't disable local loopback multicast >

[PATCH v3] nl80211: take RCU read lock when calling ieee80211_bss_get_ie()

2018-01-14 Thread Dominik Brodowski
As ieee80211_bss_get_ie() derefences an RCU to return ssid_ie, both the call to this function and any operation on this variable need protection by the RCU read lock. Fixes: 44905265bc15 ("nl80211: don't expose wdev->ssid for most interfaces") Signed-off-by: Dominik Brodowski

Re: [Patch net v2] tun: fix a memory leak for tfile->tx_array

2018-01-14 Thread Jason Wang
On 2018年01月14日 01:31, Cong Wang wrote: On Thu, Jan 11, 2018 at 2:16 AM, Jason Wang wrote: It looks to me what is actual missed is the cleanups tun_detach_all(). For me the only case that could leak is open attach ip link del link dev tap0 close or another set_iff() So

Re: r8169 regression: UDP packets dropped intermittantly

2018-01-14 Thread Jonathan Woithe
On Wed, Dec 20, 2017 at 03:50:11PM +1030, Jonathan Woithe wrote: > On Tue, Dec 19, 2017 at 01:25:23PM +0100, Michal Kubecek wrote: > > On Tue, Dec 19, 2017 at 04:15:32PM +1030, Jonathan Woithe wrote: > > > This clearly indicates that not every card using the r8169 driver is > > > vulnerable to the

Re: iscsi target regression due to "tcp: remove prequeue support" patch

2018-01-14 Thread Nicholas A. Bellinger
Hey MNC & Co, Ping on the earlier iscsi-target authentication login failures atop 4.14 + commit e7942d063 removing tcp prequeue support. For reference, what is your pre 4.14 environment using for sysctl_tcp_low_latency..? netdev folks, how would you like to proceed for -rc1..? On Mon,

Re: [PATCH bpf] bpf: do not modify min/max bounds on scalars with constant values

2018-01-14 Thread Y Song
On Fri, Jan 12, 2018 at 11:23 AM, Daniel Borkmann wrote: > syzkaller generated a BPF proglet and triggered a warning with > the following: > > 0: (b7) r0 = 0 > 1: (d5) if r0 s<= 0x0 goto pc+0 >R0=inv0 R1=ctx(id=0,off=0,imm=0) R10=fp0 > 2: (1f) r0 -= r1 >R0=inv0

[PATCH v6 00/36] Andes(nds32) Linux Kernel Port

2018-01-14 Thread Greentime Hu
This is the 6th version patchset to add the Linux kernel port for Andes(nds32) processors. Almost all of the feedbacks from v5 patchseries has been addressed. Thanks to everyone who provided feedback on the previous version. This patchset adds core architecture support to Linux for Andestech's

[PATCH v6 03/36] sparc: io: To use the define of ioremap_[nocache|wc|wb] in asm-generic/io.h

2018-01-14 Thread Greentime Hu
From: Greentime Hu It will be built failed if commit id: d25ea659 is selected. This patch can fix this build error. Signed-off-by: Greentime Hu --- arch/sparc/include/asm/io_32.h |5 - arch/sparc/kernel/ioport.c |4 ++-- 2

[PATCH v6 01/36] asm-generic/io.h: move ioremap_nocache/ioremap_uc/ioremap_wc/ioremap_wt out of ifndef CONFIG_MMU

2018-01-14 Thread Greentime Hu
From: Greentime Hu It allows some architectures to use this generic macro instead of defining theirs. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann ---

[PATCH v6 02/36] openrisc: add ioremap_nocache declaration before include asm-generic/io.h and sync ioremap prototype with it.

2018-01-14 Thread Greentime Hu
From: Greentime Hu It will be built failed if commit id: d25ea659 is selected. This patch can fix this build error. Signed-off-by: Greentime Hu --- arch/openrisc/include/asm/io.h |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[PATCH v6 04/36] earlycon: add reg-offset to physical address before mapping

2018-01-14 Thread Greentime Hu
From: Greentime Hu It will get the wrong virtual address because port->mapbase is not added the correct reg-offset yet. We have to update it before earlycon_map() is called Signed-off-by: Greentime Hu --- drivers/tty/serial/earlycon.c |3

[PATCH v6 05/36] nds32: Assembly macros and definitions

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch includes assembly macros, bit field definitions used in .S files across arch/nds32/. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/assembler.h | 39

[PATCH v6 07/36] nds32: Exception handling

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch includes the exception/interrupt entries, pt_reg structure and related accessors. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/ptrace.h | 66 +

[PATCH net-next] net: sched: fix use before alloc of per cpu stats

2018-01-14 Thread Prashant Bhole
About bug: During init of clsact/ingress, it links qdisc's cpu_bstats,cpu_qstats with mini qdisc. TCQ_F_CPUSTATS is set in qdisc->flags during init and this flag is checked after init to allocate memory for stats. Hence mini qdisc points to null per-cpu-stats. The problem isn't caught while

[PATCH v6 08/36] nds32: MMU definitions

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch includes virtual memory layout, PHYS_OFFSET is defined as 0x0. It also includes the 4KB/8KB page size configurations and pte operations. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu

[PATCH v6 06/36] nds32: Kernel booting and initialization

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch includes the kernel startup code. It can get dtb pointer passed from bootloader. It will create a temp mapping by tlb instructions at beginning and goto start_kernel. Signed-off-by: Vincent Chen Signed-off-by:

[PATCH v6 10/36] nds32: MMU fault handling and page table management

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch includes page fault handler, mmap and fixup implementations. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/lib/copy_page.S | 37 arch/nds32/mm/extable.c

[PATCH v6 12/36] nds32: Process management

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch includes copy_thread(), start_thread() implementation and cpu_context structure definition. nds32 uses $r25 to get current task_struct. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu

[PATCH v6 14/36] nds32: Atomic operations

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch includes the atomic and futex operations. Many atomic operations use the load-lock word(llw) and store-condition word(scw) operations. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu

[PATCH v6 11/36] nds32: Cache and TLB routines

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch contains cache and TLB maintenance functions. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/cache.h | 12 +

[PATCH v6 16/36] nds32: DMA mapping API

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch adds support for the DMA mapping API. It uses dma_map_ops for flexibility. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/dma-mapping.h | 14 ++

[PATCH v6 13/36] nds32: IRQ handling

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch includes irq related functions and irqchip_init(). Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/irqflags.h | 36

[PATCH v6 15/36] nds32: Device specific operations

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch introduces ioremap implementations. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/io.h | 83 +++

[PATCH v6 17/36] nds32: ELF definitions

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch adds definitions for the ELF format, relocation types, vdso locations and EXEC_PAGESIZE. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/elf.h |

[PATCH v6 20/36] nds32: Signal handling support

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch adds support for signal handling. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/uapi/asm/sigcontext.h | 60 ++ arch/nds32/kernel/signal.c

[PATCH v6 18/36] nds32: System calls handling

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch adds support for system calls. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/syscall.h | 188 ++

[PATCH v6 21/36] nds32: Library functions

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch add support for various library functions. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/string.h | 17 +++ arch/nds32/include/asm/swab.h| 35

[PATCH v6 22/36] nds32: Debugging support

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch adds ptrace support. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/uapi/asm/ptrace.h | 25 +++ arch/nds32/kernel/ptrace.c | 311

[PATCH v6 23/36] nds32: L2 cache support

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch adds L2 cache support. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/l2_cache.h | 137 + arch/nds32/kernel/atl2c.c

[PATCH v6 25/36] nds32: Generic timers support

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch adds support for timer. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu Reviewed-by: Linus Walleij --- arch/nds32/kernel/time.c | 11 +++ 1

[PATCH v6 26/36] nds32: Device tree support

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch adds support for device tree. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/boot/dts/Makefile |8 arch/nds32/boot/dts/ae3xx.dts | 85

[PATCH v6 24/36] nds32: Loadable modules

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch adds support for loadable modules. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/module.h | 11 ++ arch/nds32/kernel/module.c | 286

[PATCH v6 30/36] MAINTAINERS: Add nds32

2018-01-14 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Greentime Hu --- MAINTAINERS | 11 +++ 1 file changed, 11 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2f4e462..20284c8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -857,6 +857,17 @@

[PATCH v6 28/36] nds32: defconfig

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch adds nds32 defconfig. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/configs/defconfig | 107 ++ 1 file changed, 107

[PATCH v6 27/36] nds32: Miscellaneous header files

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch introduces some miscellaneous header files. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/delay.h | 39 +++

[PATCH v6 31/36] dt-bindings: nds32 CPU Bindings

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch adds nds32 CPU binding documents. Signed-off-by: Vincent Chen Signed-off-by: Rick Chen Signed-off-by: Zong Li Signed-off-by: Greentime Hu

[PATCH v6 32/36] dt-bindings: nds32 L2 cache controller Bindings

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch adds nds32 L2 cache controller binding documents. Signed-off-by: Greentime Hu Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/nds32/atl2c.txt | 29 + 1 file

[PATCH v6 29/36] nds32: Build infrastructure

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch adds Makefile, Kconfig and vmlinux.lds.S files required for building an nds32 kernel. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/Kconfig | 107

[PATCH v6 33/36] dt-bindings: nds32 SoC Bindings

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch adds nds32 SoC(AE3XX and AG101P) binding documents. Signed-off-by: Greentime Hu Reviewed-by: Rob Herring --- .../devicetree/bindings/nds32/andestech-boards | 40 1 file

[PATCH v6 34/36] dt-bindings: interrupt-controller: Andestech Internal Vector Interrupt Controller

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch adds an irqchip driver document for the Andestech Internal Vector Interrupt Controller. Signed-off-by: Rick Chen Signed-off-by: Greentime Hu Reviewed-by: Rob Herring ---

[PATCH v6 0/3] clocksource/drivers/atcpit100: Add andestech atcpit100 timer

2018-01-14 Thread Greentime Hu
ATCPIT100 is often used on the Andes architecture, This timer provide 4 PIT channels. Each PIT channel is a multi-function timer, can be configured as 32,16,8 bit timers or PWM as well. For system timer it will set channel 1 32-bit timer0 as clock source and count downwards until underflow and

[PATCH v6 2/3] clocksource/drivers/atcpit100: VDSO support

2018-01-14 Thread Greentime Hu
From: Rick Chen VDSO needs real-time cycle count to ensure the time accuracy. Unlike others, nds32 architecture does not define clock source, hence VDSO needs atcpit100 offering real-time cycle count to derive the correct time. Signed-off-by: Vincent Chen

[PATCH v6 1/3] clocksource/drivers/atcpit100: Add andestech atcpit100 timer

2018-01-14 Thread Greentime Hu
From: Rick Chen ATCPIT100 is often used on the Andes architecture, This timer provide 4 PIT channels. Each PIT channel is a multi-function timer, can be configured as 32,16,8 bit timers or PWM as well. For system timer it will set channel 1 32-bit timer0 as clock source

[PATCH v6 3/3] dt-bindings: timer: Add andestech atcpit100 timer binding doc

2018-01-14 Thread Greentime Hu
From: Rick Chen Add a document to describe Andestech atcpit100 timer and binding information. Signed-off-by: Rick Chen Signed-off-by: Greentime Hu Acked-by: Rob Herring ---

[PATCH v6 36/36] net: faraday add nds32 support.

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch is used to support nds32 architecture to use these faraday mac IP. Signed-off-by: Greentime Hu --- drivers/net/ethernet/faraday/Kconfig |8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git

[PATCH v6 19/36] nds32: VDSO support

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch adds VDSO support. The VDSO code is currently used for sys_rt_sigreturn() and optimised gettimeofday() (using the SoC timer counter). Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu

[PATCH v6 09/36] nds32: MMU initialization

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch includes memory initializations and highmem supporting. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/mm/highmem.c | 79 + arch/nds32/mm/init.c

Re: [PATCH] net/mlx4_en: ensure rx_desc updating reaches HW before prod db updating

2018-01-14 Thread jianchao.wang
Hi Tariq Thanks for your kindly response. On 01/14/2018 05:47 PM, Tariq Toukan wrote: > Thanks Jianchao for your patch. > > And Thank you guys for your reviews, much appreciated. > I was off-work on Friday and Saturday. > > On 14/01/2018 4:40 AM, jianchao.wang wrote: >> Dear all >> >> Thanks

[PATCH net-next 1/1] forcedeth: remove unused variable

2018-01-14 Thread Zhu Yanjun
The variable miistat is not used. So it is removed. CC: Srinivas Eeda CC: Joe Jin CC: Junxiao Bi Signed-off-by: Zhu Yanjun --- drivers/net/ethernet/nvidia/forcedeth.c | 7 ++- 1 file changed, 2

[PATCH net-next v2] net: sched: red: don't reset the backlog on every stat dump

2018-01-14 Thread Jakub Kicinski
Commit 0dfb33a0d7e2 ("sch_red: report backlog information") copied child's backlog into RED's backlog. Back then RED did not maintain its own backlog counts. This has changed after commit 2f5fb43f ("net_sched: update hierarchical backlog too") and commit d7f4f332f082 ("sch_red: update

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

2018-01-14 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the rdma tree got a conflict in: drivers/infiniband/hw/mlx5/main.c between commits: 8978cc921fc7 ("{net,ib}/mlx5: Don't disable local loopback multicast traffic when needed") 72f36be06138 ("net/mlx5: Fix mlx5_get_uars_page to return error code") from

linux-next: manual merge of the bpf-next tree with Linus' tree

2018-01-14 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the bpf-next tree got a conflict in: arch/x86/lib/Makefile between commit: 76b043848fd2 ("x86/retpoline: Add initial retpoline support") from Linus' tree and commit: 540adea3809f ("error-injection: Separate error-injection from kprobe") from the

Re: [PATCH bpf-next v2 00/15] bpf: support creating maps on networking devices

2018-01-14 Thread Daniel Borkmann
On 01/12/2018 05:29 AM, Jakub Kicinski wrote: > Hi! > > This set adds support for creating maps on networking devices. BPF is > programs+maps, the pure program offload has been around for quite some > time, this patchset adds the map part of the equation. > > Maps are allocated on the target

Re: [PATCH bpf-next v2 07/15] bpf: offload: add map offload infrastructure

2018-01-14 Thread Daniel Borkmann
On 01/15/2018 12:52 AM, Jakub Kicinski wrote: > On Sun, Jan 14, 2018 at 3:37 PM, Daniel Borkmann wrote: >> Hi Jakub, >> >> Series looks fine, just stumbled over one small thing here below. >> >> On 01/12/2018 05:29 AM, Jakub Kicinski wrote: >> [...] >>> +bool

Re: [PATCH bpf-next v2 07/15] bpf: offload: add map offload infrastructure

2018-01-14 Thread Jakub Kicinski
On Sun, Jan 14, 2018 at 3:37 PM, Daniel Borkmann wrote: > Hi Jakub, > > Series looks fine, just stumbled over one small thing here below. > > On 01/12/2018 05:29 AM, Jakub Kicinski wrote: > [...] >> +bool bpf_offload_dev_match(struct bpf_prog *prog, struct bpf_map *map) >>

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

2018-01-14 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: include/linux/mlx5/mlx5_ifc.h between commit: 8978cc921fc7 ("{net,ib}/mlx5: Don't disable local loopback multicast traffic when needed") from the net tree and commit: 40817cdbb695 ("net/mlx5: Add hairpin

Re: [PATCH bpf-next v2 07/15] bpf: offload: add map offload infrastructure

2018-01-14 Thread Daniel Borkmann
Hi Jakub, Series looks fine, just stumbled over one small thing here below. On 01/12/2018 05:29 AM, Jakub Kicinski wrote: [...] > +bool bpf_offload_dev_match(struct bpf_prog *prog, struct bpf_map *map) > +{ > + struct bpf_offloaded_map *offmap; > + struct bpf_prog_offload *offload; > +

Re: [PATCH 04/36] usercopy: Prepare for usercopy whitelisting

2018-01-14 Thread Matthew Wilcox
On Wed, Jan 10, 2018 at 12:28:23PM -0600, Christopher Lameter wrote: > On Tue, 9 Jan 2018, Kees Cook wrote: > > +struct kmem_cache *kmem_cache_create_usercopy(const char *name, > > + size_t size, size_t align, slab_flags_t flags, > > + size_t useroffset, size_t

Re: [PATCH v2] nl80211: take RCU read lock when calling ieee80211_bss_get_ie()

2018-01-14 Thread Johannes Berg
On Sun, 2018-01-14 at 23:22 +0100, Dominik Brodowski wrote: > > + rcu_read_lock(); > ssid_ie = ieee80211_bss_get_ie(>current_bss->pub, > WLAN_EID_SSID); > if (!ssid_ie) > - break; nit-picking

Re: [PATCH 13/38] ext4: Define usercopy region in ext4_inode_cache slab cache

2018-01-14 Thread Matthew Wilcox
On Thu, Jan 11, 2018 at 03:05:14PM -0800, Kees Cook wrote: > On Thu, Jan 11, 2018 at 9:01 AM, Theodore Ts'o wrote: > > On Wed, Jan 10, 2018 at 06:02:45PM -0800, Kees Cook wrote: > >> The ext4 symlink pathnames, stored in struct ext4_inode_info.i_data > >> and therefore contained in

[PATCH v2] nl80211: take RCU read lock when calling ieee80211_bss_get_ie()

2018-01-14 Thread Dominik Brodowski
As ieee80211_bss_get_ie() derefences an RCU, it needs to be called with rcu_read_lock held. Fixes: 44905265bc15 ("nl80211: don't expose wdev->ssid for most interfaces") Signed-off-by: Dominik Brodowski --- > This uses the ssid_ie, so that doesn't really seem right?

Re: [PATCH bpf] bpf: fix 32-bit divide by zero

2018-01-14 Thread Daniel Borkmann
On 01/13/2018 03:59 AM, Alexei Starovoitov wrote: > due to some JITs doing if (src_reg == 0) check in 64-bit mode > for div/mod opreations mask upper 32-bits of src register > before doing the check > > Fixes: 622582786c9e ("net: filter: x86: internal BPF JIT") > Fixes: 7a12b5031c6b ("sparc64:

Re: [PATCH] nl80211: take RCU read lock when calling ieee80211_bss_get_ie()

2018-01-14 Thread Johannes Berg
Hi, > Fixes: 44905265bc15 ("nl80211: don't expose wdev->ssid for most interfaces") > Signed-off-by: Dominik Brodowski > --- > > This patch fixes the regression I reported in the last couple of weeks for > various v4.15-rcX revisions to netdev, where a "suspicious RCU

[RFT net-next v4 1/5] net: stmmac: dwmac-meson8b: only configure the clocks in RGMII mode

2018-01-14 Thread Martin Blumenstingl
Neither the m25_div_clk nor the m250_div_clk or m250_mux_clk are used in RMII mode. The m25_div_clk output is routed to the RGMII PHY's "RGMII clock". This means that we don't need to configure the clocks in RMII mode. The driver however did this - with no effect since the clocks are not routed to

[RFT net-next v4 2/5] net: stmmac: dwmac-meson8b: simplify generating the clock names

2018-01-14 Thread Martin Blumenstingl
Instead of using a custom buffer, snprintf() and devm_kstrdup() we can simplify this by using devm_kasprintf(). No functional changes - this just makes the code shorter. Signed-off-by: Martin Blumenstingl ---

[RFT net-next v4 4/5] net: stmmac: dwmac-meson8b: fix setting the RGMII TX clock on Meson8b

2018-01-14 Thread Martin Blumenstingl
Meson8b only supports MPLL2 as clock input. The rate of the MPLL2 clock set by Odroid-C1's u-boot is close to (but not exactly) 500MHz. The exact rate is 52394Hz, which is calculated in drivers/clk/meson/clk-mpll.c using the following formula: DIV_ROUND_UP_ULL((u64)parent_rate * SDM_DEN,

[RFT net-next v4 5/5] net: stmmac: dwmac-meson8b: propagate rate changes to the parent clock

2018-01-14 Thread Martin Blumenstingl
On Meson8b the only valid input clock is MPLL2. The bootloader configures that to run at 52394Hz which cannot be divided evenly down to 125MHz using the m250_div clock. Currently the common clock framework chooses a m250_div of 2 - with the internal fixed "divide by 10" this results in a RGMII

[RFT net-next v4 3/5] net: stmmac: dwmac-meson8b: fix internal RGMII clock configuration

2018-01-14 Thread Martin Blumenstingl
Tests (using an oscilloscope and an Odroid-C1 board with a RTL8211F RGMII PHY) have shown that the PRG_ETH0 register behaves as follows: - bit 4 is a mux to choose between two parent clocks. according to the public S805 datasheet the only supported parent clock is MPLL2 (this was not verified

[RFT net-next v4 0/5] dwmac-meson8b: clock fixes for Meson8b

2018-01-14 Thread Martin Blumenstingl
Hi Dave, please do not apply this series until it got a Tested-by from Emiliano. Hi Emiliano, you reported [0] that you couldn't get dwmac-meson8b to work on your Odroid-C1. With your findings (register dumps, clk_summary output, etc.) I think I was able to find a fix: it consists of two

Re: [PATCH 02/38] usercopy: Enhance and rename report_usercopy()

2018-01-14 Thread Kees Cook
On Thu, Jan 11, 2018 at 9:06 AM, Christopher Lameter wrote: > On Wed, 10 Jan 2018, Kees Cook wrote: > >> diff --git a/mm/slab.h b/mm/slab.h >> index ad657ffa44e5..7d29e69ac310 100644 >> --- a/mm/slab.h >> +++ b/mm/slab.h >> @@ -526,4 +526,10 @@ static inline int

[PATCH v2 0/2] ipv4: Make neigh lookup keys for loopback/point-to-point devices be INADDR_ANY

2018-01-14 Thread Jim Westfall
This used to be the previous behavior in older kernels but became broken in a263b3093641f (ipv4: Make neigh lookups directly in output packet path) and then later removed because it was broken in 0bb4087cbec0 (ipv4: Fix neigh lookup keying over loopback/point-to-point devices) Not having this

[PATCH v2 2/2] ipv4: Make neigh lookup keys for loopback/point-to-point devices be INADDR_ANY

2018-01-14 Thread Jim Westfall
Map all lookup neigh keys to INADDR_ANY for loopback/point-to-point devices to avoid making an entry for every remote ip the device needs to talk to. This used the be the old behavior but became broken in a263b3093641f (ipv4: Make neigh lookups directly in output packet path) and later removed in

[PATCH v2 1/2] net: Allow neigh contructor functions ability to modify the primary_key

2018-01-14 Thread Jim Westfall
Use n->primary_key instead of pkey to account for the possibility that a neigh constructor function may have modified the primary_key value. Signed-off-by: Jim Westfall --- net/core/neighbour.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [PATCH v2] net: phy: Have __phy_modify return 0 on success

2018-01-14 Thread David Miller
From: Andrew Lunn Date: Sun, 14 Jan 2018 19:04:11 +0100 > Is there any particular reason you have not picked up this patch? Do > you want more testing? An O.K. from Russell? I just haven't gotten to it yet, and it's the weekend, so...

Re: [PATCH v2] net: phy: Have __phy_modify return 0 on success

2018-01-14 Thread Andrew Lunn
On Fri, Jan 12, 2018 at 03:01:36PM +0100, Andrew Lunn wrote: > __phy_modify would return the old value of the register before it was > modified. Thus on success, it does not return 0, but a positive value. > Thus functions using phy_modify, which is a wrapper around > __phy_modify, can start

[PATCH] nl80211: take RCU read lock when calling ieee80211_bss_get_ie()

2018-01-14 Thread Dominik Brodowski
As ieee80211_bss_get_ie() derefences an RCU, it needs to be called with rcu_read_lock held. Fixes: 44905265bc15 ("nl80211: don't expose wdev->ssid for most interfaces") Signed-off-by: Dominik Brodowski --- This patch fixes the regression I reported in the last couple

[PATCH 1/2] sh_eth: gather all TSU init code in one place

2018-01-14 Thread Sergei Shtylyov
The sh_eth_cpu_data::chip_reset() method always resets using ARSTR and this register is always located at the start of the TSU register region. Therefore, we can only call this method if we know TSU is there and thus simplify the probing code a bit... Signed-off-by: Sergei Shtylyov

[PATCH 2/2] sh_eth: get Ether port # only when needed

2018-01-14 Thread Sergei Shtylyov
The dual-port Ether configurations always have a shared TSU to e.g. pass the packets between those ports. With the TSU init. code gathered under the single *if*, we now can only get the port # from 'platform_device::id' only when we actually need it (and not recalculate it each time)...

[PATCH 0/2] sh_eth: simplify TSU initialization

2018-01-14 Thread Sergei Shtylyov
Hello! Here's a set of 2 patches against DaveM's 'net-next.git' repo. With those, I'm somewhat simplifying the TSU init code in the driver probe() method... [1/2] sh_eth: gather all TSU init code in one place [2/2] sh_eth: get Ether port # only when needed MBR, Sergei

Re: [PATCH] kernel:bpf Remove structure passing and assignment to save stack and no coping structures

2018-01-14 Thread Alexei Starovoitov
On Sun, Jan 14, 2018 at 01:18:35PM +0200, Karim Eshapa wrote: > >> Use pointers to structure as arguments to function instead of coping > >> structures and less stack size. Also transfer TNUM(_v, _m) to > >> tnum.h file to be used in differnet files for creating anonymous structures > >>

Re: [net-next 00/10][pull request] 10GbE Intel Wired LAN Driver Updates 2018-01-12

2018-01-14 Thread David Miller
From: Jeff Kirsher Date: Fri, 12 Jan 2018 09:29:22 -0800 > This series contains updates to ixgbe, fm10k and net core. ... > The following are changes since commit > 6bd39bc3da0f4a301fae69c4a32db2768f5118be: > Merge branch

Re: [patch net-next v2 0/5] mlxsw: Offload PRIO qdisc

2018-01-14 Thread David Miller
From: Jiri Pirko Date: Sun, 14 Jan 2018 12:33:12 +0100 > Add an offload support for PRIO qdisc for mlxsw driver. Series applied, thanks.

Re: [PATCH net-next 0/2] cxgb4: speed up reading on-chip memory

2018-01-14 Thread David Miller
From: Rahul Lakkireddy Date: Sun, 14 Jan 2018 15:02:03 +0530 > This series of patches speed up reading on-chip memory (EDC and MC) > by using AVX intrinsic instructions when available. > > Patch 1 exports callback to register supported intrinsic instructions > when

Re: [PATCH net-next 0/2] mv88e6xxx: ATU and VTU interrupts

2018-01-14 Thread David Miller
From: Andrew Lunn Date: Sun, 14 Jan 2018 02:32:43 +0100 > Both the ATU and VTU of Mavell switches can generate interrupts when > violations occur. Trap this interrupts and print what violation > occurred. Series applied, thanks Andrew.

Re: [PATCH v2] bpf: fix divides by zero

2018-01-14 Thread Alexei Starovoitov
On Fri, Jan 12, 2018 at 05:43:23PM -0800, Eric Dumazet wrote: > From: Eric Dumazet > > Divides by zero are not nice, lets avoid them if possible. > > Also do_div() seems not needed when dealing with 32bit operands, > but this seems a minor detail. > > Fixes: bd4cf0ed331a

Re: [patch net-next] mlxsw: spectrum_router: Add support for IPv6 non-equal-cost multipath

2018-01-14 Thread David Miller
From: Jiri Pirko Date: Fri, 12 Jan 2018 17:15:59 +0100 > From: Ido Schimmel > > Since commit eb789980d0aa ("mlxsw: spectrum_router: Populate adjacency > entries according to weights") the driver includes support for > non-equal-cost multipath, but IPv4

Re: [PATCH 2/2] ipv4: Make neigh lookup keys for loopback/point-to-point devices be INADDR_ANY

2018-01-14 Thread David Miller
From: Jim Westfall Date: Sat, 13 Jan 2018 16:01:39 -0800 > > + if(dev->flags & (IFF_LOOPBACK | IFF_POINTOPOINT)) There must be a space between 'if' and the opennening parenthesis. Please do not just repost this patch to fix this problem, you must repost the

Re: [PATCH] [net-next] net: netsec: use dma_addr_t for storing dma address

2018-01-14 Thread David Miller
From: Arnd Bergmann Date: Sat, 13 Jan 2018 22:13:44 +0100 > On targets that have different sizes for phys_addr_t and dma_addr_t, > we get a type mismatch error: > > drivers/net/ethernet/socionext/netsec.c: In function 'netsec_alloc_dring': >

Re: divide error in ___bpf_prog_run

2018-01-14 Thread David Miller
From: Daniel Borkmann Date: Sun, 14 Jan 2018 01:16:17 +0100 > Will get them in as soon as DaveM pulled the current batch into net. This is now done.

Re: pull-request: bpf 2018-01-13

2018-01-14 Thread David Miller
From: Daniel Borkmann Date: Sat, 13 Jan 2018 00:33:48 +0100 > The following pull-request contains BPF updates for your *net* tree. > > The main changes are: > > 1) Follow-up fix to the recent BPF out-of-bounds speculation >fix that prevents max_entries overflows and

Congratulations

2018-01-14 Thread mikhail fridman
-- Dear Congratulation i have selected you Just as I have declared on May 23, 2016 to give my fortune as charity get back to me now. Best Regards mikhail fridman

[PATCH v2 net-next 1/5] l2tp: fix switch default error handling in l2tp_nl_cmd_session_create()

2018-01-14 Thread Lorenzo Bianconi
Although this issue is harmless since that code path is protected by the check on l2tp_nl_cmd_ops[]/l2tp_nl_cmd_ops[]->session_create(), fix error handling for L2TP_PWTYPE_IP/default case in l2tp_nl_cmd_session_create() Signed-off-by: Lorenzo Bianconi ---

[PATCH v2 net-next 2/5] l2tp: double-check l2specific_type provided by userspace

2018-01-14 Thread Lorenzo Bianconi
Add sanity check on l2specific_type provided by userspace in l2tp_nl_cmd_session_create() since just L2TP_L2SPECTYPE_DEFAULT and L2TP_L2SPECTYPE_NONE are currently supported. Moreover do not always initialize l2specific_type if userspace requests a given l2-specific sublayer type Signed-off-by:

[PATCH v2 net-next 0/5] l2tp: set l2specific_len based on l2specific_type

2018-01-14 Thread Lorenzo Bianconi
Do not rely on l2specific_len value provided by userspace but set sublayer length according to l2specific_type. Fix a harmless issue in the switch default case in l2tp_nl_cmd_session_create(). Changes since v1: - remove l2specific_len parameter - add sanity check on l2specific_type provided by

[PATCH v2 net-next 3/5] l2tp: remove l2specific_len dependency in l2tp_core

2018-01-14 Thread Lorenzo Bianconi
Remove l2specific_len dependency while building l2tpv3 header or parsing the received frame since default L2-Specific Sublayer is always four bytes long and we don't need to rely on a user supplied value. Moreover in l2tp netlink code there are no sanity checks to enforce the relation between

[PATCH v2 net-next 5/5] l2tp: mark L2TP_ATTR_L2SPEC_LEN as not used

2018-01-14 Thread Lorenzo Bianconi
Signed-off-by: Lorenzo Bianconi --- include/uapi/linux/l2tp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/l2tp.h b/include/uapi/linux/l2tp.h index 71e62795104d..7d570c7bd117 100644 --- a/include/uapi/linux/l2tp.h +++

  1   2   >