]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Overflow checking in dm-verity was not sufficient.
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 20 Aug 2012 01:42:22 +0000 (11:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 20 Aug 2012 01:42:22 +0000 (11:42 +1000)
commit057d04004635ab5c57d1f8a855ae2858bdbda61a
tree46fb2383e83f2799484e6455707629e29c72f7ce
parent0d7614f09c1ebdbaa1599a5aba7593f147bf96ee
Overflow checking in dm-verity was not sufficient.
It would check overflow if sector_t was smaller than long long but not
if sector_t and long long have the same size. This patch implements
proper overflow checking.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-verity.c