From: Thomas Gleixner Date: Mon, 20 Oct 2014 11:07:50 +0000 (+0400) Subject: clockevents: Prevent shift out of bounds X-Git-Tag: omap-for-v3.19/fixes-not-urgent-part1~33^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10632008b9e18b76cbff0ffc69c15e948aa548e0;p=pandora-kernel.git clockevents: Prevent shift out of bounds Andrey reported that on a kernel with UBSan enabled he found: UBSan: Undefined behaviour in ../kernel/time/clockevents.c:75:34 I guess it should be 1ULL here instead of 1U: (!ismax || evt->mult <= (1U << evt->shift))) That's indeed the correct solution because shift might be 32. Reported-by: Andrey Ryabinin Cc: Peter Zijlstra Signed-off-by: Thomas Gleixner --- Reading git-diff-tree failed