public inbox for linux-trace-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] kprobes: Adjustments for __counted_by addition
@ 2024-10-30 16:14 Nathan Chancellor
  2024-10-30 16:14 ` [PATCH 1/2] kprobes: Fix __get_insn_slot() after __counted_by annotation Nathan Chancellor
  2024-10-30 16:14 ` [PATCH 2/2] kprobes: Use struct_size() in __get_insn_slot() Nathan Chancellor
  0 siblings, 2 replies; 7+ messages in thread
From: Nathan Chancellor @ 2024-10-30 16:14 UTC (permalink / raw)
  To: Masami Hiramatsu, Naveen N Rao, Anil S Keshavamurthy,
	David S. Miller
  Cc: Kees Cook, Gustavo A. R. Silva, Jinjie Ruan, linux-kernel,
	linux-trace-kernel, linux-hardening, patches, Nathan Chancellor

Hi all,

This series addresses the issues that I brought up at [1]. The first
change is the actual functional fix and the second change is something I
noticed while auditing this code, which is related but tangential to the
actual fix, since the current code has a correct calculation.

This resolves the issue for me when testing both clang 19 and GCC 15
(tip of tree, which is the only version that has __counted_by support).

[1]: https://lore.kernel.org/20241022205557.GA3004519@thelio-3990X/

---
Nathan Chancellor (2):
      kprobes: Fix __get_insn_slot() after __counted_by annotation
      kprobes: Use struct_size() in __get_insn_slot()

 kernel/kprobes.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
---
base-commit: b5f348cbce367d5dcd34bf2b6c02c39a5be3fb97
change-id: 20241029-kprobes-fix-counted-by-annotation-ddeb95228b32

Best regards,
-- 
Nathan Chancellor <nathan@kernel.org>


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-11-01  1:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-30 16:14 [PATCH 0/2] kprobes: Adjustments for __counted_by addition Nathan Chancellor
2024-10-30 16:14 ` [PATCH 1/2] kprobes: Fix __get_insn_slot() after __counted_by annotation Nathan Chancellor
2024-10-31  1:58   ` Masami Hiramatsu
2024-10-31  3:37     ` Nathan Chancellor
2024-11-01  1:53       ` Masami Hiramatsu
2024-10-30 16:14 ` [PATCH 2/2] kprobes: Use struct_size() in __get_insn_slot() Nathan Chancellor
2024-10-31  1:58   ` Masami Hiramatsu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox