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: 1147913 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=hisilicon.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="sMTj4uGJ"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 468pjs69Wsz9sNC for ; Fri, 16 Aug 2019 13:30:25 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Date:Message-ID:To:Subject:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=WDuux1aMqJOwpZkzMI5PCGl2Y0rmfFuNgAF1JMBLijs=; b=sMTj4uGJpIf25+/uJo2pbxIhua duZRzzca5nbgEr0YqUJi/RzIrh0ESX9OswDgdsZvmM+roZu2HQkj4x2pq+iarlRRYDOaM0BxtHoyl psUiYvcm1GisQjGOubidPCWFVvBA/jnERNNBZTdtAk6FE4EGtpgpTI/qaegVFcpOdlpA++nyWw293 AhlV+lL5yoft4Qnx2jk0Wr0tX4b/DOAQ1EaEirod7rc7gCeqfZygDWW60sh0WCP6rlFFDNIzbzVDv RAxOwuUP/KeG38Rkfg4U9zZ1NC6YLyi9hk/TvXNaoFLdv6g4gbC0z0zQQ2burYYXPCnExYRWIcm1f 9oRRMcrg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hySwX-0004N2-CO; Fri, 16 Aug 2019 03:30:21 +0000 Received: from szxga06-in.huawei.com ([45.249.212.32] helo=huawei.com) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hySwT-0004M8-Et for linux-arm-kernel@lists.infradead.org; Fri, 16 Aug 2019 03:30:19 +0000 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" 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190815_203017_670986_B409F890 X-CRM114-Status: UNSURE ( 9.20 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.1 (--) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-2.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [45.249.212.32 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.0 SPF_HELO_PASS SPF: HELO matches SPF record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: sashal@kernel.org, Salil Mehta , jinying@hisilicon.com, Tangkunshan , linux-pci@vger.kernel.org, John Garry , "Rafael J. Wysocki" , Linuxarm , Shameerali Kolothum Thodi , Linux Kernel Mailing List , huangdaode , "xuwei \(O\)" , Jonathan Cameron , Bjorn Helgaas , stable@vger.kernel.org, "Liguozhu \(Kenneth\)" , Zhangyi ac , Shiju Jose Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org 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(-)