From patchwork Wed Mar 1 20:33:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kees Cook X-Patchwork-Id: 9599107 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1931B600CB for ; Wed, 1 Mar 2017 20:34:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D3702853D for ; Wed, 1 Mar 2017 20:34:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0021A28544; Wed, 1 Mar 2017 20:34:08 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mother.openwall.net (mother.openwall.net [195.42.179.200]) by mail.wl.linuxfoundation.org (Postfix) with SMTP id AD64E2853D for ; Wed, 1 Mar 2017 20:34:06 +0000 (UTC) Received: (qmail 24214 invoked by uid 550); 1 Mar 2017 20:34:05 -0000 Mailing-List: contact kernel-hardening-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Delivered-To: mailing list kernel-hardening@lists.openwall.com Received: (qmail 24170 invoked from network); 1 Mar 2017 20:34:03 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=pkCVcuwxFHTRSypbRiWGl6a4k50QiZ8tqHddKzayEZs=; b=BXd6VKUGp55QErTsXu095l8JUO9RW9Jz59U83BOfhGn0r5WRYEWL9s49xWX/hXU+VI LkFWgexU+TlV/zekSIer3riUfdZ4Vj0b596pk+5A70L0BVeGzUoMTTa5n/nM+q+h8JhJ DH2DD+yBd/DZpJJ3Ag35dk0PI7xUZUyW8KHIY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=pkCVcuwxFHTRSypbRiWGl6a4k50QiZ8tqHddKzayEZs=; b=TKcj5neM1SknE366Br3F0nnzRw0D8pMdmKGc+eBZ7RhxsBCk1KP9VqU9ut9xXjPLBC jdOpPJ8ajxGv19kG26mZ6uPuEa2Q07i5gKqpwAKRWdvRkRu3Jq16kCKubLeHZo6AX809 Y9LPgOi3vm4dikD5biaN1RRMqGIRUSxKx2zul3iDZy9y1X4uxqpD+N/z5m38i2YTut6a jg5dSywD4Cxe6g1uz2ZIYSSlF1tCXSN4kRkh+u1juq6t63+3EIHXJW4LinZhLp7e0eRV oLieeaGF7fTZG/H9VJlcgwkhRgGm/+s7Xo06XKjjL9Q2YHo0mySgQIwgADy/iceL3wIS o4Ug== X-Gm-Message-State: AMke39mJ+CEe5sMk/IT6xgRZIm8QIYTR0n8HR/F/LjVjOu6o01n8QRuoB5M1gntYeBJE//A0 X-Received: by 10.84.215.215 with SMTP id g23mr12909399plj.159.1488400431172; Wed, 01 Mar 2017 12:33:51 -0800 (PST) Date: Wed, 1 Mar 2017 12:33:49 -0800 From: Kees Cook To: pageexec@freemail.hu Cc: spender@grsecurity.net, Mark Rutland , Hoeun Ryu , kernel-hardening@lists.openwall.com Message-ID: <20170301203349.GA42365@beast> MIME-Version: 1.0 Content-Disposition: inline Subject: [kernel-hardening] [PATCH] PCI: Fix typo in pax_open/close_kernel wrapping X-Virus-Scanned: ClamAV using ClamSMTP This fixes a mistaken double-open in PaX's constification coverage of cpcihp_zt5550. Signed-off-by: Kees Cook --- drivers/pci/hotplug/cpcihp_zt5550.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/hotplug/cpcihp_zt5550.c b/drivers/pci/hotplug/cpcihp_zt5550.c index 438f019..18c4d10 100644 --- a/drivers/pci/hotplug/cpcihp_zt5550.c +++ b/drivers/pci/hotplug/cpcihp_zt5550.c @@ -228,7 +228,7 @@ static int zt5550_hc_init_one(struct pci_dev *pdev, const struct pci_device_id * const_cast(zt5550_hpc_ops.enable_irq) = zt5550_hc_enable_irq; const_cast(zt5550_hpc_ops.disable_irq) = zt5550_hc_disable_irq; const_cast(zt5550_hpc_ops.check_irq) = zt5550_hc_check_irq; - pax_open_kernel(); + pax_close_kernel(); } else { info("using ENUM# polling mode"); }