Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5572931imm; Tue, 19 Jun 2018 12:40:37 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJDrVfivvSSL6B+vltvs0xexptSeF8nX++dL/FCBlXZdwfvwoYY5Yv7fomJUB6IToy85bTr X-Received: by 2002:a17:902:600a:: with SMTP id r10-v6mr20557602plj.70.1529437237157; Tue, 19 Jun 2018 12:40:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529437237; cv=none; d=google.com; s=arc-20160816; b=XAHCE/RpDsh4mYbsqfF0H1mNP3R/biLz/2Y8L9UdNw0CqWmrxmKmSa98Tj3qpzqO7t 5ESIbeMYTbROXMXW2YMw2Y50KMB/AwB+gEA9j6RNYbXQOE0A218G1NCHKncaRHP11tdr sdAqsgQ4tgPwU4sggp5TjMhclGbpGQ9Bw5pBYl+VddEZniGK2i8S1clTDWIbMEy+HbWb /SakFJ+HpDucA+Isq/9e6RQ1rEDIeH297Bh/N4Cnlnec4vYsMgen12m0xu6L2pK9Kts2 pG8/5fTkkFimQyRUNdiKvAzKMW+QA2E5WoAtr/AJJSUj4LQfAFg7AG+UXdnkqg9m3vUx tkeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=mHGe3Lxx/v8t1FFSvVu1pq8Re61n2BMj7k+bxayZ8mQ=; b=v3CdPxfexZ6nKFXtJFkmv2Oxno+tMoki5udJJdS1cjau/GBvKCRdqP5TFwHJ306knz oHcTi5y80CVzeyFxgts//+G19gzZCi8Hsf1jjPYP93PymNwWAq0tCiRdp31fT4yjtbjj k4bD/KtzZxzhR4DjB7F4xH97eJ3YzpYpGBHYEcYHZb1aSJizUmZUVXYpH5Y0c819jjrU js9zTUebNVCiBG7EuBqVonwqAtjgIyTUF836v6mynI9uI/xaYtYYT0iLvDKB+jGC0fvh 68aAjIb8GHNBtVnz3hbAJ2VkbqfoIJjpp4YcpxZUmkPJ35RYIJiKAlAbFlV/R7Hfvgqb mzoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="WwWGs6k/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u11-v6si362531pgq.480.2018.06.19.12.40.07; Tue, 19 Jun 2018 12:40:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="WwWGs6k/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030490AbeFSThq (ORCPT + 99 others); Tue, 19 Jun 2018 15:37:46 -0400 Received: from mail-vk0-f66.google.com ([209.85.213.66]:39162 "EHLO mail-vk0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030305AbeFSTho (ORCPT ); Tue, 19 Jun 2018 15:37:44 -0400 Received: by mail-vk0-f66.google.com with SMTP id r83-v6so533072vkf.6; Tue, 19 Jun 2018 12:37:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=mHGe3Lxx/v8t1FFSvVu1pq8Re61n2BMj7k+bxayZ8mQ=; b=WwWGs6k/x/vdSexd6GuTKo/FqmPAol/t4GY76hhoxPDQrMqh9CWv+dQ5priM4uQuWI jBcbMSRDa5CA5EuBqUUf6zPkyf2l0PCgRfosZoy0qneBIya9AWDH00+yJnNskdbqZ0EV Qs95h3cNvVcreZBDFf2bultR6Xz+XIq2Pyrvi2LZ1Mudnq6tSDc1fupnv4mjTgP2quRD 20vu9x4fii5ul+/AuZpFlAlsTZhxodHxvw4dO+PVZLpLkwNyEWf0ArcrpFNZBDzBul06 eAasiFh3tr44HgBoXljhzoHBY7NYAMBU4czXQMMyCPY5Gc8KeBUWezUUemhgETgfucPB /kpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=mHGe3Lxx/v8t1FFSvVu1pq8Re61n2BMj7k+bxayZ8mQ=; b=lZGScfcMmLDSK+MZAlpiQehv39S22fGY5ig5cy71R2IoH2trwKjVaw9nCgTO4RIBjq /joxam/QsYHGIUsQpLCZva9WGk+UlutbseWZWbwHthyataoGlj04itBTZBQJioCgn3Sn PxAzlkTf2k4AM2ekCn3S2LZDlIEhEZ2l+xcvNXlyeis/riTls1PBsceBTzeNf1OM8VMr VBCr7FpzzHMq4xRXm8Ka5t+JxycPQvY5VXo+OPMi8iDKpJgncFAbP3MsLj9y4PgwF017 BrQBz6DmXN1RujmIdBXlS8tJoTH/6pD6k6pNLeDpsRzAWdUWd19da1ZRYwWlMdDxXS5d c6gA== X-Gm-Message-State: APt69E2nK5JGdoX8uzfGg7uJOWLIiD2axMF4omttT7O+4hLmS5iTVZPc PDDg+fI/yuNBvLuM7y2AMNU7VVolBnTdgEeuivI= X-Received: by 2002:a1f:860b:: with SMTP id i11-v6mr10494871vkd.15.1529437063076; Tue, 19 Jun 2018 12:37:43 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a67:8b02:0:0:0:0:0 with HTTP; Tue, 19 Jun 2018 12:37:42 -0700 (PDT) In-Reply-To: <5B29590C.3040800@broadcom.com> References: <1527493857-2220-1-git-send-email-michael@amarulasolutions.com> <5B0D1C9E.4000800@broadcom.com> <20180530090633.GA15390@panicking> <5B294920.5050909@broadcom.com> <87fu1izjcs.fsf@kamboji.qca.qualcomm.com> <5B29590C.3040800@broadcom.com> From: Andy Shevchenko Date: Tue, 19 Jun 2018 22:37:42 +0300 Message-ID: Subject: Re: [PATCH V2] brcmfmac: stop watchdog before detach and free everything To: Arend van Spriel Cc: Kalle Valo , Michael Trimarchi , Franky Lin , Hante Meuleman , Chi-Hsien Lin , Wright Feng , "David S. Miller" , Pieter-Paul Giesberts , Ian Molton , "open list:TI WILINK WIRELES..." , "open list:BROADCOM BRCM80211 IEEE802.11n WIRELESS DRIVER" , brcm80211-dev-list@cypress.com, netdev , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 19, 2018 at 10:27 PM, Arend van Spriel wrote: > On 6/19/2018 9:06 PM, Kalle Valo wrote: >> >> Arend van Spriel writes: >> >>> On 5/30/2018 11:06 AM, Michael Trimarchi wrote: >>>> >>>> Using built-in in kernel image without a firmware in filesystem >>>> or in the kernel image can lead to a kernel NULL pointer deference. >>>> Watchdog need to be stopped in brcmf_sdio_remove >>>> >>>> The system is going down NOW! >>>> [ 1348.110759] Unable to handle kernel NULL pointer dereference at >>>> virtual address 000002f8 >>>> Sent SIGTERM to all processes >>>> [ 1348.121412] Mem abort info: >>>> [ 1348.126962] ESR = 0x96000004 >>>> [ 1348.130023] Exception class = DABT (current EL), IL = 32 bits >>>> [ 1348.135948] SET = 0, FnV = 0 >>>> [ 1348.138997] EA = 0, S1PTW = 0 >>>> [ 1348.142154] Data abort info: >>>> [ 1348.145045] ISV = 0, ISS = 0x00000004 >>>> [ 1348.148884] CM = 0, WnR = 0 >>>> [ 1348.151861] user pgtable: 4k pages, 48-bit VAs, pgdp = >>>> (____ptrval____) >>>> [ 1348.158475] [00000000000002f8] pgd=0000000000000000 >>>> [ 1348.163364] Internal error: Oops: 96000004 [#1] PREEMPT SMP >>>> [ 1348.168927] Modules linked in: ipv6 >>>> [ 1348.172421] CPU: 3 PID: 1421 Comm: brcmf_wdog/mmc0 Not tainted >>>> 4.17.0-rc5-next-20180517 #18 >>>> [ 1348.180757] Hardware name: Amarula A64-Relic (DT) >>>> [ 1348.185455] pstate: 60000005 (nZCv daif -PAN -UAO) >>>> [ 1348.190251] pc : brcmf_sdiod_freezer_count+0x0/0x20 >>>> [ 1348.195124] lr : brcmf_sdio_watchdog_thread+0x64/0x290 >>>> [ 1348.200253] sp : ffff00000b85be30 >>>> [ 1348.203561] x29: ffff00000b85be30 x28: 0000000000000000 >>>> [ 1348.208868] x27: ffff00000b6cb918 x26: ffff80003b990638 >>>> [ 1348.214176] x25: ffff0000087b1a20 x24: ffff80003b94f800 >>>> [ 1348.219483] x23: ffff000008e620c8 x22: ffff000008f0b660 >>>> [ 1348.224790] x21: ffff000008c6a858 x20: 00000000fffffe00 >>>> [ 1348.230097] x19: ffff80003b94f800 x18: 0000000000000001 >>>> [ 1348.235404] x17: 0000ffffab2e8a74 x16: ffff0000080d7de8 >>>> [ 1348.240711] x15: 0000000000000000 x14: 0000000000000400 >>>> [ 1348.246018] x13: 0000000000000400 x12: 0000000000000001 >>>> [ 1348.251324] x11: 00000000000002c4 x10: 0000000000000a10 >>>> [ 1348.256631] x9 : ffff00000b85bc40 x8 : ffff80003be11870 >>>> [ 1348.261937] x7 : ffff80003dfc7308 x6 : 000000078ff08b55 >>>> [ 1348.267243] x5 : 00000139e1058400 x4 : 0000000000000000 >>>> [ 1348.272550] x3 : dead000000000100 x2 : 958f2788d6618100 >>>> [ 1348.277856] x1 : 00000000fffffe00 x0 : 0000000000000000 >>> >>> >>> Forgot about this one. >>> >>> Acked-by: Arend van Spriel >> >> >> Should this go to 4.18? > > > It is a bit of a corner case, but yeah let's do that. > > Regards, > Arend Guys, sorry, didn't have time to test. Do it ASAP. -- With Best Regards, Andy Shevchenko