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
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 30 Mar 2015 17:27:55 -0400
From:	Steven Rostedt <rostedt@...dmis.org>
To:	Dave Hansen <dave@...1.net>
Cc:	linux-kernel@...r.kernel.org, x86@...nel.org, tglx@...utronix.de,
	dave.hansen@...ux.intel.com
Subject: Re: [PATCH 04/17] x86, mpx: trace entry to bounds exception paths

On Fri, Mar 27, 2015 at 02:53:00PM -0700, Dave Hansen wrote:
> diff -puN arch/x86/include/asm/trace/mpx.h~x86-mpx-trace-1 arch/x86/include/asm/trace/mpx.h
> --- a/arch/x86/include/asm/trace/mpx.h~x86-mpx-trace-1	2015-03-27 14:35:05.164779793 -0700
> +++ b/arch/x86/include/asm/trace/mpx.h	2015-03-27 14:35:05.169780019 -0700
> @@ -8,6 +8,31 @@
>  
>  #ifdef CONFIG_X86_INTEL_MPX
>  
> +TRACE_EVENT(mpx_bounds_register_exception,
> +
> +	TP_PROTO(void *addr_referenced,
> +		 struct bndreg *bndreg),
> +	TP_ARGS(addr_referenced, bndreg),
> +
> +	TP_STRUCT__entry(
> +		__field(void *, addr_referenced)
> +		__field(u64, lower_bound)
> +		__field(u64, upper_bound)
> +	),
> +
> +	TP_fast_assign(
> +		__entry->addr_referenced = addr_referenced;
> +		__entry->lower_bound = bndreg->lower_bound;
> +		__entry->upper_bound = bndreg->upper_bound;
> +	),
> +
> +	TP_printk("address referenced: 0x%p bounds: lower: 0x%llx ~upper: 0x%llx",
> +		__entry->addr_referenced,
> +		__entry->lower_bound,
> +		~__entry->upper_bound

Hmm, I have to see if libtraceevent handle's that. It might.

-- Steve

> +	)
> +);
> +
>  TRACE_EVENT(bounds_exception_mpx,
>  
>  	TP_PROTO(struct bndcsr *bndcsr),
> diff -puN arch/x86/mm/mpx.c~x86-mpx-trace-1 arch/x86/mm/mpx.c
> --- a/arch/x86/mm/mpx.c~x86-mpx-trace-1	2015-03-27 14:35:05.166779884 -0700
> +++ b/arch/x86/mm/mpx.c	2015-03-27 14:35:05.169780019 -0700
> @@ -16,6 +16,7 @@
>  #include <asm/mmu_context.h>
>  #include <asm/mpx.h>
>  #include <asm/processor.h>
> +#include <asm/trace/mpx.h>
>  #include <asm/fpu-internal.h>
>  
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ