* Bug report: Segfault on nested sets with prefixes
@ 2015-09-06 19:48 Wilmer van der Gaast
2015-09-07 18:49 ` Pablo Neira Ayuso
0 siblings, 1 reply; 3+ messages in thread
From: Wilmer van der Gaast @ 2015-09-06 19:48 UTC (permalink / raw)
To: netfilter-devel
Hello,
The following ruleset causes a segfault:
#! /usr/sbin/nft -f
flush table inet filter
define test1 = {
1.1.1.0/24,
}
define test2 = {
$test1,
2.2.2.0/24,
}
table inet filter {
chain input {
type filter hook input priority 0;
ip saddr $test2 counter;
}
}
Either removing the /24s to make them addresses instead of prefixes, or
including test1 instead of test2, avoids the crash.
Backtrace from valgrind:
==21601== Process terminating with default action of signal 11 (SIGSEGV)
==21601== Access not within mapped region at address 0x1D
==21601== at 0x54C2EB0: __gmpz_cmp (in
/usr/lib/x86_64-linux-gnu/libgmp.so.10.2.0)
==21601== by 0x416CFA: ei_lookup.isra.0 (segtree.c:121)
==21601== by 0x417040: ei_insert (segtree.c:189)
==21601== by 0x417040: set_to_segtree (segtree.c:339)
==21601== by 0x417040: set_to_intervals (segtree.c:440)
==21601== by 0x406652: do_add_set (rule.c:659)
==21601== by 0x406978: do_add_table (rule.c:679)
==21601== by 0x406978: do_command_add (rule.c:695)
==21601== by 0x407AEB: do_command (rule.c:1024)
==21601== by 0x4060A5: nft_netlink (main.c:194)
==21601== by 0x4060A5: nft_run (main.c:235)
==21601== by 0x405C17: main (main.c:360)
Is this the right place to report issues like this?
Kind regards,
Wilmer van der Gaast.
--
+-------- .''`. - -- ---+ + - -- --- ---- ----- ------+
| wilmer : :' : gaast.net | | OSS Programmer www.bitlbee.org |
| lintux `. `~' debian.org | | Full-time geek wilmer.gaast.net |
+--- -- - ` ---------------+ +------ ----- ---- --- -- - +
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bug report: Segfault on nested sets with prefixes
2015-09-06 19:48 Bug report: Segfault on nested sets with prefixes Wilmer van der Gaast
@ 2015-09-07 18:49 ` Pablo Neira Ayuso
2015-09-09 10:02 ` Wilmer van der Gaast
0 siblings, 1 reply; 3+ messages in thread
From: Pablo Neira Ayuso @ 2015-09-07 18:49 UTC (permalink / raw)
To: Wilmer van der Gaast; +Cc: netfilter-devel
On Sun, Sep 06, 2015 at 08:48:32PM +0100, Wilmer van der Gaast wrote:
> Hello,
>
> The following ruleset causes a segfault:
>
> #! /usr/sbin/nft -f
>
> flush table inet filter
>
> define test1 = {
> 1.1.1.0/24,
> }
>
> define test2 = {
> $test1,
> 2.2.2.0/24,
> }
>
> table inet filter {
> chain input {
> type filter hook input priority 0;
> ip saddr $test2 counter;
> }
> }
>
> Either removing the /24s to make them addresses instead of prefixes,
> or including test1 instead of test2, avoids the crash.
>
> Backtrace from valgrind:
>
> ==21601== Process terminating with default action of signal 11 (SIGSEGV)
> ==21601== Access not within mapped region at address 0x1D
> ==21601== at 0x54C2EB0: __gmpz_cmp (in
> /usr/lib/x86_64-linux-gnu/libgmp.so.10.2.0)
> ==21601== by 0x416CFA: ei_lookup.isra.0 (segtree.c:121)
> ==21601== by 0x417040: ei_insert (segtree.c:189)
> ==21601== by 0x417040: set_to_segtree (segtree.c:339)
> ==21601== by 0x417040: set_to_intervals (segtree.c:440)
> ==21601== by 0x406652: do_add_set (rule.c:659)
> ==21601== by 0x406978: do_add_table (rule.c:679)
> ==21601== by 0x406978: do_command_add (rule.c:695)
> ==21601== by 0x407AEB: do_command (rule.c:1024)
> ==21601== by 0x4060A5: nft_netlink (main.c:194)
> ==21601== by 0x4060A5: nft_run (main.c:235)
> ==21601== by 0x405C17: main (main.c:360)
>
> Is this the right place to report issues like this?
Please, file a bug into Netfilter's bugzilla:
https://bugzilla.netfilter.org/
we'll look into that as soon as possible, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bug report: Segfault on nested sets with prefixes
2015-09-07 18:49 ` Pablo Neira Ayuso
@ 2015-09-09 10:02 ` Wilmer van der Gaast
0 siblings, 0 replies; 3+ messages in thread
From: Wilmer van der Gaast @ 2015-09-09 10:02 UTC (permalink / raw)
To: Pablo Neira Ayuso, netfilter-devel
Hello Pablo,
On 07-09-15 19:49, Pablo Neira Ayuso wrote:
>
> Please, file a bug into Netfilter's bugzilla:
>
> https://bugzilla.netfilter.org/
>
Done: https://bugzilla.netfilter.org/show_bug.cgi?id=1028
Sorry, I didn't know about the Bugzilla. :-(
Wilmer v/d Gaast.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-09-09 10:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-06 19:48 Bug report: Segfault on nested sets with prefixes Wilmer van der Gaast
2015-09-07 18:49 ` Pablo Neira Ayuso
2015-09-09 10:02 ` Wilmer van der Gaast
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).