Commit Graph

8025 Commits

Author SHA1 Message Date
Bart Van Assche
3a39db9932 Merge branch 'svn-trunk' 2020-12-19 18:23:09 -08:00
Bart Van Assche
5e2e7bca82 scripts/run-regression-tests: More Linux kernel v5.10 fixes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9218 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-12-20 02:22:47 +00:00
Bart Van Assche
6c37ea9023 scripts/run-regression-tests: Fix the build against Linux kernel v5.10
From the Linux kernel help text:

  modules_prepare - Set up for building external modules


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9217 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-12-20 02:16:20 +00:00
Bart Van Assche
e1f9a517c8 Port Kconfig files to kernel v5.9
Change '---help---' into 'help'. See also Linux kernel commit f70f74d15ca8
("kconfig: remove '---help---' support") # v5.9.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9216 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-12-20 02:07:40 +00:00
Bart Van Assche
7657f17bf5 scripts/kernel-functions: Source code cleanup
Fix a few shellcheck warnings, swap two if-statements and add a few comments.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9215 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-12-20 00:59:42 +00:00
Bart Van Assche
ff861a35f8 Merge branch 'svn-trunk' 2020-12-19 09:51:13 -08:00
Bart Van Assche
5a1f212ce6 nightly build: Include the Oracle UEK kernel
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9214 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-12-19 17:51:00 +00:00
Bart Van Assche
45f28a6a56 Merge branch 'svn-trunk' 2020-12-17 11:56:21 -08:00
Bart Van Assche
6c47d7332d scst_pres: Revert r9114
In contrast with the description of that commit, commit r9114 changes the
functionality of the scst_pres code. Hence revert that commit.

Reported-by: Chesnokov Gleb <Chesnokov.G@raidix.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9213 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-12-17 19:53:46 +00:00
Bart Van Assche
b316b28bda Merge branch 'svn-trunk' 2020-12-14 21:01:07 -08:00
Bart Van Assche
a7cf961c4a scst/ChangeLog: Document supported kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9212 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-12-15 05:01:00 +00:00
Bart Van Assche
9a7f099e14 ChangeLog: Summarize v3.5 changes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9211 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-12-14 04:07:56 +00:00
Bart Van Assche
b63c5aa18b Merge branch 'svn-trunk' 2020-12-08 20:56:19 -08:00
Vladislav Bolkhovitin
dc1e3d786a Problem statement: Applications that are capable of running as Fibre
Transport Target mode server need to able to function when running in
containerized form factor in a secure and multi-tenant platform.

Solution: Such applications when containerized can run in any container
based platform such as Kubernetes/OpenShift or a custom one. These
applications are generic in nature and all they need is access  to SCST
user storage device driver (/dev/scst_user). The security policy of the
platform may not allow these applications to manage Fibre Channel (FC)
port and /sys file-system. The platform, however, can manage the FC ports
on behalf of these applications. The containerized applications can
remain generic in nature and run on any containerized platforms. The
sequence of operations would be 1. The platform converts the desired FC
ports to target mode prior to starting the containerized application 2.
The application does device registration using exported the SCST user
storage device driver 3. The platform, at this point, asynchronously adds
FC port LUNs to the user device registered by the application. As the
application inside the container can auto or manual restart
asynchronously, the platform would add the LUNs every time the
application does device registration.
 
Patch description: The SCST event mechanism is leveraged to achieve the
asynchronous LUN additions when application does device registration. The
current set of SCST events is extended to send a new event whenever there
is a virtual user device registration happens. The platform can watch for
the specific event and make business logic decisions to allow target mode
applications function securely. By extending the set of event, the SCST
module will be friendly to containerized applications and platforms.

Signed-off-by: Vikas Goel <vikas.goel@veritas.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9210 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-12-08 17:06:40 +00:00
Bart Van Assche
0c015ec3ea Merge branch 'svn-trunk' 2020-12-05 15:31:30 -08:00
Bart Van Assche
d10a7bf5d5 Restore support for building with clang
The previous commit removed support for building with clang. Restore support
for building with clang without breaking cross-compilation support.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9209 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-12-05 21:23:17 +00:00
Bart Van Assche
19947e3cbd Merge branch 'svn-trunk' 2020-12-05 11:54:50 -08:00
Bart Van Assche
8eb850acce Revert "Make it possible to build SCST with clang"
Since commit ecea60a694 breaks cross-compilation, revert it.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9208 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-12-05 18:39:38 +00:00
Bart Van Assche
51c9ab890c Merge branch 'svn-trunk' 2020-12-02 20:03:35 -08:00
Bart Van Assche
f9ea2bdc4d nightly build: Add the CentOS 8.2 baseline kernel
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9198 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-12-02 18:00:22 +00:00
Bart Van Assche
c322c78e75 Merge branch 'svn-trunk' 2020-11-26 19:52:41 -08:00
Bart Van Assche
a673470ce3 scst, iscsi-scst: Use struct kvec instead of struct iovec for kernel data
This patch does not change any functionality but removes multiple __force
__user casts.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9197 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-11-27 03:45:16 +00:00
Bart Van Assche
fcdeb4148b Merge branch 'svn-trunk' 2020-11-26 19:28:23 -08:00
Bart Van Assche
02f350c8a7 scst_vdisk: Rename vdisk_alloc_iv() into vdisk_alloc_sync_kvec()
This patch does not change any functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9196 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-11-27 03:26:50 +00:00
Bart Van Assche
e3e4c954b2 scst_vdisk: Rename vdisk_alloc_kvec() into vdisk_alloc_async_kvec()
This patch does not change any functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9195 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-11-27 03:24:50 +00:00
Bart Van Assche
3be1f4b695 Merge branch 'svn-trunk' 2020-11-24 21:08:08 -08:00
Bart Van Assche
f3fc455a04 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9194 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-11-25 03:43:37 +00:00
Bart Van Assche
1bd869e083 Merge branch 'svn-trunk' 2020-11-23 08:08:56 -08:00
Bart Van Assche
54545b43e5 scst: Rename the old version of scst_vfs_unlink_and_put()
See also commit c5e725f33b73 ("Move struct path into its own header"; v2.6.25).


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9193 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-11-23 16:08:41 +00:00
Bart Van Assche
e9299277fd scst: Use kern_path() from kernel version v2.6.28 on
See also commit d181146572c4 ("[PATCH] new helper - kern_path()"; v2.6.28).


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9192 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-11-23 16:07:50 +00:00
Bart Van Assche
a7214ad3d1 scst: Port scst_readv() and scst_writev() to Linux kernel v5.10
Additionally, prevent that these functions trigger memory allocation if
vlen > 8.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9191 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-11-23 16:07:09 +00:00
Bart Van Assche
e93e3cd2fb scst/include/backport.h: Port READ_REF_COUNT() to Linux kernel v5.10
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9190 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-11-23 15:59:23 +00:00
Bart Van Assche
fd5b318880 iscsi-scst: Port to Linux kernel v5.10
mm_segment_t, get_fs() and set_fs() have been removed from Linux kernel
v5.10. Instead of adding more #ifdef / #endif directives, provide backports
for this typedef and these functions in iscsi_scst.h.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9189 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-11-23 15:58:00 +00:00
Bart Van Assche
9ac77f979d scst: Simplify the kernel_write() backport
Instead of duplicating some of the scst_writev() implementation, always call
scst_writev().


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9188 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-11-23 15:56:18 +00:00
Bart Van Assche
2f58d0e48d scst: Remove superfluous get_fs() and set_fs() calls
Calling set_fs(KERNEL_DS) before calling path_lookup() or kern_path() is
not necessary since the arguments of these functions point at kernel data.
Hence remove the get_fs() / set_fs() calls from around these function calls.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9187 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-11-23 15:54:35 +00:00
Bart Van Assche
6c6e130fd3 Merge branch 'svn-trunk' 2020-11-21 19:10:50 -08:00
Bart Van Assche
efca492e93 fcst: Revert r9181
This change is necessary for kernel v5.11 instead of v5.10 so revert it
for now.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9186 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-11-22 03:08:08 +00:00
Bart Van Assche
a5e25d6f59 Merge branch 'svn-trunk' 2020-11-20 19:05:10 -08:00
Bart Van Assche
39b6e87935 scst: Unbreak the build for kernel 4.1.12-124.45.2.el7uek.x86_64
Apparently this kernel has kvmalloc_node(), kvmalloc() and kvzalloc()
backports but no kvmalloc_array() backport.

See also the following commits:
* c027b9de7e ("scst: Port to UEK 4")
* 23a2753a9c ("scst/include/backport.h: Add backports for additional kernel functions, constants and data structures")

Reported-by: Gilbert Standen <gilstanden@hotmail.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9185 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-11-21 03:04:57 +00:00
Bart Van Assche
1fa6439c89 Merge branch 'svn-trunk' 2020-11-18 19:47:22 -08:00
Bart Van Assche
a952a3584b scst: Unbreak the build for kernel versions 3.0..4.16
Reported-by: Gilbert Standen <gilstanden@hotmail.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9184 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-11-19 03:47:09 +00:00
Bart Van Assche
af0b6a2895 scripts/specialize-patch: Handle _COMPAT_LINUX_MM_H correctly
Fixes: 5930b4db71 ("scst: Fix the MOFED build")


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9183 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-11-19 03:46:04 +00:00
Bart Van Assche
b35c95a784 Merge branch 'svn-trunk' 2020-11-17 17:30:40 -08:00
Bart Van Assche
ca9d681fd0 scst: Fix the kobj_ns_grab_current() and kobj_ns_drop() backports
Reported-by: Gilbert Standen <gilstanden@hotmail.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9182 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-11-18 01:30:33 +00:00
Bart Van Assche
049399f5c3 Merge branch 'svn-trunk' 2020-11-17 17:07:27 -08:00
Bart Van Assche
1686029f60 fcst: Port to Linux kernel v5.10
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9181 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-11-16 04:34:24 +00:00
Bart Van Assche
902ad40417 Merge branch 'svn-trunk' 2020-11-15 19:54:44 -08:00
Bart Van Assche
ac6485df69 ib_srpt: Port to Linux kernel v5.10
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9180 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-11-16 03:54:37 +00:00
Bart Van Assche
c84320f03f Merge branch 'svn-trunk' 2020-11-14 09:20:50 -08:00
Bart Van Assche
aaf96673e6 scst: Unbreak the UEK 4 build
UEK 4 RPMs like kernel-uek-4.14.35-2025.402.2.1.el7uek.x86_64 include a
backport of cpu_to_be32_array() and kvcalloc(). Hence disable the SCST
backports for these functions when building against UEK 4.

Reported-by: Gilbert Standen <gilstanden@hotmail.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9179 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-11-14 17:20:30 +00:00