* why is nf_conntrack_htable_size exported?
@ 2010-01-30 4:32 Jon Masters
2010-01-30 4:38 ` Jon Masters
0 siblings, 1 reply; 2+ messages in thread
From: Jon Masters @ 2010-01-30 4:32 UTC (permalink / raw)
To: linux-kernel; +Cc: netfilter-devel
Folks,
Can someone tell me why nf_conntrack_htable_size is both an exported
symbol, and available in sysfs to be changed? Doing so will surely cause
the system to fall over immediately since this is value is used within
the hashing code in conntrack. It is /supposed/ to only be changed under
a lock, or at init time when there is not a need to lock it.
Perhaps we can get this unexported asap and the value replaced with a
function that returns the current value instead? Same goes for the
module parameter that can freely be messed around with.
Thanks,
Jon.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: why is nf_conntrack_htable_size exported?
2010-01-30 4:32 why is nf_conntrack_htable_size exported? Jon Masters
@ 2010-01-30 4:38 ` Jon Masters
0 siblings, 0 replies; 2+ messages in thread
From: Jon Masters @ 2010-01-30 4:38 UTC (permalink / raw)
To: linux-kernel; +Cc: netfilter-devel
On Fri, 2010-01-29 at 23:32 -0500, Jon Masters wrote:
> Can someone tell me why nf_conntrack_htable_size is both an exported
> symbol, and available in sysfs to be changed?
Ah, ignore me, it does go through a function, it's just that if it's
already zero we assume it's "init time", which isn't true if the value
has otherwise been fiddled with - I think that assumption probably is
worth looking at anyway, and it's worth the hashing functions looking to
see if the value is NULL, to catch that aswell.
Jon.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-01-30 4:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-30 4:32 why is nf_conntrack_htable_size exported? Jon Masters
2010-01-30 4:38 ` Jon Masters
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).