From: Gerhard Wiesinger <lists@wiesinger.com>
To: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Cc: Willy Tarreau <w@1wt.eu>,
Linux Kernel Network Developers <netdev@vger.kernel.org>,
netfilter-devel@vger.kernel.org,
Greg KH <gregkh@linuxfoundation.org>,
linux-kernel@vger.kernel.org,
Andrew Morton <akpm@linux-foundation.org>,
torvalds@linux-foundation.org, stable@vger.kernel.org,
lwn@lwn.net, Jiri Slaby <jslaby@suse.cz>
Subject: Re: Linux 4.2.4
Date: Sun, 25 Oct 2015 21:08:57 +0100 [thread overview]
Message-ID: <562D36D9.9060504@wiesinger.com> (raw)
In-Reply-To: <alpine.DEB.2.10.1510252032420.14141@blackhole.kfki.hu>
On 25.10.2015 20:46, Jozsef Kadlecsik wrote:
> Hi,
>
> On Sun, 25 Oct 2015, Gerhard Wiesinger wrote:
>
>> On 25.10.2015 10:46, Willy Tarreau wrote:
>>> ipset *triggered* the problem. The whole stack dump would tell more.
>> OK, find the stack traces in the bug report:
>> https://bugzilla.redhat.com/show_bug.cgi?id=1272645
>>
>> Kernel 4.1.10 triggered also a kernel dump when playing with ipset commands
>> and IPv6, details in the bug report ....
> It seems to me it is an architecture-specific alignment issue. I don't
> have a Cortex-A7 ARM hardware and qemu doesn't seem to support it either,
> so I'm unable to reproduce it (ipset passes all my tests on my hardware,
> including more complex ones than what breaks here). My first wild guess is
> that the dynamic array of the element structure is not aligned properly.
> Could you give a try to the next patch?
>
> diff --git a/net/netfilter/ipset/ip_set_hash_gen.h b/net/netfilter/ipset/ip_set_hash_gen.h
> index afe905c..1cf357d 100644
> --- a/net/netfilter/ipset/ip_set_hash_gen.h
> +++ b/net/netfilter/ipset/ip_set_hash_gen.h
> @@ -1211,6 +1211,9 @@ static const struct ip_set_type_variant mtype_variant = {
> .same_set = mtype_same_set,
> };
>
> +#define IP_SET_BASE_ALIGN(dtype) \
> + ALIGN(sizeof(struct dtype), __alignof__(struct dtype))
> +
> #ifdef IP_SET_EMIT_CREATE
> static int
> IPSET_TOKEN(HTYPE, _create)(struct net *net, struct ip_set *set,
> @@ -1319,12 +1322,12 @@ IPSET_TOKEN(HTYPE, _create)(struct net *net, struct ip_set *set,
> #endif
> set->variant = &IPSET_TOKEN(HTYPE, 4_variant);
> set->dsize = ip_set_elem_len(set, tb,
> - sizeof(struct IPSET_TOKEN(HTYPE, 4_elem)));
> + IP_SET_BASE_ALIGN(IPSET_TOKEN(HTYPE, 4_elem)));
> #ifndef IP_SET_PROTO_UNDEF
> } else {
> set->variant = &IPSET_TOKEN(HTYPE, 6_variant);
> set->dsize = ip_set_elem_len(set, tb,
> - sizeof(struct IPSET_TOKEN(HTYPE, 6_elem)));
> + IP_SET_BASE_ALIGN(IPSET_TOKEN(HTYPE, 6_elem)));
> }
> #endif
> if (tb[IPSET_ATTR_TIMEOUT]) {
>
> If that does not solve it, then could you help to narrow down the issue?
> Does the bug still appear if your remove the counter extension of the set?
>
Hello Jozsef,
Patch applied well, compiling ...
Interesting, that it didn't happen before. Device is in production for
more than 2 month without any issue.
Also any idea regarding the second isssue? Or do you think it has the
same root cause?
Greetings from Vienna, Austria :-)
BTW: You can get the Banana Pi R1 for example at:
http://www.aliexpress.com/item/BPI-R1-Set-1-R1-Board-Clear-Case-5dB-Antenna-Power-Adapter-Banana-PI-R1-Smart/32362127917.html
I can really recommend it as a router. Power consumption is as less as
3W. Price is also IMHO very good.
Ciao,
Gerhard
next prev parent reply other threads:[~2015-10-25 20:09 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20151023003306.GA25388@kroah.com>
[not found] ` <562C83FD.6010402@wiesinger.com>
[not found] ` <20151025082547.GA22300@kroah.com>
[not found] ` <20151025090308.GA17656@1wt.eu>
[not found] ` <562CA13C.90500@wiesinger.com>
[not found] ` <20151025094634.GA6832@1wt.eu>
2015-10-25 10:48 ` Linux 4.2.4 Gerhard Wiesinger
2015-10-25 16:29 ` Greg KH
2015-10-25 17:14 ` Gerhard Wiesinger
2015-11-08 13:51 ` Gerhard Wiesinger
2015-11-08 17:20 ` Greg KH
2015-11-09 12:35 ` Gerhard Wiesinger
2015-11-09 12:41 ` Pablo Neira Ayuso
2015-10-25 19:46 ` Jozsef Kadlecsik
2015-10-25 20:08 ` Gerhard Wiesinger [this message]
2015-10-25 21:26 ` Gerhard Wiesinger
2015-10-25 21:53 ` Jozsef Kadlecsik
2015-10-26 7:27 ` Gerhard Wiesinger
2015-10-26 8:58 ` Jozsef Kadlecsik
2015-10-26 9:11 ` Gerhard Wiesinger
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=562D36D9.9060504@wiesinger.com \
--to=lists@wiesinger.com \
--cc=akpm@linux-foundation.org \
--cc=gregkh@linuxfoundation.org \
--cc=jslaby@suse.cz \
--cc=kadlec@blackhole.kfki.hu \
--cc=linux-kernel@vger.kernel.org \
--cc=lwn@lwn.net \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=stable@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
--cc=w@1wt.eu \
/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 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).