openwrtv4/target/linux/generic
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
..
base-files update the /init file to start /sbin/init 2013-03-13 18:11:13 +00:00
files generic: ar8216: add AR8337N switch support 2013-11-29 20:18:48 +00:00
image rename target/linux/generic-2.6 to generic 2010-06-26 20:42:58 +00:00
patches-3.3 kernel: refresh patches 2013-10-02 22:26:43 +00:00
patches-3.6 kernel: refresh patches 2013-10-02 22:26:43 +00:00
patches-3.8 kernel: refresh patches 2013-10-02 22:26:43 +00:00
patches-3.9 kernel: refresh patches 2013-10-02 22:26:43 +00:00
patches-3.10 generic: workaround arptables arpt_arp structure padding issue (#14577) 2013-12-06 15:42:35 +00:00
patches-3.12 refresh patch 2013-11-27 12:31:05 +00:00
config-3.3 kernel: add some config options 2013-11-03 20:20:14 +00:00
config-3.6 kernel: add some config options 2013-11-03 20:20:14 +00:00
config-3.8 kernel: refresh kernel configs with kconfig.pl 2013-11-04 18:37:03 +00:00
config-3.9 kernel: add some config options 2013-11-03 20:20:14 +00:00
config-3.10 kernel: add some config options 2013-11-06 08:19:24 +00:00
config-3.12 kernel: refresh kernel configs with kconfig.pl 2013-11-30 18:31:10 +00:00
PATCHES kernel: update PATCHES with a stricter policy 2013-07-09 20:52:07 +00:00