Re: [PATCH v2 08/11] uprobes: Change handle_trampoline() to flush the frames invalidated by longjmp()

2015-07-10 Thread Srikar Dronamraju
> Change handle_trampoline() to unwind ->return_instances until we know > that the next chain is alive or NULL, this ensures that the current > chain is the last we need to report and free. > > Alternatively, every return_instance could use unique trampoline_vaddr, > in this case we could use it a

Re: [PATCH v2 08/11] uprobes: Change handle_trampoline() to flush the frames invalidated by longjmp()

2015-07-07 Thread Anton Arapov
On Tue, Jul 07, 2015 at 03:23:02AM +0200, Oleg Nesterov wrote: > Test-case: > > #include > #include > > jmp_buf jmp; > > void func_2(void) > { > longjmp(jmp, 1); > } > > void func_1(void) > { > if (setjmp(jmp)) >

[PATCH v2 08/11] uprobes: Change handle_trampoline() to flush the frames invalidated by longjmp()

2015-07-06 Thread Oleg Nesterov
Test-case: #include #include jmp_buf jmp; void func_2(void) { longjmp(jmp, 1); } void func_1(void) { if (setjmp(jmp)) return; func_2(); print