aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* MFC r367447:Michal Meloun2020-12-142-0/+16
| | | | | | | Add a method to determine whether given interrupt is per CPU or not. Notes: svn path=/stable/12/; revision=368628
* MFC r3684733:Justin Hibbits2020-12-131-9/+5
| | | | | | | | | | | | | | | dev/mfi: Make a seemingly bogus conditional unconditional Summary: r358689 attempted to fix a clang warning/error by inferring the intent of the condition "(cdb[0] != 0x28 || cdb[0] != 0x2A)". Unfortunately, it looks like this broke things. Instead, fix this by making this path unconditional, effectively reverting to the previous state. PR: kern/251483 Notes: svn path=/stable/12/; revision=368620
* MFC r368390:Yuri Pankov2020-12-135-395/+71814
| | | | | | | | | | | | | | | | | | | | update wcwidth data from utf8proc Character width data being out of date is a constant source of weird rendering issues and wasted time trying to diagnose those, e.g. as reported by Jeremy Chadwick: https://gitlab.com/muttmua/mutt/-/issues/67 Sadly, there is no real ("standard") wcwidth data source, so this tries to rectify the problem using the utf8proc one (through its C API) which would hopefully benefeat both FreeBSD and utf8proc through bug reports (if any). PR: 251767 Notes: svn path=/stable/12/; revision=368619
* MFC r367768: Stop using NVME_MAX_XFER_SIZE constant.Alexander Motin2020-12-132-10/+14
| | | | | | | | This constant depends on MAXPHYS and does not respect device capabilities. Use proper dynamic ioctl(NVME_GET_MAX_XFER_SIZE) instead. Notes: svn path=/stable/12/; revision=368603
* MFC r368132: Increase nvme(4) maximum transfer size from 1MB to 2MB.Alexander Motin2020-12-134-19/+16
| | | | | | | | | | | | | | | | With 4KB page size the 2MB is the maximum we can address with one page PRP. Going further would require chaining, that would add some more complexity. On the other side, to reduce memory consumption, allocate the PRP memory respecting maximum transfer size reported in the controller identify data. Many of NVMe devices support much smaller values, starting from 128KB. To do that we have to change the initialization sequence to pull the data earlier, before setting up the I/O queue pairs. The admin queue pair is still allocated for full MIN(maxphys, 2MB) size, but it is not a big deal, since there is only one such queue with only 16 trackers. Notes: svn path=/stable/12/; revision=368602
* MFC r353491 by eugen:Yuri Pankov2020-12-138-121/+826
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add missing port to the list of needed tools in the README file describing locale rebuild process: devel/apache-ant MFC r353791: tools/tools/locale: allow POSIX target to be built in parallel While it's rarely used target, more so a one not used during the buildworld, it helps when it's not taking hours (literally). MFC r364245 by hrs: - Update to Unicode CLDR v35 (Unicode 12.0). - Update tools/tools/locale to add make targets to automatically generate locale source files. With this change, just typing "make obj && make -j4" will rebuild them. Check README for more details. - Fix issues in ja_JP ctypedef and range specification support in utf8-rollup.pl. - Add a temporary patch for UnicodeData.txt to fix code ranges of CJK Ideograph Extension A and Extension B. - tools/cldr2def.pl: Use eucJP for ja_JP ctypedef because eucJP is not compatible with UTF-8. - tools/convert_map.pl: Add a verbose error message. - tools/utf8-rollup.pl: Normalize entries to use Unicode, not UTF-8. MFC r368404 by hrs: Fix the source directory when installing the results. The install target did not install them actually. Notes: svn path=/stable/12/; revision=368601
* MFC r368489:Dimitry Andric2020-12-121-1/+7
| | | | | | | | | | | | | | | | | | | | | | Merge commit 28de0fb48 from llvm git (by Luís Marques): [RISCV] Set __GCC_HAVE_SYNC_COMPARE_AND_SWAP_x defines The RISCV target did not set the GCC atomic compare and swap defines, unlike other targets. This broke builds for things like glib on RISCV. Patch by Kristof Provost (kprovost) Differential Revision: https://reviews.llvm.org/D91784 This should fix building glib20 on RISC-V and unblock a number of dependent ports. Requested by: kp Notes: svn path=/stable/12/; revision=368599
* MFC r367976:Alan Somers2020-12-121-1/+1
| | | | | | | ping6: update usage text after r365547 Notes: svn path=/stable/12/; revision=368597
* MFC r366365:Alan Somers2020-12-129-55/+55
| | | | | | | | | | | | | | fusefs tests: quell Coverity "Argument cannot be negative" warnings Must abort tests early if open(2) fails. Reported by: Coverity Coverity CID: 1432810 and many others Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D26635 Notes: svn path=/stable/12/; revision=368596
* MFC r340992:Yuri Pankov2020-12-1212-2/+112
| | | | | | | | | | Add ga_IE.UTF-8 locale. PR: 228587 Submitted by: Micil <micheal.maclochlainn@oegaillimh.ie> (LC_TIME) Notes: svn path=/stable/12/; revision=368594
* MFC r367678:Mateusz Piotrowski2020-12-121-1/+15
| | | | | | | | | | | Document the PAGER environment variable Sometimes users want to use freebsd-update(8) in a non-interactive way and what they often miss is that they have to set PAGER to cat(1) in order to avoid interactive prompts from less(1). Notes: svn path=/stable/12/; revision=368589
* MFC 367188: Use a dynamic buffer for the copy of a node's new value.John Baldwin2020-12-121-14/+21
| | | | | | | This permits setting a node's value to a string longer than BUFSIZ. Notes: svn path=/stable/12/; revision=368584
* MFC 367578: Clear tp->tod in t4_pcb_detach().John Baldwin2020-12-121-0/+1
| | | | | | | | | | Otherwise, a socket can have a non-NULL tp->tod while TF_TOE is clear. In particular, if a newly accepted socket falls back to non-TOE due to an active open failure, the non-TOE socket will still have tp->tod set even though TF_TOE is clear. Notes: svn path=/stable/12/; revision=368583
* MFC 366955: Handle CPL_RX_DATA on active TLS sockets.John Baldwin2020-12-123-0/+142
| | | | | | | | | | | | | | | In certain edge cases, the NIC might have only received a partial TLS record which it needs to return to the driver. For example, if the local socket was closed while data was still in flight, a partial TLS record might be pending when the connection is closed. Receiving a RST in the middle of a TLS record is another example. When this happens, the firmware returns the the partial TLS record as plain TCP data via CPL_RX_DATA. Handle these requests by returning an error to OpenSSL (via so_error for KTLS or via an error TLS record header for the older Chelsio OpenSSL interface). Notes: svn path=/stable/12/; revision=368582
* MFC 366854: Re-enable receive flow control for TOE TLS sockets.John Baldwin2020-12-124-18/+3
| | | | | | | | | | | | | | | | | | | Flow control was disabled during initial TOE TLS development to workaround a hang (and to match the Linux TOE TLS support for T6). The rest of the TOE TLS code maintained credits as if flow control was enabled which was inherited from before the workaround was added with the exception that the receive window was allowed to go negative. This negative receive window handling (rcv_over) was because I hadn't realized the full implications of disabling flow control. To clean this up, re-enable flow control on TOE TLS sockets. The existing TPF_FORCE_CREDITS workaround is sufficient for the original hang. Now that flow control is enabled, remove the rcv_over workaround and instead assert that the receive window never goes negative matching plain TCP TOE sockets. Notes: svn path=/stable/12/; revision=368581
* MFC r368020, r368025:Kristof Provost2020-12-111-40/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | if: Protect V_ifnet in vnet_if_return() When we terminate a vnet (i.e. jail) we move interfaces back to their home vnet. We need to protect our access to the V_ifnet CK_LIST. We could enter NET_EPOCH, but if_detach_internal() (called from if_vmove()) waits for net epoch callback completion. That's not possible from NET_EPOCH. Instead, we take the IFNET_WLOCK, build a list of the interfaces that need to move and, once we've released the lock, move them back to their home vnet. We cannot hold the IFNET_WLOCK() during if_vmove(), because that results in a LOR between ifnet_sx, in_multi_sx and iflib ctx lock. Separate out moving the ifp into or out of V_ifnet, so we can hold the lock as we do the list manipulation, but do not hold it as we if_vmove(). if: Fix non-VIMAGE build if_link_ifnet() and if_unlink_ifnet() are needed even when VIMAGE is not enabled. Sponsored by: Modirum MDPay Notes: svn path=/stable/12/; revision=368554
* MFC r368015:Kristof Provost2020-12-112-26/+6
| | | | | | | | | | | | | | | | if: Remove ifnet_rwlock It no longer serves any purpose, as evidenced by the fact that we never take it without ifnet_sxlock. This differs slightly from r368015 in that we keep the ifnet_rwlock instance (but no longer take the lock) in case there are external users who still take the lock. Sponsored by: Modirum MDPay Notes: svn path=/stable/12/; revision=368552
* MFC 367576: Add C startup code tests for PIE binaries.John Baldwin2020-12-113-0/+13
| | | | | | | | | - Force dynamic to be a non-PIE binary. - Add a dynamicpie test which uses a PIE binary. Notes: svn path=/stable/12/; revision=368545
* MFC 367575: Fix dso_handle_check for PIE executables.John Baldwin2020-12-111-2/+2
| | | | | | | | PIE executables use crtbeginS.o and have a non-NULL dso_handle as a result. Notes: svn path=/stable/12/; revision=368544
* RegenKonstantin Belousov2020-12-115-9/+14
| | | | Notes: svn path=/stable/12/; revision=368541
* MFC r368343:Konstantin Belousov2020-12-113-1/+88
| | | | | | | Fix compat32 for ntp_adjtime(2). Notes: svn path=/stable/12/; revision=368540
* MFC r368342:Konstantin Belousov2020-12-112-52/+66
| | | | | | | Add kern_ntp_adjtime(9). Notes: svn path=/stable/12/; revision=368539
* MFC: r367997Jung-uk Kim2020-12-111-2/+2
| | | | | | | | | Do not truncate the last character from serial number. strlcpy() requires one more byte for the NULL character. Notes: svn path=/stable/12/; revision=368538
* MFC r368108:Mark Johnston2020-12-111-2/+6
| | | | | | | | | arm: Correctly report the size of FPA registers to GDB PR: 251022 Notes: svn path=/stable/12/; revision=368535
* MFC 367574: Rename __JCR_LIST__ to __JCR_END__ in crtend.c.John Baldwin2020-12-101-1/+1
| | | | | | | | This is more consistent with the names used for .ctor and .dtor symbols and better reflects __JCR_END__'s role. Notes: svn path=/stable/12/; revision=368531
* MFC 366584: Don't invoke semunload() if seminit() fails during MOD_LOAD.John Baldwin2020-12-101-2/+0
| | | | | | | | | | | The module handler code invokes a MOD_UNLOAD event immediately if MOD_LOAD fails. The result was that if seminit() failed, semunload() was invoked twice. semunload() is not idempotent however and would try to remove it's process_exit eventhandler twice resulting in a panic. Notes: svn path=/stable/12/; revision=368528
* MFC 366897: Use a template assembly file to generate the embedded MFS.John Baldwin2020-12-103-49/+49
| | | | | | | | | | | | This uses the .incbin directive to pull in the MFS image contents. Using assembly directly ensures that symbols can be defined with the name and properties (such as .size) desired without having to rename symbols, etc. via a second objcopy invocation. Since it is compiled by the C compiler driver, it also avoids the need for all of the EMBEDFS* make variables. Notes: svn path=/stable/12/; revision=368526
* MFC 366494: Don't permit DRM buffer mappings to be upgraded to executable.John Baldwin2020-12-101-6/+4
| | | | Notes: svn path=/stable/12/; revision=368522
* MFC r363169 by allanjude: Actually install the new 221.backup-gpart periodic ↵Gordon Bergling2020-12-101-0/+1
| | | | | | | | | | | | script PR: 86388 Submitted by: Rob Fairbanks <rob dot fx907 at gmail dot com> Reported by: Michael Butler <imb at protected-networks dot net> Sponsored by: Klara Inc. Notes: svn path=/stable/12/; revision=368515
* MFC r367436 and r367443 by rew:Gordon Bergling2020-12-105-3/+233
| | | | | | | | | | | | | | | | | | | | | | | | r367436 Add a periodic script to backup output generated from `zfs list`, `zfs get`, `zpool list`, and `zpool get` commands. Disabled by default. r367443 Add a periodic script to backup output generated from `gmirror list`. Disabled by default. PR: 86388 Submitted by: Miroslav Lachman <000 dot fbsd at quip dot cz> Reported by: Seklecki <Seklecki at FreeBSD dot org> Reviewed by: allanjude, 0mp, gbe Event: July 2020 Bugathon Differential Revision: https://reviews.freebsd.org/D25638 Differential Revision: https://reviews.freebsd.org/D25631 Notes: svn path=/stable/12/; revision=368514
* MFC r366615: man5: Fix a few typos spotted by igorGordon Bergling2020-12-103-4/+3
| | | | | | | | | - fstab(5): conjuction -> conjunction - mount.conf(5): repeated 'the' - periodic.conf(5): Partion -> Partition Notes: svn path=/stable/12/; revision=368512
* MFC r365508 (by rew):Gordon Bergling2020-12-102-3/+3
| | | | | | | | | | | | | | | | | | | | | periodic.conf(5): don't truncate interface names reported by 420.status-network. The daily periodic script, 420.status-network uses netstat(1) to report interface status. By default, netstat(1) truncates interface names. Add the '-W' flag (avoid truncating interface names) as the default for 'daily_status_network_netstat_flags' in periodic.conf(5). The default 420.status-network command is now 'netstat -i -d -W -n'. PR: 163572 Reported by: kes-kes@yandex.ru Reviewed by: allanjude (mentor), bcr (manpages) Approved by: allanjude (mentor) Differential Revision: https://reviews.freebsd.org/D26023 Notes: svn path=/stable/12/; revision=368509
* MFC r363114 (by allanjude)Gordon Bergling2020-12-101-3/+3
| | | | | | | | | | periodic.conf: correct capitailization in the middle of a sentence Reported by: yuripv Event: July 2020 Bugathon Notes: svn path=/stable/12/; revision=368508
* MFC r363110 (by allanjude):Gordon Bergling2020-12-103-0/+145
| | | | | | | | | | | | | | | | Add a periodic script to backup the partition table and boot code Optionally, alert you if the contents change from the previous backup PR: 86388 Submitted by: Rob Fairbanks <rob.fx907@gmail.com>, Miroslav Lachman <000.fbsd@quip.cz> (Original Version) Relnotes: yes Sponsored by: Klara Inc. Event: July 2020 Bugathon Differential Revision: https://reviews.freebsd.org/D25628 Notes: svn path=/stable/12/; revision=368507
* MFC r362226 (by bapt): Fix typo in the documentation about the daily ntpd statusGordon Bergling2020-12-101-2/+2
| | | | | | | | PR: 245679 Submitted by: Taylor Stearns <t@tstearns.com> Notes: svn path=/stable/12/; revision=368506
* Fix bug in ifconfig preventing proper VLAN creation.Hans Petter Selasky2020-12-101-1/+2
| | | | | | | | | | | | | | | | | | | | | | | Detection of VLAN interface type must happen before detection of interface type by prefix. Else the following sequence of commands will try to create a LAGG interface instead of a VLAN interface, which accidentially worked previously, because the data pointed to by the ifr_data pointer was not parsed by the VLAN create ioctl(2). This is a regression after r368229, because the VLAN creation now parses the ifr_data field. How to reproduce: # ifconfig lagg0 create # ifconfig lagg0.256 create This is a direct commit, until r366917, stacked VLANs has been MFC'ed. Differential Revision: https://reviews.freebsd.org/D27521 Tested by: raul.munoz@custos.es Sponsored by: Mellanox Technologies // NVIDIA Networking Notes: svn path=/stable/12/; revision=368502
* MFC: r366318, r368072, r368080, r368097, r368387Stefan Eßer2020-12-10119-23098/+26243
| | | | | | | Upgrade to version 3.2.3 Notes: svn path=/stable/12/; revision=368501
* MFC r368294:Cy Schubert2020-12-101-4/+4
| | | | | | | Remove trailing whitespace. Notes: svn path=/stable/12/; revision=368495
* MFC of 368396 and 368425.Kirk McKusick2020-12-092-0/+14
| | | | | | | | | Document BA_CLRBUF flag. Sponsored by: Netflix Notes: svn path=/stable/12/; revision=368494
* ZFS: fix spurious EBUSY after zfs receive to an existing datasetAlan Somers2020-12-091-2/+14
| | | | | | | | | | | | | | | | | | | | | If you do a "zfs send -p <src> | zfs receive -F <dst>" to an existing but empty dataset, the receive will complete successfully but spuriously fail with exit status 1 and the message "cannot mount 'pool/dataset': mountpoint or dataset is busy". The root cause is a merge error made in r344569 and MFCed in r345578, which merged changes a10d50f999 and e63ac16d25 from ZoL. The merge: * failed to flip a == to an != like the upstream change did, and * Left out one chunk Direct commit to stable/12 because head has moved on to OpenZFS. PR: 251694 Reviewed by: bapt Sponsored by: Axcient Notes: svn path=/stable/12/; revision=368491
* MFC r368277:Kristof Provost2020-12-091-0/+39
| | | | | | | | | | | | pf tests: Test case for bug #251414 Changing a table from not having counters to having counters (or vice versa) may trigger panics. PR: 251414 Notes: svn path=/stable/12/; revision=368488
* MFC r367762Peter Grehan2020-12-095-4/+344
| | | | | | | Add legacy debug/test interfaces for kvm unit tests. Notes: svn path=/stable/12/; revision=368477
* MFC r368278:Mark Johnston2020-12-094-15/+21
| | | | | | | rtsold: Fix bugs reported by Coverity Notes: svn path=/stable/12/; revision=368471
* MFC r368276:Mark Johnston2020-12-091-2/+6
| | | | | | | | | pf: Fix table entry counter toggling PR: 251414 Notes: svn path=/stable/12/; revision=368470
* MFC r368397: Add deprecation notice to mn(4)Ed Maste2020-12-092-1/+8
| | | | | | | | | | | | | | | | | Sync serial (T1/E1) interfaces are largely irrelevant today and phk confirms this driver is unnecessary in review D23928. This leaves ce(4) and cp(4) in the tree. They're likely not relevant either, but glebius contacted the manufacturer and those devices are still available for purchase. At glebius' suggestion leave them in the tree as long as they do not impose a maintenace burden. [Build fix from hps included in MFC] Sponsored by: The FreeBSD Foundation Notes: svn path=/stable/12/; revision=368469
* MFC: r368268Rick Macklem2020-12-081-2/+10
| | | | | | | | | | | | | | | Improve man page for AmazonEFS mounts. PR#250770 was actually just a misunderstanding of what NFS mount options are needed for AmazonEFS mounts. This patch attempts to clarify the manpage to clarify this. This is a content change. PR: 250770 Notes: svn path=/stable/12/; revision=368466
* MFC r368447: OpenSSL: address CVE-2020-1971Ed Maste2020-12-086-10/+89
| | | | | | | | | | | | | | | | | OpenSSL commit 3db2c9f3: Complain if we are attempting to encode with an invalid ASN.1 template OpenSSL commit 43a7033: Check that multi-strings/CHOICE types don't use implicit tagging OpenSSL commit f960d812: Correctly compare EdiPartyName in GENERAL_NAME_cmp() Obtained from: OpenSSL 3db2c9f3, 43a7033, f960d812 Security: CVE-2020-1971 Notes: svn path=/stable/12/; revision=368459
* MFC r362147:Yuri Pankov2020-12-081-8/+8
| | | | | | | | | | | | | | awk(1): use -version instead of -V -V is OpenBSD specific, use -version instead. While here, fix issue reported by mandoc lint and drop nonexistent script(7) reference. PR: 247004 Notes: svn path=/stable/12/; revision=368438
* MFC r340354:Yuri Pankov2020-12-084-28/+12
| | | | | | | | | | | | Use blank am_pm and t_fmt_ampm for de_AT and de_DE locales as apparently they use 24-hour clock notation. The visible change is that w(1) now uses 24-hour clock format as it checks for t_fmt_ampm presence. PR: 231771 Submitted by: Christoph Schönweiler <public2016@hauptsignal.at> Notes: svn path=/stable/12/; revision=368437
* MFC r368265:Konstantin Belousov2020-12-081-5/+7
| | | | | | | lio_listio(2): send signal even if number of jobs is zero. Notes: svn path=/stable/12/; revision=368430