aboutsummaryrefslogtreecommitdiffstats
path: root/patches/misc/arm64-perf-Fix-wrong-cast-that-may-cause-wrong-trunc.patch
AgeCommit message (Collapse)Author
2020-09-17arm64/perf: Fix wrong cast that may cause wrong truncationBruce Ashfield
1/1 [ Author: He Zhe Email: zhe.he@windriver.com Subject: arm64/perf: Fix wrong cast that may cause wrong truncation Date: Fri, 21 Aug 2020 00:52:50 +0800 tail is a pointer while buftail.fp is a u32. arch/arm64/kernel/perf_callchain.c:100:6: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 100 | if ((u32)tail + 4 >= buftail.fp) | ^ arch/arm64/kernel/perf_callchain.c:103:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]{noformat} 103 | return (struct compat_frame_tail __user *)(buftail.fp - 4); | ^ Fixes: 8818670c17d2 ("arm64/perf: fix backtrace for AAPCS with FP enabled") Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> ] Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>