summaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorHeinz Mauelshagen <heinzm@redhat.com>2016-04-29 18:59:56 +0200
committerMike Snitzer <snitzer@redhat.com>2016-05-13 15:03:51 +0200
commit4c9971ca6a172e70f52a7f9b6796e843c3f70293 (patch)
tree67beaa03c6bad723dcc555d507cdb9d4ccb9f902 /drivers/dma
parentdm ioctl: drop use of __GFP_REPEAT in copy_params()'s __vmalloc() call (diff)
downloadlinux-4c9971ca6a172e70f52a7f9b6796e843c3f70293.tar.xz
linux-4c9971ca6a172e70f52a7f9b6796e843c3f70293.zip
dm raid: make sure no feature flags are set in metadata
Given we don't yet support any feature flags in the dm-raid ondisk metadata (see: 'features' member of 'struct dm_raid_superblock'), add a check to ensure no flags are actually set, if any features are set reject the activation of the RAID mapping. This is to prevent possible data corruption in case of a kernel downgrade when there'll potentially be feature flags set by a future dm-raid target. Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/dma')
0 files changed, 0 insertions, 0 deletions