Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1458286
| From | Masami Hiramatsu <mhiramat@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v15 04/10] arm64: Kprobes with single stepping support |
| Date | 2016-08-09 01:00 +0200 |
| Message-ID | <s41Gy-7zd-13@gated-at.bofh.it> (permalink) |
| References | (10 earlier) <rZUNj-7Ak-1@gated-at.bofh.it> <s0bXP-2EU-7@gated-at.bofh.it> <s2iVb-49N-1@gated-at.bofh.it> <s3QL8-Ev-29@gated-at.bofh.it> <s3TIZ-2vx-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, 8 Aug 2016 10:29:05 -0400
David Long <dave.long@linaro.org> wrote:
> >> @@ -489,20 +477,15 @@ int __kprobes setjmp_pre_handler(struct kprobe
> >> *p, struct pt_regs *regs)
> >> {
> >> struct jprobe *jp = container_of(p, struct jprobe, kp);
> >> struct kprobe_ctlblk *kcb = get_kprobe_ctlblk();
> >> - long stack_ptr = kernel_stack_pointer(regs);
> >>
> >> kcb->jprobe_saved_regs = *regs;
> >> /*
> >> - * As Linus pointed out, gcc assumes that the callee
> >> - * owns the argument space and could overwrite it, e.g.
> >> - * tailcall optimization. So, to be absolutely safe
> >> - * we also save and restore enough stack bytes to cover
> >> - * the argument area.
> >> + * Since we can't be sure where in the stack frame "stacked"
> >> + * pass-by-value arguments are stored we just don't try to
> >> + * duplicate any of the stack.
> > > ...
> >> Do not use jprobes on functions
> >> that
> >> + * use more than 64 bytes (after padding each to an 8 byte boundary)
> >> + * of arguments, or pass individual arguments larger than 16 bytes.
> >
> > I like this wording. So much so that it really would be great to repeat
> > this in the Documentation/. Could this be included in the list of
> > architecture support/restrictions?
> >
>
> Are you thinking specifically of the "5. Kprobes Features and
> Limitations" section in Documentation/kprobes.txt?
OK, That's a good idea :)
If you update the patch for that, please feel free to add my Ack.
Thank you,
--
Masami Hiramatsu <mhiramat@kernel.org>
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH v15 04/10] arm64: Kprobes with single stepping support David Long <dave.long@linaro.org> - 2016-07-26 00:30 +0200
Re: [PATCH v15 04/10] arm64: Kprobes with single stepping support Daniel Thompson <daniel.thompson@linaro.org> - 2016-07-27 14:00 +0200
Re: [PATCH v15 04/10] arm64: Kprobes with single stepping support David Long <dave.long@linaro.org> - 2016-07-28 00:20 +0200
Re: [PATCH v15 04/10] arm64: Kprobes with single stepping support Catalin Marinas <catalin.marinas@arm.com> - 2016-07-28 16:50 +0200
Re: [PATCH v15 04/10] arm64: Kprobes with single stepping support Daniel Thompson <daniel.thompson@linaro.org> - 2016-07-29 11:10 +0200
Re: [PATCH v15 04/10] arm64: Kprobes with single stepping support David Long <dave.long@linaro.org> - 2016-08-04 07:00 +0200
Re: [PATCH v15 04/10] arm64: Kprobes with single stepping support Daniel Thompson <daniel.thompson@linaro.org> - 2016-08-08 13:20 +0200
Re: [PATCH v15 04/10] arm64: Kprobes with single stepping support David Long <dave.long@linaro.org> - 2016-08-08 16:30 +0200
Re: [PATCH v15 04/10] arm64: Kprobes with single stepping support Masami Hiramatsu <mhiramat@kernel.org> - 2016-08-09 01:00 +0200
Re: [PATCH v15 04/10] arm64: Kprobes with single stepping support Catalin Marinas <catalin.marinas@arm.com> - 2016-08-09 19:30 +0200
Re: [PATCH v15 04/10] arm64: Kprobes with single stepping support David Long <dave.long@linaro.org> - 2016-08-10 22:50 +0200
Re: [PATCH v15 04/10] arm64: Kprobes with single stepping support Masami Hiramatsu <mhiramat@kernel.org> - 2016-08-09 00:20 +0200
csiph-web