https://github.com/torvalds/linux
Revision f3cff25f05f2ac29b2ee355e611b0657482f6f1d authored by Anatol Pomozov on 22 September 2013, 18:43:47 UTC, committed by Jens Axboe on 22 September 2013, 18:43:47 UTC
'samples' is 64bit operant, but do_div() second parameter is 32.
do_div silently truncates high 32 bits and calculated result
is invalid.

In case if low 32bit of 'samples' are zeros then do_div() produces
kernel crash.

Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 75afb35
History
Tip revision: f3cff25f05f2ac29b2ee355e611b0657482f6f1d authored by Anatol Pomozov on 22 September 2013, 18:43:47 UTC
cfq: explicitly use 64bit divide operation for 64bit arguments
Tip revision: f3cff25
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.1 KB
.mailmap -rw-r--r-- 4.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 93.1 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 254.0 KB
Makefile -rw-r--r-- 47.4 KB
README -rw-r--r-- 18.3 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top