mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
0655c3e76a9f35bf8cd1b0216743f24f7a87baa2
Avoid that KASAN reports the following complaint: BUG: KASAN: slab-out-of-bounds in f/0xdc4 [iscsi_scst] Read of size 8 at addr ffff888be35fd0ec by task iscsiwr0_71/3289 CPU: 42 PID: 3289 Comm: iscsiwr0_71 Tainted: G sos.debug #1 Hardware name: To be filled by O.E.M. Call Trace: dump_stack+0x8e/0xc8 print_address_description+0x73/0x238 kasan_report+0x228/0x251 check_memory_region+0x126/0x12c __asan_loadN+0xf/0x11 write_data+0x5df/0xdc4 [iscsi_scst] iscsi_do_send+0x20/0x67 [iscsi_scst] iscsi_send+0x1f0/0x574 [iscsi_scst] scst_do_job_wr+0x2ef/0x549 [iscsi_scst] istwr+0x366/0x4a2 [iscsi_scst] kthread+0x1df/0x1ef ret_from_fork+0x3a/0x50 Allocated by task 3063: save_stack_trace+0x1b/0x1d kasan_kmalloc.part.1+0x62/0xee kasan_kmalloc+0x7f/0x8b kasan_slab_alloc+0x12/0x14 kmem_cache_alloc+0x13d/0x27a mempool_alloc_slab+0x15/0x17 mempool_alloc+0xdb/0x1f3 scst_alloc_aen+0x96/0x223 [scst] scst_gen_aen_or_ua+0x16b/0x3d2 [scst] scst_capacity_data_changed+0x147/0x1cd [scst] vdev_size_process_store+0x1b5/0x1f4 [scst_vdisk] scst_process_sysfs_works+0x187/0x2a1 [scst] sysfs_work_thread_fn+0x301/0x42b [scst] kthread+0x1df/0x1ef ret_from_fork+0x3a/0x50 Reported-by: Marc Smith <msmith626@gmail.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8056 d57e44dd-8a1f-0410-8b47-8ef2f437770f
Overview ======== This is the SCST development repository. It contains not a single project SCST as one can think, but a number of them, which are divided as the following: 1. SCST core in scst/ subdirectory 2. Administration utility for SCST core scstadmin in scstadmin/ 3. Target drivers in own subdirectories qla2x00t/, iscsi-scst/, etc. 4. User space programs in usr/ subdirectory, like fileio_tgt. 5. Some various docs in doc/ subdirectory. Those subprojects are in most cases independent from each other, although some of them depend from the SCST core. They put in the single repository only to simplify their development, they are released independently. Thus, use "make all" only if you really need to build everything. Otherwise build only what you need, like for iSCSI-SCST: make scst scst_install iscsi iscsi_install For more information about each subproject see their README files. QLogic target driver ==================== QLogic target driver qla2x00t is the old driver, forked from qla2xxx several years ago. It is very stable, well tested and actively used in many production setups. There is also new driver, maintained by QLogic, which, among other, supports 32G FC, see http://scst.sourceforge.net/target_qla2x00t.html. You can find the latest version of it in git://git.qlogic.com/scst-qla2xxx.git. To integrate it into the SCST build tree you need to clone the QLogic git tree in a subdirectory of this directory (SCST root tree) with name qla2x00t_git (or create a symlink with this name pointing to any other location in your system). Now common and QLA specific root Makefile targets "magically" start working with the new driver. Then follow instructions in the git's README. In presence of qla2x00t_git subdirectory you can still build the qla2x00t using qla_old* root Makefile targets. 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%