Re: [PATCH net-next-2.6] filter: add a security check at install time

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Changli Gao
Date: Wednesday, December 1, 2010 - 7:30 pm

On Thu, Dec 2, 2010 at 4:45 AM, Eric Dumazet <eric.dumazet@gmail.com> wrote:

It seems wrong. Think about the following instructions:

/* m[1] isn't set */
   jeq jt jf
jt:
   st m[1]
   jmp ja
jf:
   jmp ja2 /* m[1] is invalidated by masks */
ja:
   ld m[1] /* -EINVAL is returned */
ja2:

So you need to search all the possible branches to validate the instructions.




-- 
Regards,
Changli Gao(xiaosuo@gmail.com)
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
multi bpf filter will impact performance?, Rui, (Tue Nov 30, 2:22 am)
Re: multi bpf filter will impact performance?, Eric Dumazet, (Tue Nov 30, 2:34 am)
Re: multi bpf filter will impact performance?, Eric Dumazet, (Tue Nov 30, 3:01 am)
Re: multi bpf filter will impact performance?, Eric Dumazet, (Tue Nov 30, 4:17 am)
Re: multi bpf filter will impact performance?, Eric Dumazet, (Tue Nov 30, 9:03 pm)
Re: multi bpf filter will impact performance?, Changli Gao, (Wed Dec 1, 12:36 am)
Re: multi bpf filter will impact performance?, Eric Dumazet, (Wed Dec 1, 12:47 am)
Re: multi bpf filter will impact performance?, Changli Gao, (Wed Dec 1, 12:59 am)
Re: multi bpf filter will impact performance?, Eric Dumazet, (Wed Dec 1, 1:09 am)
Re: multi bpf filter will impact performance?, Changli Gao, (Wed Dec 1, 1:15 am)
Re: multi bpf filter will impact performance?, Eric Dumazet, (Wed Dec 1, 1:42 am)
Re: multi bpf filter will impact performance?, Hagen Paul Pfeifer, (Wed Dec 1, 10:22 am)
Re: multi bpf filter will impact performance?, David Miller, (Wed Dec 1, 11:18 am)
Re: multi bpf filter will impact performance?, David Miller, (Wed Dec 1, 11:24 am)
Re: multi bpf filter will impact performance?, Eric Dumazet, (Wed Dec 1, 11:24 am)
Re: multi bpf filter will impact performance?, David Miller, (Wed Dec 1, 11:44 am)
Re: multi bpf filter will impact performance?, Eric Dumazet, (Wed Dec 1, 12:48 pm)
Re: multi bpf filter will impact performance?, David Miller, (Wed Dec 1, 1:23 pm)
Re: [PATCH net-next-2.6] filter: add a security check at i ..., Changli Gao, (Wed Dec 1, 7:30 pm)
Re: multi bpf filter will impact performance?, Eric Dumazet, (Thu Dec 2, 11:32 pm)
Re: multi bpf filter will impact performance?, Junchang Wang, (Fri Dec 3, 2:40 am)
PATCH] filter: fix sk_filter rcu handling, Eric Dumazet, (Sun Dec 5, 1:53 pm)
Re: [stable] PATCH] filter: fix sk_filter rcu handling, Eric Dumazet, (Sun Dec 5, 2:28 pm)
Re: PATCH] filter: fix sk_filter rcu handling, David Miller, (Mon Dec 6, 10:29 am)