Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752581AbdCIWOH (ORCPT ); Thu, 9 Mar 2017 17:14:07 -0500 Received: from www62.your-server.de ([213.133.104.62]:44303 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751300AbdCIWOG (ORCPT ); Thu, 9 Mar 2017 17:14:06 -0500 Message-ID: <58C1D305.8090802@iogearbox.net> Date: Thu, 09 Mar 2017 23:11:17 +0100 From: Daniel Borkmann User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Borislav Petkov CC: Linus Torvalds , Thomas Gleixner , Kees Cook , Laura Abbott , Ingo Molnar , Peter Anvin , Fengguang Wu , Network Development , LKML , LKP , ast@fb.com, the arch/x86 maintainers , "David S. Miller" Subject: Re: [net/bpf] 3051bf36c2 BUG: unable to handle kernel paging request at 0000a7cf References: <58C152F1.9090004@iogearbox.net> <58C157E6.1010909@iogearbox.net> <58C19607.6000605@iogearbox.net> <58C19F67.3040509@iogearbox.net> <58C1C9DC.7070509@iogearbox.net> <20170309215547.jmdzznlkzaxwu2pf@pd.tnic> <20170309220732.ufqoqlawktsi2gao@pd.tnic> In-Reply-To: <20170309220732.ufqoqlawktsi2gao@pd.tnic> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 607 Lines: 18 On 03/09/2017 11:07 PM, Borislav Petkov wrote: > On Thu, Mar 09, 2017 at 10:55:47PM +0100, Borislav Petkov wrote: >> Can you make that: >> >> setup_clear_cpu_cap(X86_FEATURE_PGE); >> >> and see if it fixes your issue? > > Hmm, in reading the thread a bit more, that might not work. If I see it > correctly, lguest does > > clear_cpu_cap(&boot_cpu_data, X86_FEATURE_PGE); > > after the alternatives have run and static_cpu_has() sites have already > been patched so clearing that bit won't bring anything. Yeah, I just tried that out and it had no effect unfortunately, the static_cpu_has() was still 1.