Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 24e737c1 authored by Nicolas Schichan's avatar Nicolas Schichan Committed by David S. Miller
Browse files

ARM: net: add JIT support for loads from struct seccomp_data.

parent 8df29145
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -852,6 +852,16 @@ static int build_body(struct jit_ctx *ctx)
			off = offsetof(struct sk_buff, queue_mapping);
			emit(ARM_LDRH_I(r_A, r_skb, off), ctx);
			break;
		case BPF_LDX | BPF_W | BPF_ABS:
			/*
			 * load a 32bit word from struct seccomp_data.
			 * seccomp_check_filter() will already have checked
			 * that k is 32bit aligned and lies within the
			 * struct seccomp_data.
			 */
			ctx->seen |= SEEN_SKB;
			emit(ARM_LDR_I(r_A, r_skb, k), ctx);
			break;
		default:
			return -1;
		}