[PATCH] ipv6: route: convert comma to semicolon

2020-09-20 Thread Xu Wang
Replace a comma between expression statements by a semicolon. Signed-off-by: Xu Wang --- net/ipv6/route.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 5e7e25e2523a..fb075d9545b9 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c

[PATCH ethtool] bnxt: Add Broadcom driver support.

2020-09-20 Thread Vasundhara Volam
This patch adds the initial support for parsing registers dumped by the Broadcom driver. Currently, PXP and PCIe registers are parsed. Reviewed-by: Andy Gospodarek Reviewed-by: Edwin Peer Signed-off-by: Vasundhara Volam --- Makefile.am | 2 +- bnxt.c | 86

Re: a saner API for allocating DMA addressable pages v3

2020-09-20 Thread Christoph Hellwig
Any comments? Thomas: this should be identical to the git tree I gave you for mips testing, and you add your tested-by (and reviewd-by tags where applicable)? Helge: for parisc this should effectively be the same as the first version, but I've dropped the tested-by tags due to the reshuffle, and

Re: [PATCH net] drivers: net: Fix *_ipsec_offload_ok(): Use ip_hdr family

2020-09-20 Thread Christian Langrock
Hello David, I saw the status of my patched has been changed to "Changes requested". Can you tell me what can I do to get the patch accepted? Thank you in advance! BR, Christian Am 17.09.20 um 14:27 schrieb Christian Langrock: > Xfrm_dev_offload_ok() is called with the unencrypted SKB. So in

Re: linux-next: Fixes tag needs some work in the net tree

2020-09-20 Thread Sven Eckelmann
On Sunday, 20 September 2020 21:59:19 CEST Stephen Rothwell wrote: > Hi all, Yes, I've accidentally swapped the IDs while adding them to the various patches. The correct ones should have been: * 097930e85f90 ("batman-adv: bla: fix type misuse for backbone_gw hash indexing") Fixes: 07568d0369

KMSAN: uninit-value in hsr_fill_frame_info

2020-09-20 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:c5a13b33 kmsan: clang-format core git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=13ef204b90 kernel config: https://syzkaller.appspot.com/x/.config?x=20f149ad694ba

Re: WARNING in tracepoint_add_func

2020-09-20 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:325d0eab Merge branch 'akpm' (patches from Andrew) git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16992c8190 kernel config: https://syzkaller.appspot.com/x/.config?x=b12e84189082991c

Re: let import_iovec deal with compat_iovecs as well

2020-09-20 Thread 'Christoph Hellwig'
On Sat, Sep 19, 2020 at 02:24:10PM +, David Laight wrote: > I thought about that change while writing my import_iovec() => iovec_import() > patch - and thought that the io_uring code would (as usual) cause grief. > > Christoph - did you see those patches? No.

Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-20 Thread Christoph Hellwig
On Sun, Sep 20, 2020 at 12:14:49PM -0700, Andy Lutomirski wrote: > I wonder if this is really quite cast in stone. We could also have > FMODE_SHITTY_COMPAT and set that when a file like this is *opened* in > compat mode. Then that particular struct file would be read and > written using the compa

[PATCH] net: unix: remove redundant assignment to variable 'err'

2020-09-20 Thread Jing Xiangfeng
After commit 37ab4fa7844a ("net: unix: allow bind to fail on mutex lock"), the assignment to err is redundant. So remove it. Signed-off-by: Jing Xiangfeng --- net/unix/af_unix.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index 92784e51ee7d..eb82bdc

RE: [EXT] Re: [PATCH v6 0/3] Add 802.1AD protocol support for dsa switch and ocelot driver

2020-09-20 Thread Hongbo Wang
> You're going to have to update every single SWITCHDEV_PORT_ADD_OBJ > handler and subsequent helpers to check the validate the protocol value. > > You also are going to have to make sure that every instantiated > switchdev_obj_port_vlan object initializes the vlan protocol field properly. > > Ba

Re: [PATCH net-next RFC v1 1/4] net: devlink: Add support for port regions

2020-09-20 Thread Andrew Lunn
On Mon, Sep 21, 2020 at 12:23:18AM +, Vladimir Oltean wrote: > On Mon, Sep 21, 2020 at 02:45:39AM +0300, Vladimir Oltean wrote: > > This looks like a simple enough solution, but am I right that old > > kernels, which ignore this new DEVLINK_ATTR_PORT_INDEX netlink > > attribute, will consequent

Re: [PATCH net-next RFC v1 0/4] Add per port devlink regions

2020-09-20 Thread Andrew Lunn
On Sun, Sep 20, 2020 at 11:33:41PM +, Vladimir Oltean wrote: > On Sat, Sep 19, 2020 at 04:43:28PM +0200, Andrew Lunn wrote: > > > > DSA only instantiates devlink ports for switch ports which are used. > > For this hardware, only 4 user ports and the CPU port have devlink > > ports, which explai

Re: [PATCH net-next RFC v1 2/4] net: dsa: Add devlink port regions support to DSA

2020-09-20 Thread Andrew Lunn
On Sun, Sep 20, 2020 at 11:23:29PM +, Vladimir Oltean wrote: > On Sat, Sep 19, 2020 at 04:43:30PM +0200, Andrew Lunn wrote: > > Allow DSA drivers to make use of devlink port regions, via simple > > wrappers. > > > > Signed-off-by: Andrew Lunn > > --- > > include/net/dsa.h | 5 + > > ne

Re: [PATCH 07/14] RDS: drop double zeroing

2020-09-20 Thread David Miller
From: Julia Lawall Date: Sun, 20 Sep 2020 13:26:19 +0200 > sg_init_table zeroes its first argument, so the allocation of that argument > doesn't have to. > > the semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ > expression x,n,flags; > @@ > > x

Re: [PATCH 03/14] dpaa2-eth: drop double zeroing

2020-09-20 Thread David Miller
From: Julia Lawall Date: Sun, 20 Sep 2020 13:26:15 +0200 > sg_init_table zeroes its first argument, so the allocation of that argument > doesn't have to. > > the semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ > expression x,n,flags; > @@ > > x

[PATCH net-next] net: use in_softirq() to indicate the NAPI context in napi_consume_skb()

2020-09-20 Thread Yunsheng Lin
When napi_consume_skb() is called in the tx desc cleaning process, it is usually in the softirq context(BH disabled, or are processing softirqs), but it may also be in the task context, such as in the netpoll or loopback selftest process. Currently napi_consume_skb() uses non-zero budget to indica

Re: [PATCH] net: phy: realtek: Replace 2.5Gbps name from RTL8125 to RTL8226

2020-09-20 Thread David Miller
From: 劉偉權 Date: Mon, 21 Sep 2020 01:55:23 + > Hi Andrew, > Thanks...understood... This is a top-post. Andrew said to not top-post, and you said you understand this. If you understand it, please stop top-posting. Thank you.

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

2020-09-20 Thread David Miller
From: Michael Chan Date: Sun, 20 Sep 2020 21:08:53 -0400 > A series of small driver fixes covering VPD length logic, > ethtool_get_regs on VF, hwmon temperature error handling, > mutex locking for EEE and pause ethtool settings, and > parameters for statistics related firmware calls. Series appl

Re: [PATCH v2 net-next 0/9] DSA with VLAN filtering and offloading masters

2020-09-20 Thread David Miller
From: Vladimir Oltean Date: Mon, 21 Sep 2020 03:10:22 +0300 > This series attempts to make DSA VLANs work in the presence of a master > interface that is: > - filtering, so it drops VLANs that aren't explicitly added to its > filter list > - offloading, so the old assumptions in the tagging cod

RE: [PATCH] net: phy: realtek: Replace 2.5Gbps name from RTL8125 to RTL8226

2020-09-20 Thread 劉偉權
Hi Andrew, Thanks...understood... B.R. Willy Original Message- From: Andrew Lunn Sent: Friday, September 18, 2020 10:01 PM To: 劉偉權 Cc: hkallwe...@gmail.com; da...@davemloft.net; li...@armlinux.org.uk; k...@kernel.org; Ryan Kao ; netdev@vger.kernel.org; linux-ker...@vger.kernel.org Sub

[PATCH v2 net-next] net: phy: realtek: enable ALDPS to save power for RTL8211F

2020-09-20 Thread Jisheng Zhang
Enable ALDPS(Advanced Link Down Power Saving) to save power when link down. Signed-off-by: Jisheng Zhang --- Since v1: - add what does ALDPS mean. - replace magic number 0x18 with RTL8211F_PHYCR1 macro. drivers/net/phy/realtek.c | 9 + 1 file changed, 9 insertions(+) diff --git a/dri

[PATCH net 3/6] bnxt_en: Protect bnxt_set_eee() and bnxt_set_pauseparam() with mutex.

2020-09-20 Thread Michael Chan
All changes related to bp->link_info require the protection of the link_lock mutex. It's not sufficient to rely just on RTNL. Fixes: 163e9ef63641 ("bnxt_en: Fix race when modifying pause settings.") Reviewed-by: Edwin Peer Signed-off-by: Michael Chan --- drivers/net/ethernet/broadcom/bnxt/bnxt

[PATCH net 0/6] bnxt_en: Bug fixes.

2020-09-20 Thread Michael Chan
A series of small driver fixes covering VPD length logic, ethtool_get_regs on VF, hwmon temperature error handling, mutex locking for EEE and pause ethtool settings, and parameters for statistics related firmware calls. Please queue patches 1, 2, and 3 for -stable. Thanks. Edwin Peer (1): bnxt

[PATCH net 6/6] bnxt_en: Fix wrong flag value passed to HWRM_PORT_QSTATS_EXT fw call.

2020-09-20 Thread Michael Chan
The wrong flag value caused the firmware call to return actual port counters instead of the counter masks. This messed up the counter overflow logic and caused erratic extended port counters to be displayed under ethtool -S. Fixes: 531d1d269c1d ("bnxt_en: Retrieve hardware masks for port counters

[PATCH net 2/6] bnxt_en: return proper error codes in bnxt_show_temp

2020-09-20 Thread Michael Chan
From: Edwin Peer Returning "unknown" as a temperature value violates the hwmon interface rules. Appropriate error codes should be returned via device_attribute show instead. These will ultimately be propagated to the user via the file system interface. In addition to the corrected error handling

[PATCH net 1/6] bnxt_en: Use memcpy to copy VPD field info.

2020-09-20 Thread Michael Chan
From: Vasundhara Volam Using strlcpy() to copy from VPD is not correct because VPD strings are not necessarily NULL terminated. Use memcpy() to copy the VPD length up to the destination buffer size - 1. The destination is zeroed memory so it will always be NULL terminated. Fixes: a0d0fd70fed5

[PATCH net 4/6] bnxt_en: Return -EOPNOTSUPP for ETHTOOL_GREGS on VFs.

2020-09-20 Thread Michael Chan
From: Vasundhara Volam Debug firmware commands are not supported on VFs to read registers. This patch avoids logging unnecessary access_denied error on VFs when user calls ETHTOOL_GREGS. By returning error in get_regs_len() method on the VF, the get_regs() method will not be called. Fixes: b5d6

[PATCH net 5/6] bnxt_en: Fix HWRM_FUNC_QSTATS_EXT firmware call.

2020-09-20 Thread Michael Chan
Fix it to set the required fid input parameter. The firmware call fails without this patch. Fixes: d752d0536c97 ("bnxt_en: Retrieve hardware counter masks from firmware if available.") Reviewed-by: Edwin Peer Signed-off-by: Michael Chan --- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 1 + 1 f

Re: [PATCH net-next RFC v1 1/4] net: devlink: Add support for port regions

2020-09-20 Thread Vladimir Oltean
On Mon, Sep 21, 2020 at 02:45:39AM +0300, Vladimir Oltean wrote: > This looks like a simple enough solution, but am I right that old > kernels, which ignore this new DEVLINK_ATTR_PORT_INDEX netlink > attribute, will consequently interpret any devlink command for a port as > being for a global regio

[PATCH v2 net-next 3/9] net: dsa: convert check for 802.1Q upper when bridged into PRECHANGEUPPER

2020-09-20 Thread Vladimir Oltean
DSA tries to prevent having a VLAN added by a bridge and by an 802.1Q upper at the same time. It does that by checking the VID in .ndo_vlan_rx_add_vid(), since that's something that the 8021q module calls, via vlan_vid_add(). When a VLAN matches in both subsystems, this check returns -EBUSY. Howev

[PATCH v2 net-next 6/9] net: dsa: allow 8021q uppers while the bridge has vlan_filtering=0

2020-09-20 Thread Vladimir Oltean
When the bridge has VLAN awareness disabled there isn't any duplication of functionality, since the bridge does not process VLAN. Don't deny adding 8021q uppers to DSA switch ports in that case. The switch is supposed to simply pass traffic leaving the VLAN tag as-is, and the stack will happily str

[PATCH v2 net-next 4/9] net: dsa: convert denying bridge VLAN with existing 8021q upper to PRECHANGEUPPER

2020-09-20 Thread Vladimir Oltean
This is checking for the following order of operations, and makes sure to deny that configuration: ip link add link swp2 name swp2.100 type vlan id 100 ip link add br0 type bridge vlan_filtering 1 ip link set swp2 master br0 bridge vlan add dev swp2 vid 100 Instead of using vlan_for_each(), which

[PATCH v2 net-next 9/9] net: dsa: tag_sja1105: add compatibility with hwaccel VLAN tags

2020-09-20 Thread Vladimir Oltean
Check whether there is any hwaccel VLAN tag on RX, and if there is, treat it as the tag_8021q header. Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli --- Changes in v2: None. net/dsa/tag_sja1105.c | 21 + 1 file changed, 17 insertions(+), 4 deletions(-) diff -

[PATCH v2 net-next 5/9] net: dsa: refuse configuration in prepare phase of dsa_port_vlan_filtering()

2020-09-20 Thread Vladimir Oltean
The current logic beats me a little bit. The comment that "bridge skips -EOPNOTSUPP, so skip the prepare phase" was introduced in commit fb2dabad69f0 ("net: dsa: support VLAN filtering switchdev attr"). I'm not sure: (a) ok, the bridge skips -EOPNOTSUPP, but, so what, where are we returning -E

[PATCH v2 net-next 2/9] net: dsa: rename dsa_slave_upper_vlan_check to something more suggestive

2020-09-20 Thread Vladimir Oltean
We'll be adding a new check in the PRECHANGEUPPER notifier, where we'll need to check some VLAN uppers. It is hard to do that when there is already a function named dsa_slave_upper_vlan_check. So rename this one. Not to mention that this function probably shouldn't have started with "dsa_slave_" i

[PATCH v2 net-next 0/9] DSA with VLAN filtering and offloading masters

2020-09-20 Thread Vladimir Oltean
This series attempts to make DSA VLANs work in the presence of a master interface that is: - filtering, so it drops VLANs that aren't explicitly added to its filter list - offloading, so the old assumptions in the tagging code about there being a VLAN tag in the skb are not necessarily true any

[PATCH v2 net-next 8/9] net: dsa: tag_8021q: add VLANs to the master interface too

2020-09-20 Thread Vladimir Oltean
The whole purpose of tag_8021q is to send VLAN-tagged traffic to the CPU, from which the driver can decode the source port and switch id. Currently this only works if the VLAN filtering on the master is disabled. Change that by explicitly adding code to tag_8021q.c to add the VLANs corresponding t

[PATCH v2 net-next 1/9] net: dsa: deny enslaving 802.1Q upper to VLAN-aware bridge from PRECHANGEUPPER

2020-09-20 Thread Vladimir Oltean
There doesn't seem to be any strong technical reason for doing it this way, but we'll be adding more checks for invalid upper device configurations, and it will be easier to have them all grouped under PRECHANGEUPPER. Tested that it still works: ip link set br0 type bridge vlan_filtering 1 ip link

[PATCH v2 net-next 7/9] net: dsa: install VLANs into the master's RX filter too

2020-09-20 Thread Vladimir Oltean
Most DSA switch tags shift the EtherType to the right, causing the master to not parse the VLAN as VLAN. However, not all switches do that (example: tail tags, tag_8021q etc), and if the DSA master has "rx-vlan-filter: on" in ethtool -k, then we have a problem. Therefore, we could populate the VLA

possible deadlock in xfrm_user_rcv_msg

2020-09-20 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:5fa35f24 Add linux-next specific files for 20200916 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=141e870190 kernel config: https://syzkaller.appspot.com/x/.config?x=619bde85d9eaaed5 dashboard

Re: [PATCH net-next RFC v1 4/4] net: dsa: mv88e6xxx: Add per port devlink regions

2020-09-20 Thread Vladimir Oltean
On Sat, Sep 19, 2020 at 04:43:32PM +0200, Andrew Lunn wrote: > Add a devlink region to return the per port registers. > > Signed-off-by: Andrew Lunn > --- > drivers/net/dsa/mv88e6xxx/chip.c| 8 > drivers/net/dsa/mv88e6xxx/devlink.c | 61 + > drivers/net/dsa/

Re: [PATCH net-next RFC v1 3/4] net: dsa: Add helper for converting devlink port to ds and port

2020-09-20 Thread Vladimir Oltean
On Sat, Sep 19, 2020 at 04:43:31PM +0200, Andrew Lunn wrote: > Hide away from DSA drivers how devlink works. > > Signed-off-by: Andrew Lunn > --- > include/net/dsa.h | 14 ++ > 1 file changed, 14 insertions(+) > > diff --git a/include/net/dsa.h b/include/net/dsa.h > index 01da896b29

Re: [PATCH net-next RFC v1 1/4] net: devlink: Add support for port regions

2020-09-20 Thread Vladimir Oltean
On Sat, Sep 19, 2020 at 04:43:29PM +0200, Andrew Lunn wrote: > Allow regions to be registered to a devlink port. The same netlink API > is used, but the port index is provided to indicate when a region is a > port region as opposed to a device region. > > Signed-off-by: Andrew Lunn > --- > inclu

Re: [PATCH net-next RFC v1 0/4] Add per port devlink regions

2020-09-20 Thread Florian Fainelli
On 9/20/2020 4:33 PM, Vladimir Oltean wrote: On Sat, Sep 19, 2020 at 04:43:28PM +0200, Andrew Lunn wrote: DSA only instantiates devlink ports for switch ports which are used. For this hardware, only 4 user ports and the CPU port have devlink ports, which explains the discontinuous port regio

Re: [PATCH net-next RFC v1 0/4] Add per port devlink regions

2020-09-20 Thread Vladimir Oltean
On Sat, Sep 19, 2020 at 04:43:28PM +0200, Andrew Lunn wrote: > > DSA only instantiates devlink ports for switch ports which are used. > For this hardware, only 4 user ports and the CPU port have devlink > ports, which explains the discontinuous port regions. This is not so much a choice, as it is

Re: [PATCH net-next RFC v1 2/4] net: dsa: Add devlink port regions support to DSA

2020-09-20 Thread Vladimir Oltean
On Sat, Sep 19, 2020 at 04:43:30PM +0200, Andrew Lunn wrote: > Allow DSA drivers to make use of devlink port regions, via simple > wrappers. > > Signed-off-by: Andrew Lunn > --- > include/net/dsa.h | 5 + > net/core/devlink.c | 3 +-- > net/dsa/dsa.c | 14 ++ > 3 files ch

Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-20 Thread Al Viro
On Sun, Sep 20, 2020 at 08:22:59PM +0100, Matthew Wilcox wrote: > On Sun, Sep 20, 2020 at 08:10:31PM +0100, Al Viro wrote: > > IMO it's much saner to mark those and refuse to touch them from io_uring... > > Simpler solution is to remove io_uring from the 32-bit syscall list. > If you're a 32-bit p

Re: [PATCH net-next 4/5] net: phy: Document core PHY structures

2020-09-20 Thread Florian Fainelli
On 9/20/2020 10:17 AM, Andrew Lunn wrote: Add kerneldoc for the core PHY data structures, a few inline functions and exported functions which are not already documented. Signed-off-by: Andrew Lunn Looks good for the most part, if you can capitalize Phy, phy or any variant in the process t

Re: [PATCH net-netx] net: renesas: sh_eth: suppress initialized field overwritten warning

2020-09-20 Thread David Miller
From: Liu Jian Date: Sat, 19 Sep 2020 18:59:45 +0800 > Suppress a bunch of warnings of the form: > > drivers/net/ethernet/renesas/sh_eth.c:100:13: warning: initialized field > overwritten [-Woverride-init] > > This is because after the sh_eth_offset_xxx array is initialized to > SH_ETH_OFFSET

Re: [PATCH net-next] net: mventa: remove unused variable 'dummy' in mvneta_mib_counters_clear()

2020-09-20 Thread David Miller
From: Zhang Changzhong Date: Sat, 19 Sep 2020 10:26:51 +0800 > Fixes the following W=1 kernel build warning(s): > > drivers/net/ethernet/marvell/mvneta.c:754:6: warning: > variable 'dummy' set but not used [-Wunused-but-set-variable] > 754 | u32 dummy; > | ^ > > This variable

Re: [PATCH net-next] net: remove unnecessary NULL checking in napi_consume_skb()

2020-09-20 Thread David Miller
From: Yunsheng Lin Date: Sat, 19 Sep 2020 10:24:47 +0800 > When budget is non-zero, skb_unref() has already handled the > NULL checking. > > When budget is zero, the dev_consume_skb_any() has handled NULL > checking in __dev_kfree_skb_irq(), or dev_kfree_skb() which also > ultimately call skb_un

Re: [PATCH v2] net: sctp: Fix IPv6 ancestor_size calc in sctp_copy_descendant

2020-09-20 Thread David Miller
From: Henry Ptasinski Date: Sat, 19 Sep 2020 00:12:11 + > When calculating ancestor_size with IPv6 enabled, simply using > sizeof(struct ipv6_pinfo) doesn't account for extra bytes needed for > alignment in the struct sctp6_sock. On x86, there aren't any extra > bytes, but on ARM the ipv6_pin

Re: [PATCH net-next] net: mvneta: avoid copying shared_info frags in mvneta_swbm_build_skb

2020-09-20 Thread David Miller
From: Lorenzo Bianconi Date: Sat, 19 Sep 2020 02:03:26 +0200 > Avoid copying skb_shared_info frags array in mvneta_swbm_build_skb() since > __build_skb_around() does not overwrite it > > Signed-off-by: Lorenzo Bianconi Applied, thank you.

RE: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-20 Thread David Laight
From: Arnd Bergmann > Sent: 20 September 2020 21:49 > > On Sun, Sep 20, 2020 at 9:28 PM Andy Lutomirski wrote: > > On Sun, Sep 20, 2020 at 12:23 PM Matthew Wilcox wrote: > > > > > > On Sun, Sep 20, 2020 at 08:10:31PM +0100, Al Viro wrote: > > > > IMO it's much saner to mark those and refuse to t

Re: [PATCH] rhashtable: fix indentation of a continue statement

2020-09-20 Thread David Miller
From: Colin King Date: Fri, 18 Sep 2020 22:51:26 +0100 > From: Colin Ian King > > A continue statement is indented incorrectly, add in the missing > tab. > > Signed-off-by: Colin Ian King Applied.

Re: [PATCH net-next 5/5] net: mdio: Add kerneldoc for main data structures and some functions

2020-09-20 Thread Florian Fainelli
On 9/20/2020 10:17 AM, Andrew Lunn wrote: Document the main structures, a few inline helpers and exported functions which are not already documented. Signed-off-by: Andrew Lunn Reviewed-by: Florian Fainelli -- Florian

Re: [net-next PATCH] net: dsa: rtl8366: Skip PVID setting if not requested

2020-09-20 Thread David Miller
From: Linus Walleij Date: Sat, 19 Sep 2020 00:29:54 +0200 > We go to lengths to determine whether the PVID should be set > for this port or not, and then fail to take it into account. > Fix this oversight. > > Fixes: d8652956cf37 ("net: dsa: realtek-smi: Add Realtek SMI driver") > Signed-off-by:

Re: [PATCH net-next 1/5] net: netdevice.h: Document proto_down_reason

2020-09-20 Thread Florian Fainelli
On 9/20/2020 10:16 AM, Andrew Lunn wrote: Fix the Sphinx warning: ./include/linux/netdevice.h:2162: warning: Function parameter or member 'proto_down_reason' not described in 'net_device' by adding the needed documentation. Cc: Roopa Prabhu Signed-off-by: Andrew Lunn Reviewed-by: Floria

Re: [PATCH net-next 3/5] net: phy: Fixup kernel doc

2020-09-20 Thread Florian Fainelli
On 9/20/2020 10:17 AM, Andrew Lunn wrote: Add missing parameter documentation, or fixup wrong parameter names. Signed-off-by: Andrew Lunn Reviewed-by: Florian Fainelli -- Florian

Re: [net-next PATCH] net: dsa: rtl8366rb: Support all 4096 VLANs

2020-09-20 Thread Florian Fainelli
On 9/20/2020 1:37 PM, Linus Walleij wrote: There is an off-by-one error in rtl8366rb_is_vlan_valid() making VLANs 0..4094 valid while it should be 1..4095. Fix it. Fixes: d8652956cf37 ("net: dsa: realtek-smi: Add Realtek SMI driver") Signed-off-by: Linus Walleij Reviewed-by: Florian Fainel

Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-20 Thread Arnd Bergmann
On Sun, Sep 20, 2020 at 9:28 PM Andy Lutomirski wrote: > On Sun, Sep 20, 2020 at 12:23 PM Matthew Wilcox wrote: > > > > On Sun, Sep 20, 2020 at 08:10:31PM +0100, Al Viro wrote: > > > IMO it's much saner to mark those and refuse to touch them from > > > io_uring... > > > > Simpler solution is to

[net-next PATCH] net: dsa: rtl8366rb: Support all 4096 VLANs

2020-09-20 Thread Linus Walleij
There is an off-by-one error in rtl8366rb_is_vlan_valid() making VLANs 0..4094 valid while it should be 1..4095. Fix it. Fixes: d8652956cf37 ("net: dsa: realtek-smi: Add Realtek SMI driver") Signed-off-by: Linus Walleij --- drivers/net/dsa/rtl8366rb.c | 2 +- 1 file changed, 1 insertion(+), 1 de

possible deadlock in xfrm_policy_delete

2020-09-20 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:5fa35f24 Add linux-next specific files for 20200916 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=1122e2d990 kernel config: https://syzkaller.appspot.com/x/.config?x=6bdb7e39caf48f53 dashboard

linux-next: Fixes tag needs some work in the net tree

2020-09-20 Thread Stephen Rothwell
Hi all, In commit 2369e8270469 ("batman-adv: mcast: fix duplicate mcast packets from BLA backbone to mesh") Fixes tag Fixes: 279e89b2281a ("batman-adv: add broadcast duplicate check") has these problem(s): - Subject does not match target commit subject Did you mean: Fixes: 279e89b228

linux-next: Signed-off-by missing for commit in the net tree

2020-09-20 Thread Stephen Rothwell
Hi all, Commit 097930e85f90 ("batman-adv: bla: fix type misuse for backbone_gw hash indexing") is missing a Signed-off-by from its committer. -- Cheers, Stephen Rothwell pgpIpyBLeEkQS.pgp Description: OpenPGP digital signature

Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-20 Thread Andy Lutomirski
On Sun, Sep 20, 2020 at 12:23 PM Matthew Wilcox wrote: > > On Sun, Sep 20, 2020 at 08:10:31PM +0100, Al Viro wrote: > > IMO it's much saner to mark those and refuse to touch them from io_uring... > > Simpler solution is to remove io_uring from the 32-bit syscall list. > If you're a 32-bit process,

Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-20 Thread Matthew Wilcox
On Sun, Sep 20, 2020 at 08:10:31PM +0100, Al Viro wrote: > IMO it's much saner to mark those and refuse to touch them from io_uring... Simpler solution is to remove io_uring from the 32-bit syscall list. If you're a 32-bit process, you don't get to use io_uring. Would any real users actually care

Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-20 Thread Andy Lutomirski
On Sun, Sep 20, 2020 at 11:07 AM Al Viro wrote: > > On Sun, Sep 20, 2020 at 04:15:10PM +0100, Matthew Wilcox wrote: > > On Fri, Sep 18, 2020 at 02:45:25PM +0200, Christoph Hellwig wrote: > > > Add a flag to force processing a syscall as a compat syscall. This is > > > required so that in_compat_s

Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-20 Thread Al Viro
On Sun, Sep 20, 2020 at 08:01:59PM +0100, Matthew Wilcox wrote: > On Sun, Sep 20, 2020 at 07:07:42PM +0100, Al Viro wrote: > > 2) a few drivers are really fucked in head. They use different > > *DATA* layouts for reads/writes, depending upon the calling process. > > IOW, if you fork/exec a 32b

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-20 Thread Oded Gabbay
On Sun, Sep 20, 2020 at 11:47 AM Greg Kroah-Hartman wrote: > > On Sat, Sep 19, 2020 at 04:22:35PM -0300, Jason Gunthorpe wrote: > > On Sat, Sep 19, 2020 at 07:27:30PM +0200, Greg Kroah-Hartman wrote: > > > > It's probably heresy, but why do I need to integrate into the RDMA > > > > subsystem ? >

Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-20 Thread Matthew Wilcox
On Sun, Sep 20, 2020 at 07:07:42PM +0100, Al Viro wrote: > 2) a few drivers are really fucked in head. They use different > *DATA* layouts for reads/writes, depending upon the calling process. > IOW, if you fork/exec a 32bit binary and your stdin is one of those, > reads from stdin in parent

Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-20 Thread Al Viro
On Sun, Sep 20, 2020 at 07:07:42PM +0100, Al Viro wrote: > /proc/bus/input/devices (fucked bitmap-to-text representation) To illustrate the, er, beauty of that stuff: ; cat32 /proc/bus/input/devices >/tmp/a ; cat /proc/bus/input/devices >/tmp/b ; diff -u /tmp/a /tmp/b|grep '^[-+]' --- /tmp/a

Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-20 Thread Al Viro
On Sun, Sep 20, 2020 at 09:59:36AM -0700, Andy Lutomirski wrote: > As one example, look at __sys_setsockopt(). It's called for the > native and compat versions, and it contains an in_compat_syscall() > check. (This particularly check looks dubious to me, but that's > another story.) If this wer

Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-20 Thread Al Viro
On Sun, Sep 20, 2020 at 04:15:10PM +0100, Matthew Wilcox wrote: > On Fri, Sep 18, 2020 at 02:45:25PM +0200, Christoph Hellwig wrote: > > Add a flag to force processing a syscall as a compat syscall. This is > > required so that in_compat_syscall() works for I/O submitted by io_uring > > helper thr

Re: [PATCH net-next 0/5] PHY subsystem kernel doc

2020-09-20 Thread Randy Dunlap
On 9/20/20 10:16 AM, Andrew Lunn wrote: > The first two patches just fixed warnings seen while trying to work on > PHY documentation. > > The following patches then first fix existing warnings in the > kerneldoc for the PHY subsystem, and then extend the kernel > documentation for the major struct

[PATCH net-next 3/5] net: phy: Fixup kernel doc

2020-09-20 Thread Andrew Lunn
Add missing parameter documentation, or fixup wrong parameter names. Signed-off-by: Andrew Lunn --- include/linux/mdio.h | 3 ++- include/linux/phy.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/linux/mdio.h b/include/linux/mdio.h index 3a88b699b758..dbd69b3d1

[PATCH net-next 4/5] net: phy: Document core PHY structures

2020-09-20 Thread Andrew Lunn
Add kerneldoc for the core PHY data structures, a few inline functions and exported functions which are not already documented. Signed-off-by: Andrew Lunn --- Documentation/networking/kapi.rst | 9 + drivers/net/phy/phy-core.c| 30 +++ drivers/net/phy/phy.c | 69 - in

[PATCH net-next 0/5] PHY subsystem kernel doc

2020-09-20 Thread Andrew Lunn
The first two patches just fixed warnings seen while trying to work on PHY documentation. The following patches then first fix existing warnings in the kerneldoc for the PHY subsystem, and then extend the kernel documentation for the major structures and functions in the PHY subsystem. Andrew Lun

[PATCH net-next 5/5] net: mdio: Add kerneldoc for main data structures and some functions

2020-09-20 Thread Andrew Lunn
Document the main structures, a few inline helpers and exported functions which are not already documented. Signed-off-by: Andrew Lunn --- Documentation/networking/kapi.rst | 15 ++ drivers/net/phy/mdio_bus.c| 37 + drivers/net/phy/mdio_device.c | 21 include

[PATCH net-next 2/5] net: netdevice.h: Document xdp_state

2020-09-20 Thread Andrew Lunn
Fix the Sphinx warning: Function parameter or member 'xdp_state' not described in 'net_device' by documenting xdp_state. Cc: Andrii Nakryiko Signed-off-by: Andrew Lunn --- include/linux/netdevice.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/netdevice.h b/include/linux

[PATCH net-next 1/5] net: netdevice.h: Document proto_down_reason

2020-09-20 Thread Andrew Lunn
Fix the Sphinx warning: ./include/linux/netdevice.h:2162: warning: Function parameter or member 'proto_down_reason' not described in 'net_device' by adding the needed documentation. Cc: Roopa Prabhu Signed-off-by: Andrew Lunn --- include/linux/netdevice.h | 1 + 1 file changed, 1 insertion(+)

Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-20 Thread Andy Lutomirski
On Sat, Sep 19, 2020 at 7:57 PM Al Viro wrote: > > On Sat, Sep 19, 2020 at 05:14:41PM -0700, Andy Lutomirski wrote: > > > > 2) have you counted the syscalls that do and do not need that? > > > > No. > > Might be illuminating... > > > > 3) how many of those realistically *can* be unified with their

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-20 Thread Daniel Vetter
On Wed, Sep 16, 2020 at 02:00:54PM +0200, Greg Kroah-Hartman wrote: > On Wed, Sep 16, 2020 at 11:47:58AM +0300, Oded Gabbay wrote: > > On Wed, Sep 16, 2020 at 11:21 AM Greg Kroah-Hartman > > wrote: > > > > > > On Wed, Sep 16, 2020 at 11:02:39AM +0300, Oded Gabbay wrote: > > > > On Wed, Sep 16, 202

Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-20 Thread Arnd Bergmann
On Sun, Sep 20, 2020 at 5:15 PM Matthew Wilcox wrote: > > On Fri, Sep 18, 2020 at 02:45:25PM +0200, Christoph Hellwig wrote: > > Add a flag to force processing a syscall as a compat syscall. This is > > required so that in_compat_syscall() works for I/O submitted by io_uring > > helper threads on

Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-20 Thread William Kucharski
I really like that as it’s self-documenting and anyone debugging it can see what is actually being used at a glance. > On Sep 20, 2020, at 09:15, Matthew Wilcox wrote: > > On Fri, Sep 18, 2020 at 02:45:25PM +0200, Christoph Hellwig wrote: >> Add a flag to force processing a syscall as a compat

Re: [PATCH 08/14] xprtrdma: drop double zeroing

2020-09-20 Thread Chuck Lever
Thanks, Julia! > On Sep 20, 2020, at 7:26 AM, Julia Lawall wrote: > > sg_init_table zeroes its first argument, so the allocation of that argument > doesn't have to. > > the semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ > expression x,n,flags;

Re: Exposing device ACL setting through devlink

2020-09-20 Thread Jiri Pirko
Sat, Sep 19, 2020 at 01:20:34AM CEST, tlfal...@linux.ibm.com wrote: > >On 9/18/20 2:20 AM, Jiri Pirko wrote: >> Thu, Sep 17, 2020 at 10:31:10PM CEST, tlfal...@linux.ibm.com wrote: >> > On 9/10/20 2:00 AM, Jiri Pirko wrote: >> > > Tue, Sep 08, 2020 at 08:27:13PM CEST, tlfal...@linux.ibm.com wrote: >

Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-20 Thread Matthew Wilcox
On Fri, Sep 18, 2020 at 02:45:25PM +0200, Christoph Hellwig wrote: > Add a flag to force processing a syscall as a compat syscall. This is > required so that in_compat_syscall() works for I/O submitted by io_uring > helper threads on behalf of compat syscalls. Al doesn't like this much, but my su

KASAN: use-after-free Read in tcf_action_destroy

2020-09-20 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:0f9ad4e7 Merge branch 's390-qeth-next' git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=15fc675590 kernel config: https://syzkaller.appspot.com/x/.config?x=d29a102d22f784ea dashboard link: https://s

Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-20 Thread Al Viro
On Sun, Sep 20, 2020 at 03:55:47PM +0200, Arnd Bergmann wrote: > On Sun, Sep 20, 2020 at 12:09 AM Al Viro wrote: > > On Fri, Sep 18, 2020 at 05:16:15PM +0200, Christoph Hellwig wrote: > > > On Fri, Sep 18, 2020 at 02:58:22PM +0100, Al Viro wrote: > > > > Said that, why not provide a variant that w

Re: [PATCH RFC/RFT 0/2] W=1 by default for Ethernet PHY subsystem

2020-09-20 Thread Andrew Lunn
n those 141 lines when it is time to add a new flag to W=1? How often are new W=1 flags added? My patch exported KBUILD_CFLAGS_WARN1. How about instead we export KBUILD_CFLAGS_WARN1_20200920. A subsystem can then sign up to being W=1 clean as for the 20200920 definition of W=1. If you want to add

Re: Info

2020-09-20 Thread Mrs. Frau Kiran
I'm Mrs.Frau Kiran, an indian, philanthropist and art collector. I bring to you a Beneficial CharityProposal to assist me with. If interested!, respond back. I will be more detailed on proposal in my next email to you. Best Regards Mrs.Frau Kiran

Re: [PATCH v4 2/2] net: mdio-ipq4019: add Clause 45 support

2020-09-20 Thread Andrew Lunn
On Sun, Sep 20, 2020 at 04:16:53PM +0200, Robert Marko wrote: > While up-streaming the IPQ4019 driver it was thought that the controller had > no Clause 45 support, > but it actually does and its activated by writing a bit to the mode register. > > So lets add it as newer SoC-s use the same contr

Re: [PATCH v3 2/2] net: mdio-ipq4019: add Clause 45 support

2020-09-20 Thread Robert Marko
On Sun, Sep 20, 2020 at 2:19 AM Andrew Lunn wrote: > > > + > > +/* 0 = Clause 22, 1 = Clause 45 */ > > +#define MDIO_MODE_BITBIT(8) > > How about calling this MDIO_MODE_C45 Good idea, will rename it. > > > + /* Enter Clause 45 mode */ > > +

[PATCH v4 0/2] net: mdio-ipq4019: add Clause 45 support

2020-09-20 Thread Robert Marko
This patch series adds support for Clause 45 to the driver. While at it also change some defines to upper case to match rest of the driver. Changes since v1: * Drop clock patches, these need further investigation and no user for non default configuration has been found Robert Marko (2): net: m

[PATCH v4 2/2] net: mdio-ipq4019: add Clause 45 support

2020-09-20 Thread Robert Marko
While up-streaming the IPQ4019 driver it was thought that the controller had no Clause 45 support, but it actually does and its activated by writing a bit to the mode register. So lets add it as newer SoC-s use the same controller and Clause 45 compliant PHY-s. Signed-off-by: Robert Marko Cc:

[PATCH v4 1/2] net: mdio-ipq4019: change defines to upper case

2020-09-20 Thread Robert Marko
In the commit adding the IPQ4019 MDIO driver, defines for timeout and sleep partially used lower case. Lets change it to upper case in line with the rest of driver defines. Signed-off-by: Robert Marko Cc: Luka Perkov Reviewed-by: Andrew Lunn Reviewed-by: Florian Fainelli --- drivers/net/phy/

Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-20 Thread Arnd Bergmann
On Sun, Sep 20, 2020 at 12:09 AM Al Viro wrote: > On Fri, Sep 18, 2020 at 05:16:15PM +0200, Christoph Hellwig wrote: > > On Fri, Sep 18, 2020 at 02:58:22PM +0100, Al Viro wrote: > > > Said that, why not provide a variant that would take an explicit > > > "is it compat" argument and use it there?

Re: [PATCH] rhashtable: fix indentation of a continue statement

2020-09-20 Thread Herbert Xu
On Fri, Sep 18, 2020 at 10:51:26PM +0100, Colin King wrote: > From: Colin Ian King > > A continue statement is indented incorrectly, add in the missing > tab. > > Signed-off-by: Colin Ian King > --- > lib/test_rhashtable.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Acked-by: Herb

  1   2   >