From patchwork Thu Jul 19 20:02:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Tai X-Patchwork-Id: 946588 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-pci-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=oracle.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=oracle.com header.i=@oracle.com header.b="FAcTynpk"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41WlLB755Cz9s4Z for ; Fri, 20 Jul 2018 06:02:42 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727523AbeGSUrU (ORCPT ); Thu, 19 Jul 2018 16:47:20 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:57256 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727499AbeGSUrU (ORCPT ); Thu, 19 Jul 2018 16:47:20 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w6JJww2n148279; Thu, 19 Jul 2018 20:02:37 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id; s=corp-2018-07-02; bh=H+1yAfe+FAiQeJyxHAhuN6fHehVAaH8ynfU2TRcPQY8=; b=FAcTynpklM3yK3r/VgXsbEHGkU3fwFo5ePrNFo5x9CMuUev5yT3JE7JG+UzYviUmsEzS OCUgZL6VDkGNMMSNhwVrE2Kc7NXzS5TWPDQ2WumbDY9DmRj+mW3jxupdqWrtcnntDo6M 4Ag+oFDvB1zeb3ikA9SuWf8BjZfu2aBO5HKd7QoQtvIHf3Z1zF6KNCNB+oTNLyAzAkQM RtlFnGW8queKJaGhB7hJH6SpCbbs5fcTMoyrs6S2rVaNrHJkhhHVpnBB82TMRlGwEJT7 QbOJttJx6+KxM3QWkbiJg1eiYlVrKMpA/1nNrs6NwhWd2iYbeeBst4qHqr0JQYTA4xz/ eQ== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp2120.oracle.com with ESMTP id 2k9yjgrnm5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 19 Jul 2018 20:02:36 +0000 Received: from brm-x54-01.us.oracle.com (brm-x54-01.us.oracle.com [10.80.150.34]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w6JK2ZgK025513; Thu, 19 Jul 2018 20:02:35 GMT From: Thomas Tai To: thomas.tai@oracle.com, bhelgaas@google.com, keith.busch@intel.com Cc: linux-pci@vger.kernel.org, poza@codeaurora.org Subject: [PATCH V3, 0/1] PCI/AER: fix use-after-free in pcie_do_fatal_recovery Date: Thu, 19 Jul 2018 14:02:34 -0600 Message-Id: <1532030555-7177-1-git-send-email-thomas.tai@oracle.com> X-Mailer: git-send-email 1.8.3.1 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8959 signatures=668706 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=2 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=613 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807190209 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Hi Bjorn, I reworked the patch as suggested, would you please kindly review the patch? By the way, the use-after-free issue would not impact DPC, according to PCI Express Base Specification Revision 4.0 Version 0.3 The DPC "capability may be implemented by a Root Port or a Switch Downstream Port. It is not applicable to any other Device/Port type." The use-after-free only happens on a non-bridge device, so it won't impact root/switch port. Thank you very much. Thomas