linux/drivers/net/wireless/ath/wcn36xx
Fengwei Yin 2ec7752fd9 wcn36xx: handle rx skb allocation failure to avoid system crash
Lawrence reported that git clone could make system crash on a
Qualcomm ARM soc based device (DragonBoard, 1G memory without
swap) running 64bit Debian.

It's turned out the crash is related with rx skb allocation
failure. git could consume more than 600MB anonymous memory.
And system is in extremely memory shortage case.

But driver didn't handle the rx allocation failure case. This patch
doesn't submit skb to upper layer if rx skb allocation fails.
Instead, it reuse the old skb for rx DMA again. It's more like
drop the packets if system is in memory shortage case.

With this change, git clone is OOMed instead of system crash.

Reported-by: King, Lawrence <lking@qti.qualcomm.com>
Signed-off-by: Fengwei Yin <fengwei.yin@linaro.org>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2016-01-07 15:16:17 +02:00
..
debug.c wcn36xx: harmless memory corruption bug in debugfs 2013-11-11 14:42:46 -05:00
debug.h
dxe.c wcn36xx: handle rx skb allocation failure to avoid system crash 2016-01-07 15:16:17 +02:00
dxe.h wcn36xx: introduce per-channel ring buffer locks 2015-10-28 20:58:06 +02:00
hal.h wcn36xx: introduce WCN36XX_HAL_AVOID_FREQ_RANGE_IND 2015-11-30 14:36:46 +02:00
Kconfig
main.c mac80211: allow to transmit A-MSDU within A-MPDU 2015-09-22 15:21:23 +02:00
Makefile
pmc.c
pmc.h
smd.c wcn36xx: use new response format for wcn3620 remove_bsskey 2015-11-30 14:37:29 +02:00
smd.h wcn36xx: handle new hal response format 2015-11-30 14:36:55 +02:00
txrx.c wcn36xx: initiate TX BA sessions 2015-01-23 19:12:12 +02:00
txrx.h wcn36xx: let device generate qos seq numbers 2015-01-23 19:11:58 +02:00
wcn36xx.h wcn36xx: initiate TX BA sessions 2015-01-23 19:12:12 +02:00