From: fanchaoting Date: Thu, 21 Mar 2013 01:15:30 +0000 (+0800) Subject: pnfs-block: removing DM device maybe cause oops when call dev_remove X-Git-Tag: v3.9-rc5~29^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4376c94618c26225e69e17b7c91169c45a90b292;p=pandora-kernel.git pnfs-block: removing DM device maybe cause oops when call dev_remove when pnfs block using device mapper,if umounting later,it maybe cause oops. we apply "1 + sizeof(bl_umount_request)" memory for msg->data, the memory maybe overflow when we do "memcpy(&dataptr [sizeof(bl_msg)], &bl_umount_request, sizeof(bl_umount_request))", because the size of bl_msg is more than 1 byte. Signed-off-by: fanchaoting Cc: stable@vger.kernel.org Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed