From patchwork Wed Jul 25 15:48:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joerg Roedel X-Patchwork-Id: 10544229 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 48D0C139A for ; Wed, 25 Jul 2018 15:48:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 380D22A562 for ; Wed, 25 Jul 2018 15:48:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2BBF92A572; Wed, 25 Jul 2018 15:48:22 +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=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 755D02A56B for ; Wed, 25 Jul 2018 15:48:21 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 910FC6B0006; Wed, 25 Jul 2018 11:48:19 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 8BE426B0007; Wed, 25 Jul 2018 11:48:19 -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 786B86B0008; Wed, 25 Jul 2018 11:48:19 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by kanga.kvack.org (Postfix) with ESMTP id 178BF6B0006 for ; Wed, 25 Jul 2018 11:48:19 -0400 (EDT) Received: by mail-ed1-f71.google.com with SMTP id r9-v6so3276124edh.14 for ; Wed, 25 Jul 2018 08:48:19 -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:from:to:cc:subject:date :message-id; bh=xnjYSu9TP4e6QmtuKoJ3P+xd4e5Vh/bHyF9iUBUkSjY=; b=VLtZ01iGKt0m/y7A+QxKbYgmy2ggVj93PXvG0ClqAfEy/CFjZmq7w9JoKArPPlzK+o MMusD01y4dV/jkH9E9htoIQamsMBnsAtryINqND5uzTHSLcDi7qvFiGvY3Eayge4PzuM IdgdIIOZNUGCsVdp3hCwSHzweJ3uQGftAH+t0hZRYW6Sea51mZADLqtQkoHNsrIg8/1E mUp4hKhW8ZTxYS2/XjbMu8rfYTa9XuU0SiyXuo54XuqFP63OvwZTGMdSTMdZyG4zptN3 47aXP800t7qTwzjmkmPYjnA8ngAm77aiFAASyxAXtS5sr8EyXnW/wiKifvOolxP/lq4U YUbg== X-Gm-Message-State: AOUpUlFBjgbezjXxc+uMzCUD+kiSC8Ct9OiT4RqEEohP3hkNozagtzMd bI3/Sfy0lMDnS5JlQrSVY5HxqcQyfc2AheQ1KJOqAY+B1eAUw74wQZ7TJjN9ILYwDM35aTBv/nd ig5tS/drI28ucN4FdLKPr3VnrHTH+sER1XsX9OgOJgpHvArIqMzFzU0Ze0eLhhwRzJg== X-Received: by 2002:aa7:d385:: with SMTP id x5-v6mr24132294edq.104.1532533698399; Wed, 25 Jul 2018 08:48:18 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd4PJALjx1GmyiJrXPZ8pI2rjHdFjyrHBoQSLfVKgTOn++9UVZDDmcYloHAOMMqFDKSa0rj X-Received: by 2002:aa7:d385:: with SMTP id x5-v6mr24132252edq.104.1532533697644; Wed, 25 Jul 2018 08:48:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532533697; cv=none; d=google.com; s=arc-20160816; b=GrM4vAEgyLYiurjvax2zklOxYoYb5/OWZdpC73BIsgsLnUC0sglo6o/I9k+UyzIcLQ 4mjT3lexImbbQ8NXUOvx3qx+zJ+85FtG89hchsmuUxfXLuWeIDIOhKMllxKikPznl/Dp 5gkrolbYOcb22XCdiSsbzwQuPUi0jD1IwKGVECAB/8sZ9pAmxrhTSMMTw9/3hZIgxtR4 vIWJwGeFCmQvNIkSbcNhGL38jmx7f06REt+42EHYIMJ9LhwNBvUe1T30LjqAu6nOe9ts OQJ6Jmp47Arkx/EpLTvXacM06kstxdLLvghc8DUEPFZBPURMrhGoAb8Q85EWrfDj4KiF 3C3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=xnjYSu9TP4e6QmtuKoJ3P+xd4e5Vh/bHyF9iUBUkSjY=; b=Zyzq//nxY+I6wOo5dHUpoacdsxupbGer4/1qlqmwsUoBMUVfFwQ+c6tjTZnv18BaMQ 8XdqfmSAo3MlyuMd+R+Q4UsSL/T9T+OmChho76wPRPtA5raBjPPv6eypTLkcnM1FHP9s yEobm+lfMEErvY+Ry85XbpqFSsbWdT23Lhmf916ytlIMKDHJf85NPfsrNvuJKXMdsQ21 Oh8DE72poYeg1aG3odEWbDN/u9oJkELpkvMQSEkWnDEoZTYznsKZL+YU01HlvuNABZkE sXgbhc5D7KznfDuj1ChGe3Bv3iHEsbjXETs+/ah1VmrbbELoCAsGPfT3t4sBax1RtAbS YylA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@8bytes.org header.s=mail-1 header.b=m0MgJGGL; spf=pass (google.com: domain of joro@8bytes.org designates 2a01:238:4383:600:38bc:a715:4b6d:a889 as permitted sender) smtp.mailfrom=joro@8bytes.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: from theia.8bytes.org (8bytes.org. [2a01:238:4383:600:38bc:a715:4b6d:a889]) by mx.google.com with ESMTPS id f12-v6si6846451edq.89.2018.07.25.08.48.17 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Jul 2018 08:48:17 -0700 (PDT) Received-SPF: pass (google.com: domain of joro@8bytes.org designates 2a01:238:4383:600:38bc:a715:4b6d:a889 as permitted sender) client-ip=2a01:238:4383:600:38bc:a715:4b6d:a889; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@8bytes.org header.s=mail-1 header.b=m0MgJGGL; spf=pass (google.com: domain of joro@8bytes.org designates 2a01:238:4383:600:38bc:a715:4b6d:a889 as permitted sender) smtp.mailfrom=joro@8bytes.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: by theia.8bytes.org (Postfix, from userid 1000) id C280F29B; Wed, 25 Jul 2018 17:48:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=8bytes.org; s=mail-1; t=1532533696; bh=nN29WtP51d8nkZ63nhGchAFE+Rs95z0ByOm5HC0RsXE=; h=From:To:Cc:Subject:Date:From; b=m0MgJGGL6xMKXbiElMDb43YLnhwXzKIa36SQSiAKOZK6Ct8dYK6HdqI1RA8Xpe+dJ 96mWLdTtKczvYowi9y94JMyecqlyqX984eUlhLEj3DdFhkJ0zKc+t6mTQSuIx6jqJl 52mr/cIoVDbXeQKZrvAKn43gmI03ifGsVIBJWrRWb/xosL3kl1/vvSv8RlA4DZd3Sv 1CkjR1f++ocfcYP5IbcSKq0uHaKFfrrgaqRE9FCEfryIlNiCeCVlRcnHnnFvtTPuxj 5H6Dq2URlKJp1uzq2kb2XlTY8dejPi3oMER4iKO13XpkeYjfLoFykuiWCpVoIwp50o PLlzlu7bXGLTA== From: Joerg Roedel To: Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" Cc: x86@kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Linus Torvalds , Andy Lutomirski , Dave Hansen , Josh Poimboeuf , Juergen Gross , Peter Zijlstra , Borislav Petkov , Jiri Kosina , Boris Ostrovsky , Brian Gerst , David Laight , Denys Vlasenko , Eduardo Valentin , Greg KH , Will Deacon , aliguori@amazon.com, daniel.gruss@iaik.tugraz.at, hughd@google.com, keescook@google.com, Andrea Arcangeli , Waiman Long , Pavel Machek , "David H . Gutteridge" , jroedel@suse.de, Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , joro@8bytes.org Subject: [PATCH 0/3] PTI x86-32 Updates and Fixes Date: Wed, 25 Jul 2018 17:48:00 +0200 Message-Id: <1532533683-5988-1-git-send-email-joro@8bytes.org> X-Mailer: git-send-email 2.7.4 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 Hi, here are three patches on-top of tip/x86/pti to update the vmallo_fault() fix and also with another important fix. The first two patches remove the WARN_ON_ONCE(in_nmi) from the vmalloc_fault() function and revert the previous fix, as discussed at the last patch-set. The third patch is an important fix for a silent memory corruption issue found by the trinity fuzzer, which did take a while to track down. But I found it and with the fix the fuzzer already runs for couple of hours now and the VM is still alive. Regards, Joerg Joerg Roedel (3): x86/mm: Remove in_nmi() warning from vmalloc_fault() Revert "perf/core: Make sure the ring-buffer is mapped in all page-tables" x86/kexec: Allocate 8k PGDs for PTI arch/x86/kernel/machine_kexec_32.c | 5 +++-- arch/x86/mm/fault.c | 2 -- kernel/events/ring_buffer.c | 16 ---------------- 3 files changed, 3 insertions(+), 20 deletions(-) Tested-by: David H. Gutteridge