mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-11-06 16:04:27 -05:00
Kernel 6.1 now has fortify_memcpy_chk() and it is causing the following
warning while trying to compile backports:
CC [M] /home/robimarko/Building/AX3600/ipq807x-5.15/build_dir/target-aarch64_cortex-a53_musl/linux-ipq807x_generic/backports-6.1.24/net/wireless/util.o
In file included from ./include/linux/string.h:253,
from /home/robimarko/Building/AX3600/ipq807x-5.15/build_dir/target-aarch64_cortex-a53_musl/linux-ipq807x_generic/backports-6.1.24/backport-include/linux/string.h:3,
from ./include/linux/bitmap.h:11,
from ./include/linux/cpumask.h:12,
from ./include/linux/smp.h:13,
from ./arch/arm64/include/asm/arch_timer.h:18,
from ./arch/arm64/include/asm/timex.h:8,
from ./include/linux/timex.h:67,
from ./include/linux/time32.h:13,
from ./include/linux/time.h:60,
from /home/robimarko/Building/AX3600/ipq807x-5.15/build_dir/target-aarch64_cortex-a53_musl/linux-ipq807x_generic/backports-6.1.24/backport-include/linux/time.h:3,
from ./include/linux/skbuff.h:15,
from /home/robimarko/Building/AX3600/ipq807x-5.15/build_dir/target-aarch64_cortex-a53_musl/linux-ipq807x_generic/backports-6.1.24/backport-include/linux/skbuff.h:3,
from ./include/linux/if_ether.h:19,
from /home/robimarko/Building/AX3600/ipq807x-5.15/build_dir/target-aarch64_cortex-a53_musl/linux-ipq807x_generic/backports-6.1.24/backport-include/linux/if_ether.h:3,
from ./include/linux/etherdevice.h:20,
from /home/robimarko/Building/AX3600/ipq807x-5.15/build_dir/target-aarch64_cortex-a53_musl/linux-ipq807x_generic/backports-6.1.24/backport-include/linux/etherdevice.h:3,
from /home/robimarko/Building/AX3600/ipq807x-5.15/build_dir/target-aarch64_cortex-a53_musl/linux-ipq807x_generic/backports-6.1.24/net/wireless/util.c:12:
In function 'fortify_memcpy_chk',
inlined from 'ieee80211_strip_8023_mesh_hdr' at /home/robimarko/Building/AX3600/ipq807x-5.15/build_dir/target-aarch64_cortex-a53_musl/linux-ipq807x_generic/backports-6.1.24/net/wireless/util.c:590:3:
./include/linux/fortify-string.h:404:25: error: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning]
404 | __write_overflow_field(p_size_field, size);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
This issue was fixed in the final version of
("wifi: mac80211: fix receiving A-MSDU frames on mesh interfaces") that was
merged upstream but we have a older version that is using:
memcpy(&payload.eth.h_dest, mesh_addr, 2 * ETH_ALEN);
instead of:
memcpy(&payload.eth, mesh_addr, 2 * ETH_ALEN);
So, lets just backport the merged version of patch to fix the issue.
Signed-off-by: Robert Marko <robimarko@gmail.com>
|
||
|---|---|---|
| .. | ||
| 110-mac80211_keep_keys_on_stop_ap.patch | ||
| 120-cfg80211_allow_perm_addr_change.patch | ||
| 210-ap_scan.patch | ||
| 301-mac80211-sta-randomize-BA-session-dialog-token-alloc.patch | ||
| 302-mac80211-minstrel_ht-fix-MINSTREL_FRAC-macro.patch | ||
| 303-mac80211-minstrel_ht-reduce-fluctuations-in-rate-pro.patch | ||
| 304-mac80211-minstrel_ht-rework-rate-downgrade-code-and-.patch | ||
| 305-mac80211-increase-quantum-for-airtime-scheduler.patch | ||
| 306-01-v6.2-wifi-mac80211-add-internal-handler-for-wake_tx_queue.patch | ||
| 306-02-v6.2-wifi-mac80211-add-wake_tx_queue-callback-to-drivers.patch | ||
| 306-03-v6.2-wifi-mac80211-Drop-support-for-TX-push-path.patch | ||
| 306-04-v6.2-wifi-realtek-remove-duplicated-wake_tx_queue.patch | ||
| 310-v6.2-mac80211-add-support-for-restricting-netdev-features.patch | ||
| 311-v6.2-wifi-mac80211-fix-and-simplify-unencrypted-drop-chec.patch | ||
| 312-v6.3-wifi-cfg80211-move-A-MSDU-check-in-ieee80211_data_to.patch | ||
| 313-v6.3-wifi-cfg80211-factor-out-bridge-tunnel-RFC1042-heade.patch | ||
| 314-v6.3-wifi-mac80211-remove-mesh-forwarding-congestion-chec.patch | ||
| 315-v6.3-wifi-mac80211-fix-receiving-A-MSDU-frames-on-mesh-in.patch | ||
| 316-v6.3-wifi-mac80211-add-a-workaround-for-receiving-non-sta.patch | ||
| 318-wifi-mac80211-fix-race-in-mesh-sequence-number-assig.patch | ||
| 319-wifi-mac80211-mesh-fast-xmit-support.patch | ||
| 320-wifi-mac80211-use-mesh-header-cache-to-speed-up-mesh.patch | ||
| 321-mac80211-fix-mesh-forwarding.patch | ||
| 322-wifi-mac80211-fix-mesh-path-discovery-based-on-unica.patch | ||
| 323-v6.3-wifi-mac80211-Add-VHT-MU-MIMO-related-flags-in-ieee8.patch | ||
| 324-v6.3-wifi-mac80211-Add-HE-MU-MIMO-related-flags-in-ieee80.patch | ||
| 325-wifi-mac80211-introduce-ieee80211_refresh_tx_agg_ses.patch | ||
| 326-wifi-mac80211-add-mesh-fast-rx-support.patch | ||
| 327-wifi-mac80211-add-support-for-letting-drivers-regist.patch | ||
| 329-wifi-mac80211-fix-receiving-mesh-packets-in-forwardi.patch | ||
| 330-wifi-ieee80211-correctly-mark-FTM-frames-non-buffera.patch | ||
| 331-wifi-mac80211-flush-queues-on-STA-removal.patch | ||
| 332-wifi-iwlwifi-mvm-support-flush-on-AP-interfaces.patch | ||
| 333-wifi-mac80211-add-flush_sta-method.patch | ||
| 334-wifi-iwlwifi-mvm-support-new-flush_sta-method.patch | ||
| 335-wifi-mac80211-add-LDPC-related-flags-in-ieee80211_bs.patch | ||
| 400-allow-ibss-mixed.patch | ||
| 500-mac80211_configure_antenna_gain.patch | ||
| 782-net-next-1-of-net-pass-the-dst-buffer-to-of_get_mac_address.patch | ||