From: Francis Laniel <flaniel@linux.microsoft.com>
To: stable@vger.kernel.org
Cc: Masami Hiramatsu <mhiramat@kernel.org>,
Francis Laniel <flaniel@linux.microsoft.com>
Subject: [PATCH 4.14.y 0/1] Return EADDRNOTAVAIL when func matches several symbols during kprobe creation
Date: Mon, 23 Oct 2023 12:49:46 +0300 [thread overview]
Message-ID: <20231023094947.258663-1-flaniel@linux.microsoft.com> (raw)
In-Reply-To: <2023102140-tartly-democrat-140d@gregkh>
Hi.
I received messages regarding problems to apply the upstream patch.
I was able to reproduce the problem on the following stable kernels:
* 4.14,
* 4.19,
* 5.4
* and 5.10
But it seems to be false positive for kernel 5.15 and 6.1, is this case possible
or I did something wrong?
For kernel 4.14, I adapted the patch and tested it to confirm its behavior:
root@vm-amd64:~# uname -a
Linux vm-amd64 4.14.327+ #120 SMP Mon Oct 23 12:26:47 EEST 2023 x86_64 GNU/Linux
root@vm-amd64:~# echo 'p:probe/name_show name_show' > /sys/kernel/tracing/kprobe_events
-bash: echo: write error: Cannot assign requested address
I would nonetheless like to get reviews before having it merged as it is a bit
different from upstream patch.
In the meanwhile, I will work on applying this patch to other kernels.
The goal would be to have two versions of the patch:
1. One for "older" kernels (i.e before 5.15).
2. Another for "younger" kernels (i.e. 5.15 and above).
I am not really sure if this is way to work with stable kernels, as this is
first time I have to deal with such a case.
So, any feedback on how to handle it properly would be more than welcome.
Francis Laniel (1):
tracing/kprobes: Return EADDRNOTAVAIL when func matches several
symbols
kernel/trace/trace_kprobe.c | 48 +++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
Best regards and thank you in advance.
--
2.34.1
next prev parent reply other threads:[~2023-10-23 9:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-21 19:30 FAILED: patch "[PATCH] tracing/kprobes: Return EADDRNOTAVAIL when func matches" failed to apply to 4.14-stable tree gregkh
2023-10-23 9:49 ` Francis Laniel [this message]
2023-10-23 9:49 ` [PATCH 4.14.y 1/1] tracing/kprobes: Return EADDRNOTAVAIL when func matches several symbols Francis Laniel
2023-10-23 10:23 ` [PATCH 4.14.y 0/1] Return EADDRNOTAVAIL when func matches several symbols during kprobe creation Greg KH
2023-10-23 12:25 ` Francis Laniel
2023-11-27 16:50 ` [PATCH 4.14.y] tracing/kprobes: Return EADDRNOTAVAIL when func matches several symbols Francis Laniel
2023-11-30 13:39 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231023094947.258663-1-flaniel@linux.microsoft.com \
--to=flaniel@linux.microsoft.com \
--cc=mhiramat@kernel.org \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.