From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-f71.google.com (mail-it0-f71.google.com [209.85.214.71]) by kanga.kvack.org (Postfix) with ESMTP id A04FF6B0003 for ; Sat, 21 Jul 2018 17:07:05 -0400 (EDT) Received: by mail-it0-f71.google.com with SMTP id e21-v6so12421784itc.5 for ; Sat, 21 Jul 2018 14:07:05 -0700 (PDT) Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id r70-v6sor1677341ioi.299.2018.07.21.14.07.03 for (Google Transport Security); Sat, 21 Jul 2018 14:07:04 -0700 (PDT) MIME-Version: 1.0 References: <1532103744-31902-1-git-send-email-joro@8bytes.org> <1532103744-31902-2-git-send-email-joro@8bytes.org> <20180720174846.GF18541@8bytes.org> <20180720213700.gh6d2qd2ck6nt4ax@suse.de> In-Reply-To: From: Linus Torvalds Date: Sat, 21 Jul 2018 14:06:52 -0700 Message-ID: Subject: Re: [PATCH 1/3] perf/core: Make sure the ring-buffer is mapped in all page-tables Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: owner-linux-mm@kvack.org List-ID: To: Andy Lutomirski Cc: Joerg Roedel , Andrew Lutomirski , Joerg Roedel , Thomas Gleixner , Ingo Molnar , Peter Anvin , the arch/x86 maintainers , Linux Kernel Mailing List , linux-mm , Dave Hansen , Josh Poimboeuf , =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= , Peter Zijlstra , Borislav Petkov , Jiri Kosina , Boris Ostrovsky , Brian Gerst , David Laight , Denys Vlasenko , Eduardo Valentin , Greg Kroah-Hartman , Will Deacon , "Liguori, Anthony" , Daniel Gruss , Hugh Dickins , Kees Cook , Andrea Arcangeli , Waiman Long , Pavel Machek , "David H . Gutteridge" , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim On Fri, Jul 20, 2018 at 3:20 PM Andy Lutomirski wrote= : > Thanks for digging! The problem was presumably that vmalloc_fault() will= IRET and re-enable NMIs on the way out. > But we=E2=80=99ve supported page faults on user memory in NMI handlers o= n 32-bit and 64-bit for quite a while, and it=E2=80=99s fine now. > > I would remove the warning, re-test, and revert the other patch. Agreed. I don't think we have any issues with page faults during NMI any more. Afaik the kprobe people depend on it. That said, 64-bit mode has that scary PV-op case (arch_flush_lazy_mmu_mode). Being PV mode, I can't find it in myself to worry about it, I'm assuming it's ok. Linus