Re: [PATCH 0/3] xtensa: add seccomp support

2020-09-11 Thread Max Filippov
On Fri, Sep 11, 2020 at 12:38 PM Kees Cook wrote: > On Sat, Jul 18, 2020 at 07:16:51PM -0700, Max Filippov wrote: > > Hello, > > > > this series adds support for seccomp filter on xtensa and updates > > selftests/seccomp. > > Hi! > > Firstly, thanks for addi

[PATCH 0/3] xtensa: add seccomp support

2020-07-18 Thread Max Filippov
Hello, this series adds support for seccomp filter on xtensa and updates selftests/seccomp. Max Filippov (3): xtensa: expose syscall through user_pt_regs xtensa: add seccomp support selftests/seccomp: add xtensa support .../seccomp/seccomp-filter/arch-support.txt | 2 +- arch

[PATCH 3/3] selftests/seccomp: add xtensa support

2020-07-18 Thread Max Filippov
Xtensa returns syscall number can be obtained and changed through the struct user_pt_regs. Syscall return value register is fixed relatively to the current register window in the user_pt_regs, so it needs a bit of special treatment. Signed-off-by: Max Filippov --- tools/testing/selftests

[PATCH 2/3] xtensa: add seccomp support

2020-07-18 Thread Max Filippov
Add SECCOMP to xtensa Kconfig, select HAVE_ARCH_SECCOMP_FILTER, add TIF_SECCOMP and call secure_computing from do_syscall_trace_enter. Signed-off-by: Max Filippov --- .../seccomp/seccomp-filter/arch-support.txt | 2 +- arch/xtensa/Kconfig | 15

[PATCH 1/3] xtensa: expose syscall through user_pt_regs

2020-07-18 Thread Max Filippov
Use one of the reserved slots in struct user_pt_regs to return syscall number in the GPR regset. Update syscall number from the GPR regset only when it's non-zero. Signed-off-by: Max Filippov --- arch/xtensa/include/uapi/asm/ptrace.h | 3 ++- arch/xtensa/kernel/ptrace.c | 4 ++

Re: [PATCH v3 1/8] arch: Use asm-generic/socket.h when possible

2019-01-07 Thread Max Filippov
delete mode 100644 arch/s390/include/uapi/asm/socket.h > delete mode 100644 arch/x86/include/uapi/asm/socket.h > delete mode 100644 arch/xtensa/include/uapi/asm/socket.h For xtensa: Acked-by: Max Filippov -- Thanks. -- Max

[PATCH] net: ethoc: enable NAPI before poll may be scheduled

2017-06-05 Thread Max Filippov
cover at all. Move napi_enable above ethoc_reset in the ethoc_open to fix that. Cc: sta...@vger.kernel.org Signed-off-by: Max Filippov --- drivers/net/ethernet/ethoc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/ethoc.c b/drivers/net/ethernet/ethoc.c

Re: [PATCH net v2 0/2] net: ethoc: Error path and transmit fixes

2016-07-12 Thread Max Filippov
ct net_device *dev) if (skb_put_padto(skb, ETHOC_ZLEN)) { dev->stats.tx_errors++; - goto out; + return NETDEV_TX_OK; } if (unlikely(skb->len > ETHOC_BUFSIZ)) { Without it the interface becomes non-functional after the firs

Re: [PATCH net v2 2/2] net: ethoc: Correctly pad short packets

2016-07-12 Thread Max Filippov
Hi Florian, On Mon, Jul 11, 2016 at 04:35:55PM -0700, Florian Fainelli wrote: > Even though the hardware can be doing zero padding, we want the SKB to > be going out on the wire with the appropriate size. This fixes packet > truncations observed with e.g: ARP packets. > > Signed-off-by: Florian F

Re: [PATCH 1/2] net: ethernet: ethoc: use phydev from struct net_device

2016-06-25 Thread Max Filippov
ed in struct net_device. > > Signed-off-by: Philippe Reynes > --- Series: Tested-by: Max Filippov -- Thanks. -- Max

Re: [PATCH][V2] net/ethoc: fix null dereference on error exit path

2016-06-01 Thread Max Filippov
rnet/ethoc.c | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) Reviewed-by: Max Filippov -- Thanks. -- Max

Re: [PATCH] net/ethoc: fix null dereference on error exit path

2016-05-22 Thread Max Filippov
Hi Colin, On Sun, May 22, 2016 at 08:08:18PM +0100, Colin King wrote: > From: Colin Ian King > > priv is assigned to NULL however all the error exit paths to label 'free' > dereference priv, causing a null pointer dereference. > > Examination of the code shows that all error exits via the 'free

[PATCH v2] net/ethoc: support big-endian register layout

2015-09-22 Thread Max Filippov
This allows using OpenCores ethernet controller attached to its host in native-endian mode with bi-endian CPUs. Example of such system is Xtensa XTFPGA platform. Signed-off-by: Max Filippov --- Changes v1->v2: - expand changelog with motivation for the change. drivers/net/ethernet/ethoc.c |

[PATCH] net/ethoc: support big-endian register layout

2015-09-22 Thread Max Filippov
Signed-off-by: Max Filippov --- drivers/net/ethernet/ethoc.c | 14 -- include/net/ethoc.h | 1 + 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/ethoc.c b/drivers/net/ethernet/ethoc.c index 442410c..17ff9a4 100644 --- a/drivers/net