Author: nbd
Date: 2015-11-07 17:22:38 +0100 (Sat, 07 Nov 2015)
New Revision: 47416

Modified:
   trunk/target/linux/ar71xx/patches-4.1/910-unaligned_access_hacks.patch
Log:
ar71xx: fix alignment of struct arpt_arp (fixes #14577)

Signed-off-by: Felix Fietkau <[email protected]>

Modified: trunk/target/linux/ar71xx/patches-4.1/910-unaligned_access_hacks.patch
===================================================================
--- trunk/target/linux/ar71xx/patches-4.1/910-unaligned_access_hacks.patch      
2015-11-07 16:22:31 UTC (rev 47415)
+++ trunk/target/linux/ar71xx/patches-4.1/910-unaligned_access_hacks.patch      
2015-11-07 16:22:38 UTC (rev 47416)
@@ -891,3 +891,14 @@
  }
  
  static inline struct neighbour *___neigh_lookup_noref(
+--- a/include/uapi/linux/netfilter_arp/arp_tables.h
++++ b/include/uapi/linux/netfilter_arp/arp_tables.h
+@@ -68,7 +68,7 @@ struct arpt_arp {
+       __u8 flags;
+       /* Inverse flags */
+       __u16 invflags;
+-};
++} __attribute__((aligned(4));
+ 
+ /* Values for "flag" field in struct arpt_ip (general arp structure).
+  * No flags defined yet.
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to