dm raid: fix parse_raid_params() variable range issue
Heinz Mauelshagen authored

parse_raid_params() compares variable "int value" with INT_MAX.

E.g. related Coverity report excerpt:
   CID 1364818 (#2 of 3): Operands don't affect result (CONSTANT_EXPRESSION_RESULT) [select issue]
1433                        if (value > INT_MAX) {

Fix by changing checks to avoid INT_MAX.

Whilst on it, avoid unnecessary checks against constants
and add check for sane recovery speed min/max.
Signed-off-by: default avatarHeinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
13bc62d4
Name Last commit Last update
Documentation dm verity: add 'check_at_most_once' option to only validate hashes once
LICENSES LICENSES: Add MPL-1.1 license
arch Merge branch 'x86-pti-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
block Merge tag 'for-linus-20180302' of git://git.kernel.dk/linux-block
certs certs/blacklist_nohashes.c: fix const confusion in certs blacklist
crypto X.509: fix NULL dereference when restricting key with unsupported_sig
drivers dm raid: fix parse_raid_params() variable range issue
firmware kbuild: remove all dummy assignments to obj-
fs Merge branch 'overlayfs-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs
include dm bufio: move dm-bufio.h to include/linux/
init jump_label: Explicitly disable jump labels in __init code
ipc vfs: do bulk POLL* -> EPOLL* replacement
kernel Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
lib lib/test_kmod.c: fix limit check on number of test devices created
mm mm/page_alloc: fix memmap_init_zone pageblock alignment
net Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
samples Merge tag 'seccomp-v4.16-rc4' of https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux into fixes-v4.16-rc4
scripts kbuild: Handle builtin dtb file names containing hyphens
security integrity/security: fix digsig.c build error with header file
sound ALSA: hda: add dock and led support for HP ProBook 640 G2
tools Merge branch 'x86-pti-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
usr initramfs: fix initramfs rebuilds w/ compression after disabling
virt KVM: mmu: Fix overlap between public and private memslots
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Add hch to .get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
Linux kernel
============

This file was moved to Documentation/admin-guide/README.rst

Please notice that there are several guides for kernel developers and users.
These guides can be rendered in a number of formats, like HTML and PDF.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.