commit | afedbf63c6150bf6db0a5ab591076948edc32239 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Fri Dec 16 13:42:06 2016 -0500 |
committer | chrmhoffmann <chrmhoffmann@gmail.com> | Sat Aug 12 18:28:04 2017 +0200 |
tree | 24a3a8c8c258242c247658774e630df578570046 | |
parent | 2a8cc1937deb561c508d21525dcdf1b418476ff5 [diff] |
sg_write()/bsg_write() is not fit to be called under KERNEL_DS Both damn things interpret userland pointers embedded into the payload; worse, they are actually traversing those. Leaving aside the bad API design, this is very much _not_ safe to call with KERNEL_DS. Bail out early if that happens. Change-Id: I74658c269c42a4f2023e829a1c8e0ec0804cef9b Cc: stable@vger.kernel.org Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>