From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758861AbdAICDW (ORCPT ); Sun, 8 Jan 2017 21:03:22 -0500 Received: from mail-oi0-f68.google.com ([209.85.218.68]:34762 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753158AbdAICDU (ORCPT ); Sun, 8 Jan 2017 21:03:20 -0500 Subject: Re: BUG: 4.10 rtlwifi regression - NULL pointer dereference To: lkml@pengaru.com, linux-kernel@vger.kernel.org References: <20170109014150.GD4623@shells.gnugeneration.com> Cc: pkshih@realtek.com, Linus Torvalds From: Larry Finger Message-ID: <32f982bb-a437-1f40-5306-1069ee8311f9@lwfinger.net> Date: Sun, 8 Jan 2017 20:03:18 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <20170109014150.GD4623@shells.gnugeneration.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/08/2017 07:41 PM, lkml@pengaru.com wrote: > Hello list, > > Gave 4.10-rc2 a shot today using the attached config. The kernel panics > with a NULL pointer dereference upon starting dhclient after > wpa_supplicant. > > The network device is a USB dongle: > Bus 002 Device 002: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS] > > Reverting 'ba9f93f rtlwifi: Fix enter/exit power_save' prevents the > crash. > > Sorry I don't have a verbatim capture of the panic, but I was able to > catch the relevant parts and rtl_lps_leave() is dereferencing a NULL hw, > below setup_arp_tx() and rtl_is_special_data(). That's what led me to > reverting ba9f93f since it clearly plays with that stuff. > > FWIW machine is a plain X61s thinkpad, 1.8Ghz. > You need the patch from http://marc.info/?l=linux-wireless&m=148234081512703&w=2. It was pushed with the notation that it needed to be included in 4.10; however, it has not yet percolated through the system. Larry