Re: [PATCH v2] ARM: net fix emit_udiv() for BPF_ALU | BPF_DIV | BPF_K intruction.

2015-05-10 Thread Mircea Gherzan
) + emit(ARM_MOV_R(ARM_R0, rm), ctx); ctx->seen |= SEEN_CALL; emit_mov_i(ARM_R3, (u32)jit_udiv, ctx); Acked-by: Mircea Gherzan -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majo

Re: [PATCH V2 2/3] ARM: net: bpf_jit: make code generation less dependent on struct sk_filter.

2013-04-05 Thread Mircea Gherzan
func = (void *)ctx.target; > out: > kfree(ctx.offsets); > + > + *out_ctx = ctx; > return; > } > > +void bpf_jit_compile(struct sk_filter *fp) > +{ > + struct jit_ctx ctx; > + > + memset(&ctx, 0, sizeof(ctx)); > + ctx.prog_len

Re: [PATCH V2 3/3] ARM: net: bpf_jit: add support for jitted seccomp filters.

2013-04-05 Thread Mircea Gherzan
k_run_filter) { > + work = (struct work_struct *)fp->bpf_func; > + > + INIT_WORK(work, bpf_jit_free_worker); > + schedule_work(work); > + } > +} > +#endif > -- > 1.7.10.4 > Acked-by: Mircea Gherzan -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH] ARM:net: an issue for k which is u32, never < 0

2013-03-11 Thread Mircea Gherzan
ave to take the slow path > */ > emit_mov_i(r_off, k, ctx); > -- > 1.7.7.6 Acked-by: Mircea Gherzan -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH] ARM: net: bpf_jit: fix emit_swap16() for non ARMv6+.

2013-02-13 Thread Mircea Gherzan
R_S(r_dst, ARM_R1, r_src, SRTYPE_LSR, 8), ctx); > + > + /* > + * we need to mask out the bits set in r_dst[23:16] due to > + * the first shift instruction. > + * > + * note that 0x8ff is the encoded immediate 0x00ff0000. > + */ > + emit(ARM_BIC

Re: [PATCH 2/2] ARM: net: bpf_jit_32: fix sp-relative load/stores offsets.

2012-12-07 Thread Mircea Gherzan
(SCRATCH_SP_OFFSET + (k)) > +#define SCRATCH_OFF(k) (SCRATCH_SP_OFFSET + 4 * (k)) > > #define SEEN_MEM ((1 << BPF_MEMWORDS) - 1) > #define SEEN_MEM_WORD(k) (1 << (k)) Acked-by: Mircea Gherzan -- To unsubscribe from this list: send the line

Re: [PATCH 1/2] ARM: net: bpf_jit_32: fix kzalloc gfp/size mismatch.

2012-12-07 Thread Mircea Gherzan
ctx.imm_count); > + ctx.imms = kzalloc(4 * ctx.imm_count, GFP_KERNEL); > if (ctx.imms == NULL) > goto out; > } Acked-by: Mircea Gherzan -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/