linux_dsm_epyc7002/drivers/net/wireless/marvell
Mathias Krause 5c87a55adb mwifiex: remove misleading GFP_DMA flag in buffer allocations
The GFP_DMA flag is obviously misunderstood in the mwifiex driver. It's
meant for legacy ISA DMA memory mappings only -- the lower 16MB on x86.
That doesn't apply to PCIe or SDIO devices, I guess.

Remove the GFP_DMA flag to reduce the need to place the socket buffer
allocation into the low mem DMA area, which might already be in use by
other drivers.

This misuse was flagged by the PaX USERCOPY feature by chance, as it
detected the user copy operation from a DMA buffer in the recvfrom()
syscall path.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Tested-by: Dennis Wassenberg <dennis.wassenberg@secunet.com>
Cc: Amitkumar Karwar <akarwar@marvell.com>
Cc: Nishant Sarmukadam <nishants@marvell.com>
Cc: Xinming Hu <huxm@marvell.com>
Cc: Kalle Valo <kvalo@codeaurora.org>
Cc: Brad Spengler <spender@grsecurity.net>
Cc: PaX Team <pageexec@freemail.hu>
Acked-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2016-06-14 17:28:51 +03:00
..
libertas cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
libertas_tf cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
mwifiex mwifiex: remove misleading GFP_DMA flag in buffer allocations 2016-06-14 17:28:51 +03:00
Kconfig mwl8k: move under marvell vendor directory 2015-11-18 14:28:30 +02:00
Makefile mwl8k: move under marvell vendor directory 2015-11-18 14:28:30 +02:00
mwl8k.c cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00