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: <1245314169.13761.23121.camel@twins>
Date:	Thu, 18 Jun 2009 10:36:09 +0200
From:	Peter Zijlstra <a.p.zijlstra@...llo.nl>
To:	Paul Mackerras <paulus@...ba.org>
Cc:	Ingo Molnar <mingo@...e.hu>, linux-kernel@...r.kernel.org,
	benh@...nel.crashing.org
Subject: Re: Accessing user memory from NMI

On Thu, 2009-06-18 at 18:20 +1000, Paul Mackerras wrote:
> What was the conclusion you guys came to about doing a user stack
> backtrace in an NMI handler?  Are you going to access user memory
> directly or are you going to use the __fast_get_user_pages approach?
> 
> Ben H and I were talking today about what we'd need in order to be
> able to read user memory in a PMU interrupt handler.  It looks like we
> could read user memory directly with a bit of care, on 64-bit at
> least.  Because of the MMU hash table that would almost always work
> provided the page has already been touched (which stack pages would
> have been), but there is a small chance that the access might fail
> even if the address has a valid PTE.  At that point we could fall back
> to the __fast_get_user_pages method, but I'm not sure it's worth it.

Currently we have the GUP based approach, but Ingo is thikning about
making the pagefault handler NMI safe on x86 for .32.



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