lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Mon, 20 Jun 2022 23:10:12 +0000 From: Ashish Kalra <Ashish.Kalra@....com> To: <x86@...nel.org>, <linux-kernel@...r.kernel.org>, <kvm@...r.kernel.org>, <linux-coco@...ts.linux.dev>, <linux-mm@...ck.org>, <linux-crypto@...r.kernel.org> CC: <tglx@...utronix.de>, <mingo@...hat.com>, <jroedel@...e.de>, <thomas.lendacky@....com>, <hpa@...or.com>, <ardb@...nel.org>, <pbonzini@...hat.com>, <seanjc@...gle.com>, <vkuznets@...hat.com>, <jmattson@...gle.com>, <luto@...nel.org>, <dave.hansen@...ux.intel.com>, <slp@...hat.com>, <pgonda@...gle.com>, <peterz@...radead.org>, <srinivas.pandruvada@...ux.intel.com>, <rientjes@...gle.com>, <dovmurik@...ux.ibm.com>, <tobin@....com>, <bp@...en8.de>, <michael.roth@....com>, <vbabka@...e.cz>, <kirill@...temov.name>, <ak@...ux.intel.com>, <tony.luck@...el.com>, <marcorr@...gle.com>, <sathyanarayanan.kuppuswamy@...ux.intel.com>, <alpergun@...gle.com>, <dgilbert@...hat.com>, <jarkko@...nel.org> Subject: [PATCH Part2 v6 33/49] KVM: x86: Update page-fault trace to log full 64-bit error code From: Brijesh Singh <brijesh.singh@....com> The #NPT error code is a 64-bit value but the trace prints only the lower 32-bits. Some of the fault error code (e.g PFERR_GUEST_FINAL_MASK) are available in the upper 32-bits. Cc: <stable@...nel.org> Signed-off-by: Brijesh Singh <brijesh.singh@....com> --- arch/x86/kvm/trace.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/kvm/trace.h b/arch/x86/kvm/trace.h index e3a24b8f04be..9b9bc5468103 100644 --- a/arch/x86/kvm/trace.h +++ b/arch/x86/kvm/trace.h @@ -383,12 +383,12 @@ TRACE_EVENT(kvm_inj_exception, * Tracepoint for page fault. */ TRACE_EVENT(kvm_page_fault, - TP_PROTO(unsigned long fault_address, unsigned int error_code), + TP_PROTO(unsigned long fault_address, u64 error_code), TP_ARGS(fault_address, error_code), TP_STRUCT__entry( __field( unsigned long, fault_address ) - __field( unsigned int, error_code ) + __field( u64, error_code ) ), TP_fast_assign( @@ -396,7 +396,7 @@ TRACE_EVENT(kvm_page_fault, __entry->error_code = error_code; ), - TP_printk("address %lx error_code %x", + TP_printk("address %lx error_code %llx", __entry->fault_address, __entry->error_code) ); -- 2.25.1
Powered by blists - more mailing lists