From patchwork Sun Jun 17 11:23:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 10468837 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 D828D600CC for ; Sun, 17 Jun 2018 11:49:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C4A4E287AD for ; Sun, 17 Jun 2018 11:49:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B5B90287BD; Sun, 17 Jun 2018 11:49:19 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0E80A287AD for ; Sun, 17 Jun 2018 11:49:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F06186B0276; Sun, 17 Jun 2018 07:49:17 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id EB6086B0278; Sun, 17 Jun 2018 07:49:17 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DA4A16B0279; Sun, 17 Jun 2018 07:49:17 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pl0-f69.google.com (mail-pl0-f69.google.com [209.85.160.69]) by kanga.kvack.org (Postfix) with ESMTP id 953D36B0276 for ; Sun, 17 Jun 2018 07:49:17 -0400 (EDT) Received: by mail-pl0-f69.google.com with SMTP id q19-v6so8231691plr.22 for ; Sun, 17 Jun 2018 04:49:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:subject:to:cc:from:date :message-id:mime-version:content-transfer-encoding; bh=NFG9epfkQLqBKWv7VS/Tm3a8DTz7/0J+ZW5N+cJzCVo=; b=fH2fKDs7/uVeMcZiNf6So5rmlrXZcinZIZY1ETTFfrsftnMi9OqT+RGY6zdosww902 1xpy78wtldoFkhJJeT69gxpmw5rbpgtusY+64miBR5oFmrTlbgcRtM6RAPBN4qerctYK usvXImgOhnFi+B1p4dgFNuAXUoWnIdJKpl1lh7YKoTdQ+xwdX5uzbrLmUTYJhVmKd5cd lPF8kLuihCByM9yK8+64hZSxA/6P5Ra/UZu6MHQpQ4486Qvik+l6qPciCXI2U2J92boK f+n/O8RhVTU+K9U+El65ll7BMr4HSS1PS4hH9CnxFmc7o9Jd8LfqGDMvwiVDLUYeMlOT piRg== X-Gm-Message-State: APt69E2lFLuqg4kCbbg8xQNuOLqe1gwLn0caE4m/krIn4aZiFgEXVAHe aUVajg8CJRnfIeGuD62H+COmg1U10Qmp9HpgD7R9+Y73V0dmGqv414bjcOWs3C9TRAc7BEn/YSg MpLBSEKb8ZhNr4klfPMfXu2UxWwitE2CrV9z6ZQamlZ6xkZ8bpbMjWoEYcCd1AaY= X-Received: by 2002:a63:b008:: with SMTP id h8-v6mr7673792pgf.137.1529236157160; Sun, 17 Jun 2018 04:49:17 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKVdxjodAB0p8zGe2RH5zAQRgWjerjmw7coQDxdP6OmAEMALOZLScn4Omm9em3Q3htNSgIN X-Received: by 2002:a63:b008:: with SMTP id h8-v6mr7673769pgf.137.1529236156319; Sun, 17 Jun 2018 04:49:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529236156; cv=none; d=google.com; s=arc-20160816; b=U9aXUHEp1DYOmaMdPyEYkOE5VVPCx0y7Q/mehdJiexztr6NwmxpMsRJOgvDSBxcsmQ SPEzATMbVebGYNhHg5vRhQlJdRSrVoDk+DtJgCopbU5AGxXlOOjJcsrnvLnb4P6bVMw4 /UqpB/s6DNi7s80Jfri2RjRhqduhQ0SbDh+YwFG8Ebf9AAqzfU8PaeVRKjcrJCXWu3SX dQeg6JWcOnx7cEKQuHHv1YwIxu/8FZQ1QbRmver2bBQr8A6xx2rkuJVNx8l78YfMFgOl nuO54br7FHDWPv6QOUdtFym7EDFnhRkkgvdB7YBsQnpL/kSeCuEdmgHrNUzQ4VG8/AqO Y9Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:from:cc:to :subject:dkim-signature:arc-authentication-results; bh=NFG9epfkQLqBKWv7VS/Tm3a8DTz7/0J+ZW5N+cJzCVo=; b=0GtpsEoO47AkFKCbqXzgAOZV/e2bYLb0mYhLlmFoRvSWFbv604Z1P94ZrFLf1yHUKx ycMXNxkPYM3fgSodM43UCUrOyLlaFrsE/foN9Bp5/WVlLccEApul1iEHO47oK0EaSrdK utCSW91ynQ5AhM1/aOQPFeF9a2AYEnTJwfjmuusF1bhJM67HfYbGzmLnsWpFKugJj2Jk KPmj4paiid68rczC7YBPY2IFufWVC1Cdh2XUh/VlkC9umajLdzwIlXlJgS6ElTKCXX9C iqerz6Fsbsq91frvwbrJcsmW8/SHK2xGocGlqQwPN6lShFEopEM+emU8QCWfKb1RhbR1 AIkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nJHU2wWb; spf=pass (google.com: domain of srs0=nxds=jd=linuxfoundation.org=gregkh@kernel.org designates 198.145.29.99 as permitted sender) smtp.mailfrom="SRS0=nXdS=JD=linuxfoundation.org=gregkh@kernel.org" Received: from mail.kernel.org (mail.kernel.org. [198.145.29.99]) by mx.google.com with ESMTPS id b3-v6si10231001pgr.495.2018.06.17.04.49.16 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Jun 2018 04:49:16 -0700 (PDT) Received-SPF: pass (google.com: domain of srs0=nxds=jd=linuxfoundation.org=gregkh@kernel.org designates 198.145.29.99 as permitted sender) client-ip=198.145.29.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nJHU2wWb; spf=pass (google.com: domain of srs0=nxds=jd=linuxfoundation.org=gregkh@kernel.org designates 198.145.29.99 as permitted sender) smtp.mailfrom="SRS0=nXdS=JD=linuxfoundation.org=gregkh@kernel.org" Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 561F6208E2; Sun, 17 Jun 2018 11:49:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1529236155; bh=XaYcD+aSIRZm8t/aLv1iWhyf24iQ5KGoHMhHcG3kakU=; h=Subject:To:Cc:From:Date:From; b=nJHU2wWb9/PLKr1fkFAadA9RFX6KWtNTW3oX/WBcVC7d70n4ij8KatLN+LPvM84uG Grn/Fj+eipvbF60bBcqXfgl2FlJYQQPJhT3r5rRkhfwpjcxAywcAHfMlpUAIzW1DME hL3JVD7d3SQGPrdrUo7NSPdncuwX0amKjQF+l1qM= Subject: Patch "x86/mpx/selftests: Adjust the self-test to fresh distros that export the MPX ABI" has been added to the 4.16-stable tree To: 20180514085908.GA12798@gmail.com, akpm@linux-foundation.org, alexander.levin@microsoft.com, dave.hansen@intel.com, dave.hansen@linux.intel.com, gregkh@linuxfoundation.org, linux-mm@kvack.org, linuxram@us.ibm.com, mingo@kernel.org, mpe@ellerman.id.au, peterz@infradead.org, shakeelb@google.com, shuah@kernel.org, tglx@linutronix.de, torvalds@linux-foundation.org Cc: From: Date: Sun, 17 Jun 2018 13:23:53 +0200 Message-ID: <152923463323863@kroah.com> MIME-Version: 1.0 X-stable: commit X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP This is a note to let you know that I've just added the patch titled x86/mpx/selftests: Adjust the self-test to fresh distros that export the MPX ABI to the 4.16-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: x86-mpx-selftests-adjust-the-self-test-to-fresh-distros-that-export-the-mpx-abi.patch and it can be found in the queue-4.16 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. From foo@baz Sun Jun 17 12:07:34 CEST 2018 From: Ingo Molnar Date: Mon, 14 May 2018 10:59:08 +0200 Subject: x86/mpx/selftests: Adjust the self-test to fresh distros that export the MPX ABI From: Ingo Molnar [ Upstream commit 73bb4d6cd192b8629c5125aaada9892d9fc986b6 ] Fix this warning: mpx-mini-test.c:422:0: warning: "SEGV_BNDERR" redefined Cc: Dave Hansen Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: akpm@linux-foundation.org Cc: dave.hansen@intel.com Cc: linux-mm@kvack.org Cc: linuxram@us.ibm.com Cc: mpe@ellerman.id.au Cc: shakeelb@google.com Cc: shuah@kernel.org Link: http://lkml.kernel.org/r/20180514085908.GA12798@gmail.com Signed-off-by: Ingo Molnar Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- tools/testing/selftests/x86/mpx-mini-test.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) Patches currently in stable-queue which might be from mingo@kernel.org are queue-4.16/locking-rwsem-add-a-new-rwsem_anonymously_owned-flag.patch queue-4.16/x86-pkeys-selftests-factor-out-instruction-page.patch queue-4.16/kthread-sched-wait-fix-kthread_parkme-wait-loop.patch queue-4.16/proc-kcore-don-t-bounds-check-against-address-0.patch queue-4.16/stop_machine-sched-fix-migrate_swap-vs.-active_balance-deadlock.patch queue-4.16/kthread-sched-wait-fix-kthread_parkme-completion-issue.patch queue-4.16/init-fix-false-positives-in-w-x-checking.patch queue-4.16/x86-pkeys-selftests-fix-pointer-math.patch queue-4.16/x86-pkeys-selftests-adjust-the-self-test-to-fresh-distros-that-export-the-pkeys-abi.patch queue-4.16/locking-percpu-rwsem-annotate-rwsem-ownership-transfer-by-setting-rwsem_owner_unknown.patch queue-4.16/x86-pkeys-selftests-add-a-test-for-pkey-0.patch queue-4.16/x86-pkeys-selftests-stop-using-assert.patch queue-4.16/sched-core-introduce-set_special_state.patch queue-4.16/x86-pkeys-selftests-save-off-prot-for-allocations.patch queue-4.16/x86-pkeys-selftests-remove-dead-debugging-code-fix-dprint_in_signal.patch queue-4.16/x86-selftests-add-mov_to_ss-test.patch queue-4.16/sched-debug-move-the-print_rt_rq-and-print_dl_rq-declarations-to-kernel-sched-sched.h.patch queue-4.16/x86-mpx-selftests-adjust-the-self-test-to-fresh-distros-that-export-the-mpx-abi.patch queue-4.16/x86-pkeys-selftests-add-prot_exec-test.patch queue-4.16/sched-deadline-make-the-grub_reclaim-function-static.patch queue-4.16/objtool-kprobes-x86-sync-the-latest-asm-insn.h-header-with-tools-objtool-arch-x86-include-asm-insn.h.patch queue-4.16/x86-pkeys-selftests-allow-faults-on-unknown-keys.patch queue-4.16/x86-pkeys-selftests-give-better-unexpected-fault-error-messages.patch queue-4.16/x86-pkeys-selftests-avoid-printf-in-signal-deadlocks.patch queue-4.16/efi-libstub-arm64-handle-randomized-text_offset.patch queue-4.16/x86-pkeys-selftests-fix-pkey-exhaustion-test-off-by-one.patch --- a/tools/testing/selftests/x86/mpx-mini-test.c +++ b/tools/testing/selftests/x86/mpx-mini-test.c @@ -368,6 +368,11 @@ static int expected_bnd_index = -1; uint64_t shadow_plb[NR_MPX_BOUNDS_REGISTERS][2]; /* shadow MPX bound registers */ unsigned long shadow_map[NR_MPX_BOUNDS_REGISTERS]; +/* Failed address bound checks: */ +#ifndef SEGV_BNDERR +# define SEGV_BNDERR 3 +#endif + /* * The kernel is supposed to provide some information about the bounds * exception in the siginfo. It should match what we have in the bounds @@ -419,8 +424,6 @@ void handler(int signum, siginfo_t *si, br_count++; dprintf1("#BR 0x%jx (total seen: %d)\n", status, br_count); -#define SEGV_BNDERR 3 /* failed address bound checks */ - dprintf2("Saw a #BR! status 0x%jx at %016lx br_reason: %jx\n", status, ip, br_reason); dprintf2("si_signo: %d\n", si->si_signo);