svn commit: r352840 - head/sys/sys

2019-09-28 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Sep 28 09:54:03 2019 New Revision: 352840 URL: https://svnweb.freebsd.org/changeset/base/352840 Log: Fix Q_TOSTR(3) with GCC when it's called with first parameter being const. Discussed with: cem MFC after:2 weeks Sponsored by: Klara Inc, Netflix

svn commit: r352839 - in head: share/man/man3 sys/sys

2019-09-28 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Sep 28 09:50:01 2019 New Revision: 352839 URL: https://svnweb.freebsd.org/changeset/base/352839 Log: Rename ARB_REBALANCE(3) to ARB_REINSERT(3) to match tree(3), and document it. MFC after:2 weeks Sponsored by: Klara Inc, Netflix Modified:

svn commit: r352838 - head/share/man/man3

2019-09-28 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Sep 28 09:37:05 2019 New Revision: 352838 URL: https://svnweb.freebsd.org/changeset/base/352838 Log: Sort MLINKS for arb(3), and actually make them work by fixing a '=' vs '+=' mixup. MFC after:2 weeks Sponsored by: Klara Inc, Netflix Modified:

svn commit: r352837 - in head: share/man/man3 sys/sys

2019-09-28 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Sep 28 09:22:52 2019 New Revision: 352837 URL: https://svnweb.freebsd.org/changeset/base/352837 Log: Add RB_REINSERT(3), a low overhead alternative to removing a node and reinserting it back with an updated key. This is one of dependencies for the upcoming

svn commit: r352836 - in head/libexec/rc: . rc.d

2019-09-28 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Sep 28 09:12:41 2019 New Revision: 352836 URL: https://svnweb.freebsd.org/changeset/base/352836 Log: Move the SysV IPC stuff out of the 'abi' rc script, into a new one: 'sysvipc' - it has nothing to do with ABIs, and I'd like to later rename 'abi' to 'linux', which

Re: svn commit: r352337 - in head: share/man/man3 sys/sys tests/sys/sys

2019-09-15 Thread Edward Tomasz Napierala
On 0914T1532, Conrad Meyer wrote: > One correction: > > On Sat, Sep 14, 2019 at 12:23 PM Edward Tomasz Napierala > wrote: > > > > Author: trasz > > Date: Sat Sep 14 19:23:46 2019 > > New Revision: 352337 > > URL: https://svnweb.freebsd.org/changeset/base

svn commit: r352337 - in head: share/man/man3 sys/sys tests/sys/sys

2019-09-14 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Sep 14 19:23:46 2019 New Revision: 352337 URL: https://svnweb.freebsd.org/changeset/base/352337 Log: Introduce arb(3), the Array-based Red-Black Tree macros: similar to the traditional tree(3) RB trees, but using an array (preallocated, linear chunk of memory) to

svn commit: r352334 - head/sys/fs/pseudofs

2019-09-14 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Sep 14 19:16:07 2019 New Revision: 352334 URL: https://svnweb.freebsd.org/changeset/base/352334 Log: Make pseudofs(9) create directory entries in order, instead of the reverse. This fixes Linux sysctl(8) binary - it assumes the first two directory entries are

svn commit: r351822 - head/sys/compat/linprocfs

2019-09-04 Thread Edward Tomasz Napierala
Author: trasz Date: Wed Sep 4 18:00:54 2019 New Revision: 351822 URL: https://svnweb.freebsd.org/changeset/base/351822 Log: Fix /proc/mounts for autofs(5) mounts. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Modified: head/sys/compat/linprocfs/linprocfs.c Modified:

svn commit: r351821 - head/sys/amd64/linux

2019-09-04 Thread Edward Tomasz Napierala
Author: trasz Date: Wed Sep 4 18:00:03 2019 New Revision: 351821 URL: https://svnweb.freebsd.org/changeset/base/351821 Log: Improve debugging output. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Modified: head/sys/amd64/linux/linux_ptrace.c Modified:

svn commit: r351783 - head/sys/amd64/linux

2019-09-03 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Sep 3 19:48:23 2019 New Revision: 351783 URL: https://svnweb.freebsd.org/changeset/base/351783 Log: Unbreak Linux binaries linked against new glibc, such as the ones from recent Ubuntu versions. Without it they segfault on startup. Reviewed by: emaste MFC

svn commit: r351758 - head/sys/compat/linprocfs

2019-09-03 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Sep 3 16:33:02 2019 New Revision: 351758 URL: https://svnweb.freebsd.org/changeset/base/351758 Log: Make linprocfs(4) report Tgid, Linux ltrace(1) needs it. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Modified:

svn commit: r346270 - head/cddl/usr.sbin/zfsd

2019-09-03 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Apr 16 12:25:15 2019 New Revision: 346270 URL: https://svnweb.freebsd.org/changeset/base/346270 Log: Drop -g from CFLAGS for zfsd(8). No idea why it was ever there. Reviewed by: kib, ngie, asomers MFC after:2 weeks Sponsored by: DARPA, AFRL Differential

svn commit: r346151 - head/sys/kern

2019-09-03 Thread Edward Tomasz Napierala
Author: trasz Date: Fri Apr 12 14:18:16 2019 New Revision: 346151 URL: https://svnweb.freebsd.org/changeset/base/346151 Log: Remove unneeded conditionals for sv_ functions - all the ABIs (apart from null_sysvec) define them, so the 'else' branch is never taken. Reviewed by: kib MFC

svn commit: r346086 - head/usr.sbin/autofs

2019-09-03 Thread Edward Tomasz Napierala
Author: trasz Date: Wed Apr 10 16:09:06 2019 New Revision: 346086 URL: https://svnweb.freebsd.org/changeset/base/346086 Log: Fix segfault that could occur on "automount -LL". MFC after:2 weeks Sponsored by: DARPA, AFRL Modified: head/usr.sbin/autofs/common.c Modified:

svn commit: r346081 - head/cddl/usr.sbin/zfsd

2019-09-03 Thread Edward Tomasz Napierala
Author: trasz Date: Wed Apr 10 13:42:37 2019 New Revision: 346081 URL: https://svnweb.freebsd.org/changeset/base/346081 Log: Make zfsd(8) build obey CFLAGS. Reviewed by: imp Obtained from:CheriBSD MFC after:2 weeks Sponsored by: DARPA, AFRL Differential Revision:

svn commit: r346120 - head/sys/kern

2019-09-03 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Apr 11 11:21:45 2019 New Revision: 346120 URL: https://svnweb.freebsd.org/changeset/base/346120 Log: Use shared vnode locks for the ELF interpreter. Reviewed by: kib MFC after:2 weeks Sponsored by: DARPA, AFRL Differential Revision:

svn commit: r346076 - head/sys/kern

2019-09-03 Thread Edward Tomasz Napierala
Author: trasz Date: Wed Apr 10 10:21:14 2019 New Revision: 346076 URL: https://svnweb.freebsd.org/changeset/base/346076 Log: Improve vnode lock assertions. MFC after:2 weeks Sponsored by: DARPA, AFRL Modified: head/sys/kern/imgact_elf.c Modified: head/sys/kern/imgact_elf.c

svn commit: r346048 - head/lib/libc/sys

2019-09-03 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Apr 9 10:09:59 2019 New Revision: 346048 URL: https://svnweb.freebsd.org/changeset/base/346048 Log: .Xr protect(1) and proccontrol(1) from procctl(2). MFC after:2 weeks Sponsored by: DARPA, AFRL Modified: head/lib/libc/sys/procctl.2 Modified:

svn commit: r346053 - head/sys/kern

2019-09-03 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Apr 9 15:24:38 2019 New Revision: 346053 URL: https://svnweb.freebsd.org/changeset/base/346053 Log: Factor out section loading into a separate function. Reviewed by: kib MFC after:2 weeks Sponsored by: DARPA, AFRL Differential Revision:

svn commit: r346049 - head/share/man/man7

2019-09-03 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Apr 9 10:17:24 2019 New Revision: 346049 URL: https://svnweb.freebsd.org/changeset/base/346049 Log: Remove spurious comma. MFC after:2 weeks Sponsored by: DARPA, AFRL Modified: head/share/man/man7/hostname.7 Modified: head/share/man/man7/hostname.7

svn commit: r346030 - head/sys/kern

2019-09-03 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Apr 8 14:31:07 2019 New Revision: 346030 URL: https://svnweb.freebsd.org/changeset/base/346030 Log: Refactor ELF interpreter loading into a separate function. Reviewed by: kib MFC after:2 weeks Sponsored by: DARPA, AFRL Differential Revision:

svn commit: r345697 - head/usr.sbin/iostat

2019-09-03 Thread Edward Tomasz Napierala
Author: trasz Date: Fri Mar 29 16:05:30 2019 New Revision: 345697 URL: https://svnweb.freebsd.org/changeset/base/345697 Log: Reduce the precision of "MB/s" by one, making room for displaying transfer rates larger 99MB/s. MFC after:2 weeks Modified: head/usr.sbin/iostat/iostat.c

svn commit: r345661 - head/sys/kern

2019-09-03 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Mar 28 21:43:01 2019 New Revision: 345661 URL: https://svnweb.freebsd.org/changeset/base/345661 Log: Factor out retrieving the interpreter path from the main ELF loader routine. Reviewed by: kib MFC after:2 weeks Sponsored by: DARPA, AFRL Differential

svn commit: r345653 - head/usr.sbin/iostat

2019-09-03 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Mar 28 20:16:19 2019 New Revision: 345653 URL: https://svnweb.freebsd.org/changeset/base/345653 Log: Make the "KB/s" field one character shorter (by reducing the precision) and use the space to make the "tps" one character longer. It makes the iostat(8) output a

svn commit: r351723 - head/sys/compat/linux

2019-09-02 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Sep 2 18:10:35 2019 New Revision: 351723 URL: https://svnweb.freebsd.org/changeset/base/351723 Log: Bump Linux version to 3.2.0. Without it, binaries linked against glibc 2.24 and up (eg Ubuntu 19.04) fail with "FATAL: kernel too old". This alone is not enough

svn commit: r351703 - head/sys/compat/linux

2019-09-02 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Sep 2 16:57:42 2019 New Revision: 351703 URL: https://svnweb.freebsd.org/changeset/base/351703 Log: Relax compat.linux.osrelease checks. This way one can do eg 'compat.linux.osrelease=3.10.0-957.12.1.el7.x86_64', which corresponds to CentOS 7. MFC after:2

svn commit: r351596 - in head: sys/sys tests/sys/sys

2019-08-29 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Aug 29 07:39:31 2019 New Revision: 351596 URL: https://svnweb.freebsd.org/changeset/base/351596 Log: Fix qmath(3) build problems with GCC 8. Discussed with: asomers Sponsored by: Klara Systems Differential Revision:

svn commit: r351545 - head/tests/sys/sys

2019-08-27 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Aug 27 13:55:45 2019 New Revision: 351545 URL: https://svnweb.freebsd.org/changeset/base/351545 Log: Fix build on 32 bit archs. Modified: head/tests/sys/sys/qmath_test.c Modified: head/tests/sys/sys/qmath_test.c

svn commit: r351544 - in head: lib/msun/man share/man/man3 sys/sys tests/sys/sys

2019-08-27 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Aug 27 11:46:22 2019 New Revision: 351544 URL: https://svnweb.freebsd.org/changeset/base/351544 Log: Introduce , a fixed-point math library from Netflix.
 This makes it possible to perform mathematical operations
on fractional values without using floating point. It

svn commit: r351509 - head/usr.bin/ktrace

2019-08-26 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 26 10:18:19 2019 New Revision: 351509 URL: https://svnweb.freebsd.org/changeset/base/351509 Log: Make it clear what the userland traces are in the ktrace(1) man page. MFC after:2 weeks Modified: head/usr.bin/ktrace/ktrace.1 Modified:

svn commit: r351508 - head/share/man/man7

2019-08-26 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 26 10:16:46 2019 New Revision: 351508 URL: https://svnweb.freebsd.org/changeset/base/351508 Log: .Xr ports(7) and development(7). MFC after:2 weeks Modified: head/share/man/man7/development.7 head/share/man/man7/ports.7 Modified:

svn commit: r350685 - in head: share/man/man4 sys/conf sys/dev/usb sys/dev/usb/net sys/dev/usb/template sys/modules/usb sys/modules/usb/cdceem sys/modules/usb/template

2019-08-07 Thread Edward Tomasz Napierala
7 18:14:45 2019 (r350685) @@ -0,0 +1,119 @@ +.\" Copyright (c) 2019 Edward Tomasz Napierala +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\"

svn commit: r349750 - head/sys/compat/linux

2019-07-04 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Jul 4 20:16:04 2019 New Revision: 349750 URL: https://svnweb.freebsd.org/changeset/base/349750 Log: Return ENOTSUP for Linux FS_IOC_FIEMAP ioctl. Linux man(1) calls it for no good reason; this avoids the console spam (eg '(man): ioctl fd=4, cmd=0x660b ('f',11) is

svn commit: r349748 - head/sys/amd64/linux

2019-07-04 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Jul 4 19:46:58 2019 New Revision: 349748 URL: https://svnweb.freebsd.org/changeset/base/349748 Log: Add support for PTRACE_O_TRACEEXIT to linuxulator ptrace(2). This fixes strace 4.25 from Ubuntu 19.04. Reviewed by: emaste MFC after:2 weeks Sponsored by:

svn commit: r349747 - head/sys/amd64/linux

2019-07-04 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Jul 4 19:44:13 2019 New Revision: 349747 URL: https://svnweb.freebsd.org/changeset/base/349747 Log: Implement PTRACE_GETSIGINFO. This makes Linux strace(1) quieter in some cases (strace -f man id > /dev/null). Reviewed by: dchagin MFC after:2 weeks

svn commit: r349746 - head/sys/compat/linux

2019-07-04 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Jul 4 19:40:01 2019 New Revision: 349746 URL: https://svnweb.freebsd.org/changeset/base/349746 Log: Fix linuxulator prlimit64(2) with pid == 0. This makes 'ulimit -a' return something reasonable, and helps linux binaries which attempt to close all the files, eg

svn commit: r349118 - head/usr.sbin/iostat

2019-06-16 Thread Edward Tomasz Napierala
Author: trasz Date: Sun Jun 16 17:32:05 2019 New Revision: 349118 URL: https://svnweb.freebsd.org/changeset/base/349118 Log: In iostat(8) output, skip the decimal point and the fractional part for tps >= 100 and MB/s >= 1000, to prevent them for widening too much. MFC after:2 weeks

svn commit: r348514 - head/share/man/man7

2019-06-02 Thread Edward Tomasz Napierala
Author: trasz Date: Sun Jun 2 16:33:24 2019 New Revision: 348514 URL: https://svnweb.freebsd.org/changeset/base/348514 Log: Make tests(7) point people at the atf(7) man page. Other frameworks, such as googletest, should be added there as well, once they become viable. For now let's

svn commit: r348274 - head/share/man/man5

2019-05-25 Thread Edward Tomasz Napierala
Author: trasz Date: Sat May 25 17:37:28 2019 New Revision: 348274 URL: https://svnweb.freebsd.org/changeset/base/348274 Log: We don't really need two entries to describe how to deal with optical drives in devfs.conf(5). MFC after:2 weeks Sponsored by: The FreeBSD Foundation

svn commit: r348050 - head/share/man/man5

2019-05-21 Thread Edward Tomasz Napierala
Author: trasz Date: Tue May 21 08:24:22 2019 New Revision: 348050 URL: https://svnweb.freebsd.org/changeset/base/348050 Log: Xr make_dev(9) from devfs(5). MFC after:2 weeks Sponsored by: The FreeBSD Foundation Modified: head/share/man/man5/devfs.5 Modified:

svn commit: r348049 - head/sys/amd64/linux

2019-05-21 Thread Edward Tomasz Napierala
Author: trasz Date: Tue May 21 08:23:24 2019 New Revision: 348049 URL: https://svnweb.freebsd.org/changeset/base/348049 Log: Make linux_ptrace() use linux_msg() instead of printf(). MFC after:2 weeks Sponsored by: The FreeBSD Foundation Modified:

svn commit: r348000 - head/tests/sys/sys

2019-05-20 Thread Edward Tomasz Napierala
Author: trasz Date: Mon May 20 18:35:23 2019 New Revision: 348000 URL: https://svnweb.freebsd.org/changeset/base/348000 Log: Improve tree(3) tests by using ATF_REQUIRE where applicable. MFC after:2 weeks Sponsored by: Klara Inc. Modified: head/tests/sys/sys/rb_test.c

svn commit: r347971 - in head/sys: amd64/linux compat/linux

2019-05-19 Thread Edward Tomasz Napierala
Author: trasz Date: Sun May 19 12:58:44 2019 New Revision: 347971 URL: https://svnweb.freebsd.org/changeset/base/347971 Log: Implement PTRACE_O_TRACESYSGOOD. This makes Linux strace(1) work. Reviewed by: dchagin MFC after:2 weeks Sponsored by: The FreeBSD Foundation

svn commit: r347682 - head/share/man/man7

2019-05-16 Thread Edward Tomasz Napierala
Author: trasz Date: Thu May 16 09:49:19 2019 New Revision: 347682 URL: https://svnweb.freebsd.org/changeset/base/347682 Log: The "apropos ''" command no longer works; change development(7) to suggest "apropos ." instead. MFC after:2 weeks Sponsored by: DARPA, AFRL Modified:

svn commit: r347580 - head/sys/amd64/linux

2019-05-14 Thread Edward Tomasz Napierala
Author: trasz Date: Tue May 14 20:59:44 2019 New Revision: 347580 URL: https://svnweb.freebsd.org/changeset/base/347580 Log: Fix handling of r10 in Linux ptrace(2). This fixes decoding of the 'flags' argument to mmap(2) with Linux strace(1). Reviewed by: dchagin MFC after:2 weeks

svn commit: r347426 - head/tests/sys/sys

2019-05-10 Thread Edward Tomasz Napierala
Author: trasz Date: Fri May 10 08:16:29 2019 New Revision: 347426 URL: https://svnweb.freebsd.org/changeset/base/347426 Log: Try to unbreak the build after r347425. MFC after:2 weeks Modified: head/tests/sys/sys/rb_test.c head/tests/sys/sys/splay_test.c Modified:

svn commit: r347425 - head/tests/sys/sys

2019-05-10 Thread Edward Tomasz Napierala
Author: trasz Date: Fri May 10 07:46:14 2019 New Revision: 347425 URL: https://svnweb.freebsd.org/changeset/base/347425 Log: Add simple regression tests for tree(3). Those are ATF-ified versions of OpenBSD's regress/sys/sys/tree/. Reviewed by: ngie MFC after:2 weeks Sponsored

svn commit: r347361 - head/share/man/man3

2019-05-08 Thread Edward Tomasz Napierala
Author: trasz Date: Wed May 8 18:49:59 2019 New Revision: 347361 URL: https://svnweb.freebsd.org/changeset/base/347361 Log: Add usage example to tree(3). Obtained from:OpenBSD MFC after:2 weeks Sponsored by: Klara Inc. Modified: head/share/man/man3/tree.3 Modified:

svn commit: r347360 - head/sys/sys

2019-05-08 Thread Edward Tomasz Napierala
Author: trasz Date: Wed May 8 18:47:00 2019 New Revision: 347360 URL: https://svnweb.freebsd.org/changeset/base/347360 Log: Mark inline functions with __unused; prevents compiler warning when they end up being unused. Reviewed by: kib Obtained from:OpenBSD MFC after:2

svn commit: r347231 - head/sys/amd64/linux

2019-05-07 Thread Edward Tomasz Napierala
Author: trasz Date: Tue May 7 19:06:41 2019 New Revision: 347231 URL: https://svnweb.freebsd.org/changeset/base/347231 Log: Support PTRACE_GETREGSET w/ NT_PRSTATUS in Linux ptrace(2). While Linux strace(1) doesn't strictly require it - it has a fallback to PTRACE_GETREGS - it's a newer

svn commit: r347051 - head/sys/compat/linprocfs

2019-05-03 Thread Edward Tomasz Napierala
Author: trasz Date: Fri May 3 08:27:03 2019 New Revision: 347051 URL: https://svnweb.freebsd.org/changeset/base/347051 Log: Decode more CPU flags in cpuinfo. Reviewed by: dchagin MFC after:2 weeks Sponsored by: The FreeBSD Foundation Differential Revision:

svn commit: r347030 - head/sys/compat/linprocfs

2019-05-02 Thread Edward Tomasz Napierala
Author: trasz Date: Thu May 2 19:02:16 2019 New Revision: 347030 URL: https://svnweb.freebsd.org/changeset/base/347030 Log: Fix flags in cpuinfo. Reviewed by: dchagin MFC after:2 weeks Sponsored by: The FreeBSD Foundation Differential Revision:

svn commit: r347015 - head/sys/compat/linsysfs

2019-05-02 Thread Edward Tomasz Napierala
Author: trasz Date: Thu May 2 08:17:29 2019 New Revision: 347015 URL: https://svnweb.freebsd.org/changeset/base/347015 Log: Add sys/devices/system/cpu/{possible,present} to linsysfs(5). That makes Linux lscpu(1) work. Reviewed by: dchagin MFC after:2 weeks Sponsored by: The

svn commit: r347003 - head/usr.bin/stat/tests

2019-05-01 Thread Edward Tomasz Napierala
Author: trasz Date: Wed May 1 19:35:45 2019 New Revision: 347003 URL: https://svnweb.freebsd.org/changeset/base/347003 Log: Unbreak the tests after r347002. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Modified: head/usr.bin/stat/tests/stat_test.sh Modified:

svn commit: r347002 - head/usr.bin/stat

2019-05-01 Thread Edward Tomasz Napierala
Author: trasz Date: Wed May 1 18:56:22 2019 New Revision: 347002 URL: https://svnweb.freebsd.org/changeset/base/347002 Log: Add 'Birth' to 'stat -x' output. Current Linux stat(1) also includes that. Reviewed by: cem MFC after:2 weeks Sponsored by: The FreeBSD Foundation

svn commit: r347001 - head/lib/atf/libatf-c

2019-05-01 Thread Edward Tomasz Napierala
Author: trasz Date: Wed May 1 18:54:27 2019 New Revision: 347001 URL: https://svnweb.freebsd.org/changeset/base/347001 Log: Add MLINKS to atf-c.3. Reviewed by: ngie MFC after:2 weeks Sponsored by: Klara Inc. Differential Revision:https://reviews.freebsd.org/D20125

svn commit: r346989 - head/share/man/man7

2019-05-01 Thread Edward Tomasz Napierala
Author: trasz Date: Wed May 1 13:00:33 2019 New Revision: 346989 URL: https://svnweb.freebsd.org/changeset/base/346989 Log: Remove trailing slashes from URLs; current mandoc(1) seems to render them just fine. MFC after:2 weeks Sponsored by: DARPA, AFRL Modified:

svn commit: r346845 - head/sys/dev/isp

2019-04-28 Thread Edward Tomasz Napierala
Author: trasz Date: Sun Apr 28 15:08:57 2019 New Revision: 346845 URL: https://svnweb.freebsd.org/changeset/base/346845 Log: Make isp(4) suggest loading ispfw(4) when it fails to attach. It cannot load it automatically at boot, because the root filesystem is not there yet. An alternative

svn commit: r346270 - head/cddl/usr.sbin/zfsd

2019-04-16 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Apr 16 12:25:15 2019 New Revision: 346270 URL: https://svnweb.freebsd.org/changeset/base/346270 Log: Drop -g from CFLAGS for zfsd(8). No idea why it was ever there. Reviewed by: kib, ngie, asomers MFC after:2 weeks Sponsored by: DARPA, AFRL Differential

svn commit: r346151 - head/sys/kern

2019-04-12 Thread Edward Tomasz Napierala
Author: trasz Date: Fri Apr 12 14:18:16 2019 New Revision: 346151 URL: https://svnweb.freebsd.org/changeset/base/346151 Log: Remove unneeded conditionals for sv_ functions - all the ABIs (apart from null_sysvec) define them, so the 'else' branch is never taken. Reviewed by: kib MFC

svn commit: r346120 - head/sys/kern

2019-04-11 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Apr 11 11:21:45 2019 New Revision: 346120 URL: https://svnweb.freebsd.org/changeset/base/346120 Log: Use shared vnode locks for the ELF interpreter. Reviewed by: kib MFC after:2 weeks Sponsored by: DARPA, AFRL Differential Revision:

svn commit: r346086 - head/usr.sbin/autofs

2019-04-10 Thread Edward Tomasz Napierala
Author: trasz Date: Wed Apr 10 16:09:06 2019 New Revision: 346086 URL: https://svnweb.freebsd.org/changeset/base/346086 Log: Fix segfault that could occur on "automount -LL". MFC after:2 weeks Sponsored by: DARPA, AFRL Modified: head/usr.sbin/autofs/common.c Modified:

svn commit: r346081 - head/cddl/usr.sbin/zfsd

2019-04-10 Thread Edward Tomasz Napierala
Author: trasz Date: Wed Apr 10 13:42:37 2019 New Revision: 346081 URL: https://svnweb.freebsd.org/changeset/base/346081 Log: Make zfsd(8) build obey CFLAGS. Reviewed by: imp Obtained from:CheriBSD MFC after:2 weeks Sponsored by: DARPA, AFRL Differential Revision:

svn commit: r346076 - head/sys/kern

2019-04-10 Thread Edward Tomasz Napierala
Author: trasz Date: Wed Apr 10 10:21:14 2019 New Revision: 346076 URL: https://svnweb.freebsd.org/changeset/base/346076 Log: Improve vnode lock assertions. MFC after:2 weeks Sponsored by: DARPA, AFRL Modified: head/sys/kern/imgact_elf.c Modified: head/sys/kern/imgact_elf.c

svn commit: r346053 - head/sys/kern

2019-04-09 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Apr 9 15:24:38 2019 New Revision: 346053 URL: https://svnweb.freebsd.org/changeset/base/346053 Log: Factor out section loading into a separate function. Reviewed by: kib MFC after:2 weeks Sponsored by: DARPA, AFRL Differential Revision:

svn commit: r346049 - head/share/man/man7

2019-04-09 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Apr 9 10:17:24 2019 New Revision: 346049 URL: https://svnweb.freebsd.org/changeset/base/346049 Log: Remove spurious comma. MFC after:2 weeks Sponsored by: DARPA, AFRL Modified: head/share/man/man7/hostname.7 Modified: head/share/man/man7/hostname.7

svn commit: r346048 - head/lib/libc/sys

2019-04-09 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Apr 9 10:09:59 2019 New Revision: 346048 URL: https://svnweb.freebsd.org/changeset/base/346048 Log: .Xr protect(1) and proccontrol(1) from procctl(2). MFC after:2 weeks Sponsored by: DARPA, AFRL Modified: head/lib/libc/sys/procctl.2 Modified:

svn commit: r346030 - head/sys/kern

2019-04-08 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Apr 8 14:31:07 2019 New Revision: 346030 URL: https://svnweb.freebsd.org/changeset/base/346030 Log: Refactor ELF interpreter loading into a separate function. Reviewed by: kib MFC after:2 weeks Sponsored by: DARPA, AFRL Differential Revision:

svn commit: r345697 - head/usr.sbin/iostat

2019-03-29 Thread Edward Tomasz Napierala
Author: trasz Date: Fri Mar 29 16:05:30 2019 New Revision: 345697 URL: https://svnweb.freebsd.org/changeset/base/345697 Log: Reduce the precision of "MB/s" by one, making room for displaying transfer rates larger 99MB/s. MFC after:2 weeks Modified: head/usr.sbin/iostat/iostat.c

svn commit: r345661 - head/sys/kern

2019-03-28 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Mar 28 21:43:01 2019 New Revision: 345661 URL: https://svnweb.freebsd.org/changeset/base/345661 Log: Factor out retrieving the interpreter path from the main ELF loader routine. Reviewed by: kib MFC after:2 weeks Sponsored by: DARPA, AFRL Differential

svn commit: r345653 - head/usr.sbin/iostat

2019-03-28 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Mar 28 20:16:19 2019 New Revision: 345653 URL: https://svnweb.freebsd.org/changeset/base/345653 Log: Make the "KB/s" field one character shorter (by reducing the precision) and use the space to make the "tps" one character longer. It makes the iostat(8) output a

svn commit: r345551 - head/sys/vm

2019-03-26 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Mar 26 19:11:15 2019 New Revision: 345551 URL: https://svnweb.freebsd.org/changeset/base/345551 Log: Improve error reporting when the swap pager runs out of memory. Reviewed by: kib MFC after:2 weeks Sponsored by: Klara Inc. Differential Revision:

svn commit: r345549 - head/sys/dev/smartpqi

2019-03-26 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Mar 26 15:47:13 2019 New Revision: 345549 URL: https://svnweb.freebsd.org/changeset/base/345549 Log: Make smartpqi(4) behave better when running out of memory, by returning CAM_RESRC_UNAVAIL instead of CAM_REQUEUE_REQ. This makes CAM delay a bit before retrying, so

svn commit: r345548 - head/bin/dd

2019-03-26 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Mar 26 15:44:06 2019 New Revision: 345548 URL: https://svnweb.freebsd.org/changeset/base/345548 Log: .Xr trim(8) from dd(1). MFC after:2 weeks Sponsored by: DARPA, AFRL Modified: head/bin/dd/dd.1 Modified: head/bin/dd/dd.1

svn commit: r345547 - head/sys/kern

2019-03-26 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Mar 26 15:35:49 2019 New Revision: 345547 URL: https://svnweb.freebsd.org/changeset/base/345547 Log: Factor out resource limit enforcement code in the ELF loader. It makes the code slightly easier to follow, and might make it easier to fix the resouce accounting to

svn commit: r345448 - head/sys/kern

2019-03-23 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Mar 23 13:41:14 2019 New Revision: 345448 URL: https://svnweb.freebsd.org/changeset/base/345448 Log: Remove trunc_page_ps() and round_page_ps() macros. This completes the undoing of r100384. Reviewed by: kib MFC after:2 weeks Sponsored by: DARPA, AFRL

svn commit: r345385 - head/sys/dev/smartpqi

2019-03-21 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Mar 21 21:14:25 2019 New Revision: 345385 URL: https://svnweb.freebsd.org/changeset/base/345385 Log: Fix smartpqi(4) malloc tag and description to match the driver name. No functional changes. Reviewed by: sbruno MFC after:2 weeks Sponsored by: Klara Inc.

svn commit: r345368 - head/share/man/man4

2019-03-21 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Mar 21 08:51:32 2019 New Revision: 345368 URL: https://svnweb.freebsd.org/changeset/base/345368 Log: Attach the vmci(4) man page to the build. Looks like it's been missed by mistake. MFC after:2 weeks Sponsored by: DARPA, AFRL Modified:

svn commit: r345065 - in head/sys/fs: nfs nfsclient nfsserver

2019-03-12 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Mar 12 15:07:47 2019 New Revision: 345065 URL: https://svnweb.freebsd.org/changeset/base/345065 Log: Drop unused 'p' argument to nfsv4_strtogid(). MFC after:2 weeks Sponsored by: DARPA, AFRL Modified: head/sys/fs/nfs/nfs_commonacl.c

svn commit: r345064 - head/sys/fs/nfs

2019-03-12 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Mar 12 15:05:11 2019 New Revision: 345064 URL: https://svnweb.freebsd.org/changeset/base/345064 Log: Drop unused 'p' argument to nfsv4_gidtostr(). MFC after:2 weeks Sponsored by: DARPA, AFRL Modified: head/sys/fs/nfs/nfs_commonacl.c

svn commit: r345063 - in head/sys/fs: nfs nfsclient nfsserver

2019-03-12 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Mar 12 15:02:52 2019 New Revision: 345063 URL: https://svnweb.freebsd.org/changeset/base/345063 Log: Drop unused 'p' argument to nfsv4_strtouid(). MFC after:2 weeks Sponsored by: DARPA, AFRL Modified: head/sys/fs/nfs/nfs_commonacl.c

svn commit: r345062 - head/sys/fs/nfs

2019-03-12 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Mar 12 14:59:08 2019 New Revision: 345062 URL: https://svnweb.freebsd.org/changeset/base/345062 Log: Drop unused 'p' argument to nfsv4_uidtostr(). MFC after:2 weeks Sponsored by: DARPA, AFRL Modified: head/sys/fs/nfs/nfs_commonacl.c

svn commit: r345061 - head/sys/fs/nfs

2019-03-12 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Mar 12 14:53:53 2019 New Revision: 345061 URL: https://svnweb.freebsd.org/changeset/base/345061 Log: Drop unused 'p' argument to nfsrv_getuser(). Reviewed by: rmacklem MFC after:2 weeks Sponsored by: DARPA, AFRL Differential Revision:

svn commit: r344987 - head/sys/dev/smartpqi

2019-03-10 Thread Edward Tomasz Napierala
Author: trasz Date: Sun Mar 10 23:05:38 2019 New Revision: 344987 URL: https://svnweb.freebsd.org/changeset/base/344987 Log: Fix crash in low memory conditions. Usual backtrace looked like this: pqisrc_build_sgl() at pqisrc_build_sgl+0x8d/frame 0xfe009e8b7a00

svn commit: r344763 - in head/sys/fs: nfs nfsserver

2019-03-04 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Mar 4 14:50:00 2019 New Revision: 344763 URL: https://svnweb.freebsd.org/changeset/base/344763 Log: Don't pass td to nfsvno_open(). MFC after:2 weeks Sponsored by: DARPA, AFRL Modified: head/sys/fs/nfs/nfs_var.h head/sys/fs/nfsserver/nfs_nfsdport.c

svn commit: r344762 - in head/sys/fs: nfs nfsserver

2019-03-04 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Mar 4 14:30:53 2019 New Revision: 344762 URL: https://svnweb.freebsd.org/changeset/base/344762 Log: Don't pass td to nfsvno_createsub(). MFC after:2 weeks Sponsored by: DARPA, AFRL Modified: head/sys/fs/nfs/nfs_var.h head/sys/fs/nfsserver/nfs_nfsdport.c

svn commit: r344760 - in head/sys/fs: nfs nfsserver

2019-03-04 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Mar 4 13:18:04 2019 New Revision: 344760 URL: https://svnweb.freebsd.org/changeset/base/344760 Log: Don't pass td to nfsd_fhtovp(), it's unused. Reviewed by: rmacklem (earlier version) MFC after:2 weeks Sponsored by: DARPA, AFRL Differential Revision:

svn commit: r344759 - in head/sys/fs: nfs nfsserver

2019-03-04 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Mar 4 13:12:23 2019 New Revision: 344759 URL: https://svnweb.freebsd.org/changeset/base/344759 Log: Push down the thread argument in NFS server code, using curthread instead of passing it explicitly. No functional changes Reviewed by: rmacklem (earlier version)

svn commit: r344758 - in head/sys/fs: nfs nfsserver

2019-03-04 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Mar 4 13:02:36 2019 New Revision: 344758 URL: https://svnweb.freebsd.org/changeset/base/344758 Log: Push down td in nfsrvd_dorpc() - make it use curthread instead of it being explicitly passed as an argument. No functional changes. The big picture here is that I

svn commit: r344705 - in head/sys: amd64/amd64 amd64/cloudabi32 amd64/cloudabi64 amd64/linux amd64/linux32 arm/arm arm/cloudabi32 arm64/arm64 arm64/cloudabi32 arm64/cloudabi64 arm64/linux compat/ia...

2019-03-01 Thread Edward Tomasz Napierala
Author: trasz Date: Fri Mar 1 16:16:38 2019 New Revision: 344705 URL: https://svnweb.freebsd.org/changeset/base/344705 Log: Remove sv_pagesize, originally introduced with r100384. In all of the architectures we have today, we always use PAGE_SIZE. While in theory one could define

svn commit: r344277 - head/sys/fs/nfsclient

2019-02-19 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Feb 19 12:45:37 2019 New Revision: 344277 URL: https://svnweb.freebsd.org/changeset/base/344277 Log: Work around the "nfscl: bad open cnt on server" assertion that can happen when rerooting into NFSv4 rootfs with kernel built with INVARIANTS. I've talked to

svn commit: r344276 - head/sys/rpc/rpcsec_gss

2019-02-19 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Feb 19 11:07:02 2019 New Revision: 344276 URL: https://svnweb.freebsd.org/changeset/base/344276 Log: Bump the default kern.rpc.gss.client_max from 128 to 1024. The old value resulted in bad performance, with high kernel and gssd(8) load, with more than ~64

svn commit: r344273 - head/sys/rpc/rpcsec_gss

2019-02-19 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Feb 19 10:17:49 2019 New Revision: 344273 URL: https://svnweb.freebsd.org/changeset/base/344273 Log: Add kern.rpc.gss.client_hash tunable, to make it possible to bump it easily. This can lower the load on gssd(8) on large NFS servers. Submitted by: Per Andersson

svn commit: r344050 - head/share/man/man7

2019-02-12 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Feb 12 13:01:55 2019 New Revision: 344050 URL: https://svnweb.freebsd.org/changeset/base/344050 Log: Fix markup - use .Pa for the directory component, not .Fa. Reported by: 0mp MFC after:2 weeks Sponsored by: DARPA, AFRL Modified:

svn commit: r344021 - head/share/man/man7

2019-02-11 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Feb 11 20:46:32 2019 New Revision: 344021 URL: https://svnweb.freebsd.org/changeset/base/344021 Log: Add explanation of branches to the ports(7) man page. Reviewed by: matthew@, free...@mhka.no MFC after:2 weeks Sponsored by: DARPA, AFRL Differential

svn commit: r343440 - head/bin/sh

2019-01-25 Thread Edward Tomasz Napierala
Author: trasz Date: Fri Jan 25 17:09:26 2019 New Revision: 343440 URL: https://svnweb.freebsd.org/changeset/base/343440 Log: Comment out the default sh(1) aliases for root, introduced in r343416. The rest of this stuff is still to be discussed, but I think at this point we have the

Re: svn commit: r343416 - head/bin/sh

2019-01-25 Thread Edward Tomasz Napierala
On 0124T1555, Rodney W. Grimes wrote: > > Author: trasz > > Date: Thu Jan 24 23:34:51 2019 > > New Revision: 343416 > > URL: https://svnweb.freebsd.org/changeset/base/343416 > > > > Log: > > Install .shrc for root, and set PS1 for the toor account. > > And a dozen other aliases :-( Six, and

svn commit: r343416 - head/bin/sh

2019-01-24 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Jan 24 23:34:51 2019 New Revision: 343416 URL: https://svnweb.freebsd.org/changeset/base/343416 Log: Install .shrc for root, and set PS1 for the toor account. Reviewed by: jilles MFC after:2 weeks Sponsored by: DARPA, AFRL Differential Revision:

svn commit: r343399 - in head: bin/sh share/skel

2019-01-24 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Jan 24 11:59:46 2019 New Revision: 343399 URL: https://svnweb.freebsd.org/changeset/base/343399 Log: Make sh(1) support \u in PS1. This removes one fork/exec on interactive shell startup. Reviewed by: 0mp (man page), jilles MFC after:2 weeks Sponsored

<    1   2   3   4   5   6   7   8   9   10   >