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
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
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
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
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 ++
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
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
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
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
ed in struct net_device.
>
> Signed-off-by: Philippe Reynes
> ---
Series:
Tested-by: Max Filippov
--
Thanks.
-- Max
rnet/ethoc.c | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
Reviewed-by: Max Filippov
--
Thanks.
-- Max
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
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 |
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
14 matches
Mail list logo