-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch ubsan - Fix undefined references to ubsan functions
Resolves: Issue #6463 Added UBSan handlers for `__ubsan_handle_type_mismatch_v1` and `__ubsan_handle_pointer_overflow` to remove the undefined references error. Files affected: core/kernel/ubsan.c Additional Fixes: Issue: UBSan causes a kernel panic with `CFG_CORE_ASLR=y` with a 'type_mismatch_v1' in `boot.c` -> `get_aslr_seed()` Cause: `seed` variable in `get_asrl_seed()` is not 8-byte aligned. Fix: Before passing the `seed` to `fdt64_to_cpu()`, check if it is 8-byte aligned, and if not, make it so. Affected file: core/arch/arm/kernel/boot.c Signed-off-by: Abhishek Revadekar
- Loading branch information
1 parent
95b8c53
commit 893f4de
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters