Re: [PATCH net-next v2 4/7] devlink: allow subports on devlink PCI ports

2019-03-12 Thread Jiri Pirko
Tue, Mar 12, 2019 at 09:56:28PM CET, jakub.kicin...@netronome.com wrote: >On Tue, 12 Mar 2019 15:02:39 +0100, Jiri Pirko wrote: >> Tue, Mar 12, 2019 at 03:10:54AM CET, wrote: >> >On Mon, 11 Mar 2019 09:52:04 +0100, Jiri Pirko wrote: >> >> Fri, Mar 08, 2019 at 08:09:43PM CET, wrote: >> >> >If th

Re: [PATCH] Check for SKBTX_HW_TSTAMP in macb driver

2019-03-12 Thread Harini Katakam
Hi Paul, Jake, On Wed, Mar 13, 2019 at 3:08 AM Keller, Jacob E wrote: > > > > > -Original Message- > > From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org] On > > Behalf Of Paul Thomas > > Sent: Tuesday, March 12, 2019 1:05 PM > > To: netdev@vger.kernel.org > > Subject:

Re: [PATCH] net_sched: return correct value for *notify* functions

2019-03-12 Thread Cong Wang
On Mon, Mar 11, 2019 at 3:16 AM Zhike Wang wrote: > > It is confusing to directly use return value of netlink_send()/ > netlink_unicast() as the return value of *notify*, as it may be not > error at all. > > Example: in tc_del_tfilter(), after calling tfilter_del_notify(), it will > goto errout if

Re: [PATCH] Check for SKBTX_HW_TSTAMP in macb driver

2019-03-12 Thread Harini Katakam
Hi Paul, Jake, On Wed, Mar 13, 2019 at 5:01 AM Paul Thomas wrote: > > On Tue, Mar 12, 2019 at 7:07 PM Keller, Jacob E > wrote: > > > > > > > > > -Original Message- > > > From: Paul Thomas [mailto:pthomas8...@gmail.com] > > > Sent: Tuesday, March 12, 2019 3:05 PM > > > To: Keller, Jacob E

Re: [RFC v1 01/19] net/i40e: Add peer register/unregister to struct i40e_netdev_priv

2019-03-12 Thread Jeff Kirsher
On Fri, 2019-02-22 at 13:23 -0700, Jason Gunthorpe wrote: > On Fri, Feb 22, 2019 at 08:13:58PM +, Ertman, David M wrote: > > > From: Jason Gunthorpe [mailto:j...@ziepe.ca] > > > Sent: Thursday, February 21, 2019 11:35 AM > > > To: Saleem, Shiraz > > > Cc: dledf...@redhat.com; da...@davemloft.n

Darlehensangebot

2019-03-12 Thread T F THUKWANE
Schönen Tag, Sie benötigen einen echten Kredit online Ihre Rechnungen zu sichern? Startet ein neues Unternehmen? Sie benötigen einen persönlichen Kredit oder Business-Darlehen? Wir bieten ein Darlehen von € 10.000 bis € 500,000.000.00 mit 2% Zinsen pro Jahr und auch mit einem erschwinglichen Rückz

Re: [PATCH iproute2-next 2/3] ip: bridge: add xstats json support

2019-03-12 Thread Stephen Hemminger
On Tue, 12 Mar 2019 21:42:29 +0200 niko...@cumulusnetworks.com wrote: > On 12 March 2019 21:33:48 EET, Stephen Hemminger > wrote: > >On Tue, 12 Mar 2019 18:41:27 +0200 > >Nikolay Aleksandrov wrote: > > > >I like it. > > > >> + print_u64(PRINT_ANY, "rx_v1", "RX: v1 %llu ", > >

Re: [PATCH] Check for SKBTX_HW_TSTAMP in macb driver

2019-03-12 Thread Paul Thomas
On Tue, Mar 12, 2019 at 7:07 PM Keller, Jacob E wrote: > > > > > -Original Message- > > From: Paul Thomas [mailto:pthomas8...@gmail.com] > > Sent: Tuesday, March 12, 2019 3:05 PM > > To: Keller, Jacob E > > Cc: netdev@vger.kernel.org > > Subject: Re: [PATCH] Check for SKBTX_HW_TSTAMP in m

Re: [PATCH net-next] net: phy: improve handling link_change_notify callback

2019-03-12 Thread Russell King - ARM Linux admin
On Tue, Mar 12, 2019 at 06:50:59PM +0100, Daniel Mack wrote: > On 12/3/2019 1:27 PM, Heiko Stuebner wrote: > > Hi Andrew, Heiner, > > > > Am Montag, 4. März 2019, 21:06:30 CET schrieb Andrew Lunn: > >> On Mon, Mar 04, 2019 at 11:30:25AM -0800, David Miller wrote: > >>> From: Heiner Kallweit > >>>

Hallihallo. wollte mich mal wieder bei dir melden. 😎

2019-03-12 Thread facixbooka
Hey. wollte mich mal wieder bei dir melden. https://macfuncriper1988.blogspot.ro/

RE: [PATCH] Check for SKBTX_HW_TSTAMP in macb driver

2019-03-12 Thread Keller, Jacob E
> -Original Message- > From: Paul Thomas [mailto:pthomas8...@gmail.com] > Sent: Tuesday, March 12, 2019 3:05 PM > To: Keller, Jacob E > Cc: netdev@vger.kernel.org > Subject: Re: [PATCH] Check for SKBTX_HW_TSTAMP in macb driver > > Hi Jake, thanks for all the help and for looking at this

Re: [PATCH] Check for SKBTX_HW_TSTAMP in macb driver

2019-03-12 Thread Paul Thomas
Hi Jake, thanks for all the help and for looking at this! > > You have two conditionals inside, and I misread where you were doing the > checking of the SKBTX_HW_TSTAMP flag. > > I would do the following : > > if (unlikely(skb_shinfo(skb)->tx_flags & SKBTX_HWTSTAMP) && > gem_ptp_do_txstamp(qu

Re: [PATCH net 0/3] mlx4_core misc fixes

2019-03-12 Thread David Miller
From: Tariq Toukan Date: Tue, 12 Mar 2019 17:05:46 +0200 > This patchset by Jack contains misc fixes to the mlx4 Core driver. > > Patch 1 fixes a use-after-free situation by marking (nullifying) the pointer, > please queue for -stable >= v4.0. > Patch 2 adds a missing lock acquire and release

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

2019-03-12 Thread David Miller
From: Ido Schimmel Date: Tue, 12 Mar 2019 08:40:40 + > Patch #1 fixes the recently introduced QSFP thermal zones to correctly > work with split ports, where several ports are mapped to the same > module. > > Patch #2 initializes the base MAC in the minimal driver. The driver is > using the b

RE: [PATCH] Check for SKBTX_HW_TSTAMP in macb driver

2019-03-12 Thread Keller, Jacob E
> -Original Message- > From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org] On > Behalf Of Keller, Jacob E > Sent: Tuesday, March 12, 2019 2:35 PM > To: Paul Thomas ; netdev@vger.kernel.org > Subject: RE: [PATCH] Check for SKBTX_HW_TSTAMP in macb driver > > > -Origi

RE: [PATCH] Check for SKBTX_HW_TSTAMP in macb driver

2019-03-12 Thread Keller, Jacob E
> -Original Message- > From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org] On > Behalf Of Paul Thomas > Sent: Tuesday, March 12, 2019 1:05 PM > To: netdev@vger.kernel.org > Subject: Re: [PATCH] Check for SKBTX_HW_TSTAMP in macb driver > > On Tue, Mar 12, 2019 at 3:51

RE: [PATCH] Check for SKBTX_HW_TSTAMP in macb driver

2019-03-12 Thread Keller, Jacob E
> -Original Message- > From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org] On > Behalf Of Paul Thomas > Sent: Tuesday, March 12, 2019 12:51 PM > To: netdev@vger.kernel.org > Cc: Paul Thomas > Subject: [PATCH] Check for SKBTX_HW_TSTAMP in macb driver > > Make sure SKBT

Re: PROBLEM: dev_hard_start_xmit general protection fault on 4.19.18

2019-03-12 Thread Jesse Hathaway
After upgrading to 4.19.24, we are no longer experiencing these general protection faults, which is great, I looked through the commit log between the two versions, but nothing jumped out to me as a possible fix for this issue. If someone happens to know which commit fixed this issue, I would love

Re: [PATCH bpf v2] libbpf: fix to reject unknown flags in xsk_socket__create()

2019-03-12 Thread Daniel Borkmann
On 03/12/2019 09:52 PM, Daniel Borkmann wrote: > On 03/12/2019 09:02 PM, Andrii Nakryiko wrote: >> On Tue, Mar 12, 2019 at 12:44 PM Magnus Karlsson >> wrote: >>> >>> On Tue, Mar 12, 2019 at 8:27 PM Andrii Nakryiko >>> wrote: On Tue, Mar 12, 2019 at 2:00 AM Magnus Karlsson wrote: >

Re: [PATCH bpf] selftests/bpf: fix segfault of test_progs when prog loading failed

2019-03-12 Thread Daniel Borkmann
On 03/12/2019 06:21 AM, Yonghong Song wrote: > The test_progs subtests, test_spin_lock() and test_map_lock(), > requires BTF present to run successfully. > Currently, when BTF failed to load, test_progs will segfault, > $ ./test_progs > ... > 12: (bf) r1 = r8 > 13: (85) call bpf_spin_lock#9

Re: [PATCH net-next v2 4/7] devlink: allow subports on devlink PCI ports

2019-03-12 Thread Jakub Kicinski
On Tue, 12 Mar 2019 15:02:39 +0100, Jiri Pirko wrote: > Tue, Mar 12, 2019 at 03:10:54AM CET, wrote: > >On Mon, 11 Mar 2019 09:52:04 +0100, Jiri Pirko wrote: > >> Fri, Mar 08, 2019 at 08:09:43PM CET, wrote: > >> >If the switchport is in the hypervisor then only the hypervisor can > >> >control s

Re: [PATCH bpf v2] libbpf: fix to reject unknown flags in xsk_socket__create()

2019-03-12 Thread Daniel Borkmann
On 03/12/2019 09:02 PM, Andrii Nakryiko wrote: > On Tue, Mar 12, 2019 at 12:44 PM Magnus Karlsson > wrote: >> >> On Tue, Mar 12, 2019 at 8:27 PM Andrii Nakryiko >> wrote: >>> >>> On Tue, Mar 12, 2019 at 2:00 AM Magnus Karlsson >>> wrote: In xsk_socket__create(), the libbpf_flags field

Re: [PATCH] Check for SKBTX_HW_TSTAMP in macb driver

2019-03-12 Thread Paul Thomas
On Tue, Mar 12, 2019 at 3:51 PM Paul Thomas wrote: > > Make sure SKBTX_HW_TSTAMP (i.e. SOF_TIMESTAMPING_TX_HARDWARE) has been > enabled for this skb > This is a concept for discussion, more testing is needed. > It does fix the issue where normal socks that aren't expecting a timestamp > will not

Re: [PATCH bpf v2] libbpf: fix to reject unknown flags in xsk_socket__create()

2019-03-12 Thread Andrii Nakryiko
On Tue, Mar 12, 2019 at 12:44 PM Magnus Karlsson wrote: > > On Tue, Mar 12, 2019 at 8:27 PM Andrii Nakryiko > wrote: > > > > On Tue, Mar 12, 2019 at 2:00 AM Magnus Karlsson > > wrote: > > > > > > In xsk_socket__create(), the libbpf_flags field was not checked for > > > setting currently unused/u

[PATCH] Check for SKBTX_HW_TSTAMP in macb driver

2019-03-12 Thread Paul Thomas
Make sure SKBTX_HW_TSTAMP (i.e. SOF_TIMESTAMPING_TX_HARDWARE) has been enabled for this skb This is a concept for discussion, more testing is needed. It does fix the issue where normal socks that aren't expecting a timestamp will not wake up on select. --- drivers/net/ethernet/cadence/macb_main.

Re: [PATCH bpf v2] libbpf: fix to reject unknown flags in xsk_socket__create()

2019-03-12 Thread Magnus Karlsson
On Tue, Mar 12, 2019 at 8:27 PM Andrii Nakryiko wrote: > > On Tue, Mar 12, 2019 at 2:00 AM Magnus Karlsson > wrote: > > > > In xsk_socket__create(), the libbpf_flags field was not checked for > > setting currently unused/unknown flags. This patch fixes that by returning > > -EINVAL if the user ha

Re: [PATCH iproute2-next 2/3] ip: bridge: add xstats json support

2019-03-12 Thread nikolay
On 12 March 2019 21:33:48 EET, Stephen Hemminger wrote: >On Tue, 12 Mar 2019 18:41:27 +0200 >Nikolay Aleksandrov wrote: > >I like it. > >> +print_u64(PRINT_ANY, "rx_v1", "RX: v1 %llu ", >> + mstats->igmp_v1reports[BR_MCAST_DIR_RX]); >> +

Re: [PATCH iproute2-next 2/3] ip: bridge: add xstats json support

2019-03-12 Thread Stephen Hemminger
On Tue, 12 Mar 2019 18:41:27 +0200 Nikolay Aleksandrov wrote: I like it. > + print_u64(PRINT_ANY, "rx_v1", "RX: v1 %llu ", > + mstats->igmp_v1reports[BR_MCAST_DIR_RX]); > + print_u64(PRINT_ANY, "rx_v2", "v2 %llu ", > +

Re: [PATCH bpf v2] libbpf: fix to reject unknown flags in xsk_socket__create()

2019-03-12 Thread Andrii Nakryiko
On Tue, Mar 12, 2019 at 2:00 AM Magnus Karlsson wrote: > > In xsk_socket__create(), the libbpf_flags field was not checked for > setting currently unused/unknown flags. This patch fixes that by returning > -EINVAL if the user has set any flag that is not in use at this point > in time. > > Fixes:

Re: [PATCH mlx5-next] IB/mlx5: Use mlx5 core to create/destroy a DEVX DCT

2019-03-12 Thread Jason Gunthorpe
On Wed, Mar 06, 2019 at 07:21:42PM +0200, Leon Romanovsky wrote: > From: Yishai Hadas > > To prevent a hardware memory leak when a DEVX DCT object is destroyed > without calling DRAIN DCT before, (e.g. under cleanup flow), need to > manage its creation and destruction via mlx5 core. > > In that

Re: [PATCH mlx5-next] net/mlx5: Fix DCT creation bad flow

2019-03-12 Thread Jason Gunthorpe
On Wed, Mar 06, 2019 at 07:20:50PM +0200, Leon Romanovsky wrote: > From: Yishai Hadas > > In case the DCT creation command has succeeded a DRAIN must be issued > before calling DESTROY. > > In addition, the original code used the wrong parameter for the DESTROY > command, 'in' instead of 'din',

Re: [PATCH net-next] net: phy: improve handling link_change_notify callback

2019-03-12 Thread Daniel Mack
On 12/3/2019 1:27 PM, Heiko Stuebner wrote: > Hi Andrew, Heiner, > > Am Montag, 4. März 2019, 21:06:30 CET schrieb Andrew Lunn: >> On Mon, Mar 04, 2019 at 11:30:25AM -0800, David Miller wrote: >>> From: Heiner Kallweit >>> Date: Sun, 3 Mar 2019 19:58:57 +0100 >>> Currently the Phy driver's l

Re: [PATCH net-next] net: phy: improve handling link_change_notify callback

2019-03-12 Thread Florian Fainelli
On 3/3/19 10:58 AM, Heiner Kallweit wrote: > Currently the Phy driver's link_change_notify callback is called > whenever the state machine is run (every second if polling), no matter > whether the state changed or not. This isn't needed and may confuse > users considering the name of the callback.

[PATCH net] MAINTAINERS: GENET & SYSTEMPORT: Add internal Broadcom list

2019-03-12 Thread Florian Fainelli
There is a patchwork instance behind bcm-kernel-feedback-list that is helpful to track submissions, add this list for the Broadcom GENET and SYSTEMPORT drivers. Signed-off-by: Florian Fainelli --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 3

[PATCH v4 bpf 5/5] bpf: Add an example for bpf_get_listener_sock

2019-03-12 Thread Martin KaFai Lau
This patch adds an example in using the new helper bpf_get_listener_sock(). Signed-off-by: Martin KaFai Lau --- tools/testing/selftests/bpf/bpf_helpers.h | 2 + .../bpf/progs/test_sock_fields_kern.c | 88 +--- .../testing/selftests/bpf/test_sock_fields.c | 134 +++

[PATCH v4 bpf 1/5] bpf: Fix bpf_tcp_sock and bpf_sk_fullsock issue related to bpf_sk_release

2019-03-12 Thread Martin KaFai Lau
Lorenz Bauer [thanks!] reported that a ptr returned by bpf_tcp_sock(sk) can still be accessed after bpf_sk_release(sk). Both bpf_tcp_sock() and bpf_sk_fullsock() have the same issue. This patch addresses them together. A simple reproducer looks like this: sk = bpf_sk_lookup_tcp();

[PATCH v4 bpf 0/5] Fix bpf_tcp_sock and bpf_sk_fullsock issue related to bpf_sk_release

2019-03-12 Thread Martin KaFai Lau
This set addresses issue about accessing invalid ptr returned from bpf_tcp_sock() and bpf_sk_fullsock() after bpf_sk_release(). v4: - Tried the one "id" approach. It does not work well and the reason is in the Patch 1 commit message. - Rename refcount_id to ref_obj_id. - With ref_obj_id, resett

[PATCH v4 bpf 2/5] bpf: Add bpf_get_listener_sock(struct bpf_sock *sk) helper

2019-03-12 Thread Martin KaFai Lau
Add a new helper "struct bpf_sock *bpf_get_listener_sock(struct bpf_sock *sk)" which returns a bpf_sock in TCP_LISTEN state. It will trace back to the listener sk from a request_sock if possible. It returns NULL for all other cases. No reference is taken because the helper ensures the sk is in S

[PATCH v4 bpf 3/5] bpf: Sync bpf.h to tools/

2019-03-12 Thread Martin KaFai Lau
This patch sync the uapi bpf.h to tools/. Signed-off-by: Martin KaFai Lau --- tools/include/uapi/linux/bpf.h | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h index 3c38ac9a92a7..983b25cb608d 100644 ---

[PATCH v4 bpf 4/5] bpf: Test ref release issue in bpf_tcp_sock and bpf_sk_fullsock

2019-03-12 Thread Martin KaFai Lau
Adding verifier tests to ensure the ptr returned from bpf_tcp_sock() and bpf_sk_fullsock() cannot be accessed after bpf_sk_release() is called. A few of the tests are derived from a reproducer test by Lorenz Bauer. Signed-off-by: Martin KaFai Lau --- .../selftests/bpf/verifier/ref_tracking.c

Re: [PATCH 0/2] bpf: context casting for tail call and gtrace prog type

2019-03-12 Thread Kris Van Hees
On Mon, Mar 11, 2019 at 11:03:10PM -0700, Brendan Gregg wrote: > On Mon, Mar 11, 2019 at 8:24 PM Kris Van Hees > wrote: > > > > On Mon, Mar 11, 2019 at 06:29:55PM -0700, Brendan Gregg wrote: > > > On Mon, Mar 11, 2019 at 7:21 AM Kris Van Hees > > > wrote: > > > > > > > > On Thu, Mar 07, 2019 at

[PATCH iproute2-next 3/3] ip: bond: add xstats support

2019-03-12 Thread Nikolay Aleksandrov
Add bond and bond_slave xstats support with optional json output. Example: - Plain text: $ ip link xstats type bond 802.3ad bond0 LACPDU Rx 2017 LACPDU Tx 2038 LACPDU Unknown type Rx 0 LACPDU Illegal Rx 0

[PATCH iproute2-next 0/3] bond, bridge: add xstats json support

2019-03-12 Thread Nikolay Aleksandrov
Hi, This set adds json output support to the xstats API (patch 01) and then adds json support to the bridge xstats output (patch 02) and adds xstats output support (both plain text and json) for the bonding (patch 03). It doesn't change the bridge's plain text output, but it fixes an inconsistency

[PATCH iproute2-next 2/3] ip: bridge: add xstats json support

2019-03-12 Thread Nikolay Aleksandrov
Add json support for bridge's xstats output. The plain text output format should remain the same. Note that this patch pulls the interface out of the attribute loop, this was an oversight when the set was upstreamed. This does not change the output format, but fixes it when new xstats attributes sh

[PATCH iproute2-next 1/3] ip: xstats: add json output support

2019-03-12 Thread Nikolay Aleksandrov
This adds only initial object support if json argument is specified. Later patches convert the current xstats users to json. Signed-off-by: Nikolay Aleksandrov --- ip/iplink_xstats.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ip/iplink_xstats.c b/ip/iplink_xstats.c index 908d9228369f

Re: 979d63d50c0c0f7bc537bf821e056cc9fe5abd38 bpf: prevent out of bounds speculation on pointer arithmetic

2019-03-12 Thread Greg KH
On Tue, Mar 12, 2019 at 10:58:39PM +0800, Jason Yan wrote: > > > On 2019/3/12 19:52, Greg KH wrote: > > On Mon, Mar 11, 2019 at 05:18:33PM +0800, Jason Yan wrote: > > > Hi, Daniel & Greg > > > > > > This patch (979d63d50c0c bpf: prevent out of bounds speculation on pointer > > > arithmetic) was

[PATCH net 0/3] mlx4_core misc fixes

2019-03-12 Thread Tariq Toukan
Hi Dave, This patchset by Jack contains misc fixes to the mlx4 Core driver. Patch 1 fixes a use-after-free situation by marking (nullifying) the pointer, please queue for -stable >= v4.0. Patch 2 adds a missing lock acquire and release in SRIOV command interface, please queue for -stable >= v

[PATCH net 1/3] net/mlx4_core: Fix reset flow when in command polling mode

2019-03-12 Thread Tariq Toukan
From: Jack Morgenstein As part of unloading a device, the driver switches from FW command event mode to FW command polling mode. Part of switching over to polling mode is freeing the command context array memory (unfortunately, currently, without NULLing the command context array pointer). The

[PATCH net 2/3] net/mlx4_core: Fix locking in SRIOV mode when switching between events and polling

2019-03-12 Thread Tariq Toukan
From: Jack Morgenstein In procedures mlx4_cmd_use_events() and mlx4_cmd_use_polling(), we need to guarantee that there are no FW commands in progress on the comm channel (for VFs) or wrapped FW commands (on the PF) when SRIOV is active. We do this by also taking the slave_cmd_mutex when SRIOV is

[PATCH net 3/3] net/mlx4_core: Fix qp mtt size calculation

2019-03-12 Thread Tariq Toukan
From: Jack Morgenstein Calculation of qp mtt size (in function mlx4_RST2INIT_wrapper) ultimately depends on function roundup_pow_of_two. If the amount of memory required by the QP is less than one page, roundup_pow_of_two is called with argument zero. In this case, the roundup_pow_of_two result

Re: 979d63d50c0c0f7bc537bf821e056cc9fe5abd38 bpf: prevent out of bounds speculation on pointer arithmetic

2019-03-12 Thread Jason Yan
On 2019/3/12 19:52, Greg KH wrote: On Mon, Mar 11, 2019 at 05:18:33PM +0800, Jason Yan wrote: Hi, Daniel & Greg This patch (979d63d50c0c bpf: prevent out of bounds speculation on pointer arithmetic) was assigned a CVE (CVE-2019-7308) with a high score: CVSS v3.0 Severity and Metrics: Base S

Re: [PATCH net-next v2 4/7] devlink: allow subports on devlink PCI ports

2019-03-12 Thread Jiri Pirko
Tue, Mar 12, 2019 at 03:10:54AM CET, jakub.kicin...@netronome.com wrote: >On Mon, 11 Mar 2019 09:52:04 +0100, Jiri Pirko wrote: >> Fri, Mar 08, 2019 at 08:09:43PM CET, jakub.kicin...@netronome.com wrote: >> >If the switchport is in the hypervisor then only the hypervisor can >> >control switching/f

[PATCH net] l2tp: fix infoleak in l2tp_ip6_recvmsg()

2019-03-12 Thread Eric Dumazet
Back in 2013 Hannes took care of most of such leaks in commit bceaa90240b6 ("inet: prevent leakage of uninitialized memory to user in recv syscalls") But the bug in l2tp_ip6_recvmsg() has not been fixed. syzbot report : BUG: KMSAN: kernel-infoleak in _copy_to_user+0x16b/0x1f0 lib/usercopy.c:32

Re: [PATCH net-next] net: phy: improve handling link_change_notify callback

2019-03-12 Thread Heiko Stuebner
Hi Andrew, Heiner, Am Montag, 4. März 2019, 21:06:30 CET schrieb Andrew Lunn: > On Mon, Mar 04, 2019 at 11:30:25AM -0800, David Miller wrote: > > From: Heiner Kallweit > > Date: Sun, 3 Mar 2019 19:58:57 +0100 > > > > > Currently the Phy driver's link_change_notify callback is called > > > whenev

Re: 979d63d50c0c0f7bc537bf821e056cc9fe5abd38 bpf: prevent out of bounds speculation on pointer arithmetic

2019-03-12 Thread Greg KH
On Mon, Mar 11, 2019 at 05:18:33PM +0800, Jason Yan wrote: > Hi, Daniel & Greg > > This patch (979d63d50c0c bpf: prevent out of bounds speculation on pointer > arithmetic) was assigned a CVE (CVE-2019-7308) with a high score: > > CVSS v3.0 Severity and Metrics: > Base Score: 9.8 CRITICAL > > And

[PATCH] i40e: print PCI vendor and device ID during probe

2019-03-12 Thread Stefan Assmann
Printing each devices PCI vendor and device ID has the advantage of easily revealing what hardware we're dealing with exactly. It's no longer necessary to match the PCI bus information to the lspci output. Helps with bug reports where no lspci output is available. Output before i40e :08:00.0:

Re: [PATCH net] pptp: dst_release sk_dst_cache in pptp_sock_destruct

2019-03-12 Thread Xin Long
On Sat, Mar 9, 2019 at 1:22 AM Eric Dumazet wrote: > > > > On 03/08/2019 09:17 AM, Eric Dumazet wrote: > > > > > > On 03/07/2019 11:25 PM, Xin Long wrote: > >> sk_setup_caps() is called to set sk->sk_dst_cache in pptp_connect, > >> so we have to dst_release(sk->sk_dst_cache) in pptp_sock_destruct,

Re: [PATCH net] pptp: dst_release sk_dst_cache in pptp_sock_destruct

2019-03-12 Thread Xin Long
On Sat, Mar 9, 2019 at 1:17 AM Eric Dumazet wrote: > > > > On 03/07/2019 11:25 PM, Xin Long wrote: > > sk_setup_caps() is called to set sk->sk_dst_cache in pptp_connect, > > so we have to dst_release(sk->sk_dst_cache) in pptp_sock_destruct, > > otherwise, the dst refcnt will leak. > > > > It can b

[PATCH bpf v2] libbpf: fix to reject unknown flags in xsk_socket__create()

2019-03-12 Thread Magnus Karlsson
In xsk_socket__create(), the libbpf_flags field was not checked for setting currently unused/unknown flags. This patch fixes that by returning -EINVAL if the user has set any flag that is not in use at this point in time. Fixes: 1cad07884239 ("libbpf: add support for using AF_XDP sockets") Reviewe

[PATCH net 0/2] mlxsw: Various fixes

2019-03-12 Thread Ido Schimmel
Patch #1 fixes the recently introduced QSFP thermal zones to correctly work with split ports, where several ports are mapped to the same module. Patch #2 initializes the base MAC in the minimal driver. The driver is using the base MAC as its parent ID and without initializing it, it is reported as

[PATCH net 1/2] mlxsw: core: Prevent duplication during QSFP module initialization

2019-03-12 Thread Ido Schimmel
From: Vadim Pasternak Verify during thermal initialization if QSFP module's entry is already configured in order to prevent duplication. Such scenario could happen in case two switch drivers (PCI and I2C based) coexist and if after boot, splitting configuration is applied for some ports and then

[PATCH net 2/2] mlxsw: minimal: Initialize base_mac

2019-03-12 Thread Ido Schimmel
From: Jiri Pirko Currently base_mac is not initialized which causes wrong reporting of zeroed parent_id to userspace. Fix this by initializing base_mac properly. Fixes: c100e47caa8e ("mlxsw: minimal: Add ethtool support") Signed-off-by: Jiri Pirko Signed-off-by: Ido Schimmel --- drivers/net/e

[PATCH net v2] net/tls: Inform user space about send buffer availability

2019-03-12 Thread Vakul Garg
A previous fix ("tls: Fix write space handling") assumed that user space application gets informed about the socket send buffer availability when tls_push_sg() gets called. Inside tls_push_sg(), in case do_tcp_sendpages() returns 0, the function returns without calling ctx->sk_write_space. Further,

Re: BUG: "13d0ab6750b2 net: phy: check return code when requesting PHY driver module" breaks NFS-Root

2019-03-12 Thread Marc Kleine-Budde
On 3/11/19 7:11 PM, Florian Fainelli wrote: >> I continued bisecting and found a bad commit in the riotboard's phy >> driver. I'll send a separate mail for this. >> >> | cd28d1d6e52e net: phy: at803x: Disable phy delay for RGMII mode > > If your problem is with this driver, keep in mind that the a

Re: [PATCH net] net/tls: Inform user space about send buffer availability

2019-03-12 Thread Boris Pismenny
Hi Vakul, On 3/12/2019 9:09 AM, Vakul Garg wrote: > A previous fix ("tls: Fix write space handling") assumed that > user space application gets informed about the socket send buffer > availability when tls_push_sg() gets called. Inside tls_push_sg(), in > case do_tcp_sendpages() returns 0, the fun

[PATCH net] net/tls: Inform user space about send buffer availability

2019-03-12 Thread Vakul Garg
A previous fix ("tls: Fix write space handling") assumed that user space application gets informed about the socket send buffer availability when tls_push_sg() gets called. Inside tls_push_sg(), in case do_tcp_sendpages() returns 0, the function returns without calling ctx->sk_write_space. Further,