Received: by 10.213.65.68 with SMTP id h4csp871996imn; Tue, 27 Mar 2018 10:18:51 -0700 (PDT) X-Google-Smtp-Source: AIpwx48iPM+Wbwr3rUy1U21wZ5Mla5plhO7WTONFZb5krWUJcIadVYZsAnNY15daCS5NiAyu838H X-Received: by 10.98.244.6 with SMTP id r6mr148431pff.242.1522171131726; Tue, 27 Mar 2018 10:18:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522171131; cv=none; d=google.com; s=arc-20160816; b=00YWWhzg7AsGV2XJ6yiGwi0alVtlECDYJoRI9Pkx6bem4ueAWwnn5RQG4jqncLO1eh by9xQQVITDYupPCHL3OyMubx+99WErYdENw6imJrOCqjc/VZ9ZscX59peBw6eOR+0Yzv tHDQ24QC2DzRZhwty6zHzyWy3YD+FxqUHo/c02WBoBNJDknAfipdQ41yKchowxhLbWuv EDHuAaG6ALEu/YIwAjCuXtimnU/gJk8FkfM6Ar3vK0z/qjlx/oIiQpEEyhKb5NigFx92 xxIrGrCk9uY/LLYyhj23lJNDBNS+5pfP4uTJ/nhDNTf5cWIS6PQ4EJ2TXjcsdixMRijA 1Fcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=nZWe5EZQw20X0j/oKV28yHCFp+RJSXYirC0IxIpGAwI=; b=DogKcEPPCOxtE90cQgfrcCzwgxV6JkZQXTUM2wrVkg3YKXLZuUHI7lSb78CI1wZN5S bz49BT4wFb8Mpv7GGEkHLRrhmVroCU/6QKZQP9u0WTQ0QN2CGhlVKAgu77XsOu3ANKgd ztR4exf/OMrW+rgVsHxKtLCKHb4T80an10gmqPL93WHTSXWXkA7Sy6nCwN1zOUKudEyP oiAyfuqd9jG/n5+KqYGTrbfJU9LRrYBW3fCZD6VrqR006ih2llYmSi2UDJk8yCf1bREp bLjcq9YN/sRZZ/SK8yzPb8d0qdDoBrN1DoITKyib2P8aPVca5GRkvqcV1zyixG/Awlcp UO3A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 85si1223198pfz.271.2018.03.27.10.18.37; Tue, 27 Mar 2018 10:18:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753742AbeC0RRd (ORCPT + 99 others); Tue, 27 Mar 2018 13:17:33 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:46784 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755216AbeC0Qi3 (ORCPT ); Tue, 27 Mar 2018 12:38:29 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id A3CAEF8A; Tue, 27 Mar 2018 16:38:28 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dave Hansen , Thomas Gleixner , Andy Lutomirski , Borislav Petkov , Brian Gerst , Denys Vlasenko , "H. Peter Anvin" , Josh Poimboeuf , Linus Torvalds , Peter Zijlstra , Ingo Molnar Subject: [PATCH 4.14 098/101] x86/pkeys/selftests: Rename si_pkey to siginfo_pkey Date: Tue, 27 Mar 2018 18:28:10 +0200 Message-Id: <20180327162756.002131626@linuxfoundation.org> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180327162749.993880276@linuxfoundation.org> References: <20180327162749.993880276@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Dave Hansen commit 91c49c2deb96ffc3c461eaae70219d89224076b7 upstream. 'si_pkey' is now #defined to be the name of the new siginfo field that protection keys uses. Rename it not to conflict. Signed-off-by: Dave Hansen Acked-by: Thomas Gleixner Cc: Andy Lutomirski Cc: Borislav Petkov Cc: Brian Gerst Cc: Denys Vlasenko Cc: H. Peter Anvin Cc: Josh Poimboeuf Cc: Linus Torvalds Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20171111001231.DFFC8285@viggo.jf.intel.com Signed-off-by: Ingo Molnar Signed-off-by: Greg Kroah-Hartman --- tools/testing/selftests/x86/protection_keys.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) --- a/tools/testing/selftests/x86/protection_keys.c +++ b/tools/testing/selftests/x86/protection_keys.c @@ -250,7 +250,7 @@ void signal_handler(int signum, siginfo_ unsigned long ip; char *fpregs; u32 *pkru_ptr; - u64 si_pkey; + u64 siginfo_pkey; u32 *si_pkey_ptr; int pkru_offset; fpregset_t fpregset; @@ -292,9 +292,9 @@ void signal_handler(int signum, siginfo_ si_pkey_ptr = (u32 *)(((u8 *)si) + si_pkey_offset); dprintf1("si_pkey_ptr: %p\n", si_pkey_ptr); dump_mem(si_pkey_ptr - 8, 24); - si_pkey = *si_pkey_ptr; - pkey_assert(si_pkey < NR_PKEYS); - last_si_pkey = si_pkey; + siginfo_pkey = *si_pkey_ptr; + pkey_assert(siginfo_pkey < NR_PKEYS); + last_si_pkey = siginfo_pkey; if ((si->si_code == SEGV_MAPERR) || (si->si_code == SEGV_ACCERR) || @@ -306,7 +306,7 @@ void signal_handler(int signum, siginfo_ dprintf1("signal pkru from xsave: %08x\n", *pkru_ptr); /* need __rdpkru() version so we do not do shadow_pkru checking */ dprintf1("signal pkru from pkru: %08x\n", __rdpkru()); - dprintf1("si_pkey from siginfo: %jx\n", si_pkey); + dprintf1("pkey from siginfo: %jx\n", siginfo_pkey); *(u64 *)pkru_ptr = 0x00000000; dprintf1("WARNING: set PRKU=0 to allow faulting instruction to continue\n"); pkru_faults++;