Eliminate UBSAN: array-index-out-of-bounds in map_runtime.h warnings The kernel's UBSAN array-index-out-of-bounds check needs the variable in the struct holding the size of the dynamically allocated array to be initialized before accessing the array. The code in _stp_map_init() has been reordered to allow the UBSAN check to work properly.