Home
last modified time | relevance | path

Searched hist:"512875 bd9661368da6f993205a61213b79ba1df0" (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/drivers/md/
H A Ddm.hdiff 512875bd9661368da6f993205a61213b79ba1df0 Thu Dec 13 08:15:25 CST 2007 Jun'ichi Nomura <j-nomura@ce.jp.nec.com> dm: table detect io beyond device

This patch fixes a panic on shrinking a DM device if there is
outstanding I/O to the part of the device that is being removed.
(Normally this doesn't happen - a filesystem would be resized first,
for example.)

The bug is that __clone_and_map() assumes dm_table_find_target()
always returns a valid pointer. It may fail if a bio arrives from the
block layer but its target sector is no longer included in the DM
btree.

This patch appends an empty entry to table->targets[] which will
be returned by a lookup beyond the end of the device.

After calling dm_table_find_target(), __clone_and_map() and target_message()
check for this condition using
dm_target_is_valid().

Sample test script to trigger oops:
H A Ddm-ioctl.cdiff 512875bd9661368da6f993205a61213b79ba1df0 Thu Dec 13 08:15:25 CST 2007 Jun'ichi Nomura <j-nomura@ce.jp.nec.com> dm: table detect io beyond device

This patch fixes a panic on shrinking a DM device if there is
outstanding I/O to the part of the device that is being removed.
(Normally this doesn't happen - a filesystem would be resized first,
for example.)

The bug is that __clone_and_map() assumes dm_table_find_target()
always returns a valid pointer. It may fail if a bio arrives from the
block layer but its target sector is no longer included in the DM
btree.

This patch appends an empty entry to table->targets[] which will
be returned by a lookup beyond the end of the device.

After calling dm_table_find_target(), __clone_and_map() and target_message()
check for this condition using
dm_target_is_valid().

Sample test script to trigger oops:
H A Ddm-table.cdiff 512875bd9661368da6f993205a61213b79ba1df0 Thu Dec 13 08:15:25 CST 2007 Jun'ichi Nomura <j-nomura@ce.jp.nec.com> dm: table detect io beyond device

This patch fixes a panic on shrinking a DM device if there is
outstanding I/O to the part of the device that is being removed.
(Normally this doesn't happen - a filesystem would be resized first,
for example.)

The bug is that __clone_and_map() assumes dm_table_find_target()
always returns a valid pointer. It may fail if a bio arrives from the
block layer but its target sector is no longer included in the DM
btree.

This patch appends an empty entry to table->targets[] which will
be returned by a lookup beyond the end of the device.

After calling dm_table_find_target(), __clone_and_map() and target_message()
check for this condition using
dm_target_is_valid().

Sample test script to trigger oops:
H A Ddm.cdiff 512875bd9661368da6f993205a61213b79ba1df0 Thu Dec 13 08:15:25 CST 2007 Jun'ichi Nomura <j-nomura@ce.jp.nec.com> dm: table detect io beyond device

This patch fixes a panic on shrinking a DM device if there is
outstanding I/O to the part of the device that is being removed.
(Normally this doesn't happen - a filesystem would be resized first,
for example.)

The bug is that __clone_and_map() assumes dm_table_find_target()
always returns a valid pointer. It may fail if a bio arrives from the
block layer but its target sector is no longer included in the DM
btree.

This patch appends an empty entry to table->targets[] which will
be returned by a lookup beyond the end of the device.

After calling dm_table_find_target(), __clone_and_map() and target_message()
check for this condition using
dm_target_is_valid().

Sample test script to trigger oops: