linux/drivers/scsi/megaraid
Arnd Bergmann bba84aecca scsi: megaraid_sas: Simplify compat_ioctl handling
There have been several attempts to fix serious problems in the compat
handling in megasas_mgmt_compat_ioctl_fw(), and it also uses the
compat_alloc_user_space() function.

Folding the compat handling into the regular ioctl function with
in_compat_syscall() simplifies it a lot and avoids some of the remaining
problems:

 - missing handling of unaligned pointers

 - overflowing the ioc->frame.raw array from invalid input

 - compat_alloc_user_space()

Link: https://lore.kernel.org/r/20201030164450.1253641-3-arnd@kernel.org
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2020-11-04 21:56:17 -05:00
..
Kconfig.megaraid
Makefile
mbox_defs.h
mega_common.h
megaraid_ioctl.h
megaraid_mbox.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
megaraid_mbox.h
megaraid_mm.c scsi: megaraid: Fix kdoc comments format 2020-07-08 01:00:30 -04:00
megaraid_mm.h
megaraid_sas_base.c scsi: megaraid_sas: Simplify compat_ioctl handling 2020-11-04 21:56:17 -05:00
megaraid_sas_debugfs.c
megaraid_sas_fp.c scsi: megaraid: Remove set but unused variable 2020-07-08 01:02:11 -04:00
megaraid_sas_fusion.c scsi: megaraid_sas: Added support for shared host tagset for cpuhotplug 2020-10-06 08:33:44 -06:00
megaraid_sas_fusion.h scsi: megaraid_sas: Replace undefined MFI_BIG_ENDIAN macro with __BIG_ENDIAN_BITFIELD macro 2020-05-11 23:06:24 -04:00
megaraid_sas.h scsi: megaraid_sas: Simplify compat_ioctl handling 2020-11-04 21:56:17 -05:00