[PATCH kernel-4.19 12/31] profiling: fix shift-out-of-bounds bugs