aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* arm: fix atomic_testand{set,clear}_64 for ops on high bitsRyan Libby2021-01-031-4/+2
| | | | | | | | | | The fix in bd03acedb804add1e22178d50eb2bfb703974ddf worked for 32-bit ops, and for 64-bit ops for bit arguments of 0 - 95, but then was broken for operations on the high 32 bits after that. Reviewed by: markj, mmel Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D27897
* copy_file_range(2): add recommendation to use large "len"Rick Macklem2021-01-031-1/+10
| | | | | | | | | | | | | PR#252358 reported a serious performance problem w.r.t. cp(1) when copying large non-sparse files. This problem appears to have been caused by cp(1) calling copy_file_range(2) with a small "len" argument. This patch adds a recommendation to use a large "len" value where possible, for performance reasons. Reviewed by: asomers Differential Revision: https://reviews.freebsd.org/D27935
* cp(1): fix performance issue for large non-sparse file copiesRick Macklem2021-01-031-6/+5
| | | | | | | | | | | | | | | | | | | | PR252358 reported a serious performance problem when copying a large non-sparse file on a UFS file system. This problem seems to have been caused by a large number of SEEK_HOLE operations, with one done for each copy_file_range(2) call. This patch modifies cp(1) to use a large (SSIZE_MAX) len argument, reducing the number of system calls and resolving the performance issue. While here, convert the type of the "rcount" from "int" to "ssize_t" so that it is consistent with that returned by both read(2) and copy_file_range(2). PR: 252358 Reviewed by: asomers Differential Revision: https://reviews.freebsd.org/D27937
* Github actions: s/master/main/ for the CI workflowUlrich Spörlein2021-01-021-2/+2
|
* Handle KDB_WHY_TRAP return on arm and mipsMitchell Horne2021-01-022-2/+12
| | | | | | | | | Upon exit from the debugger, checking the return code of kdb_trap() allows one to retry the fatal page fault. This matches what is done on all other architectures. Reviewed by: jhb (earlier version) Differential Revision: https://reviews.freebsd.org/D27535
* loader: fix build on non-x86 platformsToomas Soome2021-01-021-5/+5
| | | | | | Need to build pnglite with all. Reported by: Herbert J. Skuhra
* arm64: fix mask in atomic_testand{set,clear}_64Ryan Libby2021-01-021-2/+2
| | | | | | | | | | | | | These macros generate both the 32- and 64-bit ops, but the mask was hard coded for 32-bit ops, causing the 64-bit ops always to affect only the low 32 bits. PR: 252324 Reported by: gbe, mmel Reviewed by: markj, mmel Tested by: mmel, rwatson Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D27886
* loader: implement framebuffer consoleToomas Soome2021-01-0251-401/+6070
| | | | | | | | | | | | | | | | | | | | | | | Draw console on efi. Add vbe framebuffer for BIOS loader (vbe off, vbe on, vbe list, vbe set xxx). autoload font (/boot/fonts) based on resolution and font size. Add command loadfont (set font by file) and variable screen.font (set font by size). Pass loaded font to kernel. Export variables: screen.height screen.width screen.depth Add gfx primitives to draw the screen and put png image on the screen. Rework menu draw to iterate list of consoles to enamble device specific output. Probably something else I forgot... Relnotes: yes Differential Revision: https://reviews.freebsd.org/D27420
* arm: Fix atomic_testand{set,clear}_32(). According to atomic (9), the bit ↵Michal Meloun2021-01-021-4/+23
| | | | | | | position argument should be a modulo operand size. While I'm in, add missing implementation of atomic_testandclear_64(). For more details see https://reviews.freebsd.org/D27886 Discused with: rlibby MFC after: 3 weeks
* contrib: setup pngliteToomas Soome2021-01-023-740/+443
|
* Add 'contrib/pnglite/' from commit 'a70c2a23d0d84dfc63a1d9413a7f4aaede7313aa'Toomas Soome2021-01-024-0/+1124
|\ | | | | | | | | | | git-subtree-dir: contrib/pnglite git-subtree-mainline: 5bcd0b860c7d4935db5b290cf932357fc22adf3a git-subtree-split: a70c2a23d0d84dfc63a1d9413a7f4aaede7313aa
| * Initial import of vendor/pnglitevendor/pnglite/20130820vendor/pngliteToomas Soome2021-01-024-0/+1124
|
* contrib: setup terminusToomas Soome2021-01-0291-123171/+0
|
* Add 'contrib/terminus/' from commit 'cee3932f8c02a220d70e48949c7c5ca6e98dfef4'Toomas Soome2021-01-02113-0/+857694
|\ | | | | | | | | | | git-subtree-dir: contrib/terminus git-subtree-mainline: 51a9b978e75021415fdced616b4e4bc373a20a8a git-subtree-split: cee3932f8c02a220d70e48949c7c5ca6e98dfef4
| * import terminus-font-4.48vendor/terminus/terminus-font-4.48Toomas Soome2021-01-02113-0/+857694
|
* nfs server: improve use of the VFS KPIKonstantin Belousov2021-01-022-17/+22
| | | | | | | | | | | | | | | | | In particular, do not assume that vn_start_write() returns the same mp as it was passed in, or never returns error. Also be more accurate to return NULL vp and mp when error occured, to catch wrong control flow easier. Stop checking for NULL mp before calling vn_finished_write(), NULL mp is handled transparently by the function. Reviewed by: rmacklem Tested by: pho MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D27881
* bootparamd: Add missing __unused mark.Yoshihiro Takahashi2021-01-021-2/+2
| | | | | | | | | e03764d931d820185a019334259b18df2e3f6b6c did not catch all unused variables. Submitted by: otis MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D27894
* contrib: remove libgnuregexKyle Evans2021-01-026-11395/+0
| | | | | | This should have been a part of 47d1ad2413da, but it was overlooked. All of the build bits have been previously removed, and nothing references this anymore.
* bootparamd: Fix several warnings and increase warn level to 6.Yoshihiro Takahashi2021-01-024-69/+59
| | | | | | | | | | | | | - Increase WARNS to 6. - Except -Wcast-align and -Wincompatible-pointer-types-discards-qualifiers checks. - Use ANSI C prototype. - Statically variables and functions. - Add extern declaration for global variables. - Rename local variables to resolve shadow warnings. PR: 71667 MFC after: 2 weeks
* tcgetwinsize(3): provide man pageKonstantin Belousov2021-01-023-0/+167
| | | | | | | | The current POSIX.1-202x draft (1.1) was used as source material. Submitted by: Soumendra Ganguly <soumendraganguly@gmail.com> MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D27787
* rtld: call close(2) after errno is savedKonstantin Belousov2021-01-021-6/+11
| | | | | | | | | to prevent obliteration of error value from the original syscall. Also improve error message for short read. Submitted by: Konrad Sewiłło-Jopek MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D27864
* unzip: Sync with NetBSD upstream.Yoshihiro Takahashi2021-01-021-4/+10
| | | | | | | | | | | | | | | | - Ignore malformed directory entries as created by Dropbox ("/"). (rev 1.24) - Use libarchive 3.x interface: check result for archive_read_free() and don't call archive_read_close manually. (rev 1.23) - Always overwrite symlinks on extraction, ever if they're newer than entries in archive. - Use getline() rather than getdelim(). PR: 231827 Submitted by: ak Reviewed by: mm Obtained from: NetBSD MFC after: 2 weeks
* usr.sbin/rtadvctl: Remove support for FreeBSD 9.x.Xin LI2021-01-021-14/+0
|
* nfsd: fix NFSv4.0 seqid handling for ERELOOKUPRick Macklem2021-01-013-0/+8
| | | | | | | | | | | Commit 774a36851e0e fixed the NFS server so that it could handle ERELOOKUP returns from VOP calls by redoing the operation/RPC. However, for NFSv4.0, redoing an Open would increment the open_owner's seqid multiple times, breaking the protocol. This patch sets a new flag called ND_ERELOOKUP on the RPC when a redo is in progress. Then the code that increments the seqid avoids the seqid increment/check when the flag is set, since it indicates this has already been done for the Open.
* nfsd: fix NFS server for ERELOOKUPRick Macklem2021-01-013-4/+65
| | | | | | | | | | | | | | | | r367672 modified UFS such that certain VOPs, such as VOP_CREATE() will intermittently return ERELOOKUP. When this happens, the entire system call, or NFS operation in the case of the NFS server, must be redone. This patch adds that support to the NFS server by rolling back the state of the NFS request arguments and NFS reply arguments mbuf lists to the condition they were in before the operation and then redoing the operation. Tested by: pho Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D27875
* syscons: scrnmaps: appease -Wmissing-variable-declarationsKyle Evans2021-01-017-7/+7
| | | | | | | | | | scrmap is only used in the one compilation unit in all cases, make it static rather than extern'ing it. There's little benefit, but it's easy to do. It's unclear how this hasn't failed many builds before now, since it should have cropped up sometime around deeper hierarchies getting a default WARNS. MFC after: 3 days
* efi loader: fix typos in a commentEric van Gyzen2021-01-011-4/+4
| | | | | | ...mostly because it's a harmless way to try the shiny new git repo. Sponsored by: Dell EMC Isilon
* ping: fix ping when the kernel was built without INET6Alan Somers2021-01-011-9/+15
| | | | | | | | | | | If the kernel was built without INET6, default to ICMP. Or, if it was built without INET, default to ICMPv6. PR: 251725 Reported by: jbeich Reviewed by: jbeich Tested by: jbeich MFC with: 368045
* fusefs: implement FUSE_COPY_FILE_RANGE.Alan Somers2021-01-0112-92/+803
| | | | | | | | | | This updates the FUSE protocol to 7.28, though most of the new features are optional and are not yet implemented. MFC after: 2 weeks Relnotes: yes Reviewed by: cem Differential Revision: https://reviews.freebsd.org/D27818
* fusefs: fix an expectation in one of the testsAlan Somers2021-01-012-5/+3
| | | | | | | | | | An order-of-operations problem caused an expectation intended for FUSE_READ to instead match FUSE_ACCESS. Surprisingly, only one test case was affected. MFC after: 2 weeks Reviewed by: cem Differential Revision: https://reviews.freebsd.org/D27818
* Fix i386 build following 37df9d3bba8577fcdd63382ff5a4a5cbb4aa55b4.Cy Schubert2021-01-011-3/+3
| | | | | MFC after: 2 weeks X-MFC with: 37df9d3bba8577fcdd63382ff5a4a5cbb4aa55b4
* sctp: improve handling of aborted associationsMichael Tuexen2021-01-011-9/+8
| | | | | Don't clear a flag, when the structure already has been freed. Reported by: syzbot+07667d16c96779c737b4@syzkaller.appspotmail.com
* Merge commit 4f568fbd2 from llvm git (by Nemanja Ivanovic):Dimitry Andric2021-01-011-26/+42
| | | | | | | | | | | | | | | | | | | [PowerPC] Do not emit HW loop when TLS var accessed in PHI of loop exit If any PHI nodes in loop exit blocks have incoming values from the loop that are accesses of TLS variables with local dynamic or general dynamic TLS model, the address will be computed inside the loop. Since this includes a call to __tls_get_addr, this will in turn cause the CTR loops verifier to complain. Disable CTR loops in such cases. Fixes: https://bugs.llvm.org/show_bug.cgi?id=48527 This should fix building ceph 12.2.12 on powerpc64, powerpc, powerpcspe and powerpc64le. Requested by: pkubaj MFC after: 3 days
* stand: fix WITHOUT_FORTH/WITHOUT_LOADER_LUA buildKyle Evans2021-01-011-1/+7
| | | | | | | | Previously having ficl/liblua in LIB32LIST with their respective option turned OFF would be relatively harmless, as we wouldn't act on it unless we were building the non-32 variant. As of ac5f382a9d0a, however, these are now used for dependencies in some cases and must reflect what's actually going to be built.
* jail: revert the attachment part of b4e87a632955Jamie Gritton2021-01-011-8/+2
| | | | | | | The change to kern_jail_set that was supposed to "also properly clean up when attachment fails" didn't fix a memory leak but actually caused a double free. Back that part out, and leave the part that manages allprison_lock state.
* tmpfs: use VNPASS when asserting on a vnode in tmpfs_read_pgcacheMateusz Guzik2021-01-011-1/+1
|
* Soften caveat about fractional seconds for sleep(1)Benjamin Kaduk2021-01-011-3/+3
| | | | | | | | | Support for fractional seconds has become much more widespread since this text was originally written. Reported by: Mark Eichin Reviewed by: gbe, jilles Differential Revision: https://reviews.freebsd.org/D26208
* ufs: use VNPASS when asserting on a vnode in ufs_read_pgcacheMateusz Guzik2021-01-011-1/+1
|
* services: reinstate CouchDB and bring amqpsPedro F. Giffuni2021-01-011-0/+4
| | | | | | | | | | CouchDB was mistakenly removed in r368712 amqps is used by net/rabbitmp Both are registered in IANA Reported by: dch Differential Revision: https://reviews.freebsd.org/D27691
* services: fiz bug introduced in r361898Pedro F. Giffuni2021-01-011-1/+1
| | | | Reported by: deischen@
* cache: fold NCF_WHITE check into the restMateusz Guzik2021-01-011-5/+13
| | | | Tested by: pho
* cache: call cache_fplookup_modifying in negMateusz Guzik2021-01-011-6/+2
| | | | Tested by: pho
* cache: refactor cache_fpl_handle_root to fit the rest of the code betterMateusz Guzik2021-01-011-26/+29
| | | | Tested by: pho
* cache: refactor dot handlingMateusz Guzik2021-01-011-21/+30
| | | | Tested by: pho
* cache: remove a branch from mount point checkingMateusz Guzik2021-01-011-4/+3
| | | | Tested by: pho
* cache: support lockless lookup of degenerate pathsMateusz Guzik2021-01-011-9/+52
| | | | Tested by: pho
* cache: save on branching when parsing the path by inserting a sentinelMateusz Guzik2021-01-011-6/+15
| | | | Tested by: pho
* cache: hoist trailing slash and degenerate path handling out of the loopMateusz Guzik2021-01-011-30/+61
| | | | Tested by: pho
* fd: inline pwd_get_smrMateusz Guzik2021-01-012-11/+1
| | | | Tested by: pho
* ddb: Display process flags (p_flag and p_flag2) in 'show proc'.John Baldwin2021-01-011-0/+2
| | | | | | Reviewed by: kib Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D27872