From nobody Sun Feb 8 19:54:40 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9781C2F28 for ; Fri, 27 Dec 2024 01:32:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735263172; cv=none; b=Lr6ay3wZpehQUPDt4q8rFxH4j1ZPrJaDsjpEpB+TyTVAhenkCZ40g5dLT2KKPkssKpAJRaPLpHUo3g0jR5IUXk/4xCCtesg7d1TLRpOetghYCxjlG0ErQL/Mwpd7/peG51P5WzlA/j26c413yiXbDZr5kiE2/a3TGdXxYC4h3iQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735263172; c=relaxed/simple; bh=z1Y6LTlHIzV74IoqTmpEr1JrmxW5r/lstLhB2WCZ46w=; h=Date:From:To:Cc:Subject:Message-Id:Mime-Version:Content-Type; b=j5GnR6wfY2/896l28EU1PGhbIiCmHCVlNvjIld4gM83XkPYq3MHhUhw5vf3C19KZ58kggnHetNF9bEqqPb1NZGdXwnb4bLEn4fl/3x2bdQNmz/3S191Mdq1JPtKxU1H8doFgBXeNDqG+AAYNXTGojL3xr+k0Kq8vSa0MmufIccg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fJG0ZWqI; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fJG0ZWqI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 93D1DC4CED1; Fri, 27 Dec 2024 01:32:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1735263172; bh=z1Y6LTlHIzV74IoqTmpEr1JrmxW5r/lstLhB2WCZ46w=; h=Date:From:To:Cc:Subject:From; b=fJG0ZWqIg13uWnSpzmrtq6z5ynH5V1TmRroJisL5Y25NsHiYef+w2547ZhavHrLxD 5Kj5v63GxtBQs3y0oW6bLWI/4NKHOPiuXryGhkurdTJp1t2dgIDRRDmnQEzr/kD0oR 9QOmZQqxqj3mMPJsoE5CKJbF2WoqAfyK28CJyB1vBWLs+vwyBzG03lqPGseo/RHo5x ejdXI3ljBpN0fKGlRqbX+KXuZev8elKtBqjYByUHTArZIb972HNEGP707WXlXI7XIW MTUU5op63q6jB2BMJGZuVlj3APFyT/ZIDkqLfuWTjbnLuprEveBeJjyQaRsJhwW1Bt 6iKC0Eu3r9xfA== Date: Fri, 27 Dec 2024 10:32:48 +0900 From: Masami Hiramatsu (Google) To: Linus Torvalds Cc: Masami Hiramatsu (Google) , Steven Rostedt , Masami Hiramatsu , linux-kernel@vger.kernel.org Subject: [GIT PULL] probes: fixes for v6.13-rc4 Message-Id: <20241227103248.c91bccb3f0b639c61818947f@kernel.org> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Hi Linus, Probes fixes for v6.13-rc4: - tracing/kprobes: Change the priority of the module callback of kprobe events so that it is called after the jump label list on the module is updated. This ensures the kprobe can check whether it is not on the jump label address correctly. Please pull the latest probes-fixes-v6.13-rc4 tree, which can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git probes-fixes-v6.13-rc4 Tag SHA1: 6ece68cc0890165bbaa21c511ae76cda688ce43c Head SHA1: d685d55dfc86b1a4bdcec77c3c1f8a83f181264e Masami Hiramatsu (Google) (1): tracing/kprobe: Make trace_kprobe's module callback called after jump= _label update ---- kernel/trace/trace_kprobe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --------------------------- commit d685d55dfc86b1a4bdcec77c3c1f8a83f181264e Author: Masami Hiramatsu (Google) Date: Wed Dec 11 09:10:55 2024 +0900 tracing/kprobe: Make trace_kprobe's module callback called after jump_l= abel update =20 Make sure the trace_kprobe's module notifer callback function is called after jump_label's callback is called. Since the trace_kprobe's callback eventually checks jump_label address during registering new kprobe on the loading module, jump_label must be updated before this registration happens. =20 Link: https://lore.kernel.org/all/173387585556.995044.31579410029754461= 19.stgit@devnote2/ =20 Fixes: 614243181050 ("tracing/kprobes: Support module init function pro= bing") Signed-off-by: Masami Hiramatsu (Google) diff --git a/kernel/trace/trace_kprobe.c b/kernel/trace/trace_kprobe.c index 263fac44d3ca..935a886af40c 100644 --- a/kernel/trace/trace_kprobe.c +++ b/kernel/trace/trace_kprobe.c @@ -725,7 +725,7 @@ static int trace_kprobe_module_callback(struct notifier= _block *nb, =20 static struct notifier_block trace_kprobe_module_nb =3D { .notifier_call =3D trace_kprobe_module_callback, - .priority =3D 1 /* Invoked after kprobe module callback */ + .priority =3D 2 /* Invoked after kprobe and jump_label module callback */ }; static int trace_kprobe_register_module_notifier(void) { --=20 Masami Hiramatsu (Google)