Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]:54848 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752194AbdASMsE (ORCPT ); Thu, 19 Jan 2017 07:48:04 -0500 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Subject: Re: mwifiex: remove redundant dma padding in AMSDU From: Kalle Valo In-Reply-To: <1484151084-7241-1-git-send-email-akarwar@marvell.com> References: <1484151084-7241-1-git-send-email-akarwar@marvell.com> To: Amitkumar Karwar Cc: , Cathy Luo , Nishant Sarmukadam , Xinming Hu , Amitkumar Karwar Message-Id: <20170119124804.2F9E5607F6@smtp.codeaurora.org> (sfid-20170119_134808_187510_E5B69BBB) Date: Thu, 19 Jan 2017 12:48:04 +0000 (UTC) Sender: linux-wireless-owner@vger.kernel.org List-ID: Amitkumar Karwar wrote: > From: Xinming Hu > > We already ensure 64 bytes alignment and add padding if required > during skb_aggr allocation. > > Alignment and padding in mwifiex_11n_form_amsdu_txpd() is redundant. > We may end up accessing more data than allocated size with this. > > This patch fixes following issue by removing redundant padding. > > [ 370.241338] skbuff: skb_over_panic: text:ffffffffc046946a len:3550 > put:72 head:ffff880000110000 data:ffff8800001100e4 tail:0xec2 end:0xec0 dev: > [ 370.241374] ------------[ cut here ]------------ > [ 370.241382] kernel BUG at net/core/skbuff.c:104! > 370.244032] Call Trace: > [ 370.244041] [] skb_put+0x44/0x45 > [ 370.244055] [] > mwifiex_11n_aggregate_pkt+0x1e9/0xa50 [mwifiex] > [ 370.244067] [] mwifiex_wmm_process_tx+0x44a/0x6b7 > [mwifiex] > [ 370.244074] [] ? 0xffffffffc0411eb8 > [ 370.244084] [] mwifiex_main_process+0x476/0x5a5 > [mwifiex] > [ 370.244098] [] mwifiex_main_process+0x5a3/0x5a5 > [mwifiex] > [ 370.244113] [] process_one_work+0x1a4/0x309 > [ 370.244123] [] worker_thread+0x20c/0x2ee > [ 370.244130] [] ? rescuer_thread+0x383/0x383 > [ 370.244136] [] ? rescuer_thread+0x383/0x383 > [ 370.244143] [] kthread+0x11c/0x124 > [ 370.244150] [] ? kthread_parkme+0x24/0x24 > [ 370.244157] [] ret_from_fork+0x3f/0x70 > [ 370.244168] [] ? kthread_parkme+0x24/0x24 > > Fixes: 84b313b35f8158d ("mwifiex: make tx packet 64 byte DMA aligned") > Signed-off-by: Xinming Hu > Signed-off-by: Amitkumar Karwar Patch applied to wireless-drivers-next.git, thanks. 5f0a221f59ad mwifiex: remove redundant dma padding in AMSDU -- https://patchwork.kernel.org/patch/9510541/ Documentation about submitting wireless patches and checking status from patchwork: https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches