From patchwork Fri Aug 16 03:29:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Xu X-Patchwork-Id: 11096721 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 57DB31395 for ; Fri, 16 Aug 2019 03:30:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 44A222881B for ; Fri, 16 Aug 2019 03:30:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 37AB92883C; Fri, 16 Aug 2019 03:30:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D848A2881B for ; Fri, 16 Aug 2019 03:30:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726549AbfHPDaP (ORCPT ); Thu, 15 Aug 2019 23:30:15 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:46698 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726465AbfHPDaP (ORCPT ); Thu, 15 Aug 2019 23:30:15 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id A2D90E5A7ACA03E00971; Fri, 16 Aug 2019 11:30:09 +0800 (CST) Received: from [127.0.0.1] (10.57.101.250) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.439.0; Fri, 16 Aug 2019 11:29:59 +0800 From: Wei Xu Subject: [GIT PULL] Hisilicon fixes for v5.3 To: , "arm@kernel.org" , "linux-arm-kernel@lists.infradead.org" , Olof Johansson , "Arnd Bergmann" CC: "xuwei (O)" , Linuxarm , "John Garry" , Bjorn Helgaas , , "Rafael J. Wysocki" , "Linux Kernel Mailing List" , Zhangyi ac , "Liguozhu (Kenneth)" , , huangdaode , Tangkunshan , Jonathan Cameron , Shameerali Kolothum Thodi , Salil Mehta , Shiju Jose , , Message-ID: <5D562335.7000902@hisilicon.com> Date: Fri, 16 Aug 2019 11:29:57 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 X-Originating-IP: [10.57.101.250] X-CFilter-Loop: Reflected Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi ARM-SoC team, Please consider to pull the following fixes. Thanks! Best Regards, Wei --- The following changes since commit 5f9e832c137075045d15cd6899ab0505cfb2ca4b: Linus 5.3-rc1 (2019-07-21 14:05:38 -0700) are available in the Git repository at: git://github.com/hisilicon/linux-hisi.git tags/hisi-fixes-for-5.3 for you to fetch changes up to 10e62b47973b0b0ceda076255bcb147b83e20517: bus: hisi_lpc: Add .remove method to avoid driver unbind crash (2019-08-13 14:54:34 +0800) ---------------------------------------------------------------- Hisilicon fixes for v5.3-rc - Fixed RCU usage in logical PIO - Added a function to unregister a logical PIO range in logical PIO to support the fixes in the hisi-lpc driver - Fixed and optimized hisi-lpc driver to avoid potential use-after-free and driver unbind crash ---------------------------------------------------------------- John Garry (5): lib: logic_pio: Fix RCU usage lib: logic_pio: Avoid possible overlap for unregistering regions lib: logic_pio: Add logic_pio_unregister_range() bus: hisi_lpc: Unregister logical PIO range to avoid potential use-after-free bus: hisi_lpc: Add .remove method to avoid driver unbind crash drivers/bus/hisi_lpc.c | 47 ++++++++++++++++++++++++++---- include/linux/logic_pio.h | 1 + lib/logic_pio.c | 73 +++++++++++++++++++++++++++++++++++------------ 3 files changed, 96 insertions(+), 25 deletions(-)