From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938349AbdEXGUM (ORCPT ); Wed, 24 May 2017 02:20:12 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:57310 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934927AbdEXGUJ (ORCPT ); Wed, 24 May 2017 02:20:09 -0400 Date: Wed, 24 May 2017 08:20:06 +0200 (CEST) From: Thomas Gleixner To: Steven Rostedt cc: Kees Cook , LKML , x86@kernel.org, Masami Hiramatsu , "Luis R. Rodriguez" , Peter Zijlstra Subject: Re: [WARNING] x86/mm: Found insecure W+X mapping at address .. In-Reply-To: <20170523185912.05346057@vmware.local.home> Message-ID: References: <20170523185912.05346057@vmware.local.home> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 23 May 2017, Steven Rostedt wrote: > On Tue, 23 May 2017 22:48:19 +0200 (CEST) > Thomas Gleixner wrote: > > > > It's not KPROBES, it's the new fangled ftrace trampoline code. I > > added a few printks. All the leaked W+X mappings are allocated via > > this callchain: > > The trampoline code isn't new. But it has new users because of the > introduction to synchronize_rcu_tasks(), and there was a bug I fixed in > -rc2 that moved it down because the test was run before > synchronize_rcu_tasks() was functional. > > Is this still a bug in rc2? Yes. Otherwise we wouldn't talking about. Thanks, tglx