megaraid_sas : SMAP restriction--do not access user memory from IOCTL code
authorsumit.saxena@avagotech.com <sumit.saxena@avagotech.com>
Thu, 15 Oct 2015 08:10:54 +0000 (13:40 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 3 Nov 2015 03:56:13 +0000 (22:56 -0500)
commit323c4a02c631d00851d8edc4213c4d184ef83647
tree3535d1c715787f6254c632a0da1c60132fd2c67b
parent0b48d12d0365a628d2257a4560b3b06c825fe1cd
megaraid_sas : SMAP restriction--do not access user memory from IOCTL code

This is an issue on SMAP enabled CPUs and 32 bit apps running on 64 bit
OS. Do not access user memory from kernel code. The SMAP bit restricts
accessing user memory from kernel code.

Cc: <stable@vger.kernel.org>
Signed-off-by: Sumit Saxena <sumit.saxena@avagotech.com>
Signed-off-by: Kashyap Desai <kashyap.desai@avagotech.com>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/megaraid/megaraid_sas_base.c