lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-Id: <1394080919-17957-4-git-send-email-sukadev@linux.vnet.ibm.com> Date: Wed, 5 Mar 2014 20:41:59 -0800 From: Sukadev Bhattiprolu <sukadev@...ux.vnet.ibm.com> To: Arnaldo Carvalho de Melo <acme@...stprotocols.net> Cc: <linux-kernel@...r.kernel.org>, linuxppc-dev@...abs.org, Stephane Eranian <eranian@...gle.com>, Michael Ellerman <michaele@....ibm.com>, Paul Mackerras <paulus@...ba.org>, Jiri Olsa <jolsa@...hat.com> Subject: [PATCH 3/3] perf: Use 64-bit value when comparing sample_regs When checking whether a bit representing a register is set in sample_regs, a 64-bit mask, use 64-bit value (1LL). Signed-off-by: Sukadev Bhattiprolu <sukadev@...ux.vnet.ibm.com> --- tools/perf/util/unwind.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/perf/util/unwind.c b/tools/perf/util/unwind.c index 742f23b..2b888c6 100644 --- a/tools/perf/util/unwind.c +++ b/tools/perf/util/unwind.c @@ -396,11 +396,11 @@ static int reg_value(unw_word_t *valp, struct regs_dump *regs, int id, { int i, idx = 0; - if (!(sample_regs & (1 << id))) + if (!(sample_regs & (1LL << id))) return -EINVAL; for (i = 0; i < id; i++) { - if (sample_regs & (1 << i)) + if (sample_regs & (1LL << i)) idx++; } -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists