Skip to contentSkip to conversation

xt_gateway 20070605 (kernel)

DISCUSSION Amin Azez 3 participants 3 messages Jun 15, 2007 netfilter

lore
Share & tools
lore

Amin Azez

author
#0 lore raw

I agree that pointless checks are not needed at runtime.

I am not sure what other changes I should make to stop people crashing the kernel by using this match in places I have not forseen.

I am not certain that my anticpated crashes are actually possible.

Patrick, If I merely remove these unnecessary tests, will you be satisfied with the result?

Sam

-----Original Message-----
From: "Patrick McHardy" <[email protected]>
To: "Jan Engelhardt" <[email protected]>
Cc: "Amin Azez" <[email protected]>; "Netfilter Developer Mailing List" <[email protected]>
Sent: 15/06/07 17:15
Subject: Re: xt_gateway 20070605 (kernel)

Quoted 11 lines · Jan Engelhardt
Quoted 6 lines · Amin Azez
Quoted 3 lines

and the neighbour table family is always AF_INET since the match is only registered for AF_INET.

Maybe if I take out these checks, I should restrict the match to FORWARD and POSTROUTING?

Leaving them in does not cost too much.

Thats no reason to keep pointless checks around.

#1 lore raw
Quoted 3 lines · Amin Azez

I agree that pointless checks are not needed at runtime.

I am not sure what other changes I should make to stop people crashing the kernel by using this match in places I have not forseen.

I can look over it again to make sure thats not possible.

Quoted 3 lines

I am not certain that my anticpated crashes are actually possible.

Patrick, If I merely remove these unnecessary tests, will you be satisfied with the result?

Probably, I don't have the patch handy to look at it right now. So far I don't intend to merge it, but I'm also not very opposed to it (only reason against it is that its another file to take care of when changing say function signatures and it doesn't offer anything that we can't already do). Its up to you to convince me :)

#2 lore raw
Quoted 6 lines · Patrick McHardy
Quoted 3 lines

I am not certain that my anticpated crashes are actually possible.

Patrick, If I merely remove these unnecessary tests, will you be satisfied with the result?

Probably, I don't have the patch handy to look at it right now.

https://dev.computergmbh.de/svn/misc_kernel/xt_gateway/trunk/
You can choose either bare files (kernel/) or patch-based (patches/), depending on your review taste :-)

Quoted 5 lines

So far I don't intend to merge it, but I'm also not very opposed to it (only reason against it is that its another file to take care of when changing say function signatures and it doesn't offer anything that we can't already do). Its up to you to convince me :)

Jan