Bug 198701
Summary: | [ath9k_htc] WARNING: CPU: 1 PID: 0 at net/mac80211/rx.c:629 ieee80211_rx_napi+0x903/0x9c0 [mac80211] | ||
---|---|---|---|
Product: | Drivers | Reporter: | Gerardo Exequiel Pozzi (vmlinuz386) |
Component: | network-wireless | Assignee: | drivers_network-wireless (drivers_network-wireless) |
Status: | RESOLVED CODE_FIX | ||
Severity: | normal | CC: | johannes, kvalo, masashi.honma, nbd, raghujindia, ZeroBeat |
Priority: | P1 | ||
Hardware: | x86-64 | ||
OS: | Linux | ||
Kernel Version: | 4.14 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
Gerardo Exequiel Pozzi
2018-02-06 19:14:12 UTC
The trace comes from WARN_ON in kernel core file mac80211/rx.c From kernel version 4.14 static struct sk_buff * ieee80211_rx_monitor(struct ieee80211_local *local, struct sk_buff *origskb, struct ieee80211_rate *rate) { .. .. if (ieee80211_hw_check(&local->hw, RX_INCLUDES_FCS)) { if (unlikely(origskb->len <= FCS_LEN)) { /* driver bug */ WARN_ON(1); dev_kfree_skb(origskb); return NULL; } present_fcs_len = FCS_LEN; } } Warning trace is hit when skblen is less than 4(FCS_LEN) bytes. In the latest kernel 5.2 , I see checks around this code, maybe the problem might be fixed in latest. Please verify in latest kernel. Thanks. I can confirm this on ath9k_htc and several other drivers (rt2800usb, mt76, RTL8821AE): https://bugzilla.kernel.org/show_bug.cgi?id=202541#c100 I have encountered similar issue and fixed it on upstream. Patch 1/2 https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-testing.git/commit/?id=e01fddc19d215f6ad397894ec2a851d99bf154e2 Patch 2/2 https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-testing.git/commit/?id=cd486e627e67ee9ab66914d36d3127ef057cc010 Could you check with Linux 5.4-rc8 ? Sorry the patch is now just merged on wireless-testing branch. I will notify when it is merged on Linux kernel upstream. |