On Sat, 3 Mar 2018 21:25:45 +0900
Masami Hiramatsu wrote:
> On Sat, 3 Mar 2018 10:58:23 +0100
> Ingo Molnar wrote:
>
> >
> > * Masami Hiramatsu wrote:
> >
> > > +/*
> > > + * Interrupts are disabled on entry as trap3 is an interrupt gate and
> > > they
> > > + * remain disabled throughout t
On Sat, 3 Mar 2018 10:58:23 +0100
Ingo Molnar wrote:
>
> * Masami Hiramatsu wrote:
>
> > +/*
> > + * Interrupts are disabled on entry as trap3 is an interrupt gate and they
> > + * remain disabled throughout this function.
> > + */
> > +int kprobe_int3_handler(struct pt_regs *regs)
> > +{
> >
* Masami Hiramatsu wrote:
> +/*
> + * Interrupts are disabled on entry as trap3 is an interrupt gate and they
> + * remain disabled throughout this function.
> + */
> +int kprobe_int3_handler(struct pt_regs *regs)
> +{
> + struct kprobe_ctlblk *kcb;
> + int ret;
> +
> + if (user_mode
Cleanup x86/kprobes preempt counts so that preemt_disable()
and preempt_enable_no_sched() are called from kprobe_int3_handler().
Only if a kprobe runs single-stepping, preemption is kept
disabled and that is enabled when
- single-stepping is finished
- a fault occurs on single-steped instruction
4 matches
Mail list logo