lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sat, 14 May 2022 17:14:43 +0800 From: Ziyang Xuan <william.xuanziyang@...wei.com> To: <chandrashekar.devegowda@...el.com>, <linuxwwan@...el.com>, <chiranjeevi.rapolu@...ux.intel.com>, <haijun.liu@...iatek.com>, <m.chetan.kumar@...ux.intel.com>, <ricardo.martinez@...ux.intel.com>, <loic.poulain@...aro.org>, <ryazanov.s.a@...il.com>, <davem@...emloft.net>, <edumazet@...gle.com>, <kuba@...nel.org>, <pabeni@...hat.com>, <netdev@...r.kernel.org> CC: <linux-kernel@...r.kernel.org> Subject: [PATCH net-next] net: wwan: t7xx: fix GFP_KERNEL usage in spin_lock context t7xx_cldma_clear_rxq() call t7xx_cldma_alloc_and_map_skb() in spin_lock context, But __dev_alloc_skb() in t7xx_cldma_alloc_and_map_skb() uses GFP_KERNEL, that will introduce scheduling factor in spin_lock context. Replace GFP_KERNEL with GFP_ATOMIC to fix it. Fixes: 39d439047f1d ("net: wwan: t7xx: Add control DMA interface") Signed-off-by: Ziyang Xuan <william.xuanziyang@...wei.com> --- drivers/net/wwan/t7xx/t7xx_hif_cldma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wwan/t7xx/t7xx_hif_cldma.c b/drivers/net/wwan/t7xx/t7xx_hif_cldma.c index 46066dcd2607..54c34639f1a5 100644 --- a/drivers/net/wwan/t7xx/t7xx_hif_cldma.c +++ b/drivers/net/wwan/t7xx/t7xx_hif_cldma.c @@ -93,7 +93,7 @@ static void t7xx_cldma_gpd_set_next_ptr(struct cldma_gpd *gpd, dma_addr_t next_p static int t7xx_cldma_alloc_and_map_skb(struct cldma_ctrl *md_ctrl, struct cldma_request *req, size_t size) { - req->skb = __dev_alloc_skb(size, GFP_KERNEL); + req->skb = __dev_alloc_skb(size, GFP_ATOMIC); if (!req->skb) return -ENOMEM; -- 2.25.1
Powered by blists - more mailing lists