Return-path: Received: from wolverine01.qualcomm.com ([199.106.114.254]:38168 "EHLO wolverine01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754767AbdBNSAB (ORCPT ); Tue, 14 Feb 2017 13:00:01 -0500 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Subject: Re: ath9k: Access rchan::buf only with per_cpu helper From: Kalle Valo In-Reply-To: <20170213155648.4821-1-sven@narfation.org> References: <20170213155648.4821-1-sven@narfation.org> To: Sven Eckelmann CC: , , , , , Sven Eckelmann , Akash Goel , "Nick Kossifidis" Message-ID: (sfid-20170214_190121_991714_4D1EE737) Date: Tue, 14 Feb 2017 09:59:48 -0800 Sender: linux-wireless-owner@vger.kernel.org List-ID: Sven Eckelmann wrote: > The relayfs was changed to use per CPU constructs to handle the rchan > buffers. But the users of the rchan buffers in other parts of the kernel > were not modified. This caused crashes like > > BUG: unable to handle kernel paging request at 00003a5198a0b910 > IP: [] ath_cmn_process_fft+0xea/0x610 > PGD 0 [ 179.522449] > Oops: 0000 [#1] SMP > Modules linked in: > CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.9.0-rc5 #1 > [...] > Call Trace: > [ 179.656426] [] ? ath_rx_tasklet+0x2f3/0xd10 > [] ? ath9k_tasklet+0x1b6/0x230 > [] ? tasklet_action+0xf1/0x100 > [] ? __do_softirq+0xef/0x284 > [] ? irq_exit+0xae/0xb0 > [] ? do_IRQ+0x4f/0xd0 > [] ? common_interrupt+0x82/0x82 > [ 179.703152] [] ? poll_idle+0x2d/0x57 > [] ? sched_clock+0x5/0x10 > [] ? cpuidle_enter_state+0xf6/0x2d0 > [] ? cpu_startup_entry+0x14e/0x230 > [] ? start_kernel+0x461/0x481 > [] ? early_idt_handler_array+0x120/0x120 > [] ? x86_64_start_kernel+0x14c/0x170 > Code: 31 db 41 be ff ff ff ff 4c 8b 26 48 8b 6e 08 49 8b 84 24 60 05 00 > 00 48 8b 00 0f b7 40 04 66 89 44 24 48 eb 11 48 8b 55 40 48 98 <48> > 8b 3c c2 e8 ad a0 a4 ff 01 c3 41 8d 56 01 be 00 02 00 00 48 > RIP [] ath_cmn_process_fft+0xea/0x610 > RSP > CR2: 00003a5198a0b910 > > Fixes: 017c59c042d0 ("relay: Use per CPU constructs for the relay channel buffer pointers") > Cc: Akash Goel > Cc: Nick Kossifidis > Reported-by: Mathias Kretschmer > Signed-off-by: Sven Eckelmann Patch applied to ath-next branch of ath.git, thanks. 07460b92db7c ath9k: Access rchan::buf only with per_cpu helper -- https://patchwork.kernel.org/patch/9570191/ Documentation about submitting wireless patches and checking status from patchwork: https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches