Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932520AbdCISbW (ORCPT ); Thu, 9 Mar 2017 13:31:22 -0500 Received: from www62.your-server.de ([213.133.104.62]:49315 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750781AbdCISbV (ORCPT ); Thu, 9 Mar 2017 13:31:21 -0500 Message-ID: <58C19F67.3040509@iogearbox.net> Date: Thu, 09 Mar 2017 19:31:03 +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: Linus Torvalds CC: 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: <20170301125426.l4nf65rx4wahohyl@wfg-t540p.sh.intel.com> <20170302202338.ci6wwb3yzjmdy4n2@wfg-t540p.sh.intel.com> <58B88353.2010508@iogearbox.net> <58C08535.3070000@iogearbox.net> <7af7bcc9-9115-be9f-2240-a022487e9b70@redhat.com> <58C152F1.9090004@iogearbox.net> <58C157E6.1010909@iogearbox.net> <58C19607.6000605@iogearbox.net> In-Reply-To: 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: 813 Lines: 24 On 03/09/2017 07:15 PM, Linus Torvalds wrote: > On Thu, Mar 9, 2017 at 10:10 AM, Linus Torvalds > wrote: >> >> Very odd. We should always have PGE (0x0080) set in cr4 (if the CPU >> supports it). > > Daniel, do you see the code in probe_page_size_mask() triggering? > > /* Enable PGE if available */ > if (boot_cpu_has(X86_FEATURE_PGE)) { > cr4_set_bits_and_update_boot(X86_CR4_PGE); > __supported_pte_mask |= _PAGE_GLOBAL; We do have boot_cpu_has(X86_FEATURE_PGE) and go indeed into this branch here. So it seems something must be clearing it later, hmm. > } else > __supported_pte_mask &= ~_PAGE_GLOBAL; > > but maybe there's something wrong with the percpu cr4 caching? > > Linus >