db: kernel: fake up ->read/write() limits
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 18 Apr 2013 11:34:36 +0000 (14:34 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 18 Apr 2013 11:34:36 +0000 (14:34 +0300)
commit1bf88c69ad09230d19677f64c9cae14063cf237f
tree0f0a7fbe9eb96cfd66cc5f863d6273356cb9a61d
parent9dba021f90725bd3c961f8a2ff4fc19bc6c2c3c1
db: kernel: fake up ->read/write() limits

rw_verify_area() checks that the *off + count parameters of read() and
write() can't overflow.  What if said here is that both off and count are
between 0 and 100000.  Which isn't true, but it cuts down on some false
positives.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_data/db/fixup_kernel.sh