linux/drivers/md
Mike Snitzer 25dd1546f8 dm table: avoid crash if integrity profile changes
commit 876fbba1db upstream.

Commit a63a5cf (dm: improve block integrity support) introduced a
two-phase initialization of a DM device's integrity profile.  This
patch avoids dereferencing a NULL 'template_disk' pointer in
blk_integrity_register() if there is an integrity profile mismatch in
dm_table_set_integrity().

This can occur if the integrity profiles for stacked devices in a DM
table are changed between the call to dm_table_prealloc_integrity() and
dm_table_set_integrity().

Reported-by: Zdenek Kabelac <zkabelac@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-10-16 14:14:53 -07:00
..
bitmap.c md/bitmap: remove unused fields from struct bitmap 2011-06-09 11:43:01 +10:00
bitmap.h md/bitmap: remove unused fields from struct bitmap 2011-06-09 11:43:01 +10:00
dm-bio-record.h
dm-crypt.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/agk/linux-2.6-dm 2011-03-25 20:51:44 -07:00
dm-delay.c
dm-exception-store.c
dm-exception-store.h
dm-flakey.c
dm-io.c dm io: flush cpu cache with vmapped io 2011-08-04 21:58:42 -07:00
dm-ioctl.c dm ioctl: add flag to wipe buffers for secure data 2011-03-24 13:54:30 +00:00
dm-kcopyd.c dm kcopyd: return client directly and not through a pointer 2011-05-29 13:03:13 +01:00
dm-linear.c
dm-log-userspace-base.c
dm-log-userspace-transfer.c
dm-log-userspace-transfer.h
dm-log.c dm io: use fixed initial mempool size 2011-05-29 13:03:09 +01:00
dm-mpath.c dm mpath: fix potential NULL pointer in feature arg processing 2011-08-04 21:58:43 -07:00
dm-mpath.h
dm-path-selector.c
dm-path-selector.h
dm-queue-length.c
dm-raid.c md/dm - remove remains of plug_fn callback. 2011-04-18 18:25:41 +10:00
dm-raid1.c dm kcopyd: return client directly and not through a pointer 2011-05-29 13:03:13 +01:00
dm-region-hash.c Fix common misspellings 2011-03-31 11:26:23 -03:00
dm-round-robin.c
dm-service-time.c
dm-snap-persistent.c dm snapshot: flush disk cache when merging 2011-08-04 21:58:42 -07:00
dm-snap-transient.c
dm-snap.c dm kcopyd: return client directly and not through a pointer 2011-05-29 13:03:13 +01:00
dm-stripe.c dm stripe: implement merge method 2011-03-24 13:54:35 +00:00
dm-sysfs.c
dm-table.c dm table: avoid crash if integrity profile changes 2011-10-16 14:14:53 -07:00
dm-target.c
dm-uevent.c
dm-uevent.h
dm-zero.c
dm.c dm: fix idr leak on module removal 2011-08-04 21:58:43 -07:00
dm.h
faulty.c Fix common misspellings 2011-03-31 11:26:23 -03:00
Kconfig
linear.c
linear.h md/linear: avoid corrupting structure while waiting for rcu_free to complete. 2011-10-03 11:40:03 -07:00
Makefile
md.c md: Avoid waking up a thread after it has been freed. 2011-10-16 14:14:53 -07:00
md.h md: Avoid waking up a thread after it has been freed. 2011-10-16 14:14:53 -07:00
multipath.c md: Avoid waking up a thread after it has been freed. 2011-10-16 14:14:53 -07:00
multipath.h md/multipath: discard ->working_disks in favour of ->degraded 2011-05-11 14:38:02 +10:00
raid1.c md: Avoid waking up a thread after it has been freed. 2011-10-16 14:14:53 -07:00
raid1.h MD: raid1 changes to allow use by device mapper 2011-06-08 15:11:31 +10:00
raid5.c md: Avoid waking up a thread after it has been freed. 2011-10-16 14:14:53 -07:00
raid5.h md - remove old plugging code. 2011-04-18 18:25:42 +10:00
raid10.c md: Avoid waking up a thread after it has been freed. 2011-10-16 14:14:53 -07:00
raid10.h Fix common misspellings 2011-03-31 11:26:23 -03:00
raid0.c
raid0.h