Skip to content

Commit

Permalink
fixup! Patch ubsan - Fix undefined references to ubsan functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhishek-612 committed May 3, 2024
1 parent d611b21 commit bde5d74
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions core/arch/arm/kernel/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -1508,14 +1508,6 @@ unsigned long __weak get_aslr_seed(void)
goto err;
}

/*
Checks if seed is 8-byte aligned, and performs alignment if needed.
If removed while CFG_CORE_SANITIZE_UNDEFINED is set, it may cause a ubsan panic
*/
if (((uint64_t)seed & 7) != 0) {
seed = (uint64_t *)((unsigned long)seed + (8 - ((unsigned long)seed & 7)));
}

return fdt64_to_cpu(*seed);

err:
Expand Down

0 comments on commit bde5d74

Please sign in to comment.