netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Regression?] iptables broken on 32bit with pre-4.7-rc
@ 2016-05-26  5:52 John Stultz
  2016-05-26  9:51 ` Florian Westphal
  0 siblings, 1 reply; 3+ messages in thread
From: John Stultz @ 2016-05-26  5:52 UTC (permalink / raw)
  To: Florian Westphal, Pablo Neira Ayuso; +Cc: lkml, netfilter-devel

Hey Florian, Pablo,

In updating a 32bit arm device from 4.6 to Linus' current HEAD, I
noticed I was having some trouble with networking, and realized that
/proc/net/ip_tables_names was suddenly empty.

Digging through the registration process, it seems we're catching on the:

       if (strcmp(t->u.user.name, XT_STANDARD_TARGET) == 0 &&
           target_offset + sizeof(struct xt_standard_target) != next_offset)
               return -EINVAL;

check added in 7ed2abddd20cf ("netfilter: x_tables: check standard
target size too").

Where next_offset seems to be 4 bytes larger then the the offset +
standard_target struct size.

Commenting out those checks (the commit doesn't revert cleanly), seems
to get things going again for me.

I'm not exactly sure how the next_offset value is set, so I'm hoping
the proper fix is more obvious to one of you.

thanks
-john

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-05-26 21:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-26  5:52 [Regression?] iptables broken on 32bit with pre-4.7-rc John Stultz
2016-05-26  9:51 ` Florian Westphal
2016-05-26 21:00   ` John Stultz

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).