mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-21 20:51:27 +00:00
50d607a3363ef3835f75e8b76d602397dd258918
This patch fixes warning with call trace that occurs during copy_to_user() from isert_read(): usercopy: Kernel memory exposure attempt detected from SLUB object 'sgv-clust-64K' (offset 200, size 48)! ------------[ cut here ]------------ kernel BUG at mm/usercopy.c:99! ... RIP: 0010:usercopy_abort+0x7b/0x7d Call Trace: __check_heap_object+0xdf/0x110 __check_object_size.part.0+0x128/0x150 __check_object_size+0x1c/0x20 isert_read+0x10b/0x380 [isert_scst] ? security_file_permission+0x96/0x160 vfs_read+0x9f/0x190 ksys_read+0x67/0xe0 __x64_sys_read+0x19/0x20 do_syscall_64+0x61/0xb0 ? __x64_sys_sendto+0x24/0x30 ? do_syscall_64+0x6e/0xb0 ? exit_to_user_mode_prepare+0x37/0xb0 ? syscall_exit_to_user_mode+0x27/0x50 ? do_syscall_64+0x6e/0xb0 ? asm_exc_page_fault+0x8/0x30 entry_SYSCALL_64_after_hwframe+0x44/0xae Signed-off-by: Morozov Ilia <morozov.i@raidix.com>
Overview
This is the source code repository of the SCST project. SCST is a collection of Linux kernel drivers that implement SCSI target functionality. The SCST project includes:
- The SCST core in the scst/ subdirectory.
- A tool for loading, saving and modifying the SCST configuration in directory scstadmin/.
- Several SCSI target drivers in the directories iscsi-scst/, qla2x00t/, srpt/, scst_local/ and fcst/.
- User space programs in the usr/ subdirectory, e.g. fileio_tgt.
- Various documentation in the doc/ subdirectory.
Instructions for building and installing SCST are available in the INSTALL.md file.
QLogic target driver
Two QLogic target drivers are included in the SCST project.
The default driver is located in qla2x00t-32gbit directory and it supports up to 32 Gb/s FC. It is the newer one.
May anyone wish to switch back to the older driver that only supported up to
16 Gb/s adapters, it is located in qla2x00t directory. To make use of the
older driver build scst with environment variable QLA_32GBIT=no set.
Vladislav Bolkhovitin vst@vlnb.net, http://scst.sourceforge.net
Description
Languages
C
90.1%
Perl
4.2%
Shell
1.8%
HTML
1.7%
Makefile
1.2%
Other
0.9%