[PATCH 4/9] net: core: Correct function name netevent_unregister_notifier() in the kerneldoc

2021-03-27 Thread Xiongfeng Wang
Fix the following W=1 kernel build warning(s): net/core/netevent.c:45: warning: expecting prototype for netevent_unregister_notifier(). Prototype was for unregister_netevent_notifier() instead Reported-by: Hulk Robot Signed-off-by: Xiongfeng Wang --- net/core/netevent.c | 2 +- 1 file chang

[PATCH 3/9] net: core: Correct function name dev_uc_flush() in the kerneldoc

2021-03-27 Thread Xiongfeng Wang
Fix the following W=1 kernel build warning(s): net/core/dev_addr_lists.c:732: warning: expecting prototype for dev_uc_flush(). Prototype was for dev_uc_init() instead Reported-by: Hulk Robot Signed-off-by: Xiongfeng Wang --- net/core/dev_addr_lists.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 9/9] NFC: digital: Correct function name in the kerneldoc comments

2021-03-27 Thread Xiongfeng Wang
Fix the following W=1 kernel build warning(s): net/nfc/digital_core.c:473: warning: expecting prototype for start_poll operation(). Prototype was for digital_start_poll() instead Reported-by: Hulk Robot Signed-off-by: Xiongfeng Wang --- net/nfc/digital_core.c | 2 +- 1 file changed, 1 insert

[PATCH 5/9] net: 9p: Correct function name errstr2errno() in the kerneldoc comments

2021-03-27 Thread Xiongfeng Wang
Fix the following W=1 kernel build warning(s): net/9p/error.c:207: warning: expecting prototype for errstr2errno(). Prototype was for p9_errstr2errno() instead Reported-by: Hulk Robot Signed-off-by: Xiongfeng Wang --- net/9p/error.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 2/9] netlabel: Correct function name netlbl_mgmt_add() in the kerneldoc comments

2021-03-27 Thread Xiongfeng Wang
Fix the following W=1 kernel build warning(s): net/netlabel/netlabel_mgmt.c:78: warning: expecting prototype for netlbl_mgmt_add(). Prototype was for netlbl_mgmt_add_common() instead Reported-by: Hulk Robot Signed-off-by: Xiongfeng Wang --- net/netlabel/netlabel_mgmt.c | 2 +- 1 file changed

[PATCH 1/9] l3mdev: Correct function names in the kerneldoc comments

2021-03-27 Thread Xiongfeng Wang
Fix the following W=1 kernel build warning(s): net/l3mdev/l3mdev.c:111: warning: expecting prototype for l3mdev_master_ifindex(). Prototype was for l3mdev_master_ifindex_rcu() instead net/l3mdev/l3mdev.c:145: warning: expecting prototype for l3mdev_master_upper_ifindex_by_index(). Prototype wa

[PATCH 8/9] ip6_tunnel:: Correct function name parse_tvl_tnl_enc_lim() in the kerneldoc comments

2021-03-27 Thread Xiongfeng Wang
Fix the following W=1 kernel build warning(s): net/ipv6/ip6_tunnel.c:401: warning: expecting prototype for parse_tvl_tnl_enc_lim(). Prototype was for ip6_tnl_parse_tlv_enc_lim() instead Reported-by: Hulk Robot Signed-off-by: Xiongfeng Wang --- net/ipv6/ip6_tunnel.c | 2 +- 1 file changed, 1

[PATCH 0/9] net: Correct function names in the kerneldoc comments

2021-03-27 Thread Xiongfeng Wang
Xiongfeng Wang (9): l3mdev: Correct function names in the kerneldoc comments netlabel: Correct function name netlbl_mgmt_add() in the kerneldoc comments net: core: Correct function name dev_uc_flush() in the kerneldoc net: core: Correct function name netevent_unregister_notifier() in th

[PATCH 7/9] net: 9p: Correct function names in the kerneldoc comments

2021-03-27 Thread Xiongfeng Wang
Fix the following W=1 kernel build warning(s): net/9p/client.c:133: warning: expecting prototype for parse_options(). Prototype was for parse_opts() instead net/9p/client.c:269: warning: expecting prototype for p9_req_alloc(). Prototype was for p9_tag_alloc() instead Reported-by: Hulk Robot

[PATCH 6/9] 9p/trans_fd: Correct function name p9_mux_destroy() in the kerneldoc

2021-03-27 Thread Xiongfeng Wang
Fix the following W=1 kernel build warning(s): net/9p/trans_fd.c:881: warning: expecting prototype for p9_mux_destroy(). Prototype was for p9_conn_destroy() instead Reported-by: Hulk Robot Signed-off-by: Xiongfeng Wang --- net/9p/trans_fd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(

RE: [PATCH bpf-next] bpf: trace jit code when enable BPF_JIT_ALWAYS_ON

2021-03-27 Thread Jianlin Lv
> -Original Message- > From: Alexei Starovoitov > Sent: Friday, March 26, 2021 10:25 PM > To: Jianlin Lv > Cc: bpf ; David S. Miller ; > Jakub Kicinski ; Alexei Starovoitov ; > Daniel Borkmann ; Andrii Nakryiko > ; Martin KaFai Lau ; Song Liu > ; Yonghong Song ; John Fastabend > ; KP Si

Re: [PATCH] netfilter: ipvs: A spello fix

2021-03-27 Thread Simon Horman
+ netfilter-de...@vger.kernel.org On Sat, Mar 27, 2021 at 04:42:48AM +0530, Bhaskar Chowdhury wrote: > s/registerd/registered/ > > Signed-off-by: Bhaskar Chowdhury Reviewed-by: Simon Horman > --- > net/netfilter/ipvs/ip_vs_core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > d

Re: [PATCH 08/19] netfilter: ipvs: A spello fix

2021-03-27 Thread Simon Horman
+ netfilter-de...@vger.kernel.org On Sat, Mar 27, 2021 at 04:43:01AM +0530, Bhaskar Chowdhury wrote: > s/registerd/registered/ > > Signed-off-by: Bhaskar Chowdhury Reviewed-by: Simon Horman > --- > net/netfilter/ipvs/ip_vs_core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > d

[PATCH] sit: use min

2021-03-27 Thread Julia Lawall
From: kernel test robot Opportunity for min() Generated by: scripts/coccinelle/misc/minmax.cocci CC: Denis Efremov Reported-by: kernel test robot Signed-off-by: kernel test robot --- sit.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/ipv6/sit.c +++ b/net/ipv6/sit.c @

[PATCH -next] net: stmmac: fix missing unlock on error in stmmac_suspend()

2021-03-27 Thread Yang Yingliang
Add the missing unlock before return from stmmac_suspend() in the error handling case. Fixes: 5ec55823438e ("net: stmmac: add clocks management for gmac driver") Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 4 +++- 1 file changed,

Re: [PATCH net 1/4] virtchnl: Fix layout of RSS structures

2021-03-27 Thread Geert Uytterhoeven
Hi Samudrala, On Fri, Mar 26, 2021 at 11:45 PM Samudrala, Sridhar wrote: > On 3/26/2021 1:06 AM, Geert Uytterhoeven wrote: > > On Thu, Mar 25, 2021 at 11:29 PM Tony Nguyen > > wrote: > > From: Norbert Ciosek > > > > Remove padding from RSS structures. Previous layout > > could lead to unwanted

[PATCH net-next] mt76: mt7615: remove redundant dev_err call in mt7622_wmac_probe()

2021-03-27 Thread Huang Guobin
From: Guobin Huang There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Reported-by: Hulk Robot Signed-off-by: Guobin Huang --- drivers/net/wireless/mediatek/mt76/mt7615/soc.c | 4 +--- 1 file changed, 1 insertion(+), 3 de

[PATCH net-next] mac80211_hwsim: use DEFINE_SPINLOCK() for spinlock

2021-03-27 Thread Huang Guobin
From: Guobin Huang spinlock can be initialized automatically with DEFINE_SPINLOCK() rather than explicitly calling spin_lock_init(). Reported-by: Hulk Robot Signed-off-by: Guobin Huang --- drivers/net/wireless/mac80211_hwsim.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) dif

[PATCH] mt76: Convert to DEFINE_SHOW_ATTRIBUTE

2021-03-27 Thread angkery
From: Junlin Yang Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Junlin Yang --- .../net/wireless/mediatek/mt76/mt7915/debugfs.c| 36 -- .../net/wireless/mediatek/mt76/mt7921/debugfs.c| 18 ++- 2 files changed, 9 insertions(+), 45 delet

[PATCH net-next v2] net: dsa: hellcreek: Remove redundant dev_err call in hellcreek_probe()

2021-03-27 Thread Huang Guobin
From: Guobin Huang There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Reported-by: Hulk Robot Signed-off-by: Guobin Huang --- drivers/net/dsa/hirschmann/hellcreek.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deleti

Re: [PATCH] ia64: tools: add generic errno.h definition

2021-03-27 Thread Sergei Trofimovich
On Fri, Mar 12, 2021 at 07:51:35AM +, Sergei Trofimovich wrote: > Noticed missing header when build bpfilter helper: > > CC [U] net/bpfilter/main.o > In file included from /usr/include/linux/errno.h:1, >from /usr/include/bits/errno.h:26, >from /us

[PATCH net-next v2] net: netcp: fix PM reference leak in netcp_probe()

2021-03-27 Thread Huang Guobin
From: Guobin Huang pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to putting operation will result in reference leak here. Fix it by replacing it with pm_runtime_resume_and_get to keep usage counter balanced. Reported-by: Hulk Robot Signed-off-by: Guobin Huang -

[PATCH net-next v2] net: lantiq: Remove redundant dev_err call in xrx200_probe()

2021-03-27 Thread Huang Guobin
From: Guobin Huang There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Reported-by: Hulk Robot Signed-off-by: Guobin Huang --- drivers/net/ethernet/lantiq_xrx200.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)

[PATCH net-next v2] net: moxa: remove redundant dev_err call in moxart_mac_probe()

2021-03-27 Thread Huang Guobin
From: Guobin Huang There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Reported-by: Hulk Robot Signed-off-by: Guobin Huang --- drivers/net/ethernet/moxa/moxart_ether.c | 1 - 1 file changed, 1 deletion(-) diff --git a/dr

Re: [PATCH] net:qrtr: fix allocator flag of idr_alloc_u32() in qrtr_port_assign()

2021-03-27 Thread Greg Kroah-Hartman
On Sat, Mar 27, 2021 at 09:44:37AM +0800, Du Cheng wrote: > On Fri, Mar 26, 2021 at 10:31:57AM +0100, Greg Kroah-Hartman wrote: > > On Fri, Mar 26, 2021 at 11:33:45AM +0800, Du Cheng wrote: > > > change the allocator flag of idr_alloc_u32 from GFP_ATOMIC to > > > GFP_KERNEL, as GFP_ATOMIC caused BU

Re: linux-next: build failure after merge of the tip tree

2021-03-27 Thread Sedat Dilek
On Fri, Mar 26, 2021 at 2:11 PM Borislav Petkov wrote: > > On Fri, Mar 26, 2021 at 09:57:43AM +0100, Sedat Dilek wrote: > > The commit b90829704780 "bpf: Use NOP_ATOMIC5 instead of > > emit_nops(&prog, 5) for BPF_TRAMP_F_CALL_ORIG" is now in Linus Git > > (see [1]). > > > > Where will Stephen's fi

Re: [PATCH mlx5-next v7 0/4] Dynamically assign MSI-X vectors count

2021-03-27 Thread Greg Kroah-Hartman
On Fri, Mar 26, 2021 at 02:36:31PM -0500, Bjorn Helgaas wrote: > On Fri, Mar 26, 2021 at 11:50:44AM -0700, Alexander Duyck wrote: > > > I almost wonder if it wouldn't make sense to just partition this up to > > handle flexible resources in the future. Maybe something like having > > the directory

Re: [PATCH v2] eeprom/optoe: driver to read/write SFP/QSFP/CMIS EEPROMS

2021-03-27 Thread Greg KH
On Fri, Mar 26, 2021 at 02:09:36PM -0700, Don Bollinger wrote: > > You keep missing the point. I always refer to the KAPI. The driver we can > > rework and rework, throw away and reimplement, as much as we want. > > The KAPI cannot be changed, it is ABI. It is pretty much frozen the day > the > > c

[PATCH iproute2] iptoken: Add doc on the conditions of iptoken

2021-03-27 Thread Hongren Zheng
`ip token set suffix dev interface' may be unsuccessful with only the error 'RTNETLINK answers: Invalid argument' prompted. For users this is mysterious and hard to debug. Hence a more user-friendly prompt is added. This commit adds doc for conditions for setting the token and making the token tak

[PATCH v2] net:qrtr: fix atomic idr allocation in qrtr_port_assign()

2021-03-27 Thread Du Cheng
add idr_preload() and idr_preload_end() around idr_alloc_u32(GFP_ATOMIC) due to internal use of per_cpu variables, which requires preemption disabling/enabling. reported as "BUG: "using smp_processor_id() in preemptible" by syzkaller Reported-by: syzbot+3eec59e770685e3dc...@syzkaller.appspotmail.

Re: [PATCH v2] net:qrtr: fix atomic idr allocation in qrtr_port_assign()

2021-03-27 Thread Greg Kroah-Hartman
Adding the xarray maintainer... On Sat, Mar 27, 2021 at 10:07:02PM +0800, Du Cheng wrote: > add idr_preload() and idr_preload_end() around idr_alloc_u32(GFP_ATOMIC) > due to internal use of per_cpu variables, which requires preemption > disabling/enabling. > > reported as "BUG: "using smp_process

Re: [PATCH v2] net:qrtr: fix atomic idr allocation in qrtr_port_assign()

2021-03-27 Thread Du Cheng
On Sat, Mar 27, 2021 at 03:12:14PM +0100, Greg Kroah-Hartman wrote: > Adding the xarray maintainer... > > On Sat, Mar 27, 2021 at 10:07:02PM +0800, Du Cheng wrote: > > add idr_preload() and idr_preload_end() around idr_alloc_u32(GFP_ATOMIC) > > due to internal use of per_cpu variables, which requi

Re: [PATCH v2] net:qrtr: fix atomic idr allocation in qrtr_port_assign()

2021-03-27 Thread Greg Kroah-Hartman
On Sat, Mar 27, 2021 at 10:25:20PM +0800, Du Cheng wrote: > On Sat, Mar 27, 2021 at 03:12:14PM +0100, Greg Kroah-Hartman wrote: > > Adding the xarray maintainer... > > > > On Sat, Mar 27, 2021 at 10:07:02PM +0800, Du Cheng wrote: > > > add idr_preload() and idr_preload_end() around idr_alloc_u32(G

Re: [PATCH net-next,v2] net: dsa: mt7530: clean up core and TRGMII clock setup

2021-03-27 Thread Andrew Lunn
On Fri, Mar 26, 2021 at 11:07:52PM -0700, Ilya Lipnitskiy wrote: > Three minor changes: > > - When disabling PLL, there is no need to call core_write_mmd_indirect > directly, use the core_write wrapper instead like the rest of the code > in the function does. This change helps with consistency

Re: [PATCH bpf-next 5/5] libbpf: add selftests for TC-BPF API

2021-03-27 Thread Toke Høiland-Jørgensen
Alexei Starovoitov writes: > On Thu, Mar 25, 2021 at 05:30:03PM +0530, Kumar Kartikeya Dwivedi wrote: >> This adds some basic tests for the low level bpf_tc_* API and its >> bpf_program__attach_tc_* wrapper on top. > > *_block() apis from patch 3 and 4 are not covered by this selftest. > Why were

Re: [PATCH bpf-next] bpf: trace jit code when enable BPF_JIT_ALWAYS_ON

2021-03-27 Thread Alexei Starovoitov
On Sat, Mar 27, 2021 at 1:19 AM Jianlin Lv wrote: > > > On Fri, Mar 26, 2021 at 5:40 AM Jianlin Lv wrote: > > > > > > When CONFIG_BPF_JIT_ALWAYS_ON is enabled, the value of > > bpf_jit_enable > > > in /proc/sys is limited to SYSCTL_ONE. This is not convenient for > > > debugging. > > > This patc

Re: [PATCH v2] eeprom/optoe: driver to read/write SFP/QSFP/CMIS EEPROMS

2021-03-27 Thread Andrew Lunn
> What I have works. Your consumers get quirk handling, mine don't need it. > No compromise. Hi Don All this discussion is now a mute point. GregKH has spoken. But i'm sure there are some on the side lines, eating popcorn, maybe learning from the discussion. Would you think it is O.K. to add a

Re: [PATCH v2] net:qrtr: fix atomic idr allocation in qrtr_port_assign()

2021-03-27 Thread Matthew Wilcox
On Sat, Mar 27, 2021 at 03:31:18PM +0100, Greg Kroah-Hartman wrote: > On Sat, Mar 27, 2021 at 10:25:20PM +0800, Du Cheng wrote: > > On Sat, Mar 27, 2021 at 03:12:14PM +0100, Greg Kroah-Hartman wrote: > > > Adding the xarray maintainer... > > > > > > On Sat, Mar 27, 2021 at 10:07:02PM +0800, Du Che

Upgrade from linux-lts-5.10.25 to linux-lts 5.10.26 breaks bonding.

2021-03-27 Thread James Feeney
Arch linux-lts-5.10.25-1 to linux-lts 5.10.26-1 This is on a wireless bonding setup with fallback to wired ethernet. Everything with the interfaces looks fine, except, for instance, ping returns the error message "ping: sendmsg: Invalid argument". Of course, networking becomes unusable. Remo

Re: [PATCH net-next 3/3] dt-bindings: net: dsa: Document dsa,tag-protocol property

2021-03-27 Thread Rob Herring
On Fri, Mar 26, 2021 at 11:56:48AM +0100, Tobias Waldekranz wrote: > The 'dsa,tag-protocol' is used to force a switch tree to use a > particular tag protocol, typically because the Ethernet controller > that it is connected to is not compatible with the default one. > > Signed-off-by: Tobias Walde

[PATCH net] cxgb4: avoid collecting SGE_QBASE regs during traffic

2021-03-27 Thread Rahul Lakkireddy
Accessing SGE_QBASE_MAP[0-3] and SGE_QBASE_INDEX registers can lead to SGE missing doorbells under heavy traffic. So, only collect them when adapter is idle. Also update the regdump range to skip collecting these registers. Fixes: 80a95a80d358 ("cxgb4: collect SGE PF/VF queue map") Signed-off-by:

Upgrade from linux-lts-5.10.25 to linux-lts 5.10.26 breaks bonding.

2021-03-27 Thread James Feeney
> Downgrading the kernel resolves the problem, but I don't see any bonding > commits between linux-lts-5.10.25 and linux-lts 5.10.26. My mistake - 9392b8219b62b0536df25c9de82b33f8a00881ef *was* included in 5.10.26. Thus the "Invalid argument" message. https://git.kernel.org/pub/scm/linux/k

Re: Upgrade from linux-lts-5.10.25 to linux-lts 5.10.26 breaks bonding.

2021-03-27 Thread Heiner Kallweit
On 27.03.2021 19:32, James Feeney wrote: > >> Downgrading the kernel resolves the problem, but I don't see any bonding >> commits between linux-lts-5.10.25 and linux-lts 5.10.26. > > My mistake - 9392b8219b62b0536df25c9de82b33f8a00881ef *was* included in > 5.10.26. Thus the "Invalid argument"

Re: [PATCH] sit: use min

2021-03-27 Thread David Ahern
On 3/27/21 3:29 AM, Julia Lawall wrote: > From: kernel test robot > > Opportunity for min() > > Generated by: scripts/coccinelle/misc/minmax.cocci > > CC: Denis Efremov > Reported-by: kernel test robot > Signed-off-by: kernel test robot > --- > > sit.c |2 +- > 1 file changed, 1 insert

Re: [PATCH 1/9] l3mdev: Correct function names in the kerneldoc comments

2021-03-27 Thread David Ahern
On 3/27/21 2:15 AM, Xiongfeng Wang wrote: > Fix the following W=1 kernel build warning(s): > > net/l3mdev/l3mdev.c:111: warning: expecting prototype for > l3mdev_master_ifindex(). Prototype was for l3mdev_master_ifindex_rcu() instead > net/l3mdev/l3mdev.c:145: warning: expecting prototype for

Re: [PATCH 8/9] ip6_tunnel:: Correct function name parse_tvl_tnl_enc_lim() in the kerneldoc comments

2021-03-27 Thread David Ahern
On 3/27/21 2:15 AM, Xiongfeng Wang wrote: > Fix the following W=1 kernel build warning(s): > > net/ipv6/ip6_tunnel.c:401: warning: expecting prototype for > parse_tvl_tnl_enc_lim(). Prototype was for ip6_tnl_parse_tlv_enc_lim() instead > > Reported-by: Hulk Robot > Signed-off-by: Xiongfeng Wan

RE: [PATCH v2] eeprom/optoe: driver to read/write SFP/QSFP/CMIS EEPROMS

2021-03-27 Thread Don Bollinger
> > What I have works. Your consumers get quirk handling, mine don't need it. > > No compromise. > > Hi Don > > All this discussion is now a mute point. GregKH has spoken. Ack. I actually checked in with Greg a couple of days ago and got that answer. I just thought the discussion was going in

Re: [PATCH v2 bpf-next 00/14] bpf: Support calling kernel function

2021-03-27 Thread Cong Wang
Hi, On Wed, Mar 24, 2021 at 8:40 PM Martin KaFai Lau wrote: > Martin KaFai Lau (14): > bpf: Simplify freeing logic in linfo and jited_linfo > bpf: Refactor btf_check_func_arg_match > bpf: Support bpf program calling kernel function > bpf: Support kernel function call in x86-32 > tcp: Re

Re: linux-next: build failure after merge of the tip tree

2021-03-27 Thread Stephen Rothwell
Hi Sedat, On Sat, 27 Mar 2021 12:50:55 +0100 Sedat Dilek wrote: > > I wonder why Stephen's fixup-patch was not carried in recent > Linux-next releases. It is part of the tip tree merge commit. So it is not an explicit commit on its own, but the needed change is there. > Wild speculation - no r

Re: [PATCH v2 bpf-next 00/14] bpf: Support calling kernel function

2021-03-27 Thread Alexei Starovoitov
On Sat, Mar 27, 2021 at 2:25 PM Cong Wang wrote: > > Hi, > > On Wed, Mar 24, 2021 at 8:40 PM Martin KaFai Lau wrote: > > Martin KaFai Lau (14): > > bpf: Simplify freeing logic in linfo and jited_linfo > > bpf: Refactor btf_check_func_arg_match > > bpf: Support bpf program calling kernel fun

Re: [PATCH v2 bpf-next 00/14] bpf: Support calling kernel function

2021-03-27 Thread Cong Wang
On Sat, Mar 27, 2021 at 2:28 PM Alexei Starovoitov wrote: > > On Sat, Mar 27, 2021 at 2:25 PM Cong Wang wrote: > > > > Hi, > > > > On Wed, Mar 24, 2021 at 8:40 PM Martin KaFai Lau wrote: > > > Martin KaFai Lau (14): > > > bpf: Simplify freeing logic in linfo and jited_linfo > > > bpf: Refact

[PATCH][next] mlxsw: spectrum_router: remove redundant initialization of variable force

2021-03-27 Thread Colin King
From: Colin Ian King The variable force is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- drivers/net/ethernet/mellanox/

Re: [PATCH -next] drivers: net: CONFIG_ATH9K select LEDS_CLASS

2021-03-27 Thread Pavel Machek
On Fri 2021-03-26 16:13:51, Zhang Jianhua wrote: > If CONFIG_ATH9K=y, the following errors will be seen while compiling > gpio.c > > drivers/net/wireless/ath/ath9k/gpio.o: In function `ath_deinit_leds': > gpio.c:(.text+0x604): undefined reference to `led_classdev_unregister' > gpio.c:(.text+0x604)

Re: [PATCH v2 bpf-next 00/14] bpf: Support calling kernel function

2021-03-27 Thread Alexei Starovoitov
On Sat, Mar 27, 2021 at 3:08 PM Cong Wang wrote: > BTFIDS vmlinux > FAILED unresolved symbol cubictcp_state > make: *** [Makefile:1199: vmlinux] Error 255 > > I suspect it is related to the kernel config or linker version. > > # grep TCP_CONG .config > CONFIG_TCP_CONG_ADVANCED=y > CONFIG_TCP_CO

[PATCH] rtlwifi: remove redundant assignment to variable err

2021-03-27 Thread Colin King
From: Colin Ian King Variable err is assigned -ENODEV followed by an error return path via label error_out that does not access the variable and returns with the -ENODEV error return code. The assignment to err is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by:

Re: [PATCH] PCI: Remove pci_try_set_mwi

2021-03-27 Thread Heiner Kallweit
On 26.03.2021 22:26, Bjorn Helgaas wrote: > [+cc Randy, Andrew (though I'm sure you have zero interest in this > ancient question :))] > > On Wed, Dec 09, 2020 at 09:31:21AM +0100, Heiner Kallweit wrote: >> pci_set_mwi() and pci_try_set_mwi() do exactly the same, just that the >> former one is dec

[PATCH] rsi: Use resume_noirq for SDIO

2021-03-27 Thread Marek Vasut
The rsi_resume() does access the bus to enable interrupts on the RSI SDIO WiFi card, however when calling sdio_claim_host() in the resume path, it is possible the bus is already claimed and sdio_claim_host() spins indefinitelly. Enable the SDIO card interrupts in resume_noirq instead to prevent any

Re: [PATCH net-next 1/2] selftests: tc-testing: add action police selftest for packets per second

2021-03-27 Thread Jamal Hadi Salim
On 2021-03-26 9:09 a.m., Simon Horman wrote: From: Baowen Zheng Add selftest cases in action police for packets per second. These tests depend on corresponding iproute2 command support. Signed-off-by: Baowen Zheng Signed-off-by: Simon Horman Gracias. Reviewed-by: Jamal Hadi Salim cheers

Re: [PATCH bpf-next] bpf: trace jit code when enable BPF_JIT_ALWAYS_ON

2021-03-27 Thread Jianlin Lv
On Sat, Mar 27, 2021 at 11:19 PM Alexei Starovoitov wrote: > > On Sat, Mar 27, 2021 at 1:19 AM Jianlin Lv wrote: > > > > > On Fri, Mar 26, 2021 at 5:40 AM Jianlin Lv wrote: > > > > > > > > When CONFIG_BPF_JIT_ALWAYS_ON is enabled, the value of > > > bpf_jit_enable > > > > in /proc/sys is limited

Re: [syzbot] UBSAN: shift-out-of-bounds in ___bpf_prog_run

2021-03-27 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:0f4498ce Merge tag 'for-5.12/dm-fixes-2' of git://git.kern.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16d734aad0 kernel config: https://syzkaller.appspot.com/x/.config?x=d4e9add

Re: [PATCH bpf-next 5/5] libbpf: add selftests for TC-BPF API

2021-03-27 Thread Andrii Nakryiko
On Fri, Mar 26, 2021 at 7:15 PM Alexei Starovoitov wrote: > > On Thu, Mar 25, 2021 at 05:30:03PM +0530, Kumar Kartikeya Dwivedi wrote: > > This adds some basic tests for the low level bpf_tc_* API and its > > bpf_program__attach_tc_* wrapper on top. > > *_block() apis from patch 3 and 4 are not co

Re: [PATCH bpf-next 3/5] libbpf: add low level TC-BPF API

2021-03-27 Thread Andrii Nakryiko
On Thu, Mar 25, 2021 at 5:02 AM Kumar Kartikeya Dwivedi wrote: > > This adds functions that wrap the netlink API used for adding, > manipulating, and removing filters and actions. These functions operate > directly on the loaded prog's fd, and return a handle to the filter and > action using an ou

Re: [PATCH bpf v2 1/2] bpf: link: refuse non-O_RDWR flags in BPF_OBJ_GET

2021-03-27 Thread Andrii Nakryiko
On Fri, Mar 26, 2021 at 9:05 AM Lorenz Bauer wrote: > > Invoking BPF_OBJ_GET on a pinned bpf_link checks the path access > permissions based on file_flags, but the returned fd ignores flags. > This means that any user can acquire a "read-write" fd for a pinned > link with mode 0664 by invoking BPF

Re: [PATCH bpf v2 2/2] bpf: program: refuse non-O_RDWR flags in BPF_OBJ_GET

2021-03-27 Thread Andrii Nakryiko
On Fri, Mar 26, 2021 at 1:14 PM Song Liu wrote: > > On Fri, Mar 26, 2021 at 9:07 AM Lorenz Bauer wrote: > > > > As for bpf_link, refuse creating a non-O_RDWR fd. Since program fds > > currently don't allow modifications this is a precaution, not a > > straight up bug fix. > > > > Signed-off-by: L

[PATCH 1/1] net: sched: extend lifetime of new action in replace mode

2021-03-27 Thread Kumar Kartikeya Dwivedi
When creating an action in replace mode, in tcf_action_add, the refcount of existing actions is rightly raised during tcf_idr_check_alloc call, but for new actions a dummy placeholder entry is created. This is then replaced with the actual action during tcf_idr_insert_many, but between this and the

Re: [PATCH v2] net:qrtr: fix atomic idr allocation in qrtr_port_assign()

2021-03-27 Thread Greg Kroah-Hartman
On Sat, Mar 27, 2021 at 03:51:10PM +, Matthew Wilcox wrote: > On Sat, Mar 27, 2021 at 03:31:18PM +0100, Greg Kroah-Hartman wrote: > > On Sat, Mar 27, 2021 at 10:25:20PM +0800, Du Cheng wrote: > > > On Sat, Mar 27, 2021 at 03:12:14PM +0100, Greg Kroah-Hartman wrote: > > > > Adding the xarray mai