Jo-Philipp Wich 7d725aab9a generic: workaround arptables arpt_arp structure padding issue (#14577)
Linaro GCC 4.6-2013.05 incorrectly pads the arpt_arp structure on
at least the ar71xx target, resulting in a two bytes shorter struct
in the kernel compared to what arptables userspace expects.

When comparing sizeof(struct arpt_arp) in kernel and userspace, the
former yields 162 byte, while the latter is 164 byte.

As a consequence, the subsequent target_offset and next_offset
members of the parent arpt_entry structure contain invalid values
when processed by the arptables binary, leading to bad memory
accesses in the populate_cache() procedure, subsequently causing a
segfault.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 38999
2013-12-06 15:42:35 +00:00
..
2013-12-01 09:59:53 +00:00
2013-12-01 09:59:53 +00:00
2013-11-17 17:14:32 +00:00
2013-10-23 12:51:05 +00:00
2013-12-01 09:59:53 +00:00
2013-12-01 09:59:53 +00:00
2013-12-01 18:12:57 +00:00
2013-12-01 09:59:53 +00:00
2013-12-01 09:59:53 +00:00
2013-11-10 09:57:07 +00:00
2013-12-01 09:59:53 +00:00
2013-09-26 17:53:20 +00:00
2013-12-01 09:59:53 +00:00
2013-12-01 09:59:53 +00:00
2013-12-01 09:59:53 +00:00
2013-12-01 09:59:53 +00:00
2013-12-01 09:59:53 +00:00
2013-09-26 17:53:20 +00:00
2013-12-01 09:59:53 +00:00
2013-12-01 09:59:53 +00:00
2013-12-01 09:59:53 +00:00
2013-09-26 17:53:20 +00:00
2013-09-26 17:53:20 +00:00
2013-12-01 09:59:53 +00:00
2013-12-01 09:59:53 +00:00
2013-12-01 09:59:53 +00:00
2013-12-01 09:59:53 +00:00
2013-12-01 09:59:53 +00:00
2013-09-26 17:53:14 +00:00
2013-12-01 09:59:53 +00:00
2013-12-01 09:59:53 +00:00
2013-12-01 09:59:53 +00:00
2010-08-06 21:36:35 +00:00