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]
Message-ID: <20100511153757.GA14408@aftab>
Date:	Tue, 11 May 2010 17:37:57 +0200
From:	Borislav Petkov <bp@...64.org>
To:	Peter Zijlstra <peterz@...radead.org>
Cc:	Ingo Molnar <mingo@...e.hu>, Lin Ming <ming.m.lin@...el.com>,
	Frederic Weisbecker <fweisbec@...il.com>,
	"eranian@...il.com" <eranian@...il.com>,
	"Gary.Mohr@...l.com" <Gary.Mohr@...l.com>,
	Corey Ashford <cjashfor@...ux.vnet.ibm.com>,
	"arjan@...ux.intel.com" <arjan@...ux.intel.com>,
	"Zhang, Yanmin" <yanmin_zhang@...ux.intel.com>,
	Paul Mackerras <paulus@...ba.org>,
	"David S. Miller" <davem@...emloft.net>,
	Russell King <rmk+kernel@....linux.org.uk>,
	Paul Mundt <lethal@...ux-sh.org>,
	lkml <linux-kernel@...r.kernel.org>,
	Arnaldo Carvalho de Melo <acme@...hat.com>
Subject: Re: [RFC][PATCH 3/9] perf: export registerred pmus via sysfs

From: Peter Zijlstra <peterz@...radead.org>
Date: Tue, May 11, 2010 at 10:25:15AM -0400

> On Tue, 2010-05-11 at 16:15 +0200, Borislav Petkov wrote:
> > Another point I have is that MCEs don't need pmus so we should consider
> > having the ability to decouple events from pmus.
> 
> Strictly speaking tracepoints are software events, which run off of a
> software 'pmu'. So no, we can't decouple, they need a 'pmu' context.

We could make this configurable depending on the severity of the error.
I'm guessing for further event handling through the perf infrastructure
we cannot run without a sw pmu context but on critical conditions
we need to run as fast and as sparingly as possible so I'm thinking
maybe adding some specially tailored callbacks to the MCE tracepoint
trace_mce_record, as Steven suggested.

> > What you basically want to have is a tracepoint which is "persistent,"
> > as Ingo suggested earlier, and it buffers MCEs occurring at any time
> > into a ring buffer until a userspace daemon or similar sucks that data
> > out for processing (critical stuff is handled differently, of course).
> > And this should work on any x86 hw supporting MCA without hw perf
> > monitoring features. 
> 
> Try building x86 without perf hw support :/

I dunno, maybe decoupling wouldn't be necessary per se but I was simply
pointing out that MCEs shouldn't necessarily depend on the presence on
hardware performance counters.

-- 
Regards/Gruss,
Boris.

--
Advanced Micro Devices, Inc.
Operating Systems Research Center
--
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