From: Pablo Neira Ayuso <pablo@eurodev.net>
To: Harald Welte <laforge@netfilter.org>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: ctnetlink expect dumping bug
Date: Wed, 01 Feb 2006 03:14:24 +0100 [thread overview]
Message-ID: <43E01980.6090506@eurodev.net> (raw)
In-Reply-To: <20060129180700.GA5490@rama.intranet.astaro.de>
Hi!
Harald Welte wrote:
> The issue is that for dumping the expect mask, we use regular tuple
> dumping functions. Those regular dumping functions call proto_find_get
> and l3proto_find_get with protocol value 0xffff, which leads to an array
> overflow in those NPROTO sized arrays.
>
> Rather than using the mask value, we'd need to pass the respective value
> from the expect tuple for dumping the expect mask.
>
> From looking at the code, it seems the bug also exists in
> ip_conntrack_netlink, but I didn't really test it.
No problem, ip_conntrack doesn't have the l3num field.
> Pablo, would you please prepare a fix for this, and confirm it by having
> helpers create expectations inside the kernel while running 'conntrack
> -E' ?
I did, we're still discussing :). Anyway Patrick have workaround for
this but it still remains a bit tricky. Please have a look at:
expectation mask handling in nfctnetlink (Was Re: [PATCH] fix
nf_conntrack_netlink expectation dumping/event notification)
cheers,
--
Pablo
next prev parent reply other threads:[~2006-02-01 2:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-29 18:07 ctnetlink expect dumping bug Harald Welte
2006-02-01 2:14 ` Pablo Neira Ayuso [this message]
2006-02-01 9:10 ` Harald Welte
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43E01980.6090506@eurodev.net \
--to=pablo@eurodev.net \
--cc=laforge@netfilter.org \
--cc=netfilter-devel@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.