misc: tegra_profiler: fix dwarf unwinding
authorIgor Nabirushkin <inabirushkin@nvidia.com>
Wed, 30 Nov 2016 09:29:26 +0000 (13:29 +0400)
committerIgor Nabirushkin <inabirushkin@nvidia.com>
Tue, 8 Aug 2017 14:19:54 +0000 (17:19 +0300)
commit19bfacd4bc7c885b9c3e87794b4d565d7d537474
tree736ae803978a6df013c0d4f76cb70a08d1d65c53
parent13709e9d00640091d6eccc24a44c0fd248ecb091
misc: tegra_profiler: fix dwarf unwinding

Problem is that on systems with a 64-bit kernel and 32 bit userspace,
read_user_data function reads 32-bit value into 64-bit uninitialized
variable, so high half of the variable might be dirty.
Use 32-bit temporary variable in such cases.

Bug 1846986

Change-Id: I2b024a00da536ad95e12e354597bde9811ca7998
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/1262234
(cherry picked from commit d58031aa0cb381ecc5a8c11d08b81a141c435244)
Reviewed-on: http://git-master/r/1274707
(cherry picked from commit 8b990d05eb94c305642dc2fbd8f79bc00bce0308)
drivers/misc/tegra-profiler/dwarf_unwind.c