[PATCH] Bluetooth: Use lock_sock() when acquiring lock in sco_conn_del

2020-10-14 Thread yanfei . xu
From: Yanfei Xu Locking slock-AF_BLUETOOTH-BTPROTO_SCO may happen in process context or BH context. If in process context, we should use lock_sock(). As blow warning, sco_conn_del() is called in process context, so let's use lock_sock() instead of bh_lock_sock().

Re: [PATCH net-next v2 00/12] net: add and use function dev_fetch_sw_netstats for fetching pcpu_sw_netstats

2020-10-14 Thread Leon Romanovsky
On Wed, Oct 14, 2020 at 08:13:47AM +0200, Heiner Kallweit wrote: > On 14.10.2020 07:42, Leon Romanovsky wrote: > > On Tue, Oct 13, 2020 at 05:39:51PM -0700, Jakub Kicinski wrote: > >> On Mon, 12 Oct 2020 10:00:11 +0200 Heiner Kallweit wrote: > >>> In several places the same code is used to populate

RE: [PATCH 1/1] net: ftgmac100: Fix Aspeed ast2600 TX hang issue

2020-10-14 Thread Dylan Hung
Hi Joel, > -Original Message- > From: Joel Stanley [mailto:j...@jms.id.au] > Sent: Wednesday, October 14, 2020 2:41 PM > To: Dylan Hung > Cc: David S . Miller ; Jakub Kicinski > ; netdev@vger.kernel.org; Linux Kernel Mailing List > ; Po-Yu Chuang ; > linux-aspeed ; OpenBMC Maillist > ; BM

Re: [PATCH nf v2] netfilter: conntrack: connection timeout after re-register

2020-10-14 Thread Pablo Neira Ayuso
On Wed, Oct 14, 2020 at 02:06:28AM +0200, Pablo Neira Ayuso wrote: > On Fri, Oct 09, 2020 at 10:05:48PM +0200, Florian Westphal wrote: > > Jozsef Kadlecsik wrote: > > > > The "delay unregister" remark was wrt. the "all rules were deleted" > > > > case, i.e. add a "grace period" rather than acting

[PATCH 2/3] dt-bindings: net: bluetooth: Add broadcom BCM4389 support

2020-10-14 Thread Amitesh Chandra
From: Amitesh Chandra Add bindings for BCM4389 bluetooth controller. Signed-off-by: Amitesh Chandra --- Documentation/devicetree/bindings/net/broadcom-bluetooth.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/net/broadcom-bluetooth.txt b/Documentation

Re: [PATCH net-next v2 00/12] net: add and use function dev_fetch_sw_netstats for fetching pcpu_sw_netstats

2020-10-14 Thread Heiner Kallweit
On 14.10.2020 09:53, Leon Romanovsky wrote: > On Wed, Oct 14, 2020 at 08:13:47AM +0200, Heiner Kallweit wrote: >> On 14.10.2020 07:42, Leon Romanovsky wrote: >>> On Tue, Oct 13, 2020 at 05:39:51PM -0700, Jakub Kicinski wrote: On Mon, 12 Oct 2020 10:00:11 +0200 Heiner Kallweit wrote: > In s

Re: [PATCH net-next v2 00/12] net: add and use function dev_fetch_sw_netstats for fetching pcpu_sw_netstats

2020-10-14 Thread Johannes Berg
On Wed, 2020-10-14 at 09:59 +0200, Heiner Kallweit wrote: > > > Do you have a link? What is the benefit and how can we use it? > > > https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1873080.html There was also a long discussion a year or so back, starting at http://lore.kernel.org/r

Re: [PATCH net v2] net: fix pos incrementment in ipv6_route_seq_next

2020-10-14 Thread Eric Dumazet
On 10/13/20 8:31 PM, Yonghong Song wrote: > Commit 4fc427e05158 ("ipv6_route_seq_next should increase position index") > tried to fix the issue where seq_file pos is not increased > if a NULL element is returned with seq_ops->next(). See bug > https://bugzilla.kernel.org/show_bug.cgi?id=206283

Re: [PATCH nf v2] netfilter: conntrack: connection timeout after re-register

2020-10-14 Thread Florian Westphal
Pablo Neira Ayuso wrote: > > Yes, we iterate table on re-register and modify the existing entries. > > For iptables-nft, it might be possible to avoid this deregister + > register ct hooks in the same transaction: Maybe add something like > nf_ct_netns_get_all() to bump refcounters by one _iff_ t

Re: [PATCH net-next v2 00/12] net: add and use function dev_fetch_sw_netstats for fetching pcpu_sw_netstats

2020-10-14 Thread Leon Romanovsky
On Wed, Oct 14, 2020 at 10:01:20AM +0200, Johannes Berg wrote: > On Wed, 2020-10-14 at 09:59 +0200, Heiner Kallweit wrote: > > > > > Do you have a link? What is the benefit and how can we use it? > > > > > https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1873080.html So why is it usabl

Re: [PATCH net-next v2 00/12] net: add and use function dev_fetch_sw_netstats for fetching pcpu_sw_netstats

2020-10-14 Thread Heiner Kallweit
On 14.10.2020 07:42, Leon Romanovsky wrote: > On Tue, Oct 13, 2020 at 05:39:51PM -0700, Jakub Kicinski wrote: >> On Mon, 12 Oct 2020 10:00:11 +0200 Heiner Kallweit wrote: >>> In several places the same code is used to populate rtnl_link_stats64 >>> fields with data from pcpu_sw_netstats. Therefore

Re: [PATCH] Add support for mv88e6393x family of Marvell.

2020-10-14 Thread kernel test robot
documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Pavana-Sharma/Add-support-for-mv88e6393x-family-of-Marvell/20201014-130754 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git b5fc7a89e58bcc059a3d5e4db79c481fb437d

Re: [PATCH bpf] bpf: sockmap: add locking annotations to iterator

2020-10-14 Thread Jakub Sitnicki
On Mon, Oct 12, 2020 at 11:18 AM CEST, Lorenz Bauer wrote: > The sparse checker currently outputs the following warnings: > > include/linux/rcupdate.h:632:9: sparse: sparse: context imbalance in > 'sock_hash_seq_start' - wrong count at exit > include/linux/rcupdate.h:632:9: sparse: sparse:

Re: [Patch net v2] ip_gre: set dev->hard_header_len and dev->needed_headroom properly

2020-10-14 Thread Xie He
On Sun, Oct 11, 2020 at 2:01 PM Willem de Bruijn wrote: > > There is agreement that hard_header_len should be the length of link > layer headers visible to the upper layers, needed_headroom the > additional room required for headers that are not exposed, i.e., those > pushed inside ndo_start_xmit.

RE: [PATCH 14/17] can: flexcan: remove ack_grp and ack_bit handling from driver

2020-10-14 Thread Joakim Zhang
> -Original Message- > From: Marc Kleine-Budde > Sent: 2020年10月8日 5:32 > To: netdev@vger.kernel.org > Cc: da...@davemloft.net; linux-...@vger.kernel.org; > ker...@pengutronix.de; Marc Kleine-Budde ; Joakim > Zhang > Subject: [PATCH 14/17] can: flexcan: remove ack_grp and ack_bit handling

[PATCH net] net: sched: Fix suspicious RCU usage while accessing tcf_tunnel_info

2020-10-14 Thread Leon Romanovsky
From: Leon Romanovsky The access of tcf_tunnel_info() produces the following splat, so fix it by dereferencing the tcf_tunnel_key_params pointer with marker that internal tcfa_liock is held. = WARNING: suspicious RCU usage 5.9.0+ #1 Not tainted ---

Re: [PATCH] net: mscc: ocelot: Allow using without PCI on t1040 SoC

2020-10-14 Thread Vladimir Oltean
Hi Maxim, On Wed, Oct 14, 2020 at 09:11:05AM +0300, Maxim Kochetkov wrote: > There is no need to select FSL_ENETC_MDIO on t1040 SoC (ppc). > > Signed-off-by: Maxim Kochetkov > --- Please submit your changes after you've used net-next for a while. https://git.kernel.org/pub/scm/linux/kernel/git/

Re: [PATCH] can: Explain PDU in CAN_ISOTP help text

2020-10-14 Thread Marc Kleine-Budde
On 10/13/20 6:43 PM, Oliver Hartkopp wrote: > On 13.10.20 16:13, Geert Uytterhoeven wrote: >> The help text for the CAN_ISOTP config symbol uses the acronym "PDU". >> However, this acronym is not explained here, nor in >> Documentation/networking/can.rst. >> Expand the acronym to make it easier for

Re: [PATCH 1/1] net: ftgmac100: add handling of mdio/phy nodes for ast2400/2500

2020-10-14 Thread Joel Stanley
Hi Ivan, On Tue, 13 Oct 2020 at 12:38, Ivan Mikhaylov wrote: > > phy-handle can't be handled well for ast2400/2500 which has an embedded > MDIO controller. Add ftgmac100_mdio_setup for ast2400/2500 and initialize > PHYs from mdio child node with of_mdiobus_register. Good idea. The driver has bec

[PATCH] Add support for mv88e6393x family of Marvell.

2020-10-14 Thread Pavana Sharma
The Marvell 88E6393X device is a single-chip integration of a 11-port Ethernet switch with eight integrated Gigabit Ethernet (GbE) transceivers and three 10-Gigabit interfaces. This patch adds functionalities specific to mv88e6393x family (88E6393X, 88E6193X and 88E6191X) Signed-off-by: Pavana Sh

Re: [PATCH 1/1] net: ftgmac100: Fix Aspeed ast2600 TX hang issue

2020-10-14 Thread Joel Stanley
On Wed, 14 Oct 2020 at 06:07, Dylan Hung wrote: > > The new HW arbitration feature on Aspeed ast2600 will cause MAC TX to > hang when handling scatter-gather DMA. Disable the problematic feature > by setting MAC register 0x58 bit28 and bit27. Hi Dylan, What are the symptoms of this issue? We ar

Re: [PATCH 0/7] TC-ETF support PTP clocks series

2020-10-14 Thread Meisinger, Andreas
Hello Thomas, Sorry about the wrong format/style of my last mail, hope I did get it right this time. Let me first point at an important thing because we did have discussions here about it too. As of the manpages Linux CLOCK_TAI seems to be defined as an nonsettable clock which does have the sam

Re: [PATCH 1/1] net: dsa: seville: fix buffer size of the queue system

2020-10-14 Thread Vladimir Oltean
On Wed, Oct 14, 2020 at 08:14:04AM +0300, Maxim Kochetkov wrote: > The VSC9953 Seville switch has 2 megabits of buffer split into 4360 > words of 60 bytes each. 2048 * 1024 is 2 megabytes instead of 2 megabytes. ~

Re: [PATCH bpf] bpf: selftest: Fix flaky tcp_hdr_options test when adding addr to lo

2020-10-14 Thread Andrii Nakryiko
On Tue, Oct 13, 2020 at 4:13 AM Martin KaFai Lau wrote: > > The tcp_hdr_options test adds a "::eB9F" addr to the lo dev. > However, this non loopback address will have a race on ipv6 dad > which may lead to EADDRNOTAVAIL error from time to time. > > Even nodad is used in the iproute2 command, ther

Re: vxlan_asymmetric.sh test failed every time

2020-10-14 Thread Hangbin Liu
On Tue, Oct 13, 2020 at 10:49:30AM +0300, Ido Schimmel wrote: > On Tue, Oct 13, 2020 at 12:39:43PM +0800, Hangbin Liu wrote: > > Hi Ido, > > > > When run vxlan_asymmetric.sh on RHEL8, It failed every time. I though that > > it may failed because the kernel version is too old. But today I tried wit

Re: [PATCH] net: sockmap: Don't call bpf_prog_put() on NULL pointer

2020-10-14 Thread Jakub Sitnicki
On Mon, Oct 12, 2020 at 07:09 PM CEST, Alex Dewar wrote: > If bpf_prog_inc_not_zero() fails for skb_parser, then bpf_prog_put() is > called unconditionally on skb_verdict, even though it may be NULL. Fix > and tidy up error path. > > Addresses-Coverity-ID: 1497799: Null pointer dereferences (FORWAR

WARNING: at net/netfilter/nf_tables_api.c:622 lockdep_nfnl_nft_mutex_not_held+0x28/0x38 [nf_tables]

2020-10-14 Thread Naresh Kamboju
While running kselftest netfilter on arm64 hikey device on Linux next 20201013 the following kernel warning noticed. metadata: git branch: master git repo: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git commit: f2fb1afc57304f9dd68c20a08270e287470af2eb git describe:

Re: [PATCH v2 bpf-next 3/4] selftests/bpf: Add profiler test

2020-10-14 Thread Andrii Nakryiko
On Tue, Oct 13, 2020 at 2:03 PM Alexei Starovoitov wrote: > > On Tue, Oct 13, 2020 at 12:56 PM Jiri Olsa wrote: > > > > On Thu, Oct 08, 2020 at 06:12:39PM -0700, Alexei Starovoitov wrote: > > > > SNIP > > > > > + > > > +#ifdef UNROLL > > > +#pragma unroll > > > +#endif > > > + for (int i = 0;

[PATCH] bpfilter: Fix build error with CONFIG_BPFILTER_UMH

2020-10-14 Thread YueHaibing
IF CONFIG_BPFILTER_UMH is set, building fails: In file included from /usr/include/sys/socket.h:33:0, from net/bpfilter/main.c:6: /usr/include/bits/socket.h:390:10: fatal error: asm/socket.h: No such file or directory #include ^~ compilation terminated. scr

Re: [PATCH bpf-next V3 0/6] bpf: New approach for BPF MTU handling

2020-10-14 Thread Alexei Starovoitov
On Tue, Oct 13, 2020 at 04:07:26PM -0700, Jakub Kicinski wrote: > On Tue, 13 Oct 2020 22:40:09 +0200 Jesper Dangaard Brouer wrote: > > > FWIW I took a quick swing at testing it with the HW I have and it did > > > exactly what hardware should do. The TX unit entered an error state > > > and then th

Re: [PATCH] net: sockmap: Don't call bpf_prog_put() on NULL pointer

2020-10-14 Thread Alex Dewar
On 14/10/2020 10:32, Jakub Sitnicki wrote: On Mon, Oct 12, 2020 at 07:09 PM CEST, Alex Dewar wrote: If bpf_prog_inc_not_zero() fails for skb_parser, then bpf_prog_put() is called unconditionally on skb_verdict, even though it may be NULL. Fix and tidy up error path. Addresses-Coverity-ID: 14977

Re: [PATCH net-next v6 4/7] net: dsa: hellcreek: Add support for hardware timestamping

2020-10-14 Thread Vladimir Oltean
On Mon, Oct 12, 2020 at 02:42:54PM -0700, Richard Cochran wrote: > If you want, you can run your PHC using the linuxptp "free_running" > option. Then, you can use the TIME_STATUS_NP management request to > use the remote time signal in your application. I was expecting some sort of reaction to th

[PATCH net-next V3] cxgb4/ch_ipsec: Replace the module name to ch_ipsec from chcr

2020-10-14 Thread Ayush Sawal
This patch changes the module name to "ch_ipsec" and prepends "ch_ipsec" string instead of "chcr" in all debug messages and function names. V1->V2: -Removed inline keyword from functions. -Removed CH_IPSEC prefix from pr_debug. -Used proper indentation for the continuation line of the function arg

Re: [PATCH 14/17] can: flexcan: remove ack_grp and ack_bit handling from driver

2020-10-14 Thread Marc Kleine-Budde
On 10/14/20 10:53 AM, Joakim Zhang wrote: >> Since commit: >> >> 048e3a34a2e7 can: flexcan: poll MCR_LPM_ACK instead of GPR ACK for >> stop mode acknowledgment >> >> the driver polls the IP core's internal bit MCR[LPM_ACK] as stop mode >> acknowledge and not the acknowledgment on chip level. >>

Re: WARNING: at net/netfilter/nf_tables_api.c:622 lockdep_nfnl_nft_mutex_not_held+0x28/0x38 [nf_tables]

2020-10-14 Thread Naresh Kamboju
On Wed, 14 Oct 2020 at 12:20, Naresh Kamboju wrote: > > While running kselftest netfilter on arm64 hikey device on Linux next > 20201013 the following > kernel warning noticed. Same issue noticed on i386. # selftests: netfilter: nft_trans_stress.sh [ 1092.615814] [ cut here ]

[PATCH v2 3/7] staging: qlge: coredump via devlink health reporter

2020-10-14 Thread Coiby Xu
$ devlink health dump show DEVICE reporter coredump -p -j { "Core Registers": { "segment": 1, "values": [ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,

[PATCH v2 4/7] staging: qlge: support force_coredump option for devlink health dump

2020-10-14 Thread Coiby Xu
With force_coredump module parameter set, devlink health dump will reset the MPI RISC first which takes 5 secs to be finished. Signed-off-by: Coiby Xu --- drivers/staging/qlge/qlge_devlink.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/staging/qlge/qlge_devlink.c b/drivers

[PATCH v2 7/7] staging: qlge: add documentation for debugging qlge

2020-10-14 Thread Coiby Xu
Instructions and examples on kernel data structures dumping and coredump. Signed-off-by: Coiby Xu --- .../networking/device_drivers/index.rst | 1 + .../device_drivers/qlogic/index.rst | 18 +++ .../networking/device_drivers/qlogic/qlge.rst | 118 ++ MAINTAINER

[PATCH v2 6/7] staging: qlge: clean up debugging code in the QL_ALL_DUMP ifdef land

2020-10-14 Thread Coiby Xu
The debugging code in the following ifdef land - QL_ALL_DUMP - QL_REG_DUMP - QL_DEV_DUMP - QL_CB_DUMP - QL_IB_DUMP - QL_OB_DUMP becomes unnecessary because, - Device status and general registers can be obtained by ethtool. - Coredump can be done via devlink health reporter. - Structure re

[PATCH v2 5/7] staging: qlge: remove mpi_core_to_log which sends coredump to the kernel ring buffer

2020-10-14 Thread Coiby Xu
devlink health could be used to get coredump. No need to send so much data to the kernel ring buffer. Signed-off-by: Coiby Xu --- drivers/staging/qlge/TODO | 2 -- drivers/staging/qlge/qlge.h | 3 --- drivers/staging/qlge/qlge_dbg.c | 11 --- drivers/staging/qlge/

[PATCH v2 2/7] staging: qlge: Initialize devlink health dump framework

2020-10-14 Thread Coiby Xu
Initialize devlink health dump framework for the qlge driver so the coredump could be done via devlink. struct qlge_adapter is now used as the private data struct of struct devlink so it could exist independently of struct net_device and devlink reload could be supported in the future. Signed-off

Re: [PATCH net-next] net: openvswitch: fix to make sure flow_lookup() is not preempted

2020-10-14 Thread Eelco Chaudron
On 13 Oct 2020, at 14:53, Sebastian Andrzej Siewior wrote: On 2020-10-13 14:44:19 [+0200], Eelco Chaudron wrote: The flow_lookup() function uses per CPU variables, which must not be preempted. However, this is fine in the general napi use case where the local BH is disabled. But, it's also c

Re: [PATCH net-next v5 01/10] net: bridge: extend the process of special frames

2020-10-14 Thread Nikolay Aleksandrov
On Mon, 2020-10-12 at 14:04 +, Henrik Bjoernlund wrote: > This patch extends the processing of frames in the bridge. Currently MRP > frames needs special processing and the current implementation doesn't > allow a nice way to process different frame types. Therefore try to > improve this by add

Re: [PATCH net-next v5 08/10] bridge: cfm: Netlink GET configuration Interface.

2020-10-14 Thread Nikolay Aleksandrov
On Mon, 2020-10-12 at 14:04 +, Henrik Bjoernlund wrote: > This is the implementation of CFM netlink configuration > get information interface. > > Add new nested netlink attributes. These attributes are used by the > user space to get configuration information. > > GETLINK: > Request filt

Re: [PATCH net-next v6 4/7] net: dsa: hellcreek: Add support for hardware timestamping

2020-10-14 Thread Richard Cochran
On Wed, Oct 14, 2020 at 12:57:47PM +0300, Vladimir Oltean wrote: > So the discussion is about how to have the cake and eat it at the same > time. And I wish for a pony. With sparkles. And a unicorn. And a rainbow. > Silicon vendors eager to follow the latest trends in standards are > implement

Re: [PATCH net-next v5 09/10] bridge: cfm: Netlink GET status Interface.

2020-10-14 Thread Nikolay Aleksandrov
On Mon, 2020-10-12 at 14:04 +, Henrik Bjoernlund wrote: > This is the implementation of CFM netlink status > get information interface. > > Add new nested netlink attributes. These attributes are used by the > user space to get status information. > > GETLINK: > Request filter RTEXT_FILTE

Re: [PATCH net-next v6 4/7] net: dsa: hellcreek: Add support for hardware timestamping

2020-10-14 Thread Kurt Kanzenbach
On Wed Oct 14 2020, Richard Cochran wrote: > On Wed, Oct 14, 2020 at 12:57:47PM +0300, Vladimir Oltean wrote: >> So the discussion is about how to have the cake and eat it at the same >> time. > > And I wish for a pony. With sparkles. And a unicorn. And a rainbow. > >> Silicon vendors eager to f

Re: [PATCH v3 2/2] vhost-vdpa: fix page pinning leakage in error path

2020-10-14 Thread Jason Wang
On 2020/10/14 下午2:52, Michael S. Tsirkin wrote: On Tue, Oct 13, 2020 at 04:42:59PM -0700, si-wei liu wrote: On 10/9/2020 7:27 PM, Jason Wang wrote: On 2020/10/3 下午1:02, Si-Wei Liu wrote: Pinned pages are not properly accounted particularly when mapping error occurs on IOTLB update. Clean up

[PATCH v3] net: Add mhi-net driver

2020-10-14 Thread Loic Poulain
This patch adds a new network driver implementing MHI transport for network packets. Packets can be in any format, though QMAP (rmnet) is the usual protocol (flow control + PDN mux). It support two MHI devices, IP_HW0 which is, the path to the IPA (IP accelerator) on qcom modem, And IP_SW0 which i

selftests: netfilter: nft_nat.sh: /dev/stdin:2:9-15: Error: syntax error, unexpected counter

2020-10-14 Thread Naresh Kamboju
While running kselftest netfilter test on x86_64 devices linux next tag 20201013 kernel these errors are noticed. This not specific to kernel version we have noticed these errors earlier also. Am I missing configs ? Please refer to the config file we are using. We are using the minimal busybox she

Re: [PATCH 07/23] wfx: add bus_sdio.c

2020-10-14 Thread Jérôme Pouiller
Hello Pali, On Tuesday 13 October 2020 22:11:56 CEST Pali Rohár wrote: > Hello! > > On Monday 12 October 2020 12:46:32 Jerome Pouiller wrote: > > +#define SDIO_VENDOR_ID_SILABS0x > > +#define SDIO_DEVICE_ID_SILABS_WF200 0x1000 > > +static const struct sdio_device_id wfx_sdio_ids[] =

[PATCH net-next] net: ptp: get rid of IPV4_HLEN() and OFF_IHL macros

2020-10-14 Thread Christian Eggers
Both macros are already marked for removal. IPV4_HLEN(data) is misleading as it expects an Ethernet header instead of an IPv4 header as argument. Because it is defined (and only used) within PTP, it should be named PTP_IPV4_HLEN or similar. As the whole rest of the IPv4 stack has no problems using

WARNING in __rate_control_send_low

2020-10-14 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:bbf5c979 Linux 5.9 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=12dc474f90 kernel config: https://syzkaller.appspot.com/x/.config?x=3d8333c88fe898d7 dashboard link: https://syzkaller.appspot.com

Re: [PATCH 07/23] wfx: add bus_sdio.c

2020-10-14 Thread Pali Rohár
On Wednesday 14 October 2020 13:52:15 Jérôme Pouiller wrote: > Hello Pali, > > On Tuesday 13 October 2020 22:11:56 CEST Pali Rohár wrote: > > Hello! > > > > On Monday 12 October 2020 12:46:32 Jerome Pouiller wrote: > > > +#define SDIO_VENDOR_ID_SILABS0x > > > +#define SDIO_DEVICE_ID_S

[PATCH] net: phy: Prevent reporting advertised modes when autoneg is off

2020-10-14 Thread Łukasz Stelmach
Do not report advertised link modes when autonegotiation is turned off. mii_ethtool_get_link_ksettings() exhibits the same behaviour. Signed-off-by: Łukasz Stelmach --- drivers/net/phy/phy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/phy/phy.c b/drivers/net

Re: iptables userspace API broken due to added value in nf_inet_hooks

2020-10-14 Thread Pablo Neira Ayuso
On Wed, Oct 14, 2020 at 02:59:47PM +0200, Jason A. Donenfeld wrote: > Hey Pablo, > > In 60a3815da702fd9e4759945f26cce5c47d3967ad, you added another enum > value to nf_inet_hooks: > > --- a/include/uapi/linux/netfilter.h > +++ b/include/uapi/linux/netfilter.h > @@ -45,6 +45,7 @@ enum nf_inet_hooks

Re: iptables userspace API broken due to added value in nf_inet_hooks

2020-10-14 Thread Pablo Neira Ayuso
On Wed, Oct 14, 2020 at 03:01:15PM +0200, Pablo Neira Ayuso wrote: > On Wed, Oct 14, 2020 at 02:59:47PM +0200, Jason A. Donenfeld wrote: > > Hey Pablo, > > > > In 60a3815da702fd9e4759945f26cce5c47d3967ad, you added another enum > > value to nf_inet_hooks: > > > > --- a/include/uapi/linux/netfilte

iptables userspace API broken due to added value in nf_inet_hooks

2020-10-14 Thread Jason A. Donenfeld
Hey Pablo, In 60a3815da702fd9e4759945f26cce5c47d3967ad, you added another enum value to nf_inet_hooks: --- a/include/uapi/linux/netfilter.h +++ b/include/uapi/linux/netfilter.h @@ -45,6 +45,7 @@ enum nf_inet_hooks { NF_INET_FORWARD, NF_INET_LOCAL_OUT, NF_INET_POST_ROUTING, +

Re: [PATCH v2 2/7] staging: qlge: Initialize devlink health dump framework

2020-10-14 Thread Dan Carpenter
On Wed, Oct 14, 2020 at 06:43:01PM +0800, Coiby Xu wrote: > static int qlge_probe(struct pci_dev *pdev, > const struct pci_device_id *pci_entry) > { > struct net_device *ndev = NULL; > struct qlge_adapter *qdev = NULL; > + struct devlink *devlink; > stati

Re: [PATCH 1/1] net: ftgmac100: add handling of mdio/phy nodes for ast2400/2500

2020-10-14 Thread Ivan Mikhaylov
On Wed, 2020-10-14 at 05:23 +, Joel Stanley wrote: > Hi Ivan, > > On Tue, 13 Oct 2020 at 12:38, Ivan Mikhaylov wrote: > > phy-handle can't be handled well for ast2400/2500 which has an embedded > > MDIO controller. Add ftgmac100_mdio_setup for ast2400/2500 and initialize > > PHYs from mdio ch

RE: [PATCH net] can: peak_usb: add range checking in decode operations

2020-10-14 Thread Stéphane Grosjean
Hello Dan, Don't know if this patch is still relevant, but: - there is absolutely no reason for the device firmware to provide a channel index greater than or equal to 2, because the IP core of these USB devices handles 2 channels only. Anyway, these changes are correct. - considering the verif

[PATCH v2 1/1] net: dsa: seville: the packet buffer is 2 megabits, not megabytes

2020-10-14 Thread Maxim Kochetkov
The VSC9953 Seville switch has 2 megabits of buffer split into 4360 words of 60 bytes each. 2048 * 1024 is 2 megabytes instead of 2 megabits. 2 megabits is (2048 / 8) * 1024 = 256 * 1024. Signed-off-by: Maxim Kochetkov Fixes: a63ed92d217f ("net: dsa: seville: fix buffer size of the queue system")

Re: [PATCH] net: phy: Prevent reporting advertised modes when autoneg is off

2020-10-14 Thread Russell King - ARM Linux admin
On Wed, Oct 14, 2020 at 02:56:50PM +0200, Łukasz Stelmach wrote: > Do not report advertised link modes when autonegotiation is turned > off. mii_ethtool_get_link_ksettings() exhibits the same behaviour. Please explain why this is a desirable change. Referring to some other piece of code isn't a p

Re: [PATCH] net: sockmap: Don't call bpf_prog_put() on NULL pointer

2020-10-14 Thread Jakub Sitnicki
On Mon, Oct 12, 2020 at 07:09 PM CEST, Alex Dewar wrote: > If bpf_prog_inc_not_zero() fails for skb_parser, then bpf_prog_put() is > called unconditionally on skb_verdict, even though it may be NULL. Fix > and tidy up error path. > > Addresses-Coverity-ID: 1497799: Null pointer dereferences (FORWAR

Re: [PATCH 01/23] dt-bindings: introduce silabs,wfx.yaml

2020-10-14 Thread Jérôme Pouiller
On Tuesday 13 October 2020 18:49:35 CEST Rob Herring wrote: > On Mon, Oct 12, 2020 at 12:46:26PM +0200, Jerome Pouiller wrote: > > From: Jérôme Pouiller [...] > > + Note that in add of the properties below, the WFx driver also supports > > + `mac-address` and `local-mac-address` as described in

Re: [PATCH v2 1/1] net: dsa: seville: the packet buffer is 2 megabits, not megabytes

2020-10-14 Thread Vladimir Oltean
On Wed, Oct 14, 2020 at 04:27:43PM +0300, Maxim Kochetkov wrote: > The VSC9953 Seville switch has 2 megabits of buffer split into 4360 > words of 60 bytes each. 2048 * 1024 is 2 megabytes instead of 2 megabits. > 2 megabits is (2048 / 8) * 1024 = 256 * 1024. > > Signed-off-by: Maxim Kochetkov > F

Re: [PATCH AUTOSEL 5.8 18/24] net: usb: rtl8150: set random MAC address when set_ethernet_addr() fails

2020-10-14 Thread Sasha Levin
On Tue, Oct 13, 2020 at 12:01:06AM +0300, Petko Manolov wrote: On 20-10-12 12:11:18, Joe Perches wrote: On Mon, 2020-10-12 at 15:02 -0400, Sasha Levin wrote: > From: Anant Thazhemadam > > [ Upstream commit f45a4248ea4cc13ed50618ff066849f9587226b2 ] > > When get_registers() fails in set_ethernet

[PATCH] ixgbe: fail to create xfrm offload of IPsec tunnel mode SA

2020-10-14 Thread Antony Antony
Based on talks and indirect references ixgbe IPsec offlod do not support IPsec tunnel mode offload. It can only support IPsec transport mode offload. Now explicitly fail when creating non transport mode SA with offload to avoid false performance expectations. Fixes: 63a67fe229ea ("ixgbe: add ipse

Re: [PATCH] net: phy: Prevent reporting advertised modes when autoneg is off

2020-10-14 Thread Lukasz Stelmach
It was <2020-10-14 śro 14:32>, when Russell King - ARM Linux admin wrote: > On Wed, Oct 14, 2020 at 02:56:50PM +0200, Łukasz Stelmach wrote: >> Do not report advertised link modes when autonegotiation is turned >> off. mii_ethtool_get_link_ksettings() exhibits the same behaviour. > > Please explain

Re: vxlan_asymmetric.sh test failed every time

2020-10-14 Thread Ido Schimmel
On Wed, Oct 14, 2020 at 09:39:16AM +0800, Hangbin Liu wrote: > Thanks a lot for help debugging this issue, this patch works for me. Also patched vxlan_symmetric.sh and applied to our tree. Will submit tomorrow if nothing explodes in regression. Thanks for reporting and testing.

[PATCH net v3] net: fix pos incrementment in ipv6_route_seq_next

2020-10-14 Thread Yonghong Song
Commit 4fc427e05158 ("ipv6_route_seq_next should increase position index") tried to fix the issue where seq_file pos is not increased if a NULL element is returned with seq_ops->next(). See bug https://bugzilla.kernel.org/show_bug.cgi?id=206283 The commit effectively does: - increase pos for al

Re: [Patch net v2] ip_gre: set dev->hard_header_len and dev->needed_headroom properly

2020-10-14 Thread Willem de Bruijn
On Wed, Oct 14, 2020 at 4:52 AM Xie He wrote: > > On Sun, Oct 11, 2020 at 2:01 PM Willem de Bruijn > wrote: > > > > There is agreement that hard_header_len should be the length of link > > layer headers visible to the upper layers, needed_headroom the > > additional room required for headers that

Re: [PATCH bpf-next] selftests/bpf: fix compilation error in progs/profiler.inc.h

2020-10-14 Thread Song Liu
> On Oct 13, 2020, at 9:36 PM, Song Liu wrote: > > Fix the following error when compiling selftests/bpf > > progs/profiler.inc.h:246:5: error: redefinition of 'pids_cgrp_id' as > different kind of symbol > > pids_cgrp_id is used in cgroup code, and included in vmlinux.h. Fix the > error by

[PATCH net] net: dsa: ksz: fix padding size of skb

2020-10-14 Thread Christian Eggers
__skb_put_padto() is called in order to ensure a minimal size of the sk_buff. The required minimal size is ETH_ZLEN + the size required for the tail tag. The current argument misses the size for the tail tag. The expression "skb->len + padlen" can be simplified to ETH_ZLEN. Too small sk_buffs typ

Re: [ PATCH v2 1/2] ibmveth: Switch order of ibmveth_helper calls.

2020-10-14 Thread Willem de Bruijn
On Tue, Oct 13, 2020 at 7:21 PM David Wilder wrote: > > ibmveth_rx_csum_helper() must be called after ibmveth_rx_mss_helper() > as ibmveth_rx_csum_helper() may alter ip and tcp checksum values. > > Fixes: 66aa0678efc2 ("ibmveth: Support to enable LSO/CSO for Trunk > VEA.") > Signed-off-by: David W

Re: [ PATCH v2 2/2] ibmveth: Identify ingress large send packets.

2020-10-14 Thread Willem de Bruijn
On Tue, Oct 13, 2020 at 7:21 PM David Wilder wrote: > > Ingress large send packets are identified by either: > The IBMVETH_RXQ_LRG_PKT flag in the receive buffer > or with a -1 placed in the ip header checksum. > The method used depends on firmware version. Frame > geometry and sufficient header v

Re: [PATCH net-next 3/3] macb: support the two tx descriptors on at91rm9200

2020-10-14 Thread Willy Tarreau
Hi Claudiu, first, thanks for your feedback! On Wed, Oct 14, 2020 at 04:08:00PM +, claudiu.bez...@microchip.com wrote: > > @@ -3994,11 +3996,10 @@ static netdev_tx_t at91ether_start_xmit(struct > > sk_buff *skb, > > struct net_device *dev) > > { > >

Re: [PATCH net] net: dsa: ksz: fix padding size of skb

2020-10-14 Thread Vladimir Oltean
On Wed, Oct 14, 2020 at 06:17:19PM +0200, Christian Eggers wrote: > __skb_put_padto() is called in order to ensure a minimal size of the > sk_buff. The required minimal size is ETH_ZLEN + the size required for > the tail tag. > > The current argument misses the size for the tail tag. The expression

[PATCH ethtool] netlink: fix allocation failure handling in dump_features()

2020-10-14 Thread Michal Kubecek
On allocation failure, dump_features() would set ret to -ENOMEM but then return 0 anyway. As there is nothing to free in this case anyway, the easiest fix is to simply return -ENOMEM rather than jumping to out_free label - which can be dropped as well as this was its only use. Fixes: f2c17e107900

Re: [PATCH net] net: dsa: ksz: fix padding size of skb

2020-10-14 Thread Vladimir Oltean
On Wed, Oct 14, 2020 at 07:47:50PM +0300, Vladimir Oltean wrote: > On Wed, Oct 14, 2020 at 06:17:19PM +0200, Christian Eggers wrote: > > __skb_put_padto() is called in order to ensure a minimal size of the > > sk_buff. The required minimal size is ETH_ZLEN + the size required for > > the tail tag.

Re: [PATCH net] net: dsa: ksz: fix padding size of skb

2020-10-14 Thread Christian Eggers
Hi Vladimir, On Wednesday, 14 October 2020, 18:54:10 CEST, Vladimir Oltean wrote: > On Wed, Oct 14, 2020 at 07:47:50PM +0300, Vladimir Oltean wrote: > > On Wed, Oct 14, 2020 at 06:17:19PM +0200, Christian Eggers wrote: > > > __skb_put_padto() is called in order to ensure a minimal size of the > >

Re: [PATCH net] net: dsa: ksz: fix padding size of skb

2020-10-14 Thread Vladimir Oltean
On Wed, Oct 14, 2020 at 07:02:13PM +0200, Christian Eggers wrote: > > Otherwise said, the frame must be padded to > > max(skb->len, ETH_ZLEN) + tail tag length. > At first I thought the same when working on this. But IMHO the padding must > only ensure the minimum required size, there is no need to

Re: [PATCH net] net: sched: Fix suspicious RCU usage while accessing tcf_tunnel_info

2020-10-14 Thread Cong Wang
On Wed, Oct 14, 2020 at 1:56 AM Leon Romanovsky wrote: > > From: Leon Romanovsky > > The access of tcf_tunnel_info() produces the following splat, so fix it > by dereferencing the tcf_tunnel_key_params pointer with marker that > internal tcfa_liock is held. Looks reasonable to me, Acked-by: Con

[PATCH net 2/3] net/smc: fix valid DMBE buffer sizes

2020-10-14 Thread Karsten Graul
The SMCD_DMBE_SIZES should include all valid DMBE buffer sizes, so the correct value is 6 which means 1MB. With 7 the registration of an ISM buffer would always fail because of the invalid size requested. Fix that and set the value to 6. Fixes: c6ba7c9ba43d ("net/smc: add base infrastructure for S

[PATCH net 1/3] net/smc: fix use-after-free of delayed events

2020-10-14 Thread Karsten Graul
When a delayed event is enqueued then the event worker will send this event the next time it is running and no other flow is currently active. The event handler is called for the delayed event, and the pointer to the event keeps set in lgr->delayed_event. This pointer is cleared later in the proces

[PATCH net 3/3] net/smc: fix invalid return code in smcd_new_buf_create()

2020-10-14 Thread Karsten Graul
smc_ism_register_dmb() returns error codes set by the ISM driver which are not guaranteed to be negative or in the errno range. Such values would not be handled by ERR_PTR() and finally the return code will be used as a memory address. Fix that by using a valid negative errno value with ERR_PTR().

[PATCH net 0/3] net/smc: fixes 2020-10-14

2020-10-14 Thread Karsten Graul
Please apply the following patch series for smc to netdev's net tree. The first patch fixes a possible use-after-free of delayed llc events. Patch 2 corrects the number of DMB buffer sizes. And patch 3 ensures a correctly formatted return code when smc_ism_register_dmb() fails to create a new DMB.

Re: [PATCH net v3] net: fix pos incrementment in ipv6_route_seq_next

2020-10-14 Thread Martin KaFai Lau
On Wed, Oct 14, 2020 at 07:46:12AM -0700, Yonghong Song wrote: > Commit 4fc427e05158 ("ipv6_route_seq_next should increase position index") > tried to fix the issue where seq_file pos is not increased > if a NULL element is returned with seq_ops->next(). See bug > https://bugzilla.kernel.org/show

Re: [PATCH net] can: peak_usb: add range checking in decode operations

2020-10-14 Thread Oliver Hartkopp
Hi Stephane, On 14.10.20 15:22, Stéphane Grosjean wrote: Hello Dan, Don't know if this patch is still relevant, but: - there is absolutely no reason for the device firmware to provide a channel index greater than or equal to 2, because the IP core of these USB devices handles 2 channels only

[PATCH bpf-next] bpf: Fix register equivalence tracking.

2020-10-14 Thread Alexei Starovoitov
From: Alexei Starovoitov The 64-bit JEQ/JNE handling in reg_set_min_max() was clearing reg->id in either true or false branch. In the case 'if (reg->id)' check was done on the other branch the counter part register would have reg->id == 0 when called into find_equal_scalars(). In such case the he

Re: [PATCH] ixgbe: fail to create xfrm offload of IPsec tunnel mode SA

2020-10-14 Thread Shannon Nelson
On 10/14/20 7:17 AM, Antony Antony wrote: Based on talks and indirect references ixgbe IPsec offlod do not support IPsec tunnel mode offload. It can only support IPsec transport mode offload. Now explicitly fail when creating non transport mode SA with offload to avoid false performance expecta

Re: [PATCH] IPv6: sr: Fix End.X nexthop to use oif.

2020-10-14 Thread kernel test robot
fig: riscv-randconfig-r035-20201014 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project e7fe3c6dfede8d5781bd000741c3dea7088307a4) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/

Re: [PATCH nf v2] netfilter: conntrack: connection timeout after re-register

2020-10-14 Thread Francesco Ruggeri
On Wed, Oct 14, 2020 at 1:23 AM Florian Westphal wrote: > > Pablo Neira Ayuso wrote: > > Legacy would still be flawed though. > > Its fine too, new rule blob gets handled (and match/target checkentry > called) before old one is dismantled. > > We only have a 0 refcount + hook unregister when rule

Re: selftests: netfilter: nft_nat.sh: /dev/stdin:2:9-15: Error: syntax error, unexpected counter

2020-10-14 Thread Pablo Neira Ayuso
On Wed, Oct 14, 2020 at 05:19:33PM +0530, Naresh Kamboju wrote: > While running kselftest netfilter test on x86_64 devices linux next > tag 20201013 kernel > these errors are noticed. This not specific to kernel version we have > noticed these errors > earlier also. > > Am I missing configs ? Wha

[PATCH net-next] netfilter: restore NF_INET_NUMHOOKS

2020-10-14 Thread Pablo Neira Ayuso
This definition is used by the iptables legacy UAPI, restore it. Fixes: d3519cb89f6d ("netfilter: nf_tables: add inet ingress support") Reported-by: Jason A. Donenfeld Tested-by: Jason A. Donenfeld Signed-off-by: Pablo Neira Ayuso --- @Jakub: if you please can take this into net-next, it is fix

Re: [PATCH nf v2] netfilter: conntrack: connection timeout after re-register

2020-10-14 Thread Florian Westphal
Francesco Ruggeri wrote: > On Wed, Oct 14, 2020 at 1:23 AM Florian Westphal wrote: > > > > Pablo Neira Ayuso wrote: > > > Legacy would still be flawed though. > > > > Its fine too, new rule blob gets handled (and match/target checkentry > > called) before old one is dismantled. > > > > We only h

Re: [Patch net v2] ip_gre: set dev->hard_header_len and dev->needed_headroom properly

2020-10-14 Thread Xie He
On Wed, Oct 14, 2020 at 8:12 AM Willem de Bruijn wrote: > > On Wed, Oct 14, 2020 at 4:52 AM Xie He wrote: > > > > On Sun, Oct 11, 2020 at 2:01 PM Willem de Bruijn > > wrote: > > > > > > There is agreement that hard_header_len should be the length of link > > > layer headers visible to the upper

Re: [PATCH net-next 3/3] macb: support the two tx descriptors on at91rm9200

2020-10-14 Thread Claudiu.Beznea
Hi Willy, On 11.10.2020 12:09, Willy Tarreau wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > The at91rm9200 variant used by a few chips including the MSC313 supports > two Tx descriptors (one frame being serialized and another one queued)

kernel panic: Fatal exception (3)

2020-10-14 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:c77fb07f Merge branch 'netlink-export-policy-on-validation.. git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=1722ff0050 kernel config: https://syzkaller.appspot.com/x/.config?x=fa2bf4058104211 dash

Re: [Patch net v2] ip_gre: set dev->hard_header_len and dev->needed_headroom properly

2020-10-14 Thread Willem de Bruijn
On Wed, Oct 14, 2020 at 3:48 PM Xie He wrote: > > On Wed, Oct 14, 2020 at 8:12 AM Willem de Bruijn > wrote: > > > > On Wed, Oct 14, 2020 at 4:52 AM Xie He wrote: > > > > > > On Sun, Oct 11, 2020 at 2:01 PM Willem de Bruijn > > > wrote: > > > > > > > > There is agreement that hard_header_len sho

  1   2   >