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:	Thu, 27 Nov 2008 14:47:20 +0100
From:	"stephane eranian" <eranian@...glemail.com>
To:	"Andi Kleen" <andi@...stfloor.org>
Cc:	"Thomas Gleixner" <tglx@...utronix.de>,
	linux-kernel@...r.kernel.org, akpm@...ux-foundation.org,
	mingo@...e.hu, x86@...nel.org, sfr@...b.auug.org.au
Subject: Re: [patch 05/24] perfmon: X86 generic code (x86)

On Thu, Nov 27, 2008 at 2:49 PM, Andi Kleen <andi@...stfloor.org> wrote:
>> What about a thread doing this and another one in the middle of read the buffer?
>
> I assume that uses locks. Locking between threads is easy.
>
I think that is fine as long as the interrupt handler does not need to
grab locks.
But that, in turn, means that the state needed/modified by the handler cannot
be altered in any other way that could be harmful.

>>
>> Or what about a thread trying to reset the buffer while you're processing an PMU
>> interrupt on another CPU. I know each buffer is per-CPU, but that does not
>> prevent two threads for trying to operate on it at the same time from
>> different CPUs.
>
> That happens per CPU.
>
So you're saying a thread can only access the buffer from the CPU it
is running on?
--
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