From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Borkmann Subject: Re: [net/bpf] 3051bf36c2 BUG: unable to handle kernel paging request at 0000a7cf Date: Thu, 09 Mar 2017 19:31:03 +0100 Message-ID: <58C19F67.3040509@iogearbox.net> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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" To: Linus Torvalds Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org 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 >