Bart Van Assche
6616eb6cf7
scst_copy_mgr: Suppress a Coverity taint complaint
...
Suppress the following (false positive) Coverity complaint:
CID 361193: Insecure data handling (TAINTED_SCALAR)
Passing tainted variable "sense_len" to a tainted sink.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9118 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-08-09 00:42:32 +00:00
Bart Van Assche
41b4e25644
qla2x00t-32gbit: Always check the return value of qla24xx_get_isp_stats()
...
This patch fixes the following Coverity warning:
CID 361199 (#1 of 1): Unchecked return value (CHECKED_RETURN)
3. check_return: Calling qla24xx_get_isp_stats without checking return
value (as is done elsewhere 4 out of 5 times).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9117 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-08-09 00:41:51 +00:00
Bart Van Assche
31dbbf3274
usr/fileio: Suppress a Coverity complaint about 'page_size'
...
Suppress the following Coverity complaint:
CID 361202: Error handling issues (NEGATIVE_RETURNS)
"page_size" is passed to a parameter that cannot be negative.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9116 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-08-09 00:41:14 +00:00
Bart Van Assche
6138af9193
scst_pres: Fix a potential buffer overflow in tid_secure()
...
This was detected by Coverity.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9115 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-08-09 00:40:40 +00:00
Bart Van Assche
534f63f47b
scst_pres: Use {get,put}_unaligned_be64() instead of {get,put}_unaligned_be()
...
This patch does not change any functionality.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9114 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-08-09 00:37:56 +00:00
Bart Van Assche
9a5d39ea44
Merge branch 'svn-trunk'
2020-08-08 08:25:36 -07:00
Bart Van Assche
754f932d5d
scst: Revert r9108
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9109 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-08-08 15:22:23 +00:00
Bart Van Assche
048ddfc638
scst_lib: Fix two lockdep_assert_held() statements
...
Fixes: 628f3939bc ("scst: Rework SCSI pass-through support for kernel versions >= 2.6.30") # r5979.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9108 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-08-08 15:17:09 +00:00
Bart Van Assche
4baaf08b9c
Merge branch 'svn-trunk'
2020-08-02 20:49:04 -07:00
Bart Van Assche
e05aab1c70
nightly build: Update kernel versions
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9106 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-08-03 03:48:51 +00:00
Bart Van Assche
c86e77e3de
Merge branch 'svn-trunk'
2020-08-02 20:39:07 -07:00
Bart Van Assche
f397c9558c
Fix scst-dkms-rpm build for EL mainline kernels
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9105 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-08-03 03:39:01 +00:00
Bart Van Assche
f0214a59bb
Fix rpm build for EL mainline kernels
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9104 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-08-03 03:38:01 +00:00
Bart Van Assche
db5448f2ec
Merge branch 'svn-trunk'
2020-08-02 20:37:25 -07:00
Bart Van Assche
8f70a32bd3
Merge pull request #28 from dodexahedron/master
...
Fix RPM builds on EL mainline kernels
2020-08-02 20:36:11 -07:00
Bart Van Assche
2bafc3bd51
scst: Fix three potential integer overflows
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9103 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-08-03 03:29:33 +00:00
dodexahedron
5a2b284329
Fix rpm build for EL mainline kernels
2020-08-02 20:18:36 -07:00
dodexahedron
af55e8d9b3
Fix scst-dkms-rpm build for EL mainline kernels
2020-08-02 20:17:21 -07:00
Bart Van Assche
0aed574e88
scripts/generate-kernel-patch: Make this script appropriate for the trunk and 3.4.x branches
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9098 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-08-03 02:56:37 +00:00
Bart Van Assche
cbf092f815
Merge branch 'svn-trunk'
2020-08-02 15:55:59 -07:00
Bart Van Assche
c973152d8d
qla2x00t, qla2x00t-32gbit: Remove unused code
...
This was detected by the clang compiler.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9096 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-08-02 22:55:54 +00:00
Bart Van Assche
9bef06a02f
Merge branch 'svn-trunk'
2020-08-02 15:54:47 -07:00
Bart Van Assche
c22a2d11b1
iscsi-scst: Fix the CONFIG_IPV6=n build
...
See also https://github.com/bvanassche/scst/issues/23 .
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9095 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-08-02 22:54:39 +00:00
Bart Van Assche
b1331f9a90
qla2x00t-32gbit: Fix the RHEL / CentOS 8.2 build
...
This patch has been tested against kernel version 4.18.0-193.14.2.el8_2.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9094 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-08-02 21:54:29 +00:00
Bart Van Assche
3fd6a8c93c
nightly build: Update kernel versions
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9093 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-08-02 21:53:42 +00:00
Bart Van Assche
ca607d88dd
qla2x00t-32gbit: Change two fxdisc_entry_fx00 members from a scalar into an array
...
This patch does not change any functionality but suppresses a Coverity
warning.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9092 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-08-02 21:53:19 +00:00
Bart Van Assche
757b42c2ba
qla2x00t: Fix two buffer overflows
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9091 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-08-02 21:22:13 +00:00
Bart Van Assche
1b5e2eb482
isert-scst: Fail login if max_sge is too small
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9090 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-08-02 21:21:38 +00:00
Bart Van Assche
ecea60a694
Make it possible to build SCST with clang
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9089 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-08-02 21:19:24 +00:00
Bart Van Assche
4762af5cec
Merge branch 'svn-trunk'
2020-07-28 19:05:40 -07:00
Bart Van Assche
454c3fb81f
Fix the qla2x00t-32gbit build on CentOS 8.2
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9087 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-07-29 01:59:10 +00:00
Bart Van Assche
d630389413
Merge branch 'svn-trunk'
2020-07-26 16:59:27 -07:00
Bart Van Assche
93c7dae589
nightly build: Update kernel versions
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9086 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-07-26 23:53:39 +00:00
Bart Van Assche
32aa14938d
Merge branch 'svn-trunk'
2020-07-26 16:53:02 -07:00
Bart Van Assche
86d602973b
iscsi-scst: Make this kernel module again independent of (M)OFED
...
This patch reverts f58c8248dd ("iscst-scst: Fix the OFED build"). This
patch partially reverts bd3355500a ("iscsi-scst, srpt: Rename the
PRE_CFLAGS variable into CONFTEST_FLAGS").
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9085 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-07-26 23:52:40 +00:00
Bart Van Assche
ebb024ff68
scst/include/backport.h: Backport qla2x00t-32gbit to older kernel versions
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9084 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-07-26 23:51:54 +00:00
Bart Van Assche
5106544817
Merge branch 'svn-trunk'
2020-07-25 20:35:01 -07:00
Bart Van Assche
f58c8248dd
iscst-scst: Fix the OFED build
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9083 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-07-26 03:34:55 +00:00
Bart Van Assche
bd3355500a
iscsi-scst, srpt: Rename the PRE_CFLAGS variable into CONFTEST_FLAGS
...
The latter name reflects better the role of this variable. Remove the
CPPFLAGS assignment from srpt/src/Kbuild because it is not useful.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9082 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-07-26 03:34:35 +00:00
Bart Van Assche
214628043e
qla2x00t: Remove a useless assignment
...
This was detected by the clang compiler.
Fixes: c006b05884 ("Update of the initiator driver to one from kernel 2.6.26. Sorry, the prior kernels not supported anymore, but backport patches are welcome.") # r473.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9081 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-07-26 03:33:03 +00:00
Bart Van Assche
93c2711530
iscsi-scst, srpt: Modify the message that reports which kernel headers are used
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9080 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-07-26 03:31:02 +00:00
Bart Van Assche
1c53adafe5
Merge branch 'svn-trunk'
2020-07-25 20:04:10 -07:00
Bart Van Assche
7cfc811542
Rename srpt/src/Makefile into srpt/src/Kbuild
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9079 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-07-26 02:58:29 +00:00
Bart Van Assche
bad54e8981
Merge branch 'svn-trunk'
2020-07-25 19:53:59 -07:00
Bart Van Assche
856bd8c1a1
configure tests: Rename Makefiles into Kbuild
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9078 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-07-26 02:52:51 +00:00
Bart Van Assche
fb0913e9fa
Merge branch 'svn-trunk'
2020-07-25 17:58:29 -07:00
Bart Van Assche
2029062924
iscsi-scst, ib_srpt: Add a MODULE_LICENSE() to the configure tests
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9077 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-07-26 00:53:52 +00:00
Bart Van Assche
203d427368
iscsi-scst/kernel/isert-scst/Kbuild: Revert r9075 because it triggers duplicate symbol warnings on x86
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9076 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-07-26 00:49:48 +00:00
Bart Van Assche
9dda1ab49e
Merge branch 'svn-trunk'
2020-07-25 07:47:36 -07:00
Bart Van Assche
770ffb6553
qla2x00t-32gbit: Address a set of sparse warnings
...
Fix the following sparse warnings:
drivers/scsi/qla2xxx/qla_isr.c:881:23: warning: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_isr.c:881:23: warning: cast to restricted __le16
Link: https://lore.kernel.org/r/20200715043358.21668-1-njavali@marvell.com
Signed-off-by: Shyam Sundar <ssundar@marvell.com >
Signed-off-by: Nilesh Javali <njavali@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
See also commit 58101f1504ad9b36e34533ec1fb01a8de80aa6d6 upstream.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9075 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-07-25 14:47:24 +00:00