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:	Sat, 05 Apr 2008 18:58:08 +0300
From:	Avi Kivity <avi@...ranet.com>
To:	Pekka Enberg <penberg@...helsinki.fi>
CC:	Pekka Paalanen <pq@....fi>, linux-kernel@...r.kernel.org,
	Ingo Molnar <mingo@...e.hu>,
	Christoph Hellwig <hch@...radead.org>,
	Arjan van de Ven <arjan@...radead.org>,
	Pavel Roskin <proski@....org>,
	Steven Rostedt <rostedt@...dmis.org>,
	Peter Zijlstra <a.p.zijlstra@...llo.nl>,
	vegard.nossum@...il.com
Subject: Re: mmiotrace bug: recursive probe hit

Avi Kivity wrote:
>>
>> For kmemcheck, I'd prefer the per-CPU page tables suggested by Ingo.
>> I'm having hard time understanding why that's a "ugly hack" compared
>> to using kvm for this...
>>   
>
> It's not an ugly hack, but will be very very difficult.  With mmu 
> notifiers it's probably doable though:
>
> - the linux page tables are never loaded into cr3, but rather kept as 
> a reference
> - page faults are by instantiating ptes into shadow page tables (which 
> track the linux page tables)
> - mmu notifiers are used to drop shadow ptes when the linux ptes change
>

Actually, paravirt_ops is a much better match, as it also provides hooks 
for setting cr3.  I think you can implement per-cpu pagetables using 
paravirt_ops without modifying core mm code at all.

-- 
Do not meddle in the internals of kernels, for they are subtle and quick to panic.

--
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