Re: [PATCHv3 0/2]

2025-02-28 Thread Sean Christopherson
On Fri, Feb 28, 2025, Paolo Bonzini wrote: > On 2/28/25 16:36, Keith Busch wrote: > > On Fri, Feb 28, 2025 at 07:29:45AM -0800, Sean Christopherson wrote: > > > On Fri, Feb 28, 2025, Keith Busch wrote: > > > > On Fri, Feb 28, 2025 at 06:32:47AM -0

Re: [PATCHv3 0/2]

2025-02-28 Thread Sean Christopherson
On Fri, Feb 28, 2025, Keith Busch wrote: > On Fri, Feb 28, 2025 at 06:32:47AM -0800, Sean Christopherson wrote: > > > diff --git a/include/linux/call_once.h b/include/linux/call_once.h > > > index ddcfd91493ea..b053f4701c94 100644 > > > --- a/include/linux/call_on

Re: [PATCHv3 0/2]

2025-02-28 Thread Sean Christopherson
On Fri, Feb 28, 2025, Sean Christopherson wrote: > On Fri, Feb 28, 2025, Lei Yang wrote: > > Hi Keith > > > > V3 introduced a new bug, the following error messages from qemu output > > after applying this patch to boot up a guest. > > Doh, my bug. Not yet t

Re: [PATCHv3 0/2]

2025-02-28 Thread Sean Christopherson
On Fri, Feb 28, 2025, Lei Yang wrote: > Hi Keith > > V3 introduced a new bug, the following error messages from qemu output > after applying this patch to boot up a guest. Doh, my bug. Not yet tested, but this should fix things. Assuming it does, I'll post a v3 so I can add my SoB. diff --git

[net PATCH 2/2] tools: selftests: add test for changing routes with PTMU exceptions

2021-01-05 Thread Sean Tranchetti
From: Sean Tranchetti Adds new 2 new tests to the PTMU script: pmtu_ipv4/6_route_change. These tests explicitly test for a recently discovered problem in the IPv6 routing framework where PMTU exceptions were not properly released when replacing a route via "ip route change ...". Afte

[net PATCH 1/2] net: ipv6: fib: flush exceptions when purging route

2021-01-05 Thread Sean Tranchetti
From: Sean Tranchetti Route removal is handled by two code paths. The main removal path is via fib6_del_route() which will handle purging any PMTU exceptions from the cache, removing all per-cpu copies of the DST entry used by the route, and releasing the fib6_info struct. The second removal

[PATCH v3 3/4] bpftool: add support for ints larger than 128 bits

2021-01-05 Thread Sean Young
-types Link: https://reviews.llvm.org/D93103 Signed-off-by: Sean Young --- tools/bpf/bpftool/btf_dumper.c | 40 ++ 1 file changed, 40 insertions(+) diff --git a/tools/bpf/bpftool/btf_dumper.c b/tools/bpf/bpftool/btf_dumper.c index 0e9310727281..8b5318ec5c26 100644

[PATCH v3 2/4] libbpf: add support for ints larger than 128 bits

2021-01-05 Thread Sean Young
-types Link: https://reviews.llvm.org/D93103 Signed-off-by: Sean Young --- tools/lib/bpf/btf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lib/bpf/btf.c b/tools/lib/bpf/btf.c index 3c3f2bc6c652..a676373f052b 100644 --- a/tools/lib/bpf/btf.c +++ b/tools/lib/bpf/btf.c

[PATCH v3 1/4] btf: add support for ints larger than 128 bits

2021-01-05 Thread Sean Young
review. Link: https://clang.llvm.org/docs/LanguageExtensions.html#extended-integer-types Link: https://reviews.llvm.org/D93103 Signed-off-by: Sean Young --- Documentation/bpf/btf.rst | 4 +-- include/uapi/linux/btf.h | 2 +- kernel/bpf/btf.c | 54

[PATCH v3 4/4] bpf: add tests for ints larger than 128 bits

2021-01-05 Thread Sean Young
review. Link: https://clang.llvm.org/docs/LanguageExtensions.html#extended-integer-types Link: https://reviews.llvm.org/D93103 Signed-off-by: Sean Young --- tools/testing/selftests/bpf/Makefile | 3 +- tools/testing/selftests/bpf/prog_tests/btf.c | 3 +- .../selftests/bpf/progs

[PATCH v3 0/4] btf: support ints larger than 128 bits

2021-01-05 Thread Sean Young
review. Link: https://clang.llvm.org/docs/LanguageExtensions.html#extended-integer-types Link: https://reviews.llvm.org/D93103 Signed-off-by: Sean Young changes since v2: - split patches into 4 distinct patches changes since v1: - added tests as suggested by Yonghong Song - added kernel

Re: [PATCH v2] btf: support ints larger than 128 bits

2021-01-05 Thread Sean Young
On Wed, Dec 30, 2020 at 10:21:09AM -0800, Yonghong Song wrote: > On 12/19/20 8:36 AM, Sean Young wrote: > > clang supports arbitrary length ints using the _ExtInt extension. This > > can be useful to hold very large values, e.g. 256 bit or 512 bit types. > > > > Larger

[PATCH v2] btf: support ints larger than 128 bits

2020-12-19 Thread Sean Young
review. Link: https://clang.llvm.org/docs/LanguageExtensions.html#extended-integer-types Link: https://reviews.llvm.org/D93103 Signed-off-by: Sean Young --- changes since v2: - added tests as suggested by Yonghong Song - added kernel pretty-printer Documentation/bpf/btf.rst

Re: [PATCH] btf: support ints larger than 128 bits

2020-12-18 Thread Sean Young
Hi Yonghong, Thank you for the detailed review. On Thu, Dec 17, 2020 at 06:12:11PM -0800, Yonghong Song wrote: > On 12/17/20 7:01 AM, Sean Young wrote: > > clang supports arbitrary length ints using the _ExtInt extension. This > > can be useful to hold very large values, e.g. 256

[PATCH] btf: support ints larger than 128 bits

2020-12-17 Thread Sean Young
, which is under review. Link: https://clang.llvm.org/docs/LanguageExtensions.html#extended-integer-types Link: https://reviews.llvm.org/D93103 Signed-off-by: Sean Young --- Documentation/bpf/btf.rst | 4 ++-- include/uapi/linux/btf.h | 2 +- tools/bpf/bpftool/btf_dumper.c | 39

Re: [PATCH 000/141] Fix fall-through warnings for Clang

2020-11-25 Thread Sean Young
ly that all trivial patches are valuable. You're assuming burn out or recruitment problems is due to patch workload or too many "trivial" patches. In my experience, "other maintainers" is by far the biggest cause of burn out for my kernel maintenance work. Certainly arguing with a maintainer about some obviously-correct patch series must be a good example of this. Sean

[PATCH net v2] genetlink: remove genl_bind

2020-06-30 Thread Sean Tranchetti
ilies") Suggested-by: Cong Wang Acked-by: Johannes Berg Reported-by: kernel test robot Signed-off-by: Sean Tranchetti --- include/net/genetlink.h | 8 net/netlink/genetlink.c | 49 - 2 files changed, 57 deletions(-) diff --git a/i

[PATCH net] genetlink: take netlink table lock when (un)registering

2020-06-26 Thread Sean Tranchetti
("genl: Allow concurrent genl callbacks") Cc: Pravin B Shelar Cc: Subash Abhinov Kasiviswanathan Signed-off-by: Sean Tranchetti --- net/netlink/genetlink.c | 29 - 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/net/netlink/genetlink.c b/n

Re: [PATCH] virtio_net: Unregister and re-register xdp_rxq across freeze/restore

2020-06-08 Thread Sean Christopherson
On Sun, Jun 07, 2020 at 09:23:03AM -0400, Michael S. Tsirkin wrote: > On Fri, Jun 05, 2020 at 02:46:24PM -0700, Sean Christopherson wrote: > > @@ -1480,17 +1495,10 @@ static int virtnet_open(struct net_device *dev) > > if (!try_fill_recv(vi, &vi

[PATCH] virtio_net: Unregister and re-register xdp_rxq across freeze/restore

2020-06-05 Thread Sean Christopherson
0x23e/0x260 ___sys_sendmsg+0x88/0xd0 __sys_sendmsg+0x63/0xa0 do_syscall_64+0x4c/0x170 entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ cut here ] Cc: Jesper Dangaard Brouer Fixes: 754b8a21a96d5 ("virtio_net: setup xdp_rxq_info") Signed-off-by: Sean Christopherso

Re: [PATCH] can: flexcan: use devm_platform_ioremap_resource() to simplify code

2019-09-29 Thread Sean Nyekjaer
On 29/09/2019 10.32, Joakim Zhang wrote: Use the new helper devm_platform_ioremap_resource() which wraps the platform_get_resource() and devm_ioremap_resource() together to simplify the code. Signed-off-by: Joakim Zhang Reviewed-by: Sean Nyekjaer --- drivers/net/can/flexcan.c | 4

Re: [PATCH] can: flexcan: free error skb if enqueueing failed

2019-09-13 Thread Sean Nyekjaer
o") Signed-off-by: Martin Hundebøll Ping. Hi Marc Any problems with this? Besides time ;-) We really need this to be back ported to 4.19, soon... /Sean

Re: [PATCH REPOST 1/2] can: flexcan: fix deadlock when using self wakeup

2019-09-10 Thread Sean Nyekjaer
On 05/09/2019 09.10, Joakim Zhang wrote: Hi Sean, Could you update lastest flexcan driver using linux-can-next/flexcan and then merge below two patches from linux-can/testing? d0b53616716e (HEAD -> testing, origin/testing) can: flexcan: add LPSR mode support for i.MX7D 803eb6bad65b

Re: [PATCH REPOST 1/2] can: flexcan: fix deadlock when using self wakeup

2019-09-05 Thread Sean Nyekjaer
On 05/09/2019 09.10, Joakim Zhang wrote: Hi Sean, Could you update lastest flexcan driver using linux-can-next/flexcan and then merge below two patches from linux-can/testing? d0b53616716e (HEAD -> testing, origin/testing) can: flexcan: add LPSR mode support for i.MX7D 803eb6bad65b

Re: [PATCH REPOST 1/2] can: flexcan: fix deadlock when using self wakeup

2019-09-04 Thread Sean Nyekjaer
On 29/08/2019 09.30, Joakim Zhang wrote: Hi Sean, I'm sorry that I can't get the debug log as the site can't be reached. And I connect two boards to do test at my side, this issue can't be reproduced. Best Regards, Joakim Zhang Hi Joakim, What commit and branch are

Re: [PATCH REPOST 1/2] can: flexcan: fix deadlock when using self wakeup

2019-08-28 Thread Sean Nyekjaer
On 20/08/2019 13.55, Sean Nyekjaer wrote: I have added some more debug, same test setup: https://gist.github.com/sknsean/81208714de23aa3639d3e31dccb2f3e0 root@iwg26:~# systemctl suspend ... https://gist.github.com/sknsean/2a786f1543305056d4de03d387872403 /Sean Any luck reproducing this

Re: [PATCH REPOST 1/2] can: flexcan: fix deadlock when using self wakeup

2019-08-20 Thread Sean Nyekjaer
can 2094000.flexcan: registering netdev failed and can1 fails to register with: [ 628.347485] flexcan: probe of 2094000.flexcan failed with error -110 /Sean I have added some more debug, same test setup: https://gist.github.com/sknsean/81208714de23aa3639d3e31dccb2f3e0 root@i

Re: [PATCH REPOST 1/2] can: flexcan: fix deadlock when using self wakeup

2019-08-20 Thread Sean Nyekjaer
On 16/08/2019 10.20, Joakim Zhang wrote: As reproted by Sean Nyekjaer below: When suspending, when there is still can traffic on the interfaces the flexcan immediately wakes the platform again. As it should :-). But it throws this error msg: [ 3169.378661] PM: noirq suspend of devices failed

Re: [PATCH] can: flexcan: free error skb if enqueueing failed

2019-08-20 Thread Sean Nyekjaer
CC'ing Joakim Zhang On 15/07/2019 20.53, Martin Hundebøll wrote: If the call to can_rx_offload_queue_sorted() fails, the passed skb isn't consumed, so the caller must do so. Fixes: 30164759db1b ("can: flexcan: make use of rx-offload's irq_offload_fifo") Signed-off-by: Martin Hundebøll --- dr

Re: [PATCH 2/2] dt-bindings: can: flexcan: add can wakeup property

2019-08-20 Thread Sean Nyekjaer
On 29/04/2019 19.39, Rob Herring wrote: On Tue, 9 Apr 2019 10:39:49 +0200, Sean Nyekjaer wrote: add wakeup-source boolean property. Signed-off-by: Sean Nyekjaer --- Documentation/devicetree/bindings/net/can/fsl-flexcan.txt | 2 ++ 1 file changed, 2 insertions(+) Reviewed-by: Rob

Re: [PATCH v2 net-next 0/2] net: mediatek: Add MT7621 TRGMII mode support

2019-06-20 Thread Sean Wang
On Thu, Jun 20, 2019 at 6:02 AM Frank Wunderlich wrote: > > Tested on Bananapi R2 (mt7623) > > Tested-by: "Frank Wunderlich" These changes also look good to me, thanks for add the patch to enrich different application variants. Acked-by: Sean Wang > > Am 20. Jun

Re: [PATCH] can: flexcan: fix deadlock when using self wakeup

2019-06-11 Thread Sean Nyekjaer
On 11/06/2019 08.58, Joakim Zhang wrote: How is it going with the updated patch? Hi Sean, I still need discuss with Marc about the solution. Joakim Zhang Hi, Joakim Please include me in the loop :-) /Sean

Re: [PATCH] can: flexcan: fix deadlock when using self wakeup

2019-06-08 Thread Sean Nyekjaer
On 17/05/2019 04.39, Joakim Zhang wrote: As reproted by Sean Nyekjaer bellow: When suspending, when there is still can traffic on the interfaces the flexcan immediately wakes the platform again. As it should :-) But it throws this error msg: [ 3169.378661] PM: noirq suspend of devices failed

Re: [PATCH 1/2] can: flexcan: add support for DT property 'wakeup-source'

2019-06-08 Thread Sean Nyekjaer
kind ping :-) On 09/04/2019 10.39, Sean Nyekjaer wrote: The flexcan controller can be forced as a wakeup source by stating that explicitly in the device's .dts file using the "wakeup-source" boolean property. Signed-off-by: Sean Nyekjaer --- drivers/net/can/flexcan.c |

[PATCH net-next v2] udp: Avoid post-GRO UDP checksum recalculation

2019-05-28 Thread Sean Tranchetti
: cf329aa42b66 ("udp: cope with UDP GRO packet misdirection") Cc: Paolo Abeni Cc: Subash Abhinov Kasiviswanathan Signed-off-by: Sean Tranchetti --- include/net/udp.h | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/net/udp.h b/include/net/udp.h ind

[PATCH net-next] udp: Avoid post-GRO UDP checksum recalculation

2019-05-23 Thread Sean Tranchetti
to the socket or hand it off to a new protocol handler. In either case, the checksum is not needed. Fixes: cf329aa42b66 ("udp: cope with UDP GRO packet misdirection") Cc: Paolo Abeni Cc: Subash Abhinov Kasiviswanathan Signed-off-by: Sean Tranchetti --- include/net/udp.h | 6

[PATCH] can: flexcan: fix deadlock when using self wakeup

2019-04-16 Thread Sean Nyekjaer
h the current driver it can't recover from this even with a soft reboot, it requires a hard reboot. Fixes: de3578c198c6 ("can: flexcan: add self wakeup support") Signed-off-by: Sean Nyekjaer --- drivers/net/can/flexcan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 1/2] can: flexcan: add support for DT property 'wakeup-source'

2019-04-09 Thread Sean Nyekjaer
The flexcan controller can be forced as a wakeup source by stating that explicitly in the device's .dts file using the "wakeup-source" boolean property. Signed-off-by: Sean Nyekjaer --- drivers/net/can/flexcan.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/

[PATCH 2/2] dt-bindings: can: flexcan: add can wakeup property

2019-04-09 Thread Sean Nyekjaer
add wakeup-source boolean property. Signed-off-by: Sean Nyekjaer --- Documentation/devicetree/bindings/net/can/fsl-flexcan.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/net/can/fsl-flexcan.txt b/Documentation/devicetree/bindings/net/can/fsl

UDP GRO do not restore ervery UDP Packet

2019-04-08 Thread Sean Tong
I find that I do not restore every UDP paket from recvmsg when I programming with UDP_GRO in kernel version 5.0 I can get gso_size, but I do not know the last UDP packet size in aggregate datagram. For example, recvmsg returns a packet size 50 of and gso_size of 24, so the UDP packets is restor

Re: [PATCH net-next] drivers: net: Remove unnecessary semicolon

2019-03-01 Thread Sean Wang
n > drivers/net/ethernet/mediatek/mtk_eth_soc.c:229:2-3: Unneeded semicolon > drivers/net/usb/sr9700.c:437:2-3: Unneeded semicolon > > Remove unneeded semicolon. > > Generated by: scripts/coccinelle/misc/semicolon.cocci > Acked-by: Sean Wang for mt7530 and mtk_eth_soc

[PATCH net] af_key: unconditionally clone on broadcast

2019-02-07 Thread Sean Tranchetti
pfkey_sendmsg+0x1d8/0x408 sock_sendmsg+0x44/0x60 ___sys_sendmsg+0x1d0/0x2a8 __sys_sendmsg+0x64/0xb4 SyS_sendmsg+0x34/0x4c el0_svc_naked+0x34/0x38 Kernel panic - not syncing: Fatal exception Suggested-by: Eric Dumazet Signed-off-by: Sean Tranchetti --- Realized I

Re: [PATCHv4 2/3] net: dsa: mt7530: support the 7530 switch on the Mediatek MT7621 SoC

2019-01-29 Thread Sean Wang
gt; distinguish it from a 7530 in other hardware at runtime. This is used > > to carry out the appropriate configuration and setup. > > > > Signed-off-by: Greg Ungerer > > Reviewed-by: Andrew Lunn > > Reviewed-by: Florian Fainelli Acked-by: Sean Wang >

Re: [PATCHv4 3/3] dt-bindings: net: dsa: add new MT7530 binding to support MT7621

2019-01-29 Thread Sean Wang
gt; Signed-off-by: Greg Ungerer > > Reviewed-by: Andrew Lunn > > Reviewed-by: Florian Fainelli Acked-by: Sean Wang > -- > Florian > > ___ > Linux-mediatek mailing list > linux-media...@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-mediatek

Re: [PATCHv4 1/3] net: ethernet: mediatek: support MT7621 SoC ethernet hardware

2019-01-29 Thread Sean Wang
rebase to mainline and irq handler fix] > > Signed-off-by: Greg Ungerer > > Reviewed-by: Florian Fainelli > Acked-by: Sean Wang > > --- > > drivers/net/ethernet/mediatek/Kconfig | 2 +- > > drivers/net/ethernet/mediatek/mtk_eth_soc.c | 48 +

Re: [PATCHv3 2/3] net: dsa: mt7530: support the 7530 switch on the Mediatek MT7621 SoC

2019-01-21 Thread Sean Wang
On Mon, 2019-01-21 at 11:31 -0800, Sean Wang wrote: > From: g...@kernel.org [mailto:g...@kernel.org] > Sent: Sunday, January 20, 2019 11:12 PM > To: Sean Wang ; bj...@mork.no; and...@lunn.ch; > vivien.dide...@savoirfairelinux.com; f.faine...@gmail.com; > netdev@vger.ker

Re: [PATCH v2] net: ethernet: mediatek: fix warning in phy_start_aneg

2019-01-09 Thread Sean Wang
;t > > needed. It's done by phy_link_change() in phylib. > > > > Signed-off-by: Frank Wunderlich > > --- > > drivers/net/ethernet/mediatek/mtk_eth_soc.c | 16 > > 1 file changed, 16 deletions(-) > > > Reviewed-by: Heiner Kallweit Thanks for your help to have the driver more fit in phylib. Acked-by: Sean Wang

Re: Re: [PATCH] net: ethernet: mediatek: fix warning in phy_start_aneg

2019-01-08 Thread Sean Wang
On Tue, Jan 8, 2019 at 11:07 AM Frank Wunderlich wrote: > > > > In mtk_phy_connect() I would say this complete block can be removed. > > All this is handled internally by phylib. > > > > dev->phydev->autoneg = AUTONEG_ENABLE; > > dev->phydev->speed = 0; > > dev->phydev->duplex =

Re: [RFC PATCH V3 1/5] vhost: generalize adding used elem

2019-01-04 Thread Sean Christopherson
On Fri, Jan 04, 2019 at 04:29:34PM -0500, Michael S. Tsirkin wrote: > On Sat, Dec 29, 2018 at 08:46:52PM +0800, Jason Wang wrote: > > Use one generic vhost_copy_to_user() instead of two dedicated > > accessor. This will simplify the conversion to fine grain > > accessors. About 2% improvement of PP

Re: [PATCH 2/2] net-next: stmmac: dwmac-mediatek: remove fine-tune property

2018-12-17 Thread Sean Wang
On Mon, Dec 17, 2018 at 6:43 PM Biao Huang wrote: > > 1. remove fine-tune property and related setting to simplify > the timing adjustment flow. > 2. set timing value according to the value from device tree, > and will not care whether PHY insert internal delay. > > Signed-off-by: Biao Huang > --

Re: Re: [PATCH 0/8] adding multiple CPU-Ports

2018-12-14 Thread Sean Wang
inline. > regards Frank > > > > Gesendet: Freitag, 14. Dezember 2018 um 18:26 Uhr > > Von: "Florian Fainelli" > > An: "Frank Wunderlich" , "Matthias Brugger" > > , netdev@vger.kernel.org, "Sean Wang" > > , "Andre

[PATCH bpf-next v3] media: bpf: add bpf function to report mouse movement

2018-12-06 Thread Sean Young
Some IR remotes have a directional pad or other pointer-like thing that can be used as a mouse. Make it possible to decode these types of IR protocols in BPF. Cc: netdev@vger.kernel.org Signed-off-by: Sean Young --- drivers/media/rc/bpf-lirc.c | 24 +++ include/uapi/linux

Re: [PATCH v2] media: bpf: add bpf function to report mouse movement

2018-11-26 Thread Sean Young
Hi Daniel, On Mon, Nov 26, 2018 at 01:55:36AM +0100, Daniel Borkmann wrote: > Hi Sean, > > On 11/23/2018 12:50 PM, Sean Young wrote: > > Some IR remotes have a directional pad or other pointer-like thing that > > can be used as a mouse. Make it possible to decode these type

[PATCH v2] media: bpf: add bpf function to report mouse movement

2018-11-23 Thread Sean Young
Some IR remotes have a directional pad or other pointer-like thing that can be used as a mouse. Make it possible to decode these types of IR protocols in BPF. Cc: netdev@vger.kernel.org Signed-off-by: Sean Young --- drivers/media/rc/bpf-lirc.c | 24 +++ include

[PATCH net v2] net: udp: fix handling of CHECKSUM_COMPLETE packets

2018-10-23 Thread Sean Tranchetti
ce6dd ("udp: remove headers from UDP packets before queueing") Fixes: c84d949057ca ("udp: copy skb->truesize in the first cache line") Cc: Sam Kumar Cc: Eric Dumazet Signed-off-by: Sean Tranchetti --- net/core/datagram.c | 5 +++-- net/ipv4/udp.c | 20

URGENT RESPONSE NEEDED

2018-10-12 Thread Sean Kim.
Hello my dear. Did you receive my email message to you? Please, get back to me ASAP as the matter is becoming late. Expecting your urgent response. Sean.

[PATCH net] net: udp: fix handling of CHECKSUM_COMPLETE packets

2018-10-11 Thread Sean Tranchetti
sum is bad, we can drop the packet immediately instead of waiting until we try and copy it to userspace. Otherwise, we need to mark the SKB as CHECKSUM_NONE, since the skb->csum field no longer contains the full packet checksum after the call

[PATCH net] netlabel: check for IPV4MASK in addrinfo_get

2018-09-20 Thread Sean Tranchetti
(79400108) ---[ end trace f6438a488e737143 ]--- Kernel panic - not syncing: Fatal exception Signed-off-by: Sean Tranchetti --- net/netlabel/netlabel_unlabeled.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/netlabel/netlabel_unlabeled.c b/net/netlabel

[PATCH net] af_key: free SKBs under RCU protection

2018-09-19 Thread Sean Tranchetti
x60 ___sys_sendmsg+0x1d0/0x2a8 __sys_sendmsg+0x64/0xb4 SyS_sendmsg+0x34/0x4c el0_svc_naked+0x34/0x38 Kernel panic - not syncing: Fatal exception Signed-off-by: Sean Tranchetti --- net/key/af_key.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/

[PATCH net] xfrm: validate template mode

2018-09-19 Thread Sean Tranchetti
[ 140.559008] el0_svc_naked+0x34/0x38 [ 140.559009] [ 140.592245] page dumped because: kasan: bad access detected [ 140.597981] page_owner info is not active (free page?) [ 140.603267] [ 140.653503] Signed-off-by: Sean Tranchetti

[PATCH net-next] net: gro: Initialize backlog NAPI's gro_list

2018-07-20 Thread Sean Tranchetti
("net: Convert GRO SKB handling to list_head.") Signed-off-by: Sean Tranchetti Signed-off-by: Subash Abhinov Kasiviswanathan --- net/core/dev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/core/dev.c b/net/core/dev.c index 4f8b92d..6b76745 100644 --- a/net/core/dev.c +++

[PATCH v5 2/3] media: rc: introduce BPF_PROG_LIRC_MODE2

2018-05-27 Thread Sean Young
device. Acked-by: Yonghong Song Signed-off-by: Sean Young --- drivers/media/rc/Kconfig| 13 ++ drivers/media/rc/Makefile | 1 + drivers/media/rc/bpf-lirc.c | 313 drivers/media/rc/lirc_dev.c | 30 +++ drivers/media/rc/rc-core-priv.h | 21

[PATCH v5 1/3] bpf: bpf_prog_array_copy() should return -ENOENT if exclude_prog not found

2018-05-27 Thread Sean Young
This makes is it possible for bpf prog detach to return -ENOENT. Acked-by: Yonghong Song Signed-off-by: Sean Young --- kernel/bpf/core.c| 11 +-- kernel/trace/bpf_trace.c | 2 ++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/kernel/bpf/core.c b/kernel/bpf

[PATCH v5 0/3] IR decoding using BPF

2018-05-27 Thread Sean Young
ally every remote without having to write a decoder for each. It might also be possible to support non-button devices such as analog directional pads or air conditioning remote controls and decode the target temperature in bpf, and pass that to an input device. Thanks, Sean Young [1] http:

[PATCH v5 3/3] bpf: add selftest for lirc_mode2 type program

2018-05-27 Thread Sean Young
This is simple test over rc-loopback. Acked-by: Yonghong Song Signed-off-by: Sean Young --- tools/bpf/bpftool/prog.c | 1 + tools/include/uapi/linux/bpf.h| 53 - tools/include/uapi/linux/lirc.h | 217 ++ tools/lib/bpf

Re: [PATCH v4 2/3] media: rc: introduce BPF_PROG_LIRC_MODE2

2018-05-26 Thread Sean Young
On Fri, May 25, 2018 at 01:45:11PM -0700, Alexei Starovoitov wrote: > On Fri, May 18, 2018 at 03:07:29PM +0100, Sean Young wrote: > > Add support for BPF_PROG_LIRC_MODE2. This type of BPF program can call > > rc_keydown() to reported decoded IR scancodes, or rc_repeat() to report &g

Re: [PATCH v4 0/3] IR decoding using BPF

2018-05-23 Thread Sean Young
On Wed, May 23, 2018 at 02:21:27PM +0200, Daniel Borkmann wrote: > On 05/18/2018 04:07 PM, Sean Young wrote: > > The kernel IR decoders (drivers/media/rc/ir-*-decoder.c) support the most > > widely used IR protocols, but there are many protocols which are not > > supported

[PATCH v4 0/3] IR decoding using BPF

2018-05-18 Thread Sean Young
ally every remote without having to write a decoder for each. It might also be possible to support non-button devices such as analog directional pads or air conditioning remote controls and decode the target temperature in bpf, and pass that to an input device. Thanks, Sean Young [1] http:

[PATCH v4 3/3] bpf: add selftest for lirc_mode2 type program

2018-05-18 Thread Sean Young
This is simple test over rc-loopback. Signed-off-by: Sean Young --- tools/bpf/bpftool/prog.c | 1 + tools/include/uapi/linux/bpf.h| 53 - tools/include/uapi/linux/lirc.h | 217 ++ tools/lib/bpf/libbpf.c

[PATCH v4 2/3] media: rc: introduce BPF_PROG_LIRC_MODE2

2018-05-18 Thread Sean Young
device. Signed-off-by: Sean Young --- drivers/media/rc/Kconfig| 13 ++ drivers/media/rc/Makefile | 1 + drivers/media/rc/bpf-lirc.c | 308 drivers/media/rc/lirc_dev.c | 30 drivers/media/rc/rc-core-priv.h | 22 +++ drivers/media/rc/rc

[PATCH v4 1/3] bpf: bpf_prog_array_copy() should return -ENOENT if exclude_prog not found

2018-05-18 Thread Sean Young
This makes is it possible for bpf prog detach to return -ENOENT. Signed-off-by: Sean Young --- kernel/bpf/core.c| 11 +-- kernel/trace/bpf_trace.c | 2 ++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/kernel/bpf/core.c b/kernel/bpf/core.c index 2194c6a9df42

Re: [PATCH v3 2/2] bpf: add selftest for rawir_event type program

2018-05-18 Thread Sean Young
On Fri, May 18, 2018 at 11:13:07AM +0100, Quentin Monnet wrote: > 2018-05-17 22:01 UTC+0100 ~ Sean Young > > On Thu, May 17, 2018 at 10:17:59AM -0700, Y Song wrote: > >> On Wed, May 16, 2018 at 2:04 PM, Sean Young wrote: > >>> This is simple test over rc-loopback. &

Re: [PATCH v3 1/2] media: rc: introduce BPF_PROG_RAWIR_EVENT

2018-05-17 Thread Sean Young
Hi, Again thanks for a thoughtful review. This will definitely will improve the code. On Thu, May 17, 2018 at 10:02:52AM -0700, Y Song wrote: > On Wed, May 16, 2018 at 2:04 PM, Sean Young wrote: > > Add support for BPF_PROG_RAWIR_EVENT. This type of BPF program can call > >

Re: [PATCH v3 2/2] bpf: add selftest for rawir_event type program

2018-05-17 Thread Sean Young
On Thu, May 17, 2018 at 10:17:59AM -0700, Y Song wrote: > On Wed, May 16, 2018 at 2:04 PM, Sean Young wrote: > > This is simple test over rc-loopback. > > > > Signed-off-by: Sean Young > > --- > > tools/bpf/bpftool/prog.c | 1 + &g

Re: [PATCH v3 1/2] media: rc: introduce BPF_PROG_RAWIR_EVENT

2018-05-17 Thread Sean Young
Hi Quentin, On Thu, May 17, 2018 at 01:10:56PM +0100, Quentin Monnet wrote: > 2018-05-16 22:04 UTC+0100 ~ Sean Young > > Add support for BPF_PROG_RAWIR_EVENT. This type of BPF program can call > > rc_keydown() to reported decoded IR scancodes, or rc_repeat() to report > &

[PATCH v3 1/2] media: rc: introduce BPF_PROG_RAWIR_EVENT

2018-05-16 Thread Sean Young
device. Signed-off-by: Sean Young --- drivers/media/rc/Kconfig | 13 ++ drivers/media/rc/Makefile | 1 + drivers/media/rc/bpf-rawir-event.c | 363 + drivers/media/rc/lirc_dev.c| 24 ++ drivers/media/rc/rc-core-priv.h| 24 ++ drivers

[PATCH v3 2/2] bpf: add selftest for rawir_event type program

2018-05-16 Thread Sean Young
This is simple test over rc-loopback. Signed-off-by: Sean Young --- tools/bpf/bpftool/prog.c | 1 + tools/include/uapi/linux/bpf.h| 57 +++- tools/lib/bpf/libbpf.c| 1 + tools/testing/selftests/bpf/Makefile | 8

[PATCH v3 0/2] IR decoding using BPF

2018-05-16 Thread Sean Young
ally every remote without having to write a decoder for each. It might also be possible to support non-button devices such as analog directional pads or air conditioning remote controls and decode the target temperature in bpf, and pass that to an input device. Thanks, Sean Young [1] http:

Re: [PATCH v2 1/2] media: rc: introduce BPF_PROG_RAWIR_EVENT

2018-05-16 Thread Sean Young
On Tue, May 15, 2018 at 07:50:19PM +0100, Sean Young wrote: > Add support for BPF_PROG_RAWIR_EVENT. This type of BPF program can call > rc_keydown() to reported decoded IR scancodes, or rc_repeat() to report > that the last key should be repeated. > > The bpf program can be attach

[PATCH v2 0/2] IR decoding using BPF

2018-05-15 Thread Sean Young
nderway to extend ir-keytable to have an extensive library of bpf-based decoders, and a much expanded library of rc keymaps. Another future application would be to compile IRP[3] to a IR BPF program, and so support virtually every remote without having to write a decoder for each. Thanks, Sean

[PATCH v2 2/2] bpf: add selftest for rawir_event type program

2018-05-15 Thread Sean Young
This is simple test over rc-loopback. Signed-off-by: Sean Young --- tools/bpf/bpftool/prog.c | 1 + tools/include/uapi/linux/bpf.h| 55 +++- tools/lib/bpf/libbpf.c| 1 + tools/testing/selftests/bpf/Makefile | 7

[PATCH v2 1/2] media: rc: introduce BPF_PROG_RAWIR_EVENT

2018-05-15 Thread Sean Young
device. Signed-off-by: Sean Young --- drivers/media/rc/Kconfig | 10 + drivers/media/rc/Makefile | 1 + drivers/media/rc/bpf-rawir-event.c | 322 + drivers/media/rc/lirc_dev.c| 28 +++ drivers/media/rc/rc-core-priv.h| 19 ++ drivers

Re: [PATCH v1 1/4] media: rc: introduce BPF_PROG_IR_DECODER

2018-05-15 Thread Sean Young
On Mon, May 14, 2018 at 04:27:19PM -0700, Randy Dunlap wrote: > On 05/14/2018 02:10 PM, Sean Young wrote: > > Add support for BPF_PROG_IR_DECODER. This type of BPF program can call > > Kconfig file below uses IR_BPF_DECODER instead of the symbol name above. > > and then

Re: [PATCH v1 4/4] samples/bpf: an example of a raw IR decoder

2018-05-15 Thread Sean Young
On Mon, May 14, 2018 at 10:34:57PM -0700, Y Song wrote: > On Mon, May 14, 2018 at 2:11 PM, Sean Young wrote: > > This implements the grundig-16 IR protocol. > > > > Signed-off-by: Sean Young > > --- > > samples/bpf/Makefile |

Re: [PATCH v1 1/4] media: rc: introduce BPF_PROG_IR_DECODER

2018-05-15 Thread Sean Young
On Mon, May 14, 2018 at 09:48:05PM -0700, Y Song wrote: > On Mon, May 14, 2018 at 2:10 PM, Sean Young wrote: > > Add support for BPF_PROG_IR_DECODER. This type of BPF program can call > > rc_keydown() to reported decoded IR scancodes, or rc_repeat() to report > > that t

[PATCH v1 1/4] media: rc: introduce BPF_PROG_IR_DECODER

2018-05-14 Thread Sean Young
Add support for BPF_PROG_IR_DECODER. This type of BPF program can call rc_keydown() to reported decoded IR scancodes, or rc_repeat() to report that the last key should be repeated. Signed-off-by: Sean Young --- drivers/media/rc/Kconfig | 8 +++ drivers/media/rc/Makefile | 1

[PATCH v1 0/4] IR decoding using BPF

2018-05-14 Thread Sean Young
nderway to extend ir-keytable to have an extensive library of bpf-based decoders, and a much expanded library of rc keymaps. Another future application would be to compile IRP[3] to a IR BPF program, and so support virtually every remote without having to write a decoder for each. Thanks, Sean

[PATCH v1 3/4] media: rc bpf: move ir_raw_event to uapi

2018-05-14 Thread Sean Young
The context provided to a BPF_PROG_RAWIR_DECODER is a struct ir_raw_event; ensure user space has a a definition. Signed-off-by: Sean Young --- include/media/rc-core.h| 19 +-- include/uapi/linux/bpf_rcdev.h | 24 2 files changed, 25 insertions

[PATCH v1 2/4] media: bpf: allow raw IR decoder bpf programs to be used

2018-05-14 Thread Sean Young
This implements attaching, detaching, querying and execution. The target fd has to be the /dev/lircN device. Signed-off-by: Sean Young --- drivers/media/rc/ir-bpf-decoder.c | 191 ++ drivers/media/rc/lirc_dev.c | 30 + drivers/media/rc/rc-core-priv.h

[PATCH v1 4/4] samples/bpf: an example of a raw IR decoder

2018-05-14 Thread Sean Young
This implements the grundig-16 IR protocol. Signed-off-by: Sean Young --- samples/bpf/Makefile | 4 + samples/bpf/bpf_load.c| 9 +- samples/bpf/grundig_decoder_kern.c| 112 ++ samples/bpf/grundig_decoder_user.c

[PATCH net-next] udp: Fix kernel panic in UDP GSO path

2018-05-10 Thread Sean Tranchetti
result in -EINVAL being returned. Fixes: 15e36f5b8e98 ("udp: paged allocation with gso") Signed-off-by: Sean Tranchetti Signed-off-by: Subash Abhinov Kasiviswanathan --- net/ipv4/ip_output.c | 8 1 file changed, 8 insertions(+) diff --git a/net/ipv4/ip_output.c b/net/ipv4/i

[PATCH net-next] udp: Complement partial checksum for GSO packet

2018-04-30 Thread Sean Tranchetti
transmit path. Fixes: ee80d1ebe5ba ("udp: add udp gso") Signed-off-by: Sean Tranchetti Signed-off-by: Subash Abhinov Kasiviswanathan --- net/ipv4/udp_offload.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/ipv4/udp_offload.c b/net/ipv4/udp_offload.c index f78fb36..0062570 10

Re: [PATCH net] net: dsa: mt7530: Use NULL instead of plain integer

2018-04-03 Thread Sean Wang
On Tue, 2018-04-03 at 10:02 -0700, Florian Fainelli wrote: > On 04/02/2018 07:18 PM, Sean Wang wrote: > > On Mon, 2018-04-02 at 16:24 -0700, Florian Fainelli wrote: > >> We would be passing 0 instead of NULL as the rsp argument to > >> mt7530_fdb_cmd(), fix that. > &

Re: [PATCH net] net: dsa: mt7530: Use NULL instead of plain integer

2018-04-02 Thread Sean Wang
On Mon, 2018-04-02 at 16:24 -0700, Florian Fainelli wrote: > We would be passing 0 instead of NULL as the rsp argument to > mt7530_fdb_cmd(), fix that. > Acked-by: Sean Wang BTW, does the part of the commit message should be updated with "passing NULL instead of 0"? &g

Re: [BUG] mveta: mvneta_txq_bufs_free NULL pointer dereference

2018-02-08 Thread Sean Nyekjær
On 8 December 2017 at 18:41, Simon Guinot wrote: > On Sat, Dec 02, 2017 at 12:06:12PM +0100, Sean Nyekjær wrote: >> Hi >> >> >> I'm not sure at all, but could you try to apply >> >> https://git.kernel.org/pub/scm/li

Re: [net-next] phylib: Add device reset GPIO support causes DSA MT7530 acquires reset-gpios fails

2017-12-17 Thread Sean Wang
On Fri, 2017-12-15 at 11:10 +0100, Andrew Lunn wrote: > On Fri, Dec 15, 2017 at 02:55:03PM +0800, Sean Wang wrote: > > Hi Sergei, > > > > Recently I found the patch commit bafbdd527d56 (phylib: Add device reset > > GPIO support) would have the impact on MT7530 drive

[net-next] phylib: Add device reset GPIO support causes DSA MT7530 acquires reset-gpios fails

2017-12-14 Thread Sean Wang
23_vemc3v3_reg>; ports { #address-cells = <1>; #size-cells = <0>; reg = <0>; port@0 { reg = <0>; label = "wan"; }; Sean

Re: [PATCH net-next 2/3] net: dsa: mediatek: combine MediaTek tag with VLAN tag

2017-12-12 Thread Sean Wang
On Tue, 2017-12-12 at 09:28 +0100, Andrew Lunn wrote: > On Tue, Dec 12, 2017 at 03:21:21PM +0800, Sean Wang wrote: > > On Thu, 2017-12-07 at 16:30 +0100, Andrew Lunn wrote: > > > > @@ -25,20 +28,37 @@ static struct sk_buff *mtk_tag_xmit(struct

Re: [PATCH net-next 1/3] net: dsa: mediatek: add VLAN support for MT7530

2017-12-12 Thread Sean Wang
On Tue, 2017-12-12 at 09:24 +0100, Felix Fietkau wrote: > On 2017-12-07 07:06, sean.w...@mediatek.com wrote: > > From: Sean Wang > > > > MT7530 can treat each port as either VLAN-unware port or VLAN-ware port > Shouldn't that be VLAN-unaware/VLAN-aware (in the code

Re: [PATCH net-next 2/3] net: dsa: mediatek: combine MediaTek tag with VLAN tag

2017-12-11 Thread Sean Wang
UNTAGGED; > > mtk_tag[1] = (1 << dp->index) & MTK_HDR_XMIT_DP_BIT_MASK; > > - mtk_tag[2] = 0; > > - mtk_tag[3] = 0; > > + > > + /* Tag control information is kept for 802.1Q */ > > + if (!is_vlan_skb) { > > + mtk_tag[2] = 0; >

  1   2   3   >