Re: [PATCH] x86/nmi/64: avoid passing user space rsp of pt_regs to nmi handler

2017-08-23 Thread oliver yang
if the pt_regs reflects the actual interrupted status. -- -- Oliver Yang

Re: [PATCH] x86/nmi/64: avoid passing user space rsp of pt_regs to nmi handler

2017-08-23 Thread oliver yang
2017-08-23 23:20 GMT+08:00 Josh Poimboeuf : > On Wed, Aug 23, 2017 at 10:19:02PM +0800, oliver yang wrote: >> 2017-08-23 1:51 GMT+08:00 Josh Poimboeuf : >> > On Tue, Aug 22, 2017 at 05:09:19PM +, yang oliver wrote: >> >> From: Yong Yang >> >> >&g

Re: [PATCH] x86/nmi/64: avoid passing user space rsp of pt_regs to nmi handler

2017-08-23 Thread oliver yang
uot;, *((unsigned long *)rsp)); } } I manage to make NMI interrupted the entry_SYSCALL_64 boundary, then I could trigger the issue. Not sure whether it is good enough. Let me know if you have other suggestions. > > -- > Josh -- -- Oliver Yang

Fwd: [PATCH] x86/nmi/64: avoid passing user space rsp of pt_regs to nmi handler

2017-08-22 Thread oliver yang
- subq$(5*8), %rsp + subq$(10*8), %rsp end_repeat_nmi: /* @@ -1486,7 +1507,7 @@ nmi_restore: RESTORE_C_REGS /* Point RSP at the "iret" frame. */ - REMOVE_PT_GPREGS_FROM_STACK 6*8 + REMOVE_PT_GPREGS_FROM_STACK 11*8 /* * Clear "NMI executing". Set DF first so that we can easily -- 1.8.3.1 -- -- Oliver Yang

Re: [PATCH 1/2] sched: Some sched trace points should depend on SCHEDSTATS

2015-08-04 Thread Oliver Yang
On 2015/8/4 1:34, Steven Rostedt wrote: > On Mon, 27 Jul 2015 09:11:51 -0400 > yangoliver wrote: > >> When SCHEDSTATS is not enabled, follow trace points shouldn't be >> accessed by default, >> >> sched:sched_stat_wait >> sched:sched_stat_sleep >> sched:sched_stat_iowait >> s

Re: [PATCH 2/2] sched: Trace point sched_stat_sleep should cover iowait case

2015-08-03 Thread Oliver Yang
On 2015/8/4 2:43, Peter Zijlstra wrote: > On Mon, Aug 03, 2015 at 01:35:28PM -0400, Steven Rostedt wrote: >> On Mon, 27 Jul 2015 09:11:52 -0400 >> yangoliver wrote: >> >>> Per sched_stat_sleep definition in sched.h, it should include >>> iowait case. This can also relect the design of sum_sleep_

Re: [PATCH] Fix build failures of python/perf.so.

2013-07-22 Thread Oliver Yang
于 7/22/2013 11:02 PM, Arnaldo Carvalho de Melo wrote: > Em Mon, Jul 22, 2013 at 07:45:59PM +0800, Oliver Yang escreveu: >> If gcc and python are not under the standard path, it could cause >> the build failure of perf.so. > > How can just adding the prefix to the compiler li

[PATCH] Fix build failures of python/perf.so.

2013-07-22 Thread Oliver Yang
If gcc and python are not under the standard path, it could cause the build failure of perf.so. Signed-off-by: Oliver Yang --- tools/perf/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/Makefile b/tools/perf/Makefile index 641fccd..9f88f6f 100644 --- a