drbd: check for corrupt or malicous sector addresses when receiving data
authorLars Ellenberg <lars.ellenberg@linbit.com>
Tue, 6 Apr 2010 10:15:04 +0000 (12:15 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Mon, 17 May 2010 23:09:57 +0000 (01:09 +0200)
commit6666032ade5a758aa05380ab92f416ab8ef25005
treebe2ef8e83cfd52afb31fee9574baebf5b6d3866c
parentc3fe30b0e7cd67e0207097f5f39ce9626644879e
drbd: check for corrupt or malicous sector addresses when receiving data

Even if it should never happen if the peer does behave, we need to
double check, and not even attempt access beyond end of device.
It usually would be caught by lower layers, resulting in "IO error",
but may also end up in the internal meta data area.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_receiver.c