android_kernel_samsung_univ.../include
Ilya Dryomov a319bf56a6 libceph: store timeouts in jiffies, verify user input
There are currently three libceph-level timeouts that the user can
specify on mount: mount_timeout, osd_idle_ttl and osdkeepalive.  All of
these are in seconds and no checking is done on user input: negative
values are accepted, we multiply them all by HZ which may or may not
overflow, arbitrarily large jiffies then get added together, etc.

There is also a bug in the way mount_timeout=0 is handled.  It's
supposed to mean "infinite timeout", but that's not how wait.h APIs
treat it and so __ceph_open_session() for example will busy loop
without much chance of being interrupted if none of ceph-mons are
there.

Fix all this by verifying user input, storing timeouts capped by
msecs_to_jiffies() in jiffies and using the new ceph_timeout_jiffies()
helper for all user-specified waits to handle infinite timeouts
correctly.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Alex Elder <elder@linaro.org>
2015-06-25 11:49:29 +03:00
..
acpi
asm-generic
clocksource
crypto
drm
dt-bindings
keys
kvm
linux libceph: store timeouts in jiffies, verify user input 2015-06-25 11:49:29 +03:00
math-emu
media
memory
misc
net tcp: fix child sockets to use system default congestion control if not set 2015-05-31 21:49:14 -07:00
pcmcia
ras
rdma
rxrpc
scsi
soc
sound ALSA: hda - Re-add the lost fake mute support 2015-06-11 11:55:48 +02:00
target target: Use a PASSTHROUGH flag instead of transport_types 2015-05-30 19:58:11 -07:00
trace Merge branch 'for-linus' of git://git.kernel.dk/linux-block 2015-06-03 16:35:00 -07:00
uapi drm/radeon: Add RADEON_INFO_VA_UNMAP_WORKING query 2015-06-18 20:36:56 +02:00
video
xen xen/events: don't bind non-percpu VIRQs with percpu chip 2015-05-19 19:55:36 +01:00
Kbuild