summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/allocator
diff options
context:
space:
mode:
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>2026-11-13 17:28:45 +0900
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>2026-11-13 23:05:30 +0900
commita0f836eea463d4c468edb58eedb03911c9c0791d (patch)
treed831c34058c5f39e419ae2af7f1f728b010984dd /rust/kernel/alloc/allocator
parentc1e2c63e65421068566db3dde44dfd4fe7adb46d (diff)
tracing/eprobe: Fix 1-byte signed field fetch in get_event_field()
Because the kernel is built with -funsigned-char, plain 'char' is unsigned on all architectures. Reading 1-byte signed trace event fields via *(char *)addr in get_event_field() therefore zero-extends instead of sign-extending negative s8 values. Use explicit fixed-width integer types (s8/u8, s16/u16, s32/u32) when reading event fields. Link: https://lore.kernel.org/all/179455852542.403392.15666310371702309464.stgit@devnote2/ Fixes: 7491e2c44278 ("tracing: Add a probe that attaches to trace events") Cc: stable@vger.kernel.org Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Diffstat (limited to 'rust/kernel/alloc/allocator')
0 files changed, 0 insertions, 0 deletions