Re: [PATCH linux-5.9 1/1] net: netfilter: fix KASAN: slab-out-of-bounds Read in nft_flow_rule_create

2020-10-26 Thread Greg KH
On Sun, Oct 25, 2020 at 04:31:57PM -0700, Saeed Mirzamohammadi wrote: > Adding stable. What did that do? confused, greg k-h

Re: [PATCH net-next 09/11] ath6kl: fix enum-conversion warning

2020-10-26 Thread Kalle Valo
Arnd Bergmann writes: > From: Arnd Bergmann > > gcc -Wextra points out a type mismatch > > drivers/net/wireless/ath/ath6kl/wmi.c: In function 'ath6kl_wmi_cmd_send': > drivers/net/wireless/ath/ath6kl/wmi.c:1825:19: warning: implicit conversion > from 'enum ' to 'enum wmi_data_hdr_data_type' [-We

[PATCH v3] net: core: Use skb_is_gso() in skb_checksum_help()

2020-10-26 Thread Yi Li
No functional changes, just minor refactoring. Signed-off-by: Yi Li --- net/core/dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/dev.c b/net/core/dev.c index 82dc6b48e45f..9e7f071b846c 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -3206,7 +3206,7 @@ int s

Re: [RFC bpf-next 00/16] bpf: Speed up trampoline attach

2020-10-26 Thread Alexei Starovoitov
On Thu, Oct 22, 2020 at 10:42:05AM -0400, Steven Rostedt wrote: > On Thu, 22 Oct 2020 16:11:54 +0200 > Jiri Olsa wrote: > > > I understand direct calls as a way that bpf trampolines and ftrace can > > co-exist together - ebpf trampolines need that functionality of accessing > > parameters of a fu

Re: [PATCH net-next 01/11] atm: horizon: shut up clang null pointer arithmetic warning

2020-10-26 Thread Xie He
On Mon, Oct 26, 2020 at 8:56 PM Xie He wrote: > > > - for (mem = (HDW *) memmap; mem < (HDW *) (memmap + 1); ++mem) > > + for (mem = (HDW *) memmap; mem < (HDW *) ((uintptr_t)memmap + 1); ++mem) > > Note that these two lines are semantically different. In the first line, > "+ 1" moves the pointe

Re: [PATCH net-next 01/11] atm: horizon: shut up clang null pointer arithmetic warning

2020-10-26 Thread Xie He
> - for (mem = (HDW *) memmap; mem < (HDW *) (memmap + 1); ++mem) > + for (mem = (HDW *) memmap; mem < (HDW *) ((uintptr_t)memmap + 1); ++mem) Note that these two lines are semantically different. In the first line, "+ 1" moves the pointer by (sizeof memmap) bytes. However in the second line, "+

Re: [PATCH bpf] samples/bpf: Set rlimit for memlock to infinity in all samples

2020-10-26 Thread Andrii Nakryiko
On Mon, Oct 26, 2020 at 5:10 PM Toke Høiland-Jørgensen wrote: > > The memlock rlimit is a notorious source of failure for BPF programs. Most > of the samples just set it to infinity, but a few used a lower limit. The > problem with unconditionally setting a lower limit is that this will also > ove

Re: [RFC PATCH 1/6] docs: networking: add the document for DFL Ether Group driver

2020-10-26 Thread Xu Yilun
On Mon, Oct 26, 2020 at 08:14:00PM +0100, Andrew Lunn wrote: > > > > > Do you really mean PHY? I actually expect it is PCS? > > > > > > > > For this implementation, yes. > > > > > > Yes, you have a PHY? Or Yes, it is PCS? > > > > Sorry, I mean I have a PHY. > > > > > > > > To me, the phylib m

Re: [PATCH] rtlwifi: Fix non-canonical address access issues

2020-10-26 Thread Pkshih
On Tue, 2020-10-27 at 11:16 +0800, WeitaoWangoc wrote: > During realtek USB wireless NIC initialization, it's unexpected > disconnection will cause urb sumbmit fail. On the one hand, > _rtl_usb_cleanup_rx will be called to clean up rx stuff, especially for > rtl_wq. On the other hand, disconnection

Re: [PATCH net] net: hns3: Clear the CMDQ registers before unmapping BAR region

2020-10-26 Thread Jakub Kicinski
On Tue, 27 Oct 2020 09:42:01 +0800 Yunsheng Lin wrote: > On 2020/10/27 9:25, Jakub Kicinski wrote: > > On Tue, 27 Oct 2020 09:24:10 +0800 Yunsheng Lin wrote: > >>> Fixes: 862d969a3a4d ("net: hns3: do VF's pci re-initialization while PF > >>> doing FLR") > >> > >> The correct Fixes tag should

[tipc-discussion] [net v3 1/1] tipc: fix memory leak caused by tipc_buf_append()

2020-10-26 Thread Tung Nguyen
Commit ed42989eab57 ("tipc: fix the skb_unshare() in tipc_buf_append()") replaced skb_unshare() with skb_copy() to not reduce the data reference counter of the original skb intentionally. This is not the correct way to handle the cloned skb because it causes memory leak in 2 following cases: 1/ Se

[PATCH] rtlwifi: Fix non-canonical address access issues

2020-10-26 Thread WeitaoWangoc
During realtek USB wireless NIC initialization, it's unexpected disconnection will cause urb sumbmit fail. On the one hand, _rtl_usb_cleanup_rx will be called to clean up rx stuff, especially for rtl_wq. On the other hand, disconnection will cause rtl_usb_disconnect and _rtl_usb_cleanup_rx to be ca

Re: [PATCH RESEND 3/3] net: core: fix some kernel-doc markups

2020-10-26 Thread Jakub Kicinski
On Mon, 26 Oct 2020 10:47:38 +0100 Mauro Carvalho Chehab wrote: > Some identifiers have different names between their prototypes > and the kernel-doc markup. > > In the specific case of netif_subqueue_stopped(), keep the > current markup for __netif_subqueue_stopped(), adding a > new one for netif

Re: [PATCH iproute2-next 3/5] lib: add libbpf support

2020-10-26 Thread Hangbin Liu
On Mon, Oct 26, 2020 at 09:15:00AM -0600, David Ahern wrote: > >> actually, it already does: bpf_load_program > > > > Thanks for this info. Do you want to convert ipvrf.c to: > > > > @@ -256,8 +262,13 @@ static int prog_load(int idx) > > BPF_EXIT_INSN(), > > }; > > > > +#ifdef H

Re: [RFC PATCH 1/6] docs: networking: add the document for DFL Ether Group driver

2020-10-26 Thread Xu Yilun
On Mon, Oct 26, 2020 at 11:35:52AM -0700, Jakub Kicinski wrote: > On Tue, 27 Oct 2020 01:38:04 +0800 Xu Yilun wrote: > > > > The line/host side Ether Group is not the terminal of the network data > > > > stream. > > > > Eth1 will not paticipate in the network data exchange to host. > > > > > > >

[PATCHv5 net 1/2] ICMPv6: Add ICMPv6 Parameter Problem, code 3 definition

2020-10-26 Thread Hangbin Liu
Based on RFC7112, Section 6: IANA has added the following "Type 4 - Parameter Problem" message to the "Internet Control Message Protocol version 6 (ICMPv6) Parameters" registry: CODE NAME/DESCRIPTION 3 IPv6 First Fragment has incomplete IPv6 Header Chain Signed-of

[PATCHv5 net 2/2] IPv6: reply ICMP error if the first fragment don't include all headers

2020-10-26 Thread Hangbin Liu
Based on RFC 8200, Section 4.5 Fragment Header: - If the first fragment does not include all headers through an Upper-Layer header, then that fragment should be discarded and an ICMP Parameter Problem, Code 3, message should be sent to the source of the fragment, with the Pointer

[PATCHv5 net 0/2] IPv6: reply ICMP error if fragment doesn't contain all headers

2020-10-26 Thread Hangbin Liu
When our Engineer run latest IPv6 Core Conformance test, test v6LC.1.3.6: First Fragment Doesn’t Contain All Headers[1] failed. The test purpose is to verify that the node(Linux for example) should properly process IPv6 packets that don’t include all the headers through the Upper-Layer header. Bas

答复: [PATCH] Net/Usb:Fix realtek wireless NIC non-canonical address access issues

2020-10-26 Thread WeitaoWang-oc
On Tue, 2020-10-27 at 09:39 +0800, Pkshih Wrote: >On Tue, 2020-10-20 at 19:38 +0800, WeitaoWangoc wrote: >For rtlwifi driver, please use 'rtlwifi: ' as prefix of mail subject, like >"rtlwifi: Fix non-canonical address access issues" >> During realtek USB wireless NIC initialization, it's unexpe

Re: [PATCH] net: ftgmac100: Fix missing TX-poll issue

2020-10-26 Thread Joel Stanley
On Mon, 26 Oct 2020 at 22:22, Benjamin Herrenschmidt wrote: > > On Fri, 2020-10-23 at 13:08 +, Dylan Hung wrote: > > The issue was found on our test chip (ast2600 version A0) which is > > just for testing and won't be mass-produced. This HW bug has been > > fixed on ast2600 A1 and later versi

Re: [PATCH] RDMA: Add rdma_connect_locked()

2020-10-26 Thread Chao Leng
On 2020/10/26 22:25, Jason Gunthorpe wrote: There are two flows for handling RDMA_CM_EVENT_ROUTE_RESOLVED, either the handler triggers a completion and another thread does rdma_connect() or the handler directly calls rdma_connect(). In all cases rdma_connect() needs to hold the handler_mutex,

Re: [PATCH net-next 07/11] rtw88: remove extraneous 'const' qualifier

2020-10-26 Thread Nathan Chancellor
On Mon, Oct 26, 2020 at 10:29:54PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > clang -Wextra warns about functions returning a 'const' integer: > > drivers/net/wireless/realtek/rtw88/rtw8822b.c:90:8: warning: 'const' type > qualifier on return type has no effect [-Wignored-qualifiers]

Re: [PATCH] Net/Usb:Fix realtek wireless NIC non-canonical address access issues

2020-10-26 Thread Pkshih
On Tue, 2020-10-20 at 19:38 +0800, WeitaoWangoc wrote: For rtlwifi driver, please use 'rtlwifi: ' as prefix of mail subject, like "rtlwifi: Fix non-canonical address access issues" > During realtek USB wireless NIC initialization, it's unexpected > disconnection will cause urb sumbmit fail.On the

Re: [PATCH net] net: hns3: Clear the CMDQ registers before unmapping BAR region

2020-10-26 Thread Yunsheng Lin
On 2020/10/27 9:25, Jakub Kicinski wrote: > On Tue, 27 Oct 2020 09:24:10 +0800 Yunsheng Lin wrote: >>> Fixes: 862d969a3a4d ("net: hns3: do VF's pci re-initialization while PF >>> doing FLR") >> >> The correct Fixes tag should be: >> >> Fixes: e3338205f0c7 ("net: hns3: uninitialize pci in the hcl

Re: [PATCH\ net] rtw88: fix fw dump support detection

2020-10-26 Thread Nathan Chancellor
On Mon, Oct 26, 2020 at 10:22:55PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > clang points out a useless check that was recently added: > > drivers/net/wireless/realtek/rtw88/fw.c:1485:21: warning: address of array > 'rtwdev->chip->fw_fifo_addr' will always evaluate to 'true' > [-Wp

Re: [PATCH net 0/5] bnxt_en: Bug fixes.

2020-10-26 Thread Jakub Kicinski
On Mon, 26 Oct 2020 00:18:16 -0400 Michael Chan wrote: > These 5 bug fixes are all related to the firmware reset or AER recovery. > 2 patches fix the cleanup logic for the workqueue used to handle firmware > reset and recovery. 1 patch ensures that the chip will have the proper > BAR addresses latc

RE: [EXT] Re: [PATCH] net: ethernet: fec: Replace interrupt driven MDIO with polled IO

2020-10-26 Thread Andy Duan
From: Greg Ungerer Sent: Tuesday, October 27, 2020 8:18 AM > Hi Andy, > > On 22/10/20 7:04 pm, Andy Duan wrote: > > From: Greg Ungerer Sent: Thursday, October 22, > > 2020 9:14 AM > >> Hi Andrew, > >> > >> On 21/10/20 11:37 pm, Andrew Lunn wrote: > +if (fep->quirks & FEC_QUIRK_CLEAR_SET

Re: [PATCH net-next 06/11] rtlwifi: fix -Wpointer-sign warning

2020-10-26 Thread Pkshih
On Mon, 2020-10-26 at 22:29 +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > There are thousands of warnings in a W=2 build from just one file: > > drivers/net/wireless/realtek/rtlwifi/rtl8821ae/table.c:3788:15: warning: > pointer targets in initialization of 'u8 *' {aka 'unsigned char *'}

Re: [PATCH net] net: hns3: Clear the CMDQ registers before unmapping BAR region

2020-10-26 Thread Jakub Kicinski
On Tue, 27 Oct 2020 09:24:10 +0800 Yunsheng Lin wrote: > > Fixes: 862d969a3a4d ("net: hns3: do VF's pci re-initialization while PF > > doing FLR") > > The correct Fixes tag should be: > > Fixes: e3338205f0c7 ("net: hns3: uninitialize pci in the hclgevf_uninit") Why is that? Isn't the issue t

Re: [PATCH net] net: hns3: Clear the CMDQ registers before unmapping BAR region

2020-10-26 Thread Yunsheng Lin
On 2020/10/27 7:13, Jakub Kicinski wrote: > On Fri, 23 Oct 2020 15:01:14 +0800 Zenghui Yu wrote: >> On 2020/10/23 14:22, Yunsheng Lin wrote: >>> On 2020/10/23 13:15, Zenghui Yu wrote: When unbinding the hns3 driver with the HNS3 VF, I got the following kernel panic: [ 265.709

Re: [PATCH v9 4/4] bus: mhi: Add userspace client interface driver

2020-10-26 Thread Hemant Kumar
Hi Loic, On 10/26/20 10:34 AM, Loic Poulain wrote: Hi Hemant, That looks better IMHO, just small comments on locking. [..] +static ssize_t mhi_uci_write(struct file *file, +                            const char __user *buf, +                            size_t count, +       

[PATCH AUTOSEL 5.9 067/147] selftests/bpf: Define string const as global for test_sysctl_prog.c

2020-10-26 Thread Sasha Levin
From: Yonghong Song [ Upstream commit 6e057fc15a2da4ee03eb1fa6889cf687e690106e ] When tweaking llvm optimizations, I found that selftest build failed with the following error: libbpf: elf: skipping unrecognized data section(6) .rodata.str1.1 libbpf: prog 'sysctl_tcp_mem': bad map relo agains

[PATCH AUTOSEL 5.9 060/147] bpf: Permit map_ptr arithmetic with opcode add and offset 0

2020-10-26 Thread Sasha Levin
From: Yonghong Song [ Upstream commit 7c6967326267bd5c0dded0a99541357d70dd11ac ] Commit 41c48f3a98231 ("bpf: Support access to bpf map fields") added support to access map fields with CORE support. For example, struct bpf_map { __u32 max_entries; } __

[PATCH AUTOSEL 5.9 036/147] ath10k: fix VHT NSS calculation when STBC is enabled

2020-10-26 Thread Sasha Levin
From: Sathishkumar Muruganandam [ Upstream commit 99f41b8e43b8b4b31262adb8ac3e69088fff1289 ] When STBC is enabled, NSTS_SU value need to be accounted for VHT NSS calculation for SU case. Without this fix, 1SS + STBC enabled case was reported wrongly as 2SS in radiotap header on monitor mode cap

[PATCH AUTOSEL 5.9 077/147] mac80211: add missing queue/hash initialization to 802.3 xmit

2020-10-26 Thread Sasha Levin
From: Felix Fietkau [ Upstream commit 5f8d69eaab1915df97f4f2aca89ea16abdd092d5 ] Fixes AQL for encap-offloaded tx Signed-off-by: Felix Fietkau Link: https://lore.kernel.org/r/20200908123702.88454-2-...@nbd.name Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- net/mac80211/tx.c |

[PATCH AUTOSEL 5.9 094/147] drivers/net/wan/hdlc_fr: Correctly handle special skb->protocol values

2020-10-26 Thread Sasha Levin
From: Xie He [ Upstream commit 8306266c1d51aac9aa7aa907fe99032a58c6382c ] The fr_hard_header function is used to prepend the header to skbs before transmission. It is used in 3 situations: 1) When a control packet is generated internally in this driver; 2) When a user sends an skb on an Ethernet

[PATCH AUTOSEL 5.9 069/147] samples/bpf: Fix possible deadlock in xdpsock

2020-10-26 Thread Sasha Levin
From: Magnus Karlsson [ Upstream commit 5a2a0dd88f0f267ac5953acd81050ae43a82201f ] Fix a possible deadlock in the l2fwd application in xdpsock that can occur when there is no space in the Tx ring. There are two ways to get the kernel to consume entries in the Tx ring: calling sendto() to make it

[PATCH AUTOSEL 5.9 088/147] octeontx2-af: fix LD CUSTOM LTYPE aliasing

2020-10-26 Thread Sasha Levin
From: Stanislaw Kardach [ Upstream commit 450f0b978870c384dd81d1176088536555f3170e ] Since LD contains LTYPE definitions tweaked toward efficient NIX_AF_RX_FLOW_KEY_ALG(0..31)_FIELD(0..4) usage, the original location of NPC_LT_LD_CUSTOM0/1 was aliased with MPLS_IN_* definitions. Moving custom fr

[PATCH AUTOSEL 5.9 107/147] bnxt_en: Log unknown link speed appropriately.

2020-10-26 Thread Sasha Levin
From: Michael Chan [ Upstream commit 8eddb3e7ce124dd6375d3664f1aae13873318b0f ] If the VF virtual link is set to always enabled, the speed may be unknown when the physical link is down. The driver currently logs the link speed as 4294967295 Mbps which is SPEED_UNKNOWN. Modify the link up log m

[PATCH AUTOSEL 5.9 092/147] ath11k: fix warning caused by lockdep_assert_held

2020-10-26 Thread Sasha Levin
From: Carl Huang [ Upstream commit 2f588660e34a982377109872757f1b99d7748d21 ] Fix warning caused by lockdep_assert_held when CONFIG_LOCKDEP is enabled. [ 271.940647] WARNING: CPU: 6 PID: 0 at drivers/net/wireless/ath/ath11k/hal.c:818 ath11k_hal_srng_access_begin+0x31/0x40 [ath11k] [ 271.940

[PATCH AUTOSEL 5.9 079/147] SUNRPC: Mitigate cond_resched() in xprt_transmit()

2020-10-26 Thread Sasha Levin
From: Chuck Lever [ Upstream commit 6f9f17287e78e5049931af2037b15b26d134a32a ] The original purpose of this expensive call is to prevent a long queue of requests from blocking other work. The cond_resched() call is unnecessary after just a single send operation. For longer queues, instead of i

Re: [REGRESSION] mm: process_vm_readv testcase no longer works after compat_prcoess_vm_readv removed

2020-10-26 Thread Al Viro
On Mon, Oct 26, 2020 at 05:56:11PM -0600, Jens Axboe wrote: > On 10/26/20 4:55 PM, Kyle Huey wrote: > > A test program from the rr[0] test suite, vm_readv_writev[1], no > > longer works on 5.10-rc1 when compiled as a 32 bit binary and executed > > on a 64 bit kernel. The first process_vm_readv call

[PATCH AUTOSEL 5.9 093/147] ath11k: change to disable softirqs for ath11k_regd_update to solve deadlock

2020-10-26 Thread Sasha Levin
From: Wen Gong [ Upstream commit df648808c6b9989555e247530d8ca0ad0094b361 ] After base_lock which occupy by ath11k_regd_update, the softirq run for WMI_REG_CHAN_LIST_CC_EVENTID maybe arrived and it also need to accuire the spin lock, then deadlock happend, change to disable softirqis to solve it

[PATCH AUTOSEL 5.9 091/147] ath11k: Use GFP_ATOMIC instead of GFP_KERNEL in ath11k_dp_htt_get_ppdu_desc

2020-10-26 Thread Sasha Levin
From: Wen Gong [ Upstream commit 6a8be1baa9116a038cb4f6158cc10134387ca0d0 ] With SLUB DEBUG CONFIG below crash is seen as kmem_cache_alloc is being called in non-atomic context. To fix this issue, use GFP_ATOMIC instead of GFP_KERNEL kzalloc. [ 357.217088] BUG: sleeping function called from i

[PATCH AUTOSEL 5.9 090/147] brcmfmac: Fix warning message after dongle setup failed

2020-10-26 Thread Sasha Levin
From: Wright Feng [ Upstream commit 6aa5a83a7ed8036c1388a811eb8bdfa77b21f19c ] Brcmfmac showed warning message in fweh.c when checking the size of event queue which is not initialized. Therefore, we only cancel the worker and reset event handler only when it is initialized. [ 145.505899] brcmf

[PATCH AUTOSEL 5.9 030/147] ath10k: fix retry packets update in station dump

2020-10-26 Thread Sasha Levin
From: Venkateswara Naralasetty [ Upstream commit 67b927f9820847d30e97510b2f00cd142b9559b6 ] When tx status enabled, retry count is updated from tx completion status. which is not working as expected due to firmware limitation where firmware can not provide per MSDU rate statistics from tx comple

[PATCH AUTOSEL 5.9 053/147] brcmfmac: increase F2 watermark for BCM4329

2020-10-26 Thread Sasha Levin
From: Dmitry Osipenko [ Upstream commit 317da69d10b0247c4042354eb90c75b81620ce9d ] This patch fixes SDHCI CRC errors during of RX throughput testing on BCM4329 chip if SDIO BUS is clocked above 25MHz. In particular the checksum problem is observed on NVIDIA Tegra20 SoCs. The good watermark value

[PATCH AUTOSEL 5.9 054/147] sfc: add and use efx_tx_send_pending in tx.c

2020-10-26 Thread Sasha Levin
From: Edward Cree [ Upstream commit 1c0544d24927e4fad04f858216b8ea767a3bd123 ] Instead of using efx_tx_queue_partner(), which relies on the assumption that tx_queues_per_channel is 2, efx_tx_send_pending() iterates over txqs with efx_for_each_channel_tx_queue(). We unconditionally set tx_queue

[PATCH AUTOSEL 5.9 066/147] nfc: s3fwrn5: Add missing CRYPTO_HASH dependency

2020-10-26 Thread Sasha Levin
From: Krzysztof Kozlowski [ Upstream commit 4aa62c62d4c41d71b2bda5ed01b78961829ee93c ] The driver uses crypto hash functions so it needs to select CRYPTO_HASH. This fixes build errors: arc-linux-ld: drivers/nfc/s3fwrn5/firmware.o: in function `s3fwrn5_fw_download': firmware.c:(.text+0x152)

[PATCH AUTOSEL 5.8 031/132] ath10k: start recovery process when payload length exceeds max htc length for sdio

2020-10-26 Thread Sasha Levin
From: Wen Gong [ Upstream commit 2fd3c8f34d08af0a6236085f9961866ad92ef9ec ] When simulate random transfer fail for sdio write and read, it happened "payload length exceeds max htc length" and recovery later sometimes. Test steps: 1. Add config and update kernel: CONFIG_FAIL_MMC_REQUEST=y CONFIG

[PATCH AUTOSEL 5.8 032/132] ath10k: fix VHT NSS calculation when STBC is enabled

2020-10-26 Thread Sasha Levin
From: Sathishkumar Muruganandam [ Upstream commit 99f41b8e43b8b4b31262adb8ac3e69088fff1289 ] When STBC is enabled, NSTS_SU value need to be accounted for VHT NSS calculation for SU case. Without this fix, 1SS + STBC enabled case was reported wrongly as 2SS in radiotap header on monitor mode cap

[PATCH AUTOSEL 5.8 059/132] selftests/bpf: Define string const as global for test_sysctl_prog.c

2020-10-26 Thread Sasha Levin
From: Yonghong Song [ Upstream commit 6e057fc15a2da4ee03eb1fa6889cf687e690106e ] When tweaking llvm optimizations, I found that selftest build failed with the following error: libbpf: elf: skipping unrecognized data section(6) .rodata.str1.1 libbpf: prog 'sysctl_tcp_mem': bad map relo agains

[PATCH AUTOSEL 5.8 080/132] octeontx2-af: fix LD CUSTOM LTYPE aliasing

2020-10-26 Thread Sasha Levin
From: Stanislaw Kardach [ Upstream commit 450f0b978870c384dd81d1176088536555f3170e ] Since LD contains LTYPE definitions tweaked toward efficient NIX_AF_RX_FLOW_KEY_ALG(0..31)_FIELD(0..4) usage, the original location of NPC_LT_LD_CUSTOM0/1 was aliased with MPLS_IN_* definitions. Moving custom fr

[PATCH AUTOSEL 5.8 047/132] brcmfmac: increase F2 watermark for BCM4329

2020-10-26 Thread Sasha Levin
From: Dmitry Osipenko [ Upstream commit 317da69d10b0247c4042354eb90c75b81620ce9d ] This patch fixes SDHCI CRC errors during of RX throughput testing on BCM4329 chip if SDIO BUS is clocked above 25MHz. In particular the checksum problem is observed on NVIDIA Tegra20 SoCs. The good watermark value

[PATCH AUTOSEL 5.8 061/132] samples/bpf: Fix possible deadlock in xdpsock

2020-10-26 Thread Sasha Levin
From: Magnus Karlsson [ Upstream commit 5a2a0dd88f0f267ac5953acd81050ae43a82201f ] Fix a possible deadlock in the l2fwd application in xdpsock that can occur when there is no space in the Tx ring. There are two ways to get the kernel to consume entries in the Tx ring: calling sendto() to make it

[PATCH AUTOSEL 5.8 058/132] nfc: s3fwrn5: Add missing CRYPTO_HASH dependency

2020-10-26 Thread Sasha Levin
From: Krzysztof Kozlowski [ Upstream commit 4aa62c62d4c41d71b2bda5ed01b78961829ee93c ] The driver uses crypto hash functions so it needs to select CRYPTO_HASH. This fixes build errors: arc-linux-ld: drivers/nfc/s3fwrn5/firmware.o: in function `s3fwrn5_fw_download': firmware.c:(.text+0x152)

[PATCH AUTOSEL 5.8 052/132] bpf: Permit map_ptr arithmetic with opcode add and offset 0

2020-10-26 Thread Sasha Levin
From: Yonghong Song [ Upstream commit 7c6967326267bd5c0dded0a99541357d70dd11ac ] Commit 41c48f3a98231 ("bpf: Support access to bpf map fields") added support to access map fields with CORE support. For example, struct bpf_map { __u32 max_entries; } __

[PATCH AUTOSEL 5.8 069/132] mac80211: add missing queue/hash initialization to 802.3 xmit

2020-10-26 Thread Sasha Levin
From: Felix Fietkau [ Upstream commit 5f8d69eaab1915df97f4f2aca89ea16abdd092d5 ] Fixes AQL for encap-offloaded tx Signed-off-by: Felix Fietkau Link: https://lore.kernel.org/r/20200908123702.88454-2-...@nbd.name Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- net/mac80211/tx.c |

[PATCH AUTOSEL 5.8 083/132] ath11k: Use GFP_ATOMIC instead of GFP_KERNEL in ath11k_dp_htt_get_ppdu_desc

2020-10-26 Thread Sasha Levin
From: Wen Gong [ Upstream commit 6a8be1baa9116a038cb4f6158cc10134387ca0d0 ] With SLUB DEBUG CONFIG below crash is seen as kmem_cache_alloc is being called in non-atomic context. To fix this issue, use GFP_ATOMIC instead of GFP_KERNEL kzalloc. [ 357.217088] BUG: sleeping function called from i

[PATCH AUTOSEL 5.8 086/132] drivers/net/wan/hdlc_fr: Correctly handle special skb->protocol values

2020-10-26 Thread Sasha Levin
From: Xie He [ Upstream commit 8306266c1d51aac9aa7aa907fe99032a58c6382c ] The fr_hard_header function is used to prepend the header to skbs before transmission. It is used in 3 situations: 1) When a control packet is generated internally in this driver; 2) When a user sends an skb on an Ethernet

[PATCH AUTOSEL 5.8 084/132] ath11k: fix warning caused by lockdep_assert_held

2020-10-26 Thread Sasha Levin
From: Carl Huang [ Upstream commit 2f588660e34a982377109872757f1b99d7748d21 ] Fix warning caused by lockdep_assert_held when CONFIG_LOCKDEP is enabled. [ 271.940647] WARNING: CPU: 6 PID: 0 at drivers/net/wireless/ath/ath11k/hal.c:818 ath11k_hal_srng_access_begin+0x31/0x40 [ath11k] [ 271.940

[PATCH AUTOSEL 5.8 099/132] bnxt_en: Log unknown link speed appropriately.

2020-10-26 Thread Sasha Levin
From: Michael Chan [ Upstream commit 8eddb3e7ce124dd6375d3664f1aae13873318b0f ] If the VF virtual link is set to always enabled, the speed may be unknown when the physical link is down. The driver currently logs the link speed as 4294967295 Mbps which is SPEED_UNKNOWN. Modify the link up log m

[PATCH AUTOSEL 5.4 17/80] ath10k: start recovery process when payload length exceeds max htc length for sdio

2020-10-26 Thread Sasha Levin
From: Wen Gong [ Upstream commit 2fd3c8f34d08af0a6236085f9961866ad92ef9ec ] When simulate random transfer fail for sdio write and read, it happened "payload length exceeds max htc length" and recovery later sometimes. Test steps: 1. Add config and update kernel: CONFIG_FAIL_MMC_REQUEST=y CONFIG

[PATCH AUTOSEL 5.4 18/80] ath10k: fix VHT NSS calculation when STBC is enabled

2020-10-26 Thread Sasha Levin
From: Sathishkumar Muruganandam [ Upstream commit 99f41b8e43b8b4b31262adb8ac3e69088fff1289 ] When STBC is enabled, NSTS_SU value need to be accounted for VHT NSS calculation for SU case. Without this fix, 1SS + STBC enabled case was reported wrongly as 2SS in radiotap header on monitor mode cap

[PATCH AUTOSEL 4.19 47/60] net: 9p: initialize sun_server.sun_path to have addr's value only when addr is valid

2020-10-26 Thread Sasha Levin
From: Anant Thazhemadam [ Upstream commit 7ca1db21ef8e0e6725b4d25deed1ca196f7efb28 ] In p9_fd_create_unix, checking is performed to see if the addr (passed as an argument) is NULL or not. However, no check is performed to see if addr is a valid address, i.e., it doesn't entirely consist of only

[PATCH AUTOSEL 5.4 32/80] bpf: Permit map_ptr arithmetic with opcode add and offset 0

2020-10-26 Thread Sasha Levin
From: Yonghong Song [ Upstream commit 7c6967326267bd5c0dded0a99541357d70dd11ac ] Commit 41c48f3a98231 ("bpf: Support access to bpf map fields") added support to access map fields with CORE support. For example, struct bpf_map { __u32 max_entries; } __

[PATCH AUTOSEL 4.19 13/60] ath10k: start recovery process when payload length exceeds max htc length for sdio

2020-10-26 Thread Sasha Levin
From: Wen Gong [ Upstream commit 2fd3c8f34d08af0a6236085f9961866ad92ef9ec ] When simulate random transfer fail for sdio write and read, it happened "payload length exceeds max htc length" and recovery later sometimes. Test steps: 1. Add config and update kernel: CONFIG_FAIL_MMC_REQUEST=y CONFIG

[PATCH AUTOSEL 4.14 11/46] ath10k: start recovery process when payload length exceeds max htc length for sdio

2020-10-26 Thread Sasha Levin
From: Wen Gong [ Upstream commit 2fd3c8f34d08af0a6236085f9961866ad92ef9ec ] When simulate random transfer fail for sdio write and read, it happened "payload length exceeds max htc length" and recovery later sometimes. Test steps: 1. Add config and update kernel: CONFIG_FAIL_MMC_REQUEST=y CONFIG

[PATCH AUTOSEL 4.14 12/46] ath10k: fix VHT NSS calculation when STBC is enabled

2020-10-26 Thread Sasha Levin
From: Sathishkumar Muruganandam [ Upstream commit 99f41b8e43b8b4b31262adb8ac3e69088fff1289 ] When STBC is enabled, NSTS_SU value need to be accounted for VHT NSS calculation for SU case. Without this fix, 1SS + STBC enabled case was reported wrongly as 2SS in radiotap header on monitor mode cap

Re: [EXT] Re: [PATCH] net: ethernet: fec: Replace interrupt driven MDIO with polled IO

2020-10-26 Thread Greg Ungerer
Hi Andy, On 22/10/20 7:04 pm, Andy Duan wrote: From: Greg Ungerer Sent: Thursday, October 22, 2020 9:14 AM Hi Andrew, On 21/10/20 11:37 pm, Andrew Lunn wrote: +if (fep->quirks & FEC_QUIRK_CLEAR_SETUP_MII) { +/* Clear MMFR to avoid to generate MII event by writing MSCR. +

[PATCH AUTOSEL 4.9 09/30] ath10k: fix VHT NSS calculation when STBC is enabled

2020-10-26 Thread Sasha Levin
From: Sathishkumar Muruganandam [ Upstream commit 99f41b8e43b8b4b31262adb8ac3e69088fff1289 ] When STBC is enabled, NSTS_SU value need to be accounted for VHT NSS calculation for SU case. Without this fix, 1SS + STBC enabled case was reported wrongly as 2SS in radiotap header on monitor mode cap

[PATCH AUTOSEL 4.9 18/30] drivers/net/wan/hdlc_fr: Correctly handle special skb->protocol values

2020-10-26 Thread Sasha Levin
From: Xie He [ Upstream commit 8306266c1d51aac9aa7aa907fe99032a58c6382c ] The fr_hard_header function is used to prepend the header to skbs before transmission. It is used in 3 situations: 1) When a control packet is generated internally in this driver; 2) When a user sends an skb on an Ethernet

[PATCH AUTOSEL 4.9 23/30] net: 9p: initialize sun_server.sun_path to have addr's value only when addr is valid

2020-10-26 Thread Sasha Levin
From: Anant Thazhemadam [ Upstream commit 7ca1db21ef8e0e6725b4d25deed1ca196f7efb28 ] In p9_fd_create_unix, checking is performed to see if the addr (passed as an argument) is NULL or not. However, no check is performed to see if addr is a valid address, i.e., it doesn't entirely consist of only

[PATCH AUTOSEL 4.14 32/46] bnxt_en: Log unknown link speed appropriately.

2020-10-26 Thread Sasha Levin
From: Michael Chan [ Upstream commit 8eddb3e7ce124dd6375d3664f1aae13873318b0f ] If the VF virtual link is set to always enabled, the speed may be unknown when the physical link is down. The driver currently logs the link speed as 4294967295 Mbps which is SPEED_UNKNOWN. Modify the link up log m

[PATCH AUTOSEL 4.4 07/25] ath10k: fix VHT NSS calculation when STBC is enabled

2020-10-26 Thread Sasha Levin
From: Sathishkumar Muruganandam [ Upstream commit 99f41b8e43b8b4b31262adb8ac3e69088fff1289 ] When STBC is enabled, NSTS_SU value need to be accounted for VHT NSS calculation for SU case. Without this fix, 1SS + STBC enabled case was reported wrongly as 2SS in radiotap header on monitor mode cap

[PATCH AUTOSEL 4.4 18/25] net: 9p: initialize sun_server.sun_path to have addr's value only when addr is valid

2020-10-26 Thread Sasha Levin
From: Anant Thazhemadam [ Upstream commit 7ca1db21ef8e0e6725b4d25deed1ca196f7efb28 ] In p9_fd_create_unix, checking is performed to see if the addr (passed as an argument) is NULL or not. However, no check is performed to see if addr is a valid address, i.e., it doesn't entirely consist of only

[PATCH AUTOSEL 4.4 14/25] drivers/net/wan/hdlc_fr: Correctly handle special skb->protocol values

2020-10-26 Thread Sasha Levin
From: Xie He [ Upstream commit 8306266c1d51aac9aa7aa907fe99032a58c6382c ] The fr_hard_header function is used to prepend the header to skbs before transmission. It is used in 3 situations: 1) When a control packet is generated internally in this driver; 2) When a user sends an skb on an Ethernet

[PATCH AUTOSEL 4.19 44/60] bnxt_en: Log unknown link speed appropriately.

2020-10-26 Thread Sasha Levin
From: Michael Chan [ Upstream commit 8eddb3e7ce124dd6375d3664f1aae13873318b0f ] If the VF virtual link is set to always enabled, the speed may be unknown when the physical link is down. The driver currently logs the link speed as 4294967295 Mbps which is SPEED_UNKNOWN. Modify the link up log m

[PATCH AUTOSEL 4.14 35/46] net: 9p: initialize sun_server.sun_path to have addr's value only when addr is valid

2020-10-26 Thread Sasha Levin
From: Anant Thazhemadam [ Upstream commit 7ca1db21ef8e0e6725b4d25deed1ca196f7efb28 ] In p9_fd_create_unix, checking is performed to see if the addr (passed as an argument) is NULL or not. However, no check is performed to see if addr is a valid address, i.e., it doesn't entirely consist of only

[PATCH AUTOSEL 4.14 28/46] drivers/net/wan/hdlc_fr: Correctly handle special skb->protocol values

2020-10-26 Thread Sasha Levin
From: Xie He [ Upstream commit 8306266c1d51aac9aa7aa907fe99032a58c6382c ] The fr_hard_header function is used to prepend the header to skbs before transmission. It is used in 3 situations: 1) When a control packet is generated internally in this driver; 2) When a user sends an skb on an Ethernet

Re: [REGRESSION] mm: process_vm_readv testcase no longer works after compat_prcoess_vm_readv removed

2020-10-26 Thread Jens Axboe
On 10/26/20 6:05 PM, Al Viro wrote: > On Mon, Oct 26, 2020 at 05:56:11PM -0600, Jens Axboe wrote: >> On 10/26/20 4:55 PM, Kyle Huey wrote: >>> A test program from the rr[0] test suite, vm_readv_writev[1], no >>> longer works on 5.10-rc1 when compiled as a 32 bit binary and executed >>> on a 64 bit

[PATCH AUTOSEL 4.19 38/60] drivers/net/wan/hdlc_fr: Correctly handle special skb->protocol values

2020-10-26 Thread Sasha Levin
From: Xie He [ Upstream commit 8306266c1d51aac9aa7aa907fe99032a58c6382c ] The fr_hard_header function is used to prepend the header to skbs before transmission. It is used in 3 situations: 1) When a control packet is generated internally in this driver; 2) When a user sends an skb on an Ethernet

[PATCH AUTOSEL 4.19 14/60] ath10k: fix VHT NSS calculation when STBC is enabled

2020-10-26 Thread Sasha Levin
From: Sathishkumar Muruganandam [ Upstream commit 99f41b8e43b8b4b31262adb8ac3e69088fff1289 ] When STBC is enabled, NSTS_SU value need to be accounted for VHT NSS calculation for SU case. Without this fix, 1SS + STBC enabled case was reported wrongly as 2SS in radiotap header on monitor mode cap

[PATCH AUTOSEL 5.4 34/80] selftests/bpf: Define string const as global for test_sysctl_prog.c

2020-10-26 Thread Sasha Levin
From: Yonghong Song [ Upstream commit 6e057fc15a2da4ee03eb1fa6889cf687e690106e ] When tweaking llvm optimizations, I found that selftest build failed with the following error: libbpf: elf: skipping unrecognized data section(6) .rodata.str1.1 libbpf: prog 'sysctl_tcp_mem': bad map relo agains

[PATCH AUTOSEL 5.4 35/80] samples/bpf: Fix possible deadlock in xdpsock

2020-10-26 Thread Sasha Levin
From: Magnus Karlsson [ Upstream commit 5a2a0dd88f0f267ac5953acd81050ae43a82201f ] Fix a possible deadlock in the l2fwd application in xdpsock that can occur when there is no space in the Tx ring. There are two ways to get the kernel to consume entries in the Tx ring: calling sendto() to make it

[PATCH AUTOSEL 5.4 44/80] can: flexcan: disable clocks during stop mode

2020-10-26 Thread Sasha Levin
From: Joakim Zhang [ Upstream commit 02f71c6605e1f8259c07f16178330db766189a74 ] Disable clocks while CAN core is in stop mode. Signed-off-by: Joakim Zhang Tested-by: Sean Nyekjaer Link: https://lore.kernel.org/r/20191210085721.9853-2-qiangqing.zh...@nxp.com Signed-off-by: Marc Kleine-Budde S

[PATCH AUTOSEL 5.4 50/80] drivers/net/wan/hdlc_fr: Correctly handle special skb->protocol values

2020-10-26 Thread Sasha Levin
From: Xie He [ Upstream commit 8306266c1d51aac9aa7aa907fe99032a58c6382c ] The fr_hard_header function is used to prepend the header to skbs before transmission. It is used in 3 situations: 1) When a control packet is generated internally in this driver; 2) When a user sends an skb on an Ethernet

Re: [REGRESSION] mm: process_vm_readv testcase no longer works after compat_prcoess_vm_readv removed

2020-10-26 Thread Jens Axboe
On 10/26/20 4:55 PM, Kyle Huey wrote: > A test program from the rr[0] test suite, vm_readv_writev[1], no > longer works on 5.10-rc1 when compiled as a 32 bit binary and executed > on a 64 bit kernel. The first process_vm_readv call (on line 35) now > fails with EFAULT. I have bisected this to > c39

[PATCH AUTOSEL 5.4 49/80] brcmfmac: Fix warning message after dongle setup failed

2020-10-26 Thread Sasha Levin
From: Wright Feng [ Upstream commit 6aa5a83a7ed8036c1388a811eb8bdfa77b21f19c ] Brcmfmac showed warning message in fweh.c when checking the size of event queue which is not initialized. Therefore, we only cancel the worker and reset event handler only when it is initialized. [ 145.505899] brcmf

[PATCH AUTOSEL 5.4 42/80] SUNRPC: Mitigate cond_resched() in xprt_transmit()

2020-10-26 Thread Sasha Levin
From: Chuck Lever [ Upstream commit 6f9f17287e78e5049931af2037b15b26d134a32a ] The original purpose of this expensive call is to prevent a long queue of requests from blocking other work. The cond_resched() call is unnecessary after just a single send operation. For longer queues, instead of i

[PATCH AUTOSEL 5.4 63/80] net: 9p: initialize sun_server.sun_path to have addr's value only when addr is valid

2020-10-26 Thread Sasha Levin
From: Anant Thazhemadam [ Upstream commit 7ca1db21ef8e0e6725b4d25deed1ca196f7efb28 ] In p9_fd_create_unix, checking is performed to see if the addr (passed as an argument) is NULL or not. However, no check is performed to see if addr is a valid address, i.e., it doesn't entirely consist of only

Re: [PATCH net 0/3] mlxsw: Various fixes

2020-10-26 Thread Jakub Kicinski
On Sat, 24 Oct 2020 16:37:30 +0300 Ido Schimmel wrote: > From: Ido Schimmel > > This patch set contains various fixes for mlxsw. > > Patch #1 ensures that only link modes that are supported by both the > device and the driver are advertised. When a link mode that is not > supported by the driver

[PATCH AUTOSEL 5.4 58/80] bnxt_en: Log unknown link speed appropriately.

2020-10-26 Thread Sasha Levin
From: Michael Chan [ Upstream commit 8eddb3e7ce124dd6375d3664f1aae13873318b0f ] If the VF virtual link is set to always enabled, the speed may be unknown when the physical link is down. The driver currently logs the link speed as 4294967295 Mbps which is SPEED_UNKNOWN. Modify the link up log m

[PATCH AUTOSEL 5.8 107/132] net: 9p: initialize sun_server.sun_path to have addr's value only when addr is valid

2020-10-26 Thread Sasha Levin
From: Anant Thazhemadam [ Upstream commit 7ca1db21ef8e0e6725b4d25deed1ca196f7efb28 ] In p9_fd_create_unix, checking is performed to see if the addr (passed as an argument) is NULL or not. However, no check is performed to see if addr is a valid address, i.e., it doesn't entirely consist of only

[PATCH AUTOSEL 5.8 085/132] ath11k: change to disable softirqs for ath11k_regd_update to solve deadlock

2020-10-26 Thread Sasha Levin
From: Wen Gong [ Upstream commit df648808c6b9989555e247530d8ca0ad0094b361 ] After base_lock which occupy by ath11k_regd_update, the softirq run for WMI_REG_CHAN_LIST_CC_EVENTID maybe arrived and it also need to accuire the spin lock, then deadlock happend, change to disable softirqis to solve it

[PATCH AUTOSEL 5.8 082/132] brcmfmac: Fix warning message after dongle setup failed

2020-10-26 Thread Sasha Levin
From: Wright Feng [ Upstream commit 6aa5a83a7ed8036c1388a811eb8bdfa77b21f19c ] Brcmfmac showed warning message in fweh.c when checking the size of event queue which is not initialized. Therefore, we only cancel the worker and reset event handler only when it is initialized. [ 145.505899] brcmf

[PATCH AUTOSEL 5.8 074/132] can: flexcan: disable clocks during stop mode

2020-10-26 Thread Sasha Levin
From: Joakim Zhang [ Upstream commit 02f71c6605e1f8259c07f16178330db766189a74 ] Disable clocks while CAN core is in stop mode. Signed-off-by: Joakim Zhang Tested-by: Sean Nyekjaer Link: https://lore.kernel.org/r/20191210085721.9853-2-qiangqing.zh...@nxp.com Signed-off-by: Marc Kleine-Budde S

[PATCH AUTOSEL 5.8 071/132] SUNRPC: Mitigate cond_resched() in xprt_transmit()

2020-10-26 Thread Sasha Levin
From: Chuck Lever [ Upstream commit 6f9f17287e78e5049931af2037b15b26d134a32a ] The original purpose of this expensive call is to prevent a long queue of requests from blocking other work. The cond_resched() call is unnecessary after just a single send operation. For longer queues, instead of i

[PATCH AUTOSEL 5.8 027/132] ath10k: fix retry packets update in station dump

2020-10-26 Thread Sasha Levin
From: Venkateswara Naralasetty [ Upstream commit 67b927f9820847d30e97510b2f00cd142b9559b6 ] When tx status enabled, retry count is updated from tx completion status. which is not working as expected due to firmware limitation where firmware can not provide per MSDU rate statistics from tx comple

[PATCH AUTOSEL 5.9 082/147] can: flexcan: disable clocks during stop mode

2020-10-26 Thread Sasha Levin
From: Joakim Zhang [ Upstream commit 02f71c6605e1f8259c07f16178330db766189a74 ] Disable clocks while CAN core is in stop mode. Signed-off-by: Joakim Zhang Tested-by: Sean Nyekjaer Link: https://lore.kernel.org/r/20191210085721.9853-2-qiangqing.zh...@nxp.com Signed-off-by: Marc Kleine-Budde S

  1   2   3   >