Thread (50 messages) 50 messages, 8 authors, 2012-02-21

Re: [PATCH v8 1/8] sk_run_filter: add support for custom load_pointer

From: Joe Perches <joe@perches.com>
Date: 2012-02-17 01:55:40
Also in: linux-arch, lkml

On Thu, 2012-02-16 at 14:02 -0600, Will Drewry wrote:
This change allows CONFIG_SECCOMP to make use of BPF programs for
user-controlled system call filtering (as shown in this patch series).
[]
quoted hunk ↗ jump to hunk
diff --git a/net/core/filter.c b/net/core/filter.c
[]
quoted hunk ↗ jump to hunk
@@ -542,9 +602,35 @@ int sk_chk_filter(struct sock_filter *filter, unsigned int flen)
[]
quoted hunk ↗ jump to hunk
 		case BPF_S_LD_W_ABS:
+			MAYBE_USE_LOAD_FN(LD_W_ABS);
 		case BPF_S_LD_H_ABS:
+			MAYBE_USE_LOAD_FN(LD_H_ABS);
 		case BPF_S_LD_B_ABS:
+			MAYBE_USE_LOAD_FN(LD_B_ABS);
Would be nice to note fallthrough or add break if necessary.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help