From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Cc: Netfilter Development Mailing list <netfilter-devel@vger.kernel.org>
Subject: Re: [nft] segfault, bitmask datatype without parse() function
Date: Tue, 25 Nov 2014 16:43:41 +0100 [thread overview]
Message-ID: <20141125154341.GA3579@salvia> (raw)
In-Reply-To: <CAOkSjBhYt+tnDo7vP=bz5hP37cePGxvW2TApPtbXdA0FKkx9dg@mail.gmail.com>
On Tue, Nov 25, 2014 at 01:53:20PM +0100, Arturo Borrero Gonzalez wrote:
> Hi,
>
> It seems there is a segfault in nft.
>
> How to reproduce:
>
> % nft add rule inet filter ct state established,related accept
Where is the chain there?
I think this crash happens in an error path.
> ==28442== Jump to the invalid address stated on the next line
> ==28442== at 0x0: ???
> ==28442== by 0x4099EA: symbolic_constant_parse (datatype.c:133)
> ==28442== by 0x40BFD8: expr_evaluate (evaluate.c:199)
> ==28442== by 0x40D524: list_member_evaluate (evaluate.c:597)
> ==28442== by 0x40C25B: expr_evaluate (evaluate.c:649)
> ==28442== by 0x40C103: expr_evaluate (evaluate.c:879)
> ==28442== by 0x40D908: stmt_evaluate (evaluate.c:1103)
> ==28442== by 0x40DF27: rule_evaluate (evaluate.c:1727)
> ==28442== by 0x40E0A6: chain_evaluate (evaluate.c:1788)
> ==28442== by 0x40E4CE: cmd_evaluate (evaluate.c:1807)
> ==28442== by 0x423757: nft_parse (parser_bison.y:549)
> ==28442== by 0x4061CC: nft_run (main.c:231)
> ==28442== Address 0x0 is not stack'd, malloc'd or (recently) free'd
> ==28442==
> ==28442==
> ==28442== Process terminating with default action of signal 11 (SIGSEGV)
> ==28442== Bad permissions for mapped region at address 0x0
> ==28442== at 0x0: ???
> ==28442== by 0x4099EA: symbolic_constant_parse (datatype.c:133)
> ==28442== by 0x40BFD8: expr_evaluate (evaluate.c:199)
> ==28442== by 0x40D524: list_member_evaluate (evaluate.c:597)
> ==28442== by 0x40C25B: expr_evaluate (evaluate.c:649)
> ==28442== by 0x40C103: expr_evaluate (evaluate.c:879)
> ==28442== by 0x40D908: stmt_evaluate (evaluate.c:1103)
> ==28442== by 0x40DF27: rule_evaluate (evaluate.c:1727)
> ==28442== by 0x40E0A6: chain_evaluate (evaluate.c:1788)
> ==28442== by 0x40E4CE: cmd_evaluate (evaluate.c:1807)
> ==28442== by 0x423757: nft_parse (parser_bison.y:549)
> ==28442== by 0x4061CC: nft_run (main.c:231)
> ==28442==
>
> As far as I've investigated, it seems the bitmask datatype is missing
> somehow the parse() function.
>
> My HEAD is cf1e7d4 (netlink: don't bug on unknown events).
>
>
> regards.
>
> --
> Arturo Borrero González
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2014-11-25 15:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-25 12:53 [nft] segfault, bitmask datatype without parse() function Arturo Borrero Gonzalez
2014-11-25 15:43 ` Pablo Neira Ayuso [this message]
2014-11-25 17:25 ` Arturo Borrero Gonzalez
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=20141125154341.GA3579@salvia \
--to=pablo@netfilter.org \
--cc=arturo.borrero.glez@gmail.com \
--cc=netfilter-devel@vger.kernel.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.