]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8d1fdcbf517a96672baf5cf7a815a7120980c6db
treebe2ef8e83cfd52afb31fee9574baebf5b6d3866c
parent0cd84c879dd23c19d4790d0da32fde5e3073381e
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