From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752127AbdLEBZB (ORCPT ); Mon, 4 Dec 2017 20:25:01 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:37139 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751754AbdLEBY6 (ORCPT ); Mon, 4 Dec 2017 20:24:58 -0500 X-Google-Smtp-Source: AGs4zMZQzBY1K3KsaOq6kfghlI78EJZWhcrhLsuoPJ5spdbxFhJJAT0pg0sDnakyctsUqGsEWohyDg== Date: Mon, 4 Dec 2017 17:24:54 -0800 From: Kees Cook To: Ingo Molnar Cc: Dave Airlie , Linus Torvalds , linux-kernel@vger.kernel.org Subject: [PATCH] locking/refcounts: Do not force refcount_t usage as GPL-only export Message-ID: <20171205012454.GA39249@beast> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The refcount_t protection on x86 was not intended to use the stricter GPL export. This adjusts the linkage again to avoid a regression in the availability of the refcount API. Reported-by: Dave Airlie Fixes: 7a46ec0e2f48 ("locking/refcounts, x86/asm: Implement fast refcount overflow protection") Cc: stable@vger.kernel.org Signed-off-by: Kees Cook --- arch/x86/mm/extable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/mm/extable.c b/arch/x86/mm/extable.c index 3321b446b66c..30bc4812ceb8 100644 --- a/arch/x86/mm/extable.c +++ b/arch/x86/mm/extable.c @@ -82,7 +82,7 @@ bool ex_handler_refcount(const struct exception_table_entry *fixup, return true; } -EXPORT_SYMBOL_GPL(ex_handler_refcount); +EXPORT_SYMBOL(ex_handler_refcount); /* * Handler for when we fail to restore a task's FPU state. We should never get -- 2.7.4 -- Kees Cook Pixel Security