aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* cxgbe/iw_cxgbe: c4iw_zero_addr should not use IN_ZERONET.HEADmainNavdeep Parhar2 hours1-2/+1
| | | | | | | | | | c4iw_zero_addr is supposed to check for all-zero addresses but was using IN_ZERONET (which does something different) for IPv4 addresses. Fix it by simply checking for 0 as is done for IPv6 addresses. Reported by: karels@ MFC after: 3 days Sponsored by: Chelsio Communications
* src.libnames: Replace redundant += with =Cy Schubert2 hours1-2/+2
| | | | | | | | | The += for unique assignments is equivalent to =. Make these confusing assignments simply assignments. Reviewed by: emaste MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D35242
* linux(4): To improve readability use FUTEX_UNOWNED instead of 0Dmitry Chagin6 hours1-5/+6
| | | | MFC after: 2 weeks
* Fix the build after 47a57144Dmitry Chagin6 hours1-1/+6
|
* linux(4): Convert the native kernel signal codes into the Linux codesDmitry Chagin8 hours1-4/+74
| | | | MFC after: 2 weeks
* linux(4): Add kernel signal code definitionsDmitry Chagin8 hours1-0/+111
| | | | | | | In the next commit I'll convert the native signal codes into the Linux codes, since they are not 1:1 mapped. MFC after: 2 weeks
* linux(4): Move signal codes definitions to the appropriate headerDmitry Chagin8 hours2-12/+12
| | | | | | | In the Linux the struct siginfo related bits are placed into the siginfo.h header. MFC after: 2 weeks
* arm64: Enable the floating-point exception trapsDmitry Chagin8 hours3-1/+40
| | | | | | | | | | | To enable it user-space needs to call feenableexcept(). FPE_FLTIDO has been added as the IDF bit can't be mapped to any existing FPE code. Reviewed by: andrew@ Differential revision: https://reviews.freebsd.org/D35247 MFC after: 2 weeks
* linux(4): Handle cas failure on ll/sc operationsDmitry Chagin8 hours1-0/+11
| | | | | | | | | | Follow the 11a6ecd4. Check and handle the case when the ll/sc casu fails even when the compare succeeds. For more details PR/263825, https://reviews.freebsd.org/D35150. Obtained from: Andrew@ MFC after: 2 weeks
* kqueue: Trim trailing whitespaceDmitry Chagin8 hours1-10/+10
| | | | MFC after: 1 week
* cpuset: Byte swap cpuset for compat32 on big endian architecturesJustin Hibbits9 hours4-20/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | Summary: BITSET uses long as its basic underlying type, which is dependent on the compile type, meaning on 32-bit builds the basic type is 32 bits, but on 64-bit builds it's 64 bits. On little endian architectures this doesn't matter, because the LSB is always at the low bit, so the words get effectively concatenated moving between 32-bit and 64-bit, but on big-endian architectures it throws a wrench in, as setting bit 0 in 32-bit mode is equivalent to setting bit 32 in 64-bit mode. To demonstrate: 32-bit mode: BIT_SET(foo, 0): 0x00000001 64-bit sees: 0x0000000100000000 cpuset is the only system interface that uses bitsets, so solve this by swapping the integer sub-components at the copyin/copyout points. Reviewed by: kib MFC after: 3 days Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D35225
* makefs: Remove execute permission from in-tree test scriptsMark Johnston9 hours3-0/+0
| | | | | | | Let the build system set it as needed. No functional change intended. MFC after: 1 week Sponsored by: The FreeBSD Foundation
* jexec man: Explain how PATH is adjusted.Gleb Popov11 hours1-0/+2
| | | | | | | | Add a sentence that explains that PATH is set to `/bin:/usr/bin`. I had to dive into `jexec.c` to find this out. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D35251
* Use getpagesize in gcore to find the page sizeAndrew Turner14 hours1-3/+5
| | | | | | Reviewed by: markj Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D35194
* Support LSE atomics in the arm64 casue* functionsAndrew Turner15 hours3-6/+105
| | | | | | | | | As with atomic(9) use the ARMv8.1 Large System Extension atomic instructions to implement the userspace compare and swap functions. Reviewed by: kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D35234
* Handle cas failure when the compare succeedsAndrew Turner15 hours1-0/+11
| | | | | | | | | | | | | When locking a priority inherit mutex we perform a compare and swap operation to try and acquire the mutex. This may fail even when the compare succeeds. Check and handle this case. PR: 263825 Reviewed by: kib, markj Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D35150
* Fix the name of Makefile.aarch64Andrew Turner15 hours1-0/+0
| | | | | | | | | Makefile.arm64 relies on being included via Makefile.${MACHINE}. This only works when arm64 is the only aarch64 architecture. Switch to Makefile.aarch64 so downstream CheriBSD can use the file when building for Morello which uses a differen ${MACHINE} value. Sponsored by: Innovate UK
* mlx4: Fix a memory leak bug.Hans Petter Selasky17 hours1-1/+1
| | | | | | | | | | | | | | In function mlx4_opreq_action(), pointer "mailbox" is not released, when mlx4_cmd_box() return and error, causing a memory leak bug. Fix this issue by going to "out" label, mlx4_free_cmd_mailbox() can free this pointer. Linux commit: febfd9d3c7f74063e8e630b15413ca91b567f963 PR: 264056 MFC after: 1 week Sponsored by: NVIDIA Networking
* ibcore: Fix possible memory leak in ib_mad_post_receive_mads()Hans Petter Selasky17 hours1-0/+1
| | | | | | | | | | | | | | If ib_dma_mapping_error() returns non-zero value, ib_mad_post_receive_mads() will jump out of loops and return -ENOMEM without freeing mad_priv. Fix this memory-leak problem by freeing mad_priv in this case. Linux commit: a17f4bed811c60712d8131883cdba11a105d0161 PR: 264057 MFC after: 1 week Sponsored by: NVIDIA Networking
* zfs: merge openzfs/zfs@c0cf6ed67Martin Matuska26 hours1165-15485/+12086
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notable upstream pull request merges: #10662 zvol_wait: Ignore locked zvols #12789 Improve log spacemap load time #12812 Improved zpool status output, list all affected datasets #13277 FreeBSD: Use NDFREE_PNBUF if available #13302 Make zfs_max_recordsize default to 16M #13311 Fix error handling in FreeBSD's get/putpages VOPs #13345 FreeBSD: Fix translation from ABD to physical pages #13373 zfs: holds: dequadratify #13375 Corrected edge case in uncompressed ARC->L2ARC handling #13388 Improve mg_aliquot math #13405 Reduce dbuf_find() lock contention #13406 FreeBSD: use zero_region instead of allocating a dedicated page Obtained from: OpenZFS OpenZFS commit: c0cf6ed6792e545fd614c2a88cb53756db7e03f8
| * Fix compiler warnings about zero-length arrays in inline bitopsvendor/openzfs/masterColeman Kane2 days1-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | The compiler appears to be expanding the unused NULL pointer into a zero-length array via the inline bitops code. When -Werror=array-bounds is used, this causes a build failure. Recommended solution is allocate temporary structures, fill with zeros (to avoid uninitialized data use warnings), and pass the pointer to those to the inline calls. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Coleman Kane <ckane@colemankane.org> Closes #13463 Closes #13465
| * linux: libzutil: zfs_strip_path: only strip known prefixesнаб3 days1-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This mirrors FreeBSD: # zpool create -o cachefile= testpsko media/testpsko # zpool create -o cachefile= testpsko2 $PWD/testpsko2 $ ./zpool list -v NAME SIZE ALLOC FREE filling 25.5T 6.85T 18.6T mirror-0 3.64T 500G 3.15T ata-HGST_HUS726T4TALE6L4_V6K2L4RR - - - ata-HGST_HUS726T4TALE6L4_V6K2MHYR - - - raidz1-1 21.8T 6.36T 15.5T ata-HGST_HUS728T8TALE6L4_VDKT237K - - - ata-HGST_HUS728T8TALE6L4_VDGY075D - - - ata-HGST_HUS728T8TALE6L4_VDKVRRJK - - - cache - - - nvme0n1p4 63.0G 12.8G 50.2G tarta-boot 240M 50.0M 190M mirror-0 240M 50.0M 190M tarta-boot - - - tarta-boot-nvme - - - tarta-zoot 55.5G 6.96G 48.5G mirror-0 55.5G 6.96G 48.5G tarta-zoot - - - tarta-zoot-nvme - - - testpsko 39.5G 744K 39.5G media/testpsko1 39.5G 744K 39.5G testpsko2 39.5G 130K 39.5G /home/nabijaczleweli/store/code/zfs/testpsko2 39.5G 130K 39.5G Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13413 Closes #9771
| * libzfs: constify zfs_strip_partition(), zfs_strip_path()наб3 days5-14/+17
| | | | | | | | | | | | Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13413
| * libzfs: pool: zpool_vdev_name: use libzfs_envvar_is_setнаб3 days1-13/+5
| | | | | | | | | | | | Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13413
| * zpool: max_width: monomorphise subtype iterationнаб3 days1-31/+12
| | | | | | | | | | | | Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13413
| * linux: spl: generic: ddi_strto*: match solaris ddi_strto*(9)наб6 days2-31/+19
| | | | | | | | | | | | | | | | | | Recognise initial whitespace, + in both cases, and - also in unsigneds Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13434
| * linux: spl: generic: ddi_strtou##type: elide unused flagнаб6 days1-5/+3
| | | | | | | | | | | | Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13434
| * Remove hw_serial, ddi_strtoul()наб6 days8-47/+9
| | | | | | | | | | | | Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13434
| * Fix typos in zfs-bookmark examplesMateusz Piotrowski7 days2-6/+6
| | | | | | | | | | | | Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Mateusz Piotrowski <0mp@FreeBSD.org> Closes #13456
| * linux: libshare/nfs: don't do anything unless exportfs is availableнаб7 days1-0/+30
| | | | | | | | | | | | | | Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13165 Closes #13324
| * linux: libshare/smb: cache smb_availableнаб7 days1-7/+11
| | | | | | | | | | | | Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13165
| * libzfs: zfs_unshare: minor cleanupнаб7 days1-7/+2
| | | | | | | | | | | | Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13165
| * tests: add zfs_unshare_008_pos checking whitespace escapingнаб7 days5-1/+73
| | | | | | | | | | | | Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13165
| * libshare/nfs: escape mount points when neededнаб7 days4-8/+64
| | | | | | | | | | | | | | Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13165 Closes #13153
| * linux: libshare/nfs: bsearch() over valid keysнаб7 days1-28/+20
| | | | | | | | | | | | Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13165
| * libzfs: mount: zfs_unshare: don't reallocate mountpointнаб7 days1-15/+7
| | | | | | | | | | | | Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13165
| * Replace libzfs sharing _nfs() and _smb() APIs with protocol listsнаб7 days8-414/+228
| | | | | | | | | | | | | | | | | | | | With the additional benefit of removing all the _all() functions and treating a NULL list as "all" ‒ the remaining all function is for all /datasets/, which is consistent with the rest of the API Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13165
| * Publish libshare protocols, use enum-based APIнаб7 days11-204/+134
| | | | | | | | | | | | Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13165
| * libshare: delineate obsolete errorsнаб7 days1-10/+7
| | | | | | | | | | | | Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13165
| * libshare: use AVL tree with static data, pass all data in argumentsнаб7 days8-415/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | This makes it so we don't leak a consistent 64 bytes anymore, makes the searches simpler and faster, removes /all allocations/ from the driver (quite trivially, since they were absolutely needless), and makes libshare thread-safe (except, maybe, linux/smb, but that only does pointer-width loads/stores so it's also mostly fine, except for leaking smb_shares) Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13165
| * libshare: interface: {=> const} char *наб7 days2-10/+10
| | | | | | | | | | | | Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13165
| * libshare/smb: cleanupнаб7 days5-56/+36
| | | | | | | | | | | | Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13165
| * libshare/nfs: destaticify nfs_lock_fdнаб7 days1-19/+15
| | | | | | | | | | | | Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13165
| * freebsd: libshare/nfs: write directly in translate_opts()наб7 days1-10/+9
| | | | | | | | | | | | | | | | This renders it thread-safe Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13165
| * freebsd: libshare/nfs: constify static const dataнаб7 days1-4/+4
| | | | | | | | | | | | Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13165
| * Add missing AC_MSG_RESULT(no) to configureBrian Behlendorf7 days1-0/+2
| | | | | | | | | | | | | | | | | | When the HAVE_IOPS_MKDIR_USERNS check fails output result as required. Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #13454
| * ztest: reduce runtile of zloop.sh in CIBrian Behlendorf7 days1-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The zloop.sh script is primarily designed to randomly stress the DMU and SPA layers. This can result in some unrealistic (or even impossible) scenarios being tested which then fail. Since the longer we run zloop.sh the more likely this is to occur this commit reduces the runtime. The intention being that normally this will result in a clean CI run unless the PR does introduce serious breaking change. Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #13453
| * Added a workaround for Linux KASAN buildsRich Ercolani8 days1-0/+6
| | | | | | | | | | | | | | | | Linux passes -Wframe-larger-than=1024, which breaks our build in a number of places with -Werror. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Rich Ercolani <rincebrain@gmail.com> Closes #13450
| * udev: zvol_id: simplify/moderniseнаб8 days1-73/+30
| | | | | | | | | | | | | | zero-alloc, sensibler errors, don't close (or free) before exit. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13337
| * ztest: O_CLOEXEC ztest_fd_randнаб8 days1-2/+1
| | | | | | | | | | | | Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13411