You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openwrt/package/network/utils
Jo-Philipp Wich cb7aa4b1fe ebtables: fix segmentation fault due to uninitialized extension data
The ebtables code relies on the `-nostartfiles` linker argument to execute the
extension modules' `_init()` functions automatically which is not working
reliably across all supported targets and gcc versions.

Running an ebtables executable linked this way just crashes with a segmentation
fault at runtime on program startup, e.g. on ARM architectures.

In order to fix the issue ...
 - remove the use of the -nostartfiles linker flag
 - rename the init procedures to a generic name without implicit semantics
 - explicitely annotate those init procedures as constructors

The patch has been taken from the Alpine Linux distribution at
http://git.alpinelinux.org/cgit/aports/tree/main/ebtables/fix-extension-init.patch

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years ago
..
arptables arptables: fix musl build issues 9 years ago
comgt treewide: replace nbd@openwrt.org with nbd@nbd.name 8 years ago
conntrack-tools treewide: replace jow@openwrt.org with jo@mein.io 8 years ago
curl curl: remove axtls config option, the library does not exist in our tree 8 years ago
dante treewide: replace jow@openwrt.org with jo@mein.io 8 years ago
ebtables ebtables: fix segmentation fault due to uninitialized extension data 8 years ago
iftop treewide: replace jow@openwrt.org with jo@mein.io 8 years ago
iperf treewide: replace nbd@openwrt.org with nbd@nbd.name 8 years ago
iperf3 treewide: replace nbd@openwrt.org with nbd@nbd.name 8 years ago
iproute2 iproute2: Add support for cake qdisc 8 years ago
ipset treewide: replace jow@openwrt.org with jo@mein.io 8 years ago
iptables iptables: using external kernel tree should not alter patch behaviour. 8 years ago
iputils treewide: replace jow@openwrt.org with jo@mein.io 8 years ago
iw treewide: replace nbd@openwrt.org with nbd@nbd.name 8 years ago
iwcap treewide: replace jow@openwrt.org with jo@mein.io 8 years ago
iwinfo package/*: update git urls for project repos 8 years ago
linux-atm linux-atm: activate format security checks 8 years ago
maccalc license info - revert r43155 10 years ago
nftables nftables: bump version 9 years ago
owipcalc treewide: replace jow@openwrt.org with jo@mein.io 8 years ago
resolveip treewide: replace jow@openwrt.org with jo@mein.io 8 years ago
rssileds license info - revert r43155 10 years ago
tcpdump treewide: replace nbd@openwrt.org with nbd@nbd.name 8 years ago
umbim package/*: update git urls for project repos 8 years ago
uqmi package/*: update git urls for project repos 8 years ago
wireless-tools treewide: replace nbd@openwrt.org with nbd@nbd.name 8 years ago
wpan-tools wpan-tools: bump to wpan-tools-0.5 9 years ago
wwan global: change my email address 8 years ago
xtables-addons xtables-addons: add missing dependency 8 years ago