regression: UFO removal breaks kvm live migration

2017-11-07 Thread Michal Kubecek
Hello, I just received this bug report: https://bugzilla.suse.com/show_bug.cgi?id=1066757 The reporter runs a live migration of a kvm guest from a host with kernel supporting UFO (openSUSE 42.2 or 42.3, based on 4.4) to a host with kernel with UFO support removed (SLE15 or openSUSE 15.0

Re: [RFC PATCH] bpf: Add helpers to read useful task_struct members

2017-11-07 Thread Alexei Starovoitov
On 11/7/17 12:55 AM, Naveen N. Rao wrote: I thought such struct shouldn't change layout. If it is we need to fix include/linux/compiler-clang.h to do that anon struct as well. We considered that, but it looked to be very dependent on the version of gcc used to build the kernel. But, this may

[PATCH net-next 1/2] ip_gre: add the support for i/o_flags update via netlink

2017-11-07 Thread Xin Long
Now ip_gre is using ip_tunnel_changelink to update it's properties, but ip_tunnel_changelink in ip_tunnel doesn't update i/o_flags as a common function. o_flags updates would cause that tunnel->tun_hlen / hlen and dev->mtu / needed_headroom need to be recalculated, and dev->(hw_)features need to

[PATCH net-next 0/2] ip_gre: add support for i/o_flags update

2017-11-07 Thread Xin Long
ip_gre is using as many ip_tunnel apis as possible, newlink works fine as gre would do it's own part in .ndo_init. But when changing link, ip_tunnel_changelink doesn't even update i/o_flags, and also the update of these flags would cause some other gre's properties need to be updated or

[PATCH net-next 2/2] ip_gre: add the support for i/o_flags update via ioctl

2017-11-07 Thread Xin Long
As patch 'ip_gre: add the support for i/o_flags update via netlink' did for netlink, we also need to do the same job for these update via ioctl. This patch is to update i/o_flags and call ipgre_link_update to recalculate these gre properties after ip_tunnel_ioctl does the common update.

[PATCH net-next 1/2] net: allow per netns sysctl_rmem and sysctl_wmem for protos

2017-11-07 Thread Eric Dumazet
As we want to gradually implement per netns sysctl_rmem and sysctl_wmem on per protocol basis, add two new fields in struct proto, and two new helpers : sk_get_wmem0() and sk_get_rmem0() First user will be TCP. Then UDP and SCTP can be easily converted, while DECNET probably wont get this

[PATCH net-next 0/2] net: Namespace-ify sysctl_tcp_rmem and sysctl_tcp_wmem

2017-11-07 Thread Eric Dumazet
We need to get per netns sysctl for sysctl_[proto]_rmem and sysctl_[proto]_wmem This patch series adds the basic infrastructure allowing per proto conversion, and takes care of TCP. Eric Dumazet (2): net: allow per netns sysctl_rmem and sysctl_wmem for protos tcp: Namespace-ify

[PATCH net-next 2/2] tcp: Namespace-ify sysctl_tcp_rmem and sysctl_tcp_wmem

2017-11-07 Thread Eric Dumazet
Note that when a new netns is created, it inherits its sysctl_tcp_rmem and sysctl_tcp_wmem from initial netns. This change is needed so that we can refine TCP rcvbuf autotuning, to take RTT into consideration. Signed-off-by: Eric Dumazet Cc: Wei Wang ---

[PATCH] net: ipv6: sysctl to specify IPv6 ND traffic class

2017-11-07 Thread Maciej Żenczykowski
From: Maciej Żenczykowski Add a per-device sysctl to specify the default traffic class to use for kernel originated IPv6 Neighbour Discovery packets. Currently this includes: - Router Solicitation (ICMPv6 type 133) ndisc_send_rs() -> ndisc_send_skb() -> ip6_nd_hdr() -

RE: [EXT] Re: [PATCH net-next v2] net: mvpp2: add ethtool GOP statistics

2017-11-07 Thread Stefan Chulski
> -Original Message- > From: Miquel RAYNAL [mailto:miquel.ray...@free-electrons.com] > Sent: Tuesday, November 07, 2017 12:45 AM > To: Stefan Chulski > Cc: Thomas Petazzoni ; Antoine Tenart > ;

Re: [PATCH v2] can: Use common error handling code in vxcan_newlink()

2017-11-07 Thread Marc Kleine-Budde
On 11/01/2017 03:16 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 1 Nov 2017 14:56:15 +0100 > > Add a jump target so that a bit of exception handling can be better reused > at the end of this function. > > This issue was detected by using the

Re: [RFC PATCH] bpf: Add helpers to read useful task_struct members

2017-11-07 Thread Naveen N. Rao
Alexei Starovoitov wrote: On 11/7/17 12:55 AM, Naveen N. Rao wrote: I thought such struct shouldn't change layout. If it is we need to fix include/linux/compiler-clang.h to do that anon struct as well. We considered that, but it looked to be very dependent on the version of gcc used to build

Re: [PATCH] libceph: don't WARN() if user tries to add invalid key

2017-11-07 Thread Ilya Dryomov
On Tue, Nov 7, 2017 at 6:57 AM, Eric Biggers wrote: > From: Eric Biggers > > The WARN_ON(!key->len) in set_secret() in net/ceph/crypto.c is hit if a > user tries to add a key of type "ceph" with an invalid payload as > follows (assuming

Re: [PATCH net-next 2/8] rtnetlink: add rtnl_register_module

2017-11-07 Thread Peter Zijlstra
On Tue, Nov 07, 2017 at 10:10:04AM +0100, Peter Zijlstra wrote: > On Tue, Nov 07, 2017 at 07:11:56AM +0100, Florian Westphal wrote: > > Peter Zijlstra wrote: > > > On Mon, Nov 06, 2017 at 11:51:07AM +0100, Florian Westphal wrote: > > > > @@ -180,6 +164,12 @@ int

[rht_deferred_worker] watchdog: BUG: soft lockup - CPU#0 stuck for 23s! [kworker/0:1:15]

2017-11-07 Thread Fengguang Wu
Hello, FYI this happens in v4.14-rc8 -- it's not necessarily a new bug. [ 485.097496] rcu-torture: Reader Pipe: 2 0 0 0 0 0 0 0 0 0 0 [ 485.317082] rcu-torture: Reader Batch: 0 2 0 0 0 0 0 0 0 0 0 [ 485.809530] rcu-torture: Free-Block Circulation: 0 0 0 0 0 0 0 0 0 0 0 [ 486.097071] ???

Re: [PATCH 2/2] net: macb: add of_node_put to error paths

2017-11-07 Thread Nicolas Ferre
On 06/11/2017 at 12:10, Michael Grzeschik wrote: > We add the call of_node_put(bp->phy_node) to all associated error > paths for memory clean up. > > Signed-off-by: Michael Grzeschik > --- > drivers/net/ethernet/cadence/macb_main.c | 3 +++ > 1 file changed, 3

Re: [PATCH net-next 2/8] rtnetlink: add rtnl_register_module

2017-11-07 Thread Peter Zijlstra
On Tue, Nov 07, 2017 at 07:11:56AM +0100, Florian Westphal wrote: > Peter Zijlstra wrote: > > On Mon, Nov 06, 2017 at 11:51:07AM +0100, Florian Westphal wrote: > > > @@ -180,6 +164,12 @@ int __rtnl_register(int protocol, int msgtype, > > >

[PATCH net] tcp: fix tcp_fastretrans_alert warning

2017-11-07 Thread Yuchung Cheng
This patch fixes the cause of an WARNING indicatng TCP has pending retransmission in Open state in tcp_fastretrans_alert(). The root cause is a bad interaction between path mtu probing, if enabled, and the RACK loss detection. Upong receiving a SACK above the sequence of the MTU probing packet,

Re: [PATCH net-next v6 3/3] act_vlan: VLAN action rewrite to use RCU lock/unlock and update

2017-11-07 Thread David Miller
From: Alexander Duyck Date: Tue, 7 Nov 2017 08:54:20 -0800 > Are we really going to be so strict about the reverse xmas-tree that > we won't allow for assignment w/ variable declaration because the > dependency order won't fit into that format? Yes. > Last I knew

Re: [PATCH 21/21] sunrpc: exit_net cleanup check added

2017-11-07 Thread Stephen Hemminger
On Sun, 5 Nov 2017 13:02:44 +0300 Vasily Averin wrote: > Be sure that all_clients list initialized in net_init hook was return > to initial state. > > Signed-off-by: Vasily Averin > --- > net/sunrpc/sunrpc_syms.c | 4 > 1 file changed, 4

Re: [PULL] virtio: last minute bugfix

2017-11-07 Thread Wei Wang
On 11/08/2017 03:23 AM, Michael S. Tsirkin wrote: On Tue, Nov 07, 2017 at 08:13:10PM +0200, Michael S. Tsirkin wrote: On Tue, Nov 07, 2017 at 09:29:59AM -0800, Linus Torvalds wrote: On Tue, Nov 7, 2017 at 9:23 AM, Linus Torvalds wrote: I guess I'll take it, but

Re: [PATCH net-next v2 0/2] hv_netvsc: fix a hang on channel/mtu changes

2017-11-07 Thread David Miller
From: Vitaly Kuznetsov Date: Thu, 2 Nov 2017 11:35:29 +0100 > It was found that netvsc driver doesn't survive e.g. > > # while true; do ethtool -L eth0 combined 4; ethtool -L eth0 combined 8; done" > > test. I was able to identify a hang in guest/host communication, it is

Re: [PATCH] net: mvpp2: Prevent userspace from changing TX affinities

2017-11-07 Thread David Miller
From: Marc Zyngier Date: Sat, 4 Nov 2017 12:33:47 + > The mvpp2 driver can't cope at all with the TX affinities being > changed from userspace, and spit an endless stream of > > [ 91.779920] mvpp2 f400.ethernet eth2: wrong cpu on the end of Tx > processing > [

Re: [PATCH v3 net-next 1/5] net: bridge: Rename mglist to host_joined

2017-11-07 Thread Nikolay Aleksandrov
On 7.11.2017 01:26, Andrew Lunn wrote: > The boolean mglist indicates the host has joined a particular > multicast group on the bridge interface. It is badly named, obscuring > what is means. Rename it. > > Signed-off-by: Andrew Lunn > --- > net/bridge/br_input.c | 2 +- >

Re: [PATCH v3 net-next 2/5] net: bridge: Send notification when host join/leaves a group

2017-11-07 Thread Florian Fainelli
On 11/06/2017 03:26 PM, Andrew Lunn wrote: > The host can join or leave a multicast group on the brX interface, as > indicated by IGMP snooping. This is tracked within the bridge > multicast code. Send a notification when this happens, in the same way > a notification is sent when a port of the

Re: [PATCH v3 net-next 1/5] net: bridge: Rename mglist to host_joined

2017-11-07 Thread Florian Fainelli
On 11/06/2017 03:26 PM, Andrew Lunn wrote: > The boolean mglist indicates the host has joined a particular > multicast group on the bridge interface. It is badly named, obscuring > what is means. Rename it. > > Signed-off-by: Andrew Lunn Acked-by: Florian Fainelli

Re: [kernel-hardening] [PATCH v4] scripts: add leaking_addresses.pl

2017-11-07 Thread Linus Torvalds
On Tue, Nov 7, 2017 at 3:36 PM, Laura Abbott wrote: > > I'd probably put /proc/kallsyms and /proc/modules on the omit list > since those are designed to leak addresses to userspace. Well, they are indeed designed to leak addresses, but not a lot of people should care. So I

Re: [PATCH v3 net-next 3/5] net: bridge: Add/del switchdev object on host join/leave

2017-11-07 Thread Nikolay Aleksandrov
On 7.11.2017 01:26, Andrew Lunn wrote: > When the host joins or leaves a multicast group, use switchdev to add > an object to the hardware to forward traffic for the group to the > host. > > Signed-off-by: Andrew Lunn > --- > include/net/switchdev.h | 1 + >

Re: [PATCH net-next RFC 0/9] net: dsa: PTP timestamping for mv88e6xxx

2017-11-07 Thread Andrew Lunn
> One thing that we're not doing (and probably should be) is > configuring multicast frames to 01:1B:19:00:00:00 to be destined to > the CPU port. So i did a quick test. If the application joins 224.0.1.129 on the slave interface, the switch will pass the packets to the host and to the

Re: [PATCH v3] scripts: add leaking_addresses.pl

2017-11-07 Thread Tobin C. Harding
On Tue, Nov 07, 2017 at 01:44:01PM -0800, Linus Torvalds wrote: > On Tue, Nov 7, 2017 at 1:22 PM, Kees Cook wrote: > > > > Linus, what do you have in mind for the root-only "yes we really need > > the actual address output" exceptions? > > I am convinced that absolutely

Re: [PATCH net-next] bpf: Rename tcp_bbf.readme to tcp_bpf.readme

2017-11-07 Thread David Miller
From: Lawrence Brakmo Date: Sun, 5 Nov 2017 18:44:10 -0800 > The original patch had the wrong filename. > > Fixes: bfdf75693875 ("bpf: create samples/bpf/tcp_bpf.readme") > Signed-off-by: Lawrence Brakmo Applied, thank you.

Re: [PATCH net-next RFC 0/9] net: dsa: PTP timestamping for mv88e6xxx

2017-11-07 Thread Richard Cochran
On Wed, Nov 08, 2017 at 04:02:26AM +0100, Andrew Lunn wrote: > So i did a quick test. If the application joins 224.0.1.129 on the > slave interface, the switch will pass the packets to the host and to > the application. The application does join that group on the external (slave) interface. I'll

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

2017-11-07 Thread Stephen Rothwell
Hi Darren, Today's linux-next merge of the drivers-x86 tree got a conflict in: tools/Makefile between commit: a92bb546cff0 ("tools: rename tools/net directory to tools/bpf") from the net-next tree and commit: 9d64fc08f6fe ("tools/wmi: add a sample for dell smbios communication over

[PATCH 1/7] scripts/leaking_addresses: use tabs not spaces

2017-11-07 Thread Tobin C. Harding
Current code uses spaces instead of tabs in places. Use tabs instead of spaces. Signed-off-by: Tobin C. Harding --- scripts/leaking_addresses.pl | 54 ++-- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git

[PATCH 5/7] scripts/leaking_addresses: add emailing results

2017-11-07 Thread Tobin C. Harding
Developers may not have the time (or inclination) to investigate script output. This information is, however, useful. If we add functionality to the script to email results for further investigation. Add --send-report flag to email scan results (to Tobin C. Harding). Signed-off-by: Tobin C.

[PATCH 4/7] scripts/leaking_addresses: add reporting

2017-11-07 Thread Tobin C. Harding
Currently script just dumps all results found. Potentially, this risks loosing single results among multiple duplicate results. We need some way of restricting duplicates to assist users of the script. It would also be nice if we got a report instead of raw results. Duplicates can be defined in

[PATCH 3/7] scripts/leaking_addresses: remove command line options

2017-11-07 Thread Tobin C. Harding
Currently script accepts files to skip. This was added to make running the script faster (for repeat runs). We can remove this functionality in preparation for adding sub commands (scan and format) to the script. Remove command line options. Signed-off-by: Tobin C. Harding ---

[PATCH 2/7] scripts/leaking_addresses: remove dead code

2017-11-07 Thread Tobin C. Harding
debug_arrays is not called. Also, %seen hash is not used. We should remove unused code. Remove dead code. Signed-off-by: Tobin C. Harding --- scripts/leaking_addresses.pl | 9 - 1 file changed, 9 deletions(-) diff --git a/scripts/leaking_addresses.pl

[PATCH 0/7] scripts/leaking_addresses: add summary report

2017-11-07 Thread Tobin C. Harding
This series includes changes submitted as [PATCH v4 ] scripts: add leaking_addresses.pl before I realize Linus had merged v3. Does some clean up and implements changes suggested by Petr Mladek and Kees Cook. Adds printing a summary report instead of raw results as suggested by Linus Torvalds.

Re: [PATCH net-next 0/3] net: flush neighbor entries when carrier is off

2017-11-07 Thread David Miller
From: David Ahern Date: Wed, 8 Nov 2017 12:35:16 +0900 > On Mon, Nov 6, 2017 at 3:57 PM, David Ahern wrote: > >> Commit a6db4494d218c ("net: ipv4: Consider failed nexthops in multipath >> routes") added support for checking neighbor state when selecting a

[PATCH net-next 0/4] net: phy: sfp: Fixes and debugging improvements

2017-11-07 Thread Florian Fainelli
Hi all, This patch series contains two non critical fixes and also slightly improves the debuggability/readability of the state machine by using human readable strings. Russell, please review. Florian Fainelli (4): net: phy: sfp: Do not reject soldered down modules net: phy: sfp: Use

[PATCH net-next 3/4] net: phy: sfp: Separate enumerations and states

2017-11-07 Thread Florian Fainelli
Create separate enumerations for the SFP physical state (computed from GPIOs), device state, module state, and actual state machine. This will make it easier to make sure the correct states are used, and also pretty print those to help debugging. Signed-off-by: Florian Fainelli

[PATCH net-next 4/4] net: phy: sfp: Pretty print state machine events

2017-11-07 Thread Florian Fainelli
Pretty print the entry and exit of the state machine by using human readable strings. Signed-off-by: Florian Fainelli --- drivers/net/phy/sfp.c | 46 ++ 1 file changed, 42 insertions(+), 4 deletions(-) diff --git

[PATCH net-next 2/4] net: phy: sfp: Use correct endian for sfp->id.ext.options

2017-11-07 Thread Florian Fainelli
The extended ID options 16-bit value is big-endian (and actually annotated as such), but we would be accessing it with our CPU endian, which would not allow the correct detection of whether the LOS signal is inverted or not. Fixes: 73970055450e ("sfp: add SFP module support") Signed-off-by:

[PATCH net-next 1/4] net: phy: sfp: Do not reject soldered down modules

2017-11-07 Thread Florian Fainelli
The SFP module identification code in sfp_sm_mod_probe() will reject SFF modules soldered down because they have an identified of 0x2, while the code currently checks for 0x3 only (SFP_PHYS_ID_SFP), update that. Signed-off-by: Florian Fainelli --- drivers/net/phy/sfp.c | 5

[PATCH v2 iproute2] libnetlink: Handle extack messages for non-error case

2017-11-07 Thread David Ahern
Kernel can now return non-fatal error messages in extack facility. Update iproute2 to dump to use if present. - rename nl_dump_ext_err to nl_dump_ext_ack - rename errmsg to msg - add call to nl_dump_ext_ack in rtnl_dump_done and __rtnl_talk for non-error path Signed-off-by: David Ahern

Re: [PATCH] staging: octeon: Fix stopping of the interface.

2017-11-07 Thread Florian Fainelli
On 11/07/2017 07:06 PM, Steven J. Hill wrote: > Before disconnecting the PHY when a port is being taken down, > a call to phy_stop() is necessary. Indeed, thanks for fixing this! > > Signed-off-by: Steven J. Hill > Acked-by: David Daney

Re: [PATCH net-next] mlxsw: spectrum: Fix error return code in mlxsw_sp_port_create()

2017-11-07 Thread David Miller
From: Wei Yongjun Date: Mon, 6 Nov 2017 11:11:28 + > Fix to return a negative error code from the VID create error handling > case instead of 0, as done elsewhere in this function. > > Fixes: c57529e1d5d8 ("mlxsw: spectrum: Replace vPorts with Port-VLAN") >

Re: [PATCH net-next] dpaa_eth: fix error return code in dpaa_eth_probe()

2017-11-07 Thread David Miller
From: Wei Yongjun Date: Mon, 6 Nov 2017 11:12:08 + > Fix to return a negative error code from the dpaa_bp_alloc() error > handling case instead of 0, as done elsewhere in this function. > > Signed-off-by: Wei Yongjun Applied.

Re: [PATCH net-next V3 2/3] tools: bpftool: show filenames of pinned objects

2017-11-07 Thread Jakub Kicinski
On Wed, 8 Nov 2017 11:34:44 +0900, Prashant Bhole wrote: > > > + FILE *mntfile = NULL; > > > + FTSENT *ftse = NULL; > > > + FTS *fts = NULL; > > > + int fd, err; > > > + > > > + mntfile = setmntent("/proc/mounts", "r"); > > > + if (!mntfile) > > > + return -1; > > > + > > > + while

Re: [PATCH net-next] bnxt: delete some unreachable code

2017-11-07 Thread David Miller
From: Dan Carpenter Date: Mon, 6 Nov 2017 14:43:01 +0300 > We return on the previous line so this "return 0;" statement should just > be deleted. > > Signed-off-by: Dan Carpenter Applied, thanks Dan.

Re: [PATCH] [net-next?] of: add of_property_read_variable_* dummy helpers

2017-11-07 Thread David Miller
From: Arnd Bergmann Date: Mon, 6 Nov 2017 14:26:10 +0100 > Commit a67e9472da42 ("of: Add array read functions with min/max size > limits") added a new interface for reading variable-length arrays from > DT properties. One user was added in dsa recently and this causes a > build

Re: [net-next 1/1] tipc: improve link resiliency when rps is activated

2017-11-07 Thread David Miller
From: Jon Maloy Date: Mon, 6 Nov 2017 12:44:11 +0100 > + return core & (num_online_cpus() - 1); Well, this isn't exactly correct. The number of online cpus is not necessarily a power of two. And furthermore it shouldn't even be necessary. Just pass the whole key

Re: [PATCH net,stable] net: cdc_ether: fix divide by 0 on bad descriptors

2017-11-07 Thread David Miller
From: Bjørn Mork Date: Mon, 6 Nov 2017 15:37:22 +0100 > Setting dev->hard_mtu to 0 will cause a divide error in > usbnet_probe. Protect against devices with bogus CDC Ethernet > functional descriptors by ignoring a zero wMaxSegmentSize. > > Signed-off-by: Bjørn Mork

Re: [PATCH net-next] net: dsa: lan9303: Drop port range check

2017-11-07 Thread David Miller
From: Egil Hjelmeland Date: Mon, 6 Nov 2017 15:19:49 +0100 > Now that ds->num_ports is 3, there is no need to check range of "port" > parameter. > > Signed-off-by: Egil Hjelmeland Applied.

Re: [PATCH net,stable] net: qmi_wwan: fix divide by 0 on bad descriptors

2017-11-07 Thread David Miller
From: Bjørn Mork Date: Mon, 6 Nov 2017 15:32:18 +0100 > A CDC Ethernet functional descriptor with wMaxSegmentSize = 0 will > cause a divide error in usbnet_probe: > > divide error: [#1] PREEMPT SMP KASAN ... > Fix by simply ignoring the bogus descriptor, as it is optional

Re: [PATCH] bnxt: fix bnxt_hwrm_fw_set_time for y2038

2017-11-07 Thread David Miller
From: Arnd Bergmann Date: Mon, 6 Nov 2017 15:04:39 +0100 > On 32-bit architectures, rtc_time_to_tm() returns incorrect results > in 2038 or later, and do_gettimeofday() is broken for the same reason. > > This changes the code to use ktime_get_real_seconds() and time64_to_tm() >

Re: [PATCH 0/4] fsl/fman: Fix some error handling code in mac_probe

2017-11-07 Thread David Miller
From: Christophe JAILLET Date: Mon, 6 Nov 2017 22:53:28 +0100 > Commit c6e26ea8c893 ("dpaa_eth: change device used") generated some > conflicts in my patches waiting for submission. So I took a closer look at > it. > > > So here is a serie of 4 patches. > > The

Re: [PATCH v2 net-next 0/6] mv88e6xxx broadcast flooding in hardware

2017-11-07 Thread David Miller
From: Andrew Lunn Date: Tue, 7 Nov 2017 00:02:25 +0100 > This patchset makes the mv88e6xxx driver perform flooding in hardware, > rather than let the software bridge perform the flooding. This is a > prerequisite for IGMP snooping on the bridge interface. > > In order to make

[PATCH net-next V4 3/3] tools: bpftool: optionally show filenames of pinned objects

2017-11-07 Thread Prashant Bhole
Making it optional to show file names of pinned objects because it scans complete bpf-fs filesystem which is costly. Added option -f|--bpffs. Documentation updated. Signed-off-by: Prashant Bhole --- v2: - Change command line option from {-l|--pinned} to

Re: [mdiobus_free] BUG: KASAN: slab-out-of-bounds in _copy_from_user+0x5d/0x8f

2017-11-07 Thread Fengguang Wu
On Tue, Nov 07, 2017 at 08:04:25AM -0800, Linus Torvalds wrote: On Tue, Nov 7, 2017 at 4:15 AM, Fengguang Wu wrote: Sorry please ignore this report -- according to Andrey, old gcc may well generate false KASAN reports. Oh wow, this gcc is even older than the other one

[PATCH] staging: octeon: Fix stopping of the interface.

2017-11-07 Thread Steven J. Hill
Before disconnecting the PHY when a port is being taken down, a call to phy_stop() is necessary. Signed-off-by: Steven J. Hill Acked-by: David Daney --- drivers/staging/octeon/ethernet-mdio.c | 4 +++- drivers/staging/octeon/ethernet.c | 4

Re: [PATCH v3] scripts: add leaking_addresses.pl

2017-11-07 Thread Tobin C. Harding
On Mon, Nov 06, 2017 at 09:27:09AM -0800, Linus Torvalds wrote: > On Sun, Nov 5, 2017 at 9:19 PM, Tobin C. Harding wrote: > > Currently we are leaking addresses from the kernel to user space. This > > script is an attempt to find some of those leakages. Script parses > > `dmesg`

Re: [patch net-next 0/9] qdisc RED offload

2017-11-07 Thread David Miller
From: Jiri Pirko Date: Mon, 6 Nov 2017 07:23:40 +0100 > From: Jiri Pirko > > Nogah says: > > Add an offload support for RED qdisc for mlxsw driver. > The first patch adds the ability to offload RED qdisc by using > ndo_setup_tc. It gives RED three

[PATCH 7/7] scripts/leaking_addresses: don't parse usbmon

2017-11-07 Thread Tobin C. Harding
file 'usbmon' causes script to hang. Add usbmon to files to skip under any sub directory. Signed-off-by: Tobin C. Harding --- scripts/leaking_addresses.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/leaking_addresses.pl

Re: regression: UFO removal breaks kvm live migration

2017-11-07 Thread Willem de Bruijn
On Tue, Nov 7, 2017 at 5:02 PM, Michal Kubecek wrote: > Hello, > > I just received this bug report: > > https://bugzilla.suse.com/show_bug.cgi?id=1066757 > > The reporter runs a live migration of a kvm guest from a host with > kernel supporting UFO (openSUSE 42.2 or 42.3,

[PATCH 6/7] scripts/leaking_addresses: fix comment typo

2017-11-07 Thread Tobin C. Harding
Fix typo in comment string. Signed-off-by: Tobin C. Harding --- scripts/leaking_addresses.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/leaking_addresses.pl b/scripts/leaking_addresses.pl index e43105662306..0671aac894be 100644 ---

Re: [PATCH v3] scripts: add leaking_addresses.pl

2017-11-07 Thread Tobin C. Harding
On Tue, Nov 07, 2017 at 01:22:13PM -0800, Kees Cook wrote: > On Mon, Nov 6, 2017 at 9:27 AM, Linus Torvalds > wrote: [snip] > And for my kernels, I needed to exclude usbmon or the script would > hang (perhaps add a read timeout to the script to detect stalling >

Re: [PATCH 1/2] net: macb: add of_phy_deregister_fixed_link to error paths

2017-11-07 Thread David Miller
From: Michael Grzeschik Date: Mon, 6 Nov 2017 12:10:04 +0100 > We add the call of_phy_deregister_fixed_link to all associated > error paths for memory clean up. > > Signed-off-by: Michael Grzeschik > --- >

Re: [PATCH 1/1] bnx2x: fix slowpath null crash

2017-11-07 Thread Yanjun Zhu
On 2017/11/8 11:27, Elior, Ariel wrote: When "NETDEV WATCHDOG: em4 (bnx2x): transmit queue 2 timed out" occurs, BNX2X_SP_RTNL_TX_TIMEOUT is set. In the function bnx2x_sp_rtnl_task, bnx2x_nic_unload and bnx2x_nic_load are executed to shutdown and open NIC. In the function bnx2x_nic_load,

Re: [PATCH] net: ipv6: sysctl to specify IPv6 ND traffic class

2017-11-07 Thread Erik Kline
Thanks. Signed-off-by: Erik Kline On 7 November 2017 at 16:59, Maciej Żenczykowski wrote: > From: Maciej Żenczykowski > > Add a per-device sysctl to specify the default traffic class to use for > kernel originated IPv6 Neighbour

Re: [PATCH v2 net-next 0/4] net: dsa: lan9303: Linting

2017-11-07 Thread David Miller
From: Egil Hjelmeland Date: Mon, 6 Nov 2017 12:42:00 +0100 > This series is non-functional. > - Correct some errors in comments and documentation. > Remove scripts/checkpatch.pl WARNINGs and most CHECKs: > - Replace msleep(1) with usleep_range() > - Adjust

Re: [PATCH] rtnetlink: fix missing size for IFLA_IF_NETNSID

2017-11-07 Thread David Miller
From: Colin King Date: Mon, 6 Nov 2017 15:04:54 + > From: Colin Ian King > > The size for IFLA_IF_NETNSID is missing from the size calculation > because the proceeding semicolon was not removed. Fix this by removing > the semicolon. > >

Re: [PATCH 21/21] sunrpc: exit_net cleanup check added

2017-11-07 Thread Vasily Averin
On 2017-11-08 04:22, Stephen Hemminger wrote: > On Sun, 5 Nov 2017 13:02:44 +0300 > Vasily Averin wrote: >> +WARN(!list_empty(>all_clients), >> + "net %p exit: sunrpc all_clients list is not empty\n", net); > > Don't print a kernel pointer, this is a security

[PATCH net-next V4 1/3] tools: bpftool: open pinned object without type check

2017-11-07 Thread Prashant Bhole
This was needed for opening any file in bpf-fs without knowing its object type Signed-off-by: Prashant Bhole --- v2: - No change v3: - No change v4: - No change tools/bpf/bpftool/common.c | 15 +-- tools/bpf/bpftool/main.h | 1 + 2 files

[PATCH net-next V4 2/3] tools: bpftool: show filenames of pinned objects

2017-11-07 Thread Prashant Bhole
Added support to show filenames of pinned objects. For example: root@test# ./bpftool prog 3: tracepoint name tracepoint__irq tag f677a7dd722299a3 loaded_at Oct 26/11:39 uid 0 xlated 160B not jited memlock 4096B map_ids 4 pinned /sys/fs/bpf/softirq_prog 4: tracepoint name

Re: [PATCH net-next v3] net: mvpp2: add ethtool GOP statistics

2017-11-07 Thread David Miller
From: Miquel Raynal Date: Mon, 6 Nov 2017 22:56:53 +0100 > Add ethtool statistics support by reading the GOP statistics from the > hardware counters. Also implement a workqueue to gather the statistics > every second or some 32-bit counters could overflow. > >

[PATCH net-next V4 0/3] tools: bpftool: show filenames of pinned objects

2017-11-07 Thread Prashant Bhole
This patchset adds support to show pinned objects in object details. Patch1 adds a funtionality to open a path in bpf-fs regardless of its object type. Patch2 adds actual functionality by scanning the bpf-fs once and adding object information in hash table, with object id as a key. One object

Re: [PATCH v2 net-next 0/6] mv88e6xxx broadcast flooding in hardware

2017-11-07 Thread David Miller
From: David Miller Date: Wed, 08 Nov 2017 13:58:09 +0900 (KST) > From: Andrew Lunn > Date: Tue, 7 Nov 2017 00:02:25 +0100 > >> This patchset makes the mv88e6xxx driver perform flooding in hardware, >> rather than let the software bridge perform the

[PATCH 19/31] nds32: Debugging support

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/uapi/asm/ptrace.h | 42 + arch/nds32/kernel/ptrace.c | 325 ++ 2 files

[PATCH 17/31] nds32: Signal handling support

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/uapi/asm/sigcontext.h | 73 ++ arch/nds32/include/uapi/asm/signal.h | 23 ++ arch/nds32/kernel/signal.c

[PATCH 12/31] nds32: Device specific operations

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/io.h | 33 + arch/nds32/mm/ioremap.c | 67 +++ 2

[PATCH 11/31] nds32: Atomic operations

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/futex.h| 116 arch/nds32/include/asm/spinlock.h | 178

Re: regression: UFO removal breaks kvm live migration

2017-11-07 Thread David Miller
From: Willem de Bruijn Date: Wed, 8 Nov 2017 12:36:26 +0900 > On Tue, Nov 7, 2017 at 5:02 PM, Michal Kubecek wrote: >> I didn't have time to think it through yet but perhaps we could allow >> setting TUN_F_UFO and ignore its value. > > If the

[PATCH 13/31] nds32: DMA mapping API

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/dma-mapping.h | 27 ++ arch/nds32/kernel/dma.c | 478 ++ 2 files

[PATCH 14/31] nds32: ELF definitions

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/elf.h | 192 ++ arch/nds32/include/uapi/asm/auxvec.h | 25 +

[PATCH 09/31] nds32: Process management

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/current.h | 25 arch/nds32/include/asm/processor.h | 116 ++

Re: [PATCH v2] net: macb: add of_node_put to error paths

2017-11-07 Thread David Miller
From: Michael Grzeschik Date: Tue, 7 Nov 2017 10:59:49 +0100 > @@ -611,6 +611,7 @@ static int macb_mii_init(struct macb *bp) > err_out_unregister_bus: > mdiobus_unregister(bp->mii_bus); > err_out_free_mdiobus: > + of_node_put(bp->phy_node); > if

[PATCH 10/31] nds32: IRQ handling

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/irqflags.h | 49 + arch/nds32/kernel/irq.c | 34

[PATCH 05/31] nds32: MMU definitions

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/fixmap.h | 41 arch/nds32/include/asm/highmem.h | 78 +++ arch/nds32/include/asm/memory.h | 147

[PATCH 01/31] nds32: Assembly macros and definitions

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/assembler.h | 52 ++ arch/nds32/include/asm/bitfield.h | 982

[PATCH 06/31] nds32: MMU initialization

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/mm/highmem.c | 92 + arch/nds32/mm/init.c | 328 ++

[PATCH 03/31] nds32: Support early_printk

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Rick Chen Signed-off-by: Greentime Hu --- arch/nds32/kernel/early_printk.c | 124 ++ 1 file changed, 124 insertions(+) create mode 100644

[PATCH 02/31] nds32: Kernel booting and initialization

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/kernel/head.S | 211 +++ arch/nds32/kernel/setup.c | 406 + 2

[PATCH 07/31] nds32: MMU fault handling and page table management

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/lib/copy_page.S | 50 ++ arch/nds32/mm/extable.c| 29 +++ arch/nds32/mm/fault.c | 420

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

2017-11-07 Thread Greentime Hu
This patchset adds core architecture support to Linux for Andestech's N13, N15, D15, N10, D10 processor cores. Based on the 16/32-bit AndeStar RISC-like architecture, we designed the configurable AndesCore series of embedded processor families. AndesCores range from highly performance-efficient

Re: [PATCH] af_netlink: give correct bounds to dump skb for NLMSG_DONE

2017-11-07 Thread Jason A. Donenfeld
Hi Johannes, Yes indeed. It sacrifices 24 bytes for making things much less complex. However, if you prefer increasing the complexity of the state machine a bit instead, I suppose we could roll with this approach instead... Jason

Re: [PATCH] net/tcp: track all ipv4/tcp state transition in tcp_set_state

2017-11-07 Thread David Miller
From: Yafang Shao Date: Tue, 7 Nov 2017 18:36:28 +0800 > When I hooked the function tcp_set_state with kprobe to track the ipv4/tcp > state transistion, I found state transition from TCP_LISTEN to TCP_SYN_RECV > is missed. > > I think it is better to use the helper to do

Re: [PATCH] pktgen: document 32-bit timestamp overflow

2017-11-07 Thread David Miller
From: Arnd Bergmann Date: Tue, 7 Nov 2017 11:38:32 +0100 > Timestamps in pktgen are currently retrieved using the deprecated > do_gettimeofday() function that wraps its signed 32-bit seconds in 2038 > (on 32-bit architectures) and requires a division operation to calculate >

[PATCH net-next 0/2] net: hns3: Bug fixes & Code improvements in HNS3 driver

2017-11-07 Thread Lipeng
This patch-set introduces some bug fixes and code improvements. As [patch 1/2] depends on the patch {5392902 net: hns3: Consistently using GENMASK in hns3 driver}, which exists in net-next, not exists in net, so push this serise to nex-next. Fuyun Liang (2): {topost} net: hns3: fix a bug when

  1   2   3   4   >