mirror of
https://github.com/torvalds/linux.git
synced 2026-05-13 00:28:54 +02:00
The expression (*opcode++ << 24) and exp * code_alignment_factor
may overflow signed int and becomes negative.
Fix this by casting each byte to u64 before shifting. Also fix
the misaligned break statement while we are here.
Example of the result can be seen here:
Link: https://godbolt.org/z/zhY8d3595
It maybe not a real problem, but could be a issue in future.
Fixes:
|
||
|---|---|---|
| .. | ||
| .gitignore | ||
| idreg-override.c | ||
| kaslr_early.c | ||
| Makefile | ||
| map_kernel.c | ||
| map_range.c | ||
| patch-scs.c | ||
| pi.h | ||
| relacheck.c | ||
| relocate.c | ||