svn commit: r368587 - head/sys/dev/amdtemp

2020-12-12 Thread Conrad Meyer
Author: cem Date: Sat Dec 12 19:43:38 2020 New Revision: 368587 URL: https://svnweb.freebsd.org/changeset/base/368587 Log: amdtemp(4): Add missing Family 17h models Add missing model numbers M20h (Dali, Zen1), M60H (Renoir, Zen2), and M90H (Van Gogh, Zen2). Submitted by: Greg V Mod

svn commit: r368586 - in head/sys/dev: amdsmn amdtemp

2020-12-12 Thread Conrad Meyer
Author: cem Date: Sat Dec 12 19:34:12 2020 New Revision: 368586 URL: https://svnweb.freebsd.org/changeset/base/368586 Log: amdsmn(4), amdtemp(4): add support for Family 19h (Zen 3) Zen 3 "Vermeer" support, tested on Ryzen 9 5950X. Model numbers from https://en.wikichip.org/wiki/amd/cpu

svn commit: r368374 - head/sys/dev/atkbdc

2020-12-05 Thread Conrad Meyer
Author: cem Date: Sat Dec 5 22:04:30 2020 New Revision: 368374 URL: https://svnweb.freebsd.org/changeset/base/368374 Log: atkbd(4): Just use nitems() for quirk enumeration Reviewed by: imp, wulf X-MFC-With: r368365 Differential Revision:https://reviews.freebsd.org/D27489 Mo

svn commit: r368354 - in head: lib/libc/powerpc lib/libc/powerpc64 lib/libc/powerpc64/sys lib/libthr/arch/i386/i386 lib/msun/i387 libexec/rtld-elf/aarch64 libexec/rtld-elf/powerpc libexec/rtld-elf/...

2020-12-04 Thread Conrad Meyer
Author: cem Date: Sat Dec 5 00:33:28 2020 New Revision: 368354 URL: https://svnweb.freebsd.org/changeset/base/368354 Log: Add CFI start/end proc directives to arm64, i386, and ppc Follow-up to r353959 and r368070: do the same for other architectures. arm32 already seems to use its own

svn commit: r367817 - head/sys/fs/msdosfs

2020-11-18 Thread Conrad Meyer
Author: cem Date: Wed Nov 18 20:20:03 2020 New Revision: 367817 URL: https://svnweb.freebsd.org/changeset/base/367817 Log: msdosfs(5): Fix debug-only format string No functional change; MSDOSFS_DEBUG isn't a real build option, so this isn't covered by LINT kernels. Modified: head/sys/f

svn commit: r367778 - in head/sys: compat/linux kern sys

2020-11-17 Thread Conrad Meyer
Author: cem Date: Tue Nov 17 21:20:11 2020 New Revision: 367778 URL: https://svnweb.freebsd.org/changeset/base/367778 Log: linux(4) clone(2): Correctly handle CLONE_FS and CLONE_FILES The two flags are distinct and it is impossible to correctly handle clone(2) without the assistance of fo

svn commit: r367777 - in head: lib/libkvm lib/libprocstat sys/compat/cloudabi sys/fs/fuse sys/fs/unionfs sys/kern sys/sys

2020-11-17 Thread Conrad Meyer
Author: cem Date: Tue Nov 17 21:14:13 2020 New Revision: 36 URL: https://svnweb.freebsd.org/changeset/base/36 Log: Split out cwd/root/jail, cmask state from filedesc table No functional change intended. Tracking these structures separately for each proc enables future work to

svn commit: r367776 - in head: share/man/man4 sys/compat/linux sys/kern sys/sys

2020-11-17 Thread Conrad Meyer
Author: cem Date: Tue Nov 17 20:01:21 2020 New Revision: 367776 URL: https://svnweb.freebsd.org/changeset/base/367776 Log: unix(4): Enhance LOCAL_CREDS_PERSISTENT ABI As this ABI is still fresh (r367287), let's correct some mistakes now: - Version the structure to allow for future chan

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

2020-11-17 Thread Conrad Meyer
Author: cem Date: Tue Nov 17 19:56:47 2020 New Revision: 367775 URL: https://svnweb.freebsd.org/changeset/base/367775 Log: linprocfs(5): Add rudimentary /proc//mountinfo This is used by some Linux programs using filehandles (r367773) to locate the mountpoint for a given fsid. Differe

svn commit: r367774 - in head/sys: amd64/linux amd64/linux32 arm64/linux i386/linux

2020-11-17 Thread Conrad Meyer
Author: cem Date: Tue Nov 17 19:53:59 2020 New Revision: 367774 URL: https://svnweb.freebsd.org/changeset/base/367774 Log: 'make sysent' for r367773 X-MFC-With: r367773 Modified: head/sys/amd64/linux/linux_proto.h head/sys/amd64/linux/linux_sysent.c head/sys/amd64/linux/linux_systr

svn commit: r367773 - in head/sys: amd64/linux amd64/linux32 arm64/linux compat/linux i386/linux kern sys

2020-11-17 Thread Conrad Meyer
Author: cem Date: Tue Nov 17 19:51:47 2020 New Revision: 367773 URL: https://svnweb.freebsd.org/changeset/base/367773 Log: linux(4): Implement name_to_handle_at(), open_by_handle_at() They are similar to our getfhat(2) and fhopen(2) syscalls. Differential Revision:https://revie

Re: svn commit: r367631 - in head/sys: kern sys

2020-11-13 Thread Conrad Meyer
Hi Konstantin, On Fri, Nov 13, 2020 at 1:32 AM Konstantin Belousov wrote: > > Author: kib > Date: Fri Nov 13 09:31:57 2020 > New Revision: 367631 > URL: https://svnweb.freebsd.org/changeset/base/367631 > > Log: > Implement vn_lock_pair(). > > Modified: head/sys/kern/vfs_vnops.c > ==

svn commit: r367433 - in head/sys: compat/linux conf

2020-11-06 Thread Conrad Meyer
Author: cem Date: Fri Nov 6 22:04:57 2020 New Revision: 367433 URL: https://svnweb.freebsd.org/changeset/base/367433 Log: linux(4): Fix loadable modules after r367395 Move dtrace SDT definitions into linux_common module code. Also, build linux_dummy.c into the linux_common kld -- we don

svn commit: r367395 - in head/sys: amd64/linux amd64/linux32 arm64/linux compat/linux conf i386/linux modules/linux modules/linux64 modules/linux_common x86/linux

2020-11-05 Thread Conrad Meyer
Author: cem Date: Thu Nov 5 19:30:31 2020 New Revision: 367395 URL: https://svnweb.freebsd.org/changeset/base/367395 Log: linux(4): Deduplicate unimpl/dummy syscall handlers No functional change. Reviewed by: emaste, trasz Differential Revision:https://reviews.freebsd.org/D

svn commit: r367362 - in head/sys: compat/linprocfs fs/pseudofs

2020-11-04 Thread Conrad Meyer
Author: cem Date: Thu Nov 5 06:48:51 2020 New Revision: 367362 URL: https://svnweb.freebsd.org/changeset/base/367362 Log: Add sbuf streaming mode to pseudofs(9), use in linprocfs(5) Add a pseudofs node flag 'PFS_AUTODRAIN', which automatically emits sbuf contents to the caller when the s

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

2020-11-03 Thread Conrad Meyer
Author: cem Date: Tue Nov 3 19:50:42 2020 New Revision: 367303 URL: https://svnweb.freebsd.org/changeset/base/367303 Log: linux(4): Improve netlink diagnostics Add some missing netlink_family definitions and produce vaguely human-readable error messages for those definitions, like we use

Re: svn commit: r367288 - head/sys/compat/linux

2020-11-02 Thread Conrad Meyer
No, not as far as I can tell. On Mon, Nov 2, 2020 at 5:48 PM Andrew Gallatin wrote: > > On 11/2/20 8:19 PM, Conrad Meyer wrote: > > > > Log: > >linux(4): Emulate Linux SOL_SOCKET:SO_PASSCRED > > > >This is required by some major linux applications, suc

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

2020-11-02 Thread Conrad Meyer
Author: cem Date: Tue Nov 3 02:10:54 2020 New Revision: 367290 URL: https://svnweb.freebsd.org/changeset/base/367290 Log: linux(4) prctl(2): Implement PR_[GS]ET_DUMPABLE Proxy the flag to the roughly analogous FreeBSD procctl 'TRACE'. TRACE-disabled processes are not coredumped, and L

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

2020-11-02 Thread Conrad Meyer
Author: cem Date: Tue Nov 3 01:19:13 2020 New Revision: 367288 URL: https://svnweb.freebsd.org/changeset/base/367288 Log: linux(4): Emulate Linux SOL_SOCKET:SO_PASSCRED This is required by some major linux applications, such as Chrome and Firefox. (As well as Electron-using applications

svn commit: r367287 - in head: share/man/man4 sys/kern sys/sys

2020-11-02 Thread Conrad Meyer
Author: cem Date: Tue Nov 3 01:17:45 2020 New Revision: 367287 URL: https://svnweb.freebsd.org/changeset/base/367287 Log: unix(4): Add SOL_LOCAL:LOCAL_CREDS_PERSISTENT This option is intended to be semantically identical to Linux's SOL_SOCKET:SO_PASSCRED. For now, it is mutually exclusi

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

2020-11-02 Thread Conrad Meyer
Author: cem Date: Tue Nov 3 01:10:27 2020 New Revision: 367286 URL: https://svnweb.freebsd.org/changeset/base/367286 Log: linux(4): style: Eliminate dead 'break' after 'return' No functional change. Modified: head/sys/compat/linux/linux_misc.c Modified: head/sys/compat/linux/linux_misc

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

2020-11-02 Thread Conrad Meyer
Author: cem Date: Mon Nov 2 18:45:43 2020 New Revision: 367279 URL: https://svnweb.freebsd.org/changeset/base/367279 Log: linux(4): Quiesce unrecognized ioctl warning for F2FS query On Linux, sqlite probes for underlying F2FS filesystems that support certain kinds of atomic update with t

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

2020-11-02 Thread Conrad Meyer
Author: cem Date: Mon Nov 2 18:45:15 2020 New Revision: 367278 URL: https://svnweb.freebsd.org/changeset/base/367278 Log: linux(4): Deduplicate ioctl range construction with a helper macro No functional change. Reviewed by: emaste, trasz Differential Revision:https://review

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

2020-11-01 Thread Conrad Meyer
Author: cem Date: Mon Nov 2 06:16:11 2020 New Revision: 367267 URL: https://svnweb.freebsd.org/changeset/base/367267 Log: linux(4): Disambiguate identical ioctl errors in distinct paths And stop truncating the full ioctl number in the error message. Reviewed by: emaste Differential

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

2020-10-30 Thread Conrad Meyer
Author: cem Date: Sat Oct 31 01:12:35 2020 New Revision: 367190 URL: https://svnweb.freebsd.org/changeset/base/367190 Log: linux(4): Add missing clone(2) flags Modified: head/sys/compat/linux/linux_misc.h Modified: head/sys/compat/linux/linux_misc.h ==

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

2020-10-30 Thread Conrad Meyer
Author: cem Date: Fri Oct 30 19:02:59 2020 New Revision: 367182 URL: https://svnweb.freebsd.org/changeset/base/367182 Log: linux(4): Quiesce warning about madvise(..., -1) This API misuse is intended to produce an error value to detect certain bogus stub implementations of MADV_WIPEONFORK

svn commit: r367181 - in head/sys/ufs: ffs ufs

2020-10-30 Thread Conrad Meyer
Author: cem Date: Fri Oct 30 19:00:42 2020 New Revision: 367181 URL: https://svnweb.freebsd.org/changeset/base/367181 Log: UFS2: Fix DoS due to corrupted extattrfile Prior versions of FreeBSD (11.x) may have produced a corrupt extattr file. (Specifically, r312416 accidentally fixed this d

svn commit: r366622 - in head: lib/libc/gen sys/amd64/amd64 sys/arm/arm sys/arm64/arm64 sys/compat/ia32 sys/dev/random/fenestrasX sys/i386/i386 sys/kern sys/mips/mips sys/powerpc/powerpc sys/riscv/...

2020-10-10 Thread Conrad Meyer
Author: cem Date: Sat Oct 10 21:52:00 2020 New Revision: 366622 URL: https://svnweb.freebsd.org/changeset/base/366622 Log: random(4) FenestrasX: Push root seed version to arc4random(3) Push the root seed version to userspace through the VDSO page, if the RANDOM_FENESTRASX algorithm is ena

svn commit: r366621 - in head/sys: dev/random dev/random/fenestrasX libkern sys

2020-10-10 Thread Conrad Meyer
dded) +++ head/sys/dev/random/fenestrasX/fx_pub.h Sat Oct 10 21:48:06 2020 (r366621) @@ -0,0 +1,53 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * + * Copyright (c) 2019 Conrad Meyer + * + * Redistribution and use in source and binary forms, with or without + * modif

svn commit: r366620 - in head/sys: conf dev/random/fenestrasX

2020-10-10 Thread Conrad Meyer
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/dev/random/fenestrasX/fx_brng.cSat Oct 10 21:45:59 2020 (r366620) @@ -0,0 +1,295 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * + * Copyright (c)

svn commit: r366521 - head/usr.sbin/bhyveload

2020-10-07 Thread Conrad Meyer
Author: cem Date: Wed Oct 7 20:31:13 2020 New Revision: 366521 URL: https://svnweb.freebsd.org/changeset/base/366521 Log: bhyveload(8): Implement loader_callbacks::diskwrite The method was optional prior to r365938, which made it mandatory but did add any test that an implementation prov

Re: svn commit: r366291 - head/sys/gdb

2020-09-30 Thread Conrad Meyer
On Wed, Sep 30, 2020 at 7:56 AM Conrad Meyer wrote: > Author: cem > Date: Wed Sep 30 14:55:54 2020 > New Revision: 366291 > URL: https://svnweb.freebsd.org/changeset/base/366291 > > Log: > gdb(4): Don't escape GDB special characters at application layer > > In

svn commit: r366291 - head/sys/gdb

2020-09-30 Thread Conrad Meyer
Author: cem Date: Wed Sep 30 14:55:54 2020 New Revision: 366291 URL: https://svnweb.freebsd.org/changeset/base/366291 Log: gdb(4): Don't escape GDB special characters at application layer In r351368, we introduced this XML- and GDB-encoded data. The protocol 'offset' should reflex the lo

svn commit: r366136 - in head/sys/dev: amdsmn amdtemp

2020-09-24 Thread Conrad Meyer
n/amdsmn.cFri Sep 25 04:16:28 2020 (r366136) @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2017-2019 Conrad Meyer + * Copyright (c) 2017-2020 Conrad Meyer * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -60,6 +60,7 @@ __FBSDID("$FreeB

svn commit: r366078 - head/sbin/reboot

2020-09-23 Thread Conrad Meyer
Author: cem Date: Wed Sep 23 17:04:27 2020 New Revision: 366078 URL: https://svnweb.freebsd.org/changeset/base/366078 Log: nextboot(8): Fix behavior on non-ZFS /boot systems Fix unquoted test for an empty value, which broke nextboot(8) on non-ZFS /boot systems after r365938. Discusse

Re: svn commit: r365984 - head/usr.bin/calendar/calendars

2020-09-21 Thread Conrad Meyer
Big ol plus one from me. On Mon, Sep 21, 2020 at 4:16 PM Cy Schubert wrote: > > In message <202009212255.08lmtpsp078...@repo.freebsd.org>, Greg Lehey > writes: > > Author: grog > > Date: Mon Sep 21 22:55:51 2020 > > New Revision: 365984 > > URL: https://svnweb.freebsd.org/changeset/base/365984 >

svn commit: r364786 - head/sys/vm

2020-08-25 Thread Conrad Meyer
Author: cem Date: Tue Aug 25 21:36:56 2020 New Revision: 364786 URL: https://svnweb.freebsd.org/changeset/base/364786 Log: vm_pageout: Scale worker threads with CPUs Autoscale vm_pageout worker threads from r364129 with CPU count. The default is arbitrarily chosen to be 16 CPUs per worke

svn commit: r364358 - head/sys/gdb

2020-08-18 Thread Conrad Meyer
Author: cem Date: Tue Aug 18 20:59:10 2020 New Revision: 364358 URL: https://svnweb.freebsd.org/changeset/base/364358 Log: gdb(4): Support empty qSupported queries Technically a client may send a qSupported query without specifying any client features. We should respond with our supporte

svn commit: r364316 - in head: lib/geom/part sys/geom/part sys/sys/disk

2020-08-17 Thread Conrad Meyer
Author: cem Date: Mon Aug 17 17:07:05 2020 New Revision: 364316 URL: https://svnweb.freebsd.org/changeset/base/364316 Log: gpart(8): Recognize apple-zfs and solaris-reserved partition ids Introduce G_PART_ALIAS_SOLARIS_RESERVED, GPT_ENT_TYPE_SOLARIS_RESERVED et al., to make gpart show out

svn commit: r364261 - head/sys/kern

2020-08-15 Thread Conrad Meyer
Author: cem Date: Sat Aug 15 19:45:50 2020 New Revision: 364261 URL: https://svnweb.freebsd.org/changeset/base/364261 Log: witness(4): Print stack of prior observed lock order on reversal The first time Witness observes a lock order between two locks, it records the caller's stack. On de

svn commit: r364260 - head/sys/contrib/pcg-c/include

2020-08-15 Thread Conrad Meyer
Author: cem Date: Sat Aug 15 18:46:26 2020 New Revision: 364260 URL: https://svnweb.freebsd.org/changeset/base/364260 Log: pcg-c: Add 'static' to inline function definitions Make the inlines static to avoid kernel build failure with Clang 11 on i386. (The issue was not observed with Clang

svn commit: r364237 - head/sys/vm

2020-08-14 Thread Conrad Meyer
Author: cem Date: Fri Aug 14 18:48:48 2020 New Revision: 364237 URL: https://svnweb.freebsd.org/changeset/base/364237 Log: vm_pageout: Correct threshold calculation on single-CPU systems Reported by: Michael Butler X-MFC-With: r364129 Modified: head/sys/vm/vm_pageout.c Modified: he

Re: svn commit: r364219 - in head: share/man/man9 sys/conf sys/contrib/pcg-c/include sys/kern sys/libkern sys/sys

2020-08-13 Thread Conrad Meyer
you know a way to assert that, I'd love to add it. I was unable to find a way in MI code to assert on that condition, which is predominantly in MD code Best, Conrad > On 8/13/20, Conrad Meyer wrote: > > Author: cem > > Date: Thu Aug 13 20:48:14 2020 > > New Revision:

svn commit: r364219 - in head: share/man/man9 sys/conf sys/contrib/pcg-c/include sys/kern sys/libkern sys/sys

2020-08-13 Thread Conrad Meyer
hare/man/man9/prng.9 == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/share/man/man9/prng.9 Thu Aug 13 20:48:14 2020(r364219) @@ -0,0 +1,99 @@ +.\"- +.\" Copyright 2020 Conrad Meyer . All rights reserved. +.\" +.\" Redistribution and

svn commit: r364135 - in head/sys: fs/devfs kern

2020-08-11 Thread Conrad Meyer
Author: cem Date: Wed Aug 12 00:32:31 2020 New Revision: 364135 URL: https://svnweb.freebsd.org/changeset/base/364135 Log: devfs: Abstract locking assertions The conversion was largely mechanical: sed(1) with: -e 's|mtx_assert(&devmtx, MA_OWNED)|dev_lock_assert_locked()|g' -e 's|

Re: svn commit: r364129 - head/sys/vm

2020-08-11 Thread Conrad Meyer
Done in r364134. On Tue, Aug 11, 2020 at 3:31 PM Mark Johnston wrote: > > On Tue, Aug 11, 2020 at 03:21:31PM -0700, Conrad Meyer wrote: > > Hi Konstantin, Mark (raised the same question), > > > > On Tue, Aug 11, 2020 at 2:32 PM Konstantin Belousov > > wrote: >

svn commit: r364134 - head/sys/vm

2020-08-11 Thread Conrad Meyer
Author: cem Date: Wed Aug 12 00:21:30 2020 New Revision: 364134 URL: https://svnweb.freebsd.org/changeset/base/364134 Log: Back out unrelated change Reported by: kib, markj X-MFC-With: r364129 Modified: head/sys/vm/vm_page.c Modified: head/sys/vm/vm_page.c =

Re: svn commit: r364129 - head/sys/vm

2020-08-11 Thread Conrad Meyer
Hi Konstantin, Mark (raised the same question), On Tue, Aug 11, 2020 at 2:32 PM Konstantin Belousov wrote: > > On Tue, Aug 11, 2020 at 08:37:45PM +, Conrad Meyer wrote: > > Author: cem > > Date: Tue Aug 11 20:37:45 2020 > > New Revision: 364129 > > URL: https:

svn commit: r364130 - head/sys/sys

2020-08-11 Thread Conrad Meyer
Author: cem Date: Tue Aug 11 20:42:21 2020 New Revision: 364130 URL: https://svnweb.freebsd.org/changeset/base/364130 Log: smp.h: Reconcile definition and declaration of smp_ncpus The variable is defined unconditionally; declare it unconditionally as well. It is already initialized to

svn commit: r364129 - head/sys/vm

2020-08-11 Thread Conrad Meyer
Author: cem Date: Tue Aug 11 20:37:45 2020 New Revision: 364129 URL: https://svnweb.freebsd.org/changeset/base/364129 Log: Add support for multithreading the inactive queue pageout within a domain. In very high throughput workloads, the inactive scan can become overwhelmed as you have man

svn commit: r363770 - head/sys/kern

2020-08-02 Thread Conrad Meyer
Author: cem Date: Sun Aug 2 16:34:27 2020 New Revision: 363770 URL: https://svnweb.freebsd.org/changeset/base/363770 Log: Unlocked getblk: Fix new false-positive assertion A free buf's lock may be held (temporarily) due to unlocked lookup, so buf_alloc() must acquire it without LK_NOWAIT

svn commit: r363722 - head/sys/kern

2020-07-30 Thread Conrad Meyer
Author: cem Date: Fri Jul 31 00:13:40 2020 New Revision: 363722 URL: https://svnweb.freebsd.org/changeset/base/363722 Log: getblk: Remove a non-sensical LK_NOWAIT | LK_SLEEPFAIL No functional change. LK_SLEEPFAIL implies a behavior that is only possible if the lock operation can sle

svn commit: r363721 - head/sys/kern

2020-07-30 Thread Conrad Meyer
Author: cem Date: Fri Jul 31 00:07:01 2020 New Revision: 363721 URL: https://svnweb.freebsd.org/changeset/base/363721 Log: getblk: Avoid sleeping on wrong buf in lockless path If the buffer identity changed during lookup, sleeping could introduce a lock order reversal. Since we do not kn

svn commit: r363720 - head/sys/contrib/pcg-c

2020-07-30 Thread Conrad Meyer
Author: cem Date: Thu Jul 30 23:54:25 2020 New Revision: 363720 URL: https://svnweb.freebsd.org/changeset/base/363720 Log: Import PCG-C into sys/contrib The intended (future) use is to provide fast pseudo-random numbers in non- cryptographic applications. Added: head/sys/contrib/pcg-c/

Re: svn commit: r363482 - in head/sys: kern sys

2020-07-30 Thread Conrad Meyer
Hi Konstantin, On Tue, Jul 28, 2020 at 11:42 AM Konstantin Belousov wrote: > > On Fri, Jul 24, 2020 at 05:34:05PM +, Conrad Meyer wrote: > > ... > > --- head/sys/kern/vfs_bio.c Fri Jul 24 17:32:10 2020(r363481) > > +++ head/sys/kern/vfs_bio.c

svn commit: r363483 - head/sys/kern

2020-07-24 Thread Conrad Meyer
Author: cem Date: Fri Jul 24 17:34:44 2020 New Revision: 363483 URL: https://svnweb.freebsd.org/changeset/base/363483 Log: Use gbincore_unlocked for unprotected incore() Reviewed by: markj Sponsored by: Isilon Differential Revision:https://reviews.freebsd.org/D25790 Modified:

svn commit: r363482 - in head/sys: kern sys

2020-07-24 Thread Conrad Meyer
Author: cem Date: Fri Jul 24 17:34:04 2020 New Revision: 363482 URL: https://svnweb.freebsd.org/changeset/base/363482 Log: Add unlocked/SMR fast path to getblk() Convert the bufobj tries to an SMR zone/PCTRIE and add a gbincore_unlocked() API wrapping this functionality. Use it for a fas

svn commit: r363481 - in head/sys: kern sys

2020-07-24 Thread Conrad Meyer
Author: cem Date: Fri Jul 24 17:32:10 2020 New Revision: 363481 URL: https://svnweb.freebsd.org/changeset/base/363481 Log: Use SMR to provide safe unlocked lookup for pctries from SMR zones Adapt r358130, for the almost identical vm_radix, to the pctrie subsystem. Like that change, the tr

svn commit: r363266 - in head/sys: amd64/amd64 i386/i386 mips/mips powerpc/aim powerpc/booke

2020-07-16 Thread Conrad Meyer
Author: cem Date: Thu Jul 16 23:29:26 2020 New Revision: 363266 URL: https://svnweb.freebsd.org/changeset/base/363266 Log: Revert r240317 to prevent leaking pmap entries Subsequent to r240317, kmem_free() was replaced with kva_free() (r254025). kva_free() releases the KVA allocation for t

Re: svn commit: r363125 - head/sys/compat/linux

2020-07-12 Thread Conrad Meyer
Hi Alexander, On Sun, Jul 12, 2020 at 2:51 AM Alexander Leidinger wrote: > > Author: netchild > Date: Sun Jul 12 09:51:09 2020 > New Revision: 363125 > URL: https://svnweb.freebsd.org/changeset/base/363125 > > Log: > Implement CLOCK_MONOTONIC_RAW (linux >= 2.6.28). > > It is documented as a r

Re: svn commit: r362936 - head/sbin/newfs_msdos

2020-07-04 Thread Conrad Meyer
Hi Xin Li, Maybe we can use C11 static_assert instead of the CTASSERT array mechanism? Best, Conrad On Sat, Jul 4, 2020 at 11:37 Xin LI wrote: > Author: delphij > Date: Sat Jul 4 18:37:04 2020 > New Revision: 362936 > URL: https://svnweb.freebsd.org/changeset/base/362936 > > Log: > Gather w

svn commit: r362913 - in head/sys: amd64/amd64 amd64/include crypto/aesni crypto/blake2

2020-07-03 Thread Conrad Meyer
Author: cem Date: Fri Jul 3 14:54:46 2020 New Revision: 362913 URL: https://svnweb.freebsd.org/changeset/base/362913 Log: Add domain policy allocation for amd64 fpu_kern_ctx Like other types of allocation, fpu_kern_ctx are frequently allocated per-cpu. Provide the API and sketch some exa

svn commit: r362823 - in head/sys: amd64/conf conf geom/part i386/conf

2020-06-30 Thread Conrad Meyer
Author: cem Date: Wed Jul 1 02:16:36 2020 New Revision: 362823 URL: https://svnweb.freebsd.org/changeset/base/362823 Log: geom(4): Kill GEOM_PART_EBR_COMPAT option Take advantage of Warner's nice new real GEOM aliasing system and use it for aliased partition names that actually work.

svn commit: r362818 - in head/secure/lib: libcrypto libssl

2020-06-30 Thread Conrad Meyer
Author: cem Date: Wed Jul 1 00:59:28 2020 New Revision: 362818 URL: https://svnweb.freebsd.org/changeset/base/362818 Log: Replace OPENSSL_NO_SSL3_METHODs with dummies SSLv3 has been deprecated since 2015 (and broken since 2014: "POODLE"); it should not have shipped in FreeBSD 11 (2016) o

svn commit: r362784 - head/sys/vm

2020-06-29 Thread Conrad Meyer
Author: cem Date: Mon Jun 29 16:54:00 2020 New Revision: 362784 URL: https://svnweb.freebsd.org/changeset/base/362784 Log: vm: Add missing WITNESS warnings for M_WAITOK allocation vm_map_clip_{end,start} and lookup_clip_start allocate memory M_WAITOK for !system_map vm_maps. Add WITNESS

svn commit: r362600 - in head: sys/amd64/include sys/amd64/vmm usr.sbin/bhyve

2020-06-24 Thread Conrad Meyer
Author: cem Date: Thu Jun 25 00:18:42 2020 New Revision: 362600 URL: https://svnweb.freebsd.org/changeset/base/362600 Log: bhyve(8): For prototyping, reattempt decode in userspace If userspace has a newer bhyve than the kernel, it may be able to decode and emulate some instructions vmm.ko

svn commit: r362596 - head

2020-06-24 Thread Conrad Meyer
Author: cem Date: Wed Jun 24 23:22:36 2020 New Revision: 362596 URL: https://svnweb.freebsd.org/changeset/base/362596 Log: Clang-format: Avoid hardcoded LLVM include-order style Reported by: emaste Modified: head/.clang-format Modified: head/.clang-format ==

svn commit: r362595 - head

2020-06-24 Thread Conrad Meyer
Author: cem Date: Wed Jun 24 22:42:46 2020 New Revision: 362595 URL: https://svnweb.freebsd.org/changeset/base/362595 Log: Update .clang-format type and foreach macros lists No functional change. Reviewed by: markj Differential Revision:https://reviews.freebsd.org/D25429 Mo

svn commit: r362590 - head

2020-06-24 Thread Conrad Meyer
Author: cem Date: Wed Jun 24 18:40:43 2020 New Revision: 362590 URL: https://svnweb.freebsd.org/changeset/base/362590 Log: Update .clang-format with style(9) header-sorting Thanks to work done in the NetBSD clang-format project. No functional change. Reviewed by: markj Differential

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

2020-06-24 Thread Conrad Meyer
Author: cem Date: Wed Jun 24 17:31:21 2020 New Revision: 362588 URL: https://svnweb.freebsd.org/changeset/base/362588 Log: Regenerate src.conf.5 after r362587 Modified: head/share/man/man5/src.conf.5 Modified: head/share/man/man5/src.conf.5 ===

svn commit: r362587 - in head: . lib/clang/libclang share/mk targets/pseudo/bootstrap-tools targets/pseudo/clang tools/build/mk tools/build/options usr.bin/clang

2020-06-24 Thread Conrad Meyer
Author: cem Date: Wed Jun 24 17:03:42 2020 New Revision: 362587 URL: https://svnweb.freebsd.org/changeset/base/362587 Log: Add WITH_CLANG_FORMAT option clang-format is enabled conditional on either WITH_CLANG_EXTRAS or WITH_CLANG_FORMAT. Some sources in libclang are build conditional on

svn commit: r362549 - head/sys/conf

2020-06-23 Thread Conrad Meyer
Author: cem Date: Tue Jun 23 18:25:31 2020 New Revision: 362549 URL: https://svnweb.freebsd.org/changeset/base/362549 Log: kmod.mk: Don't split out debug symbols if requested Ports bsd.kmod.mk explicitly sets MK_KERNEL_SYMBOLS=no to prevent auto- splitting of debuginfo from kernel modules

svn commit: r362545 - head/usr.bin/sort

2020-06-23 Thread Conrad Meyer
Author: cem Date: Tue Jun 23 16:43:48 2020 New Revision: 362545 URL: https://svnweb.freebsd.org/changeset/base/362545 Log: sort(1): Fix two wchar-related bugs in radixsort Sort(1)'s radixsort implementation was broken for multibyte LC_CTYPEs in at least two ways: * In actual radix

svn commit: r362447 - head/sbin/dump

2020-06-20 Thread Conrad Meyer
Author: cem Date: Sat Jun 20 20:14:50 2020 New Revision: 362447 URL: https://svnweb.freebsd.org/changeset/base/362447 Log: dump(8): Reapply slightly modified r362422 Go ahead and replace the distasteful slave language for worker processes with the straightforward description, "worker(s)."

svn commit: r362439 - head/sys/dev/oce

2020-06-20 Thread Conrad Meyer
Author: cem Date: Sat Jun 20 17:22:46 2020 New Revision: 362439 URL: https://svnweb.freebsd.org/changeset/base/362439 Log: oce(4): Account and trace mbufs before handing to hw Once tx mbufs have been handed to hardware, nothing serializes the tx path against completion and potential use-a

Re: svn commit: r362126 - head/sys/vm

2020-06-18 Thread Conrad Meyer
On Thu, Jun 18, 2020 at 10:19 AM John Baldwin wrote: > > On 6/17/20 5:48 PM, Conrad Meyer wrote: > > db_printf checks the pager, via db_putc. > > It doesn't break out of the loops for you though (e.g. via setjmp or the > like). Commands still have to check db_pager_

Re: svn commit: r362126 - head/sys/vm

2020-06-17 Thread Conrad Meyer
On Wed, Jun 17, 2020 at 10:50 AM John Baldwin wrote: > > On 6/12/20 3:33 PM, Conrad Meyer wrote: > > On Fri, Jun 12, 2020 at 2:53 PM Eric van Gyzen wrote: > >> Honor db_pager_quit in some vm_object ddb commands > >> > >> These can be rather verbose. >

Re: svn commit: r362253 - head/sys/vm

2020-06-17 Thread Conrad Meyer
On Wed, Jun 17, 2020 at 4:04 AM Konstantin Belousov wrote: > > On Tue, Jun 16, 2020 at 10:53:56PM +, Conrad Meyer wrote: > > Author: cem > > Date: Tue Jun 16 22:53:56 2020 > > New Revision: 362253 > > URL: https://svnweb.freebsd.org/changeset/base/3622

svn commit: r362253 - head/sys/vm

2020-06-16 Thread Conrad Meyer
Author: cem Date: Tue Jun 16 22:53:56 2020 New Revision: 362253 URL: https://svnweb.freebsd.org/changeset/base/362253 Log: vm: Drop vm_map_clip_{start,end} macro wrappers No functional change. Reviewed by: dougm, markj Sponsored by: Dell EMC Isilon Differential Revision:ht

svn commit: r362142 - head/sys/net80211

2020-06-12 Thread Conrad Meyer
Author: cem Date: Sat Jun 13 03:16:09 2020 New Revision: 362142 URL: https://svnweb.freebsd.org/changeset/base/362142 Log: Fix !DEBUGNET build after r362138 X-MFC-With: r362138 Modified: head/sys/net80211/ieee80211_freebsd.c head/sys/net80211/ieee80211_freebsd.h Modified: head/sys/n

svn commit: r362141 - head/sys/kern

2020-06-12 Thread Conrad Meyer
Author: cem Date: Sat Jun 13 03:04:40 2020 New Revision: 362141 URL: https://svnweb.freebsd.org/changeset/base/362141 Log: Flip kern.tty_info_kstacks on by default It's a useful debug aid for anyone using Ctrl-T today, and doesn't seem to be widely known. So, enable it out of the box to

svn commit: r362138 - head/sys/net80211

2020-06-12 Thread Conrad Meyer
Author: cem Date: Sat Jun 13 00:59:36 2020 New Revision: 362138 URL: https://svnweb.freebsd.org/changeset/base/362138 Log: net80211: Add framework for debugnet(4) support Allow net80211 drivers to register a small vtable of debugnet-related methods. This is not a functional change.

Re: svn commit: r362126 - head/sys/vm

2020-06-12 Thread Conrad Meyer
On Fri, Jun 12, 2020 at 2:53 PM Eric van Gyzen wrote: > Honor db_pager_quit in some vm_object ddb commands > > These can be rather verbose. We also have this (?)hack in OneFS, which eliminates the need for every debug function to check the db_pager globals: https://people.freebsd.org/~cem/db

svn commit: r361900 - head/sbin/reboot

2020-06-07 Thread Conrad Meyer
Author: cem Date: Mon Jun 8 00:46:19 2020 New Revision: 361900 URL: https://svnweb.freebsd.org/changeset/base/361900 Log: x86 boot.8: Remove obsolescent non-loader x86 boot documentation x86 boot uses loader(8) and the boot2-direct-to-kernel process is not supported. Remove the document

svn commit: r361870 - in head/sys/geom: . label

2020-06-06 Thread Conrad Meyer
Author: cem Date: Sat Jun 6 14:19:16 2020 New Revision: 361870 URL: https://svnweb.freebsd.org/changeset/base/361870 Log: Revert r361838 Reported by: delphij Modified: head/sys/geom/geom_dev.c head/sys/geom/label/g_label.c Modified: head/sys/geom/geom_dev.c =

svn commit: r361838 - in head/sys/geom: . label

2020-06-05 Thread Conrad Meyer
Author: cem Date: Fri Jun 5 16:12:21 2020 New Revision: 361838 URL: https://svnweb.freebsd.org/changeset/base/361838 Log: geom_label: Use provider aliasing to alias upstream geoms For synthetic aliases (just pseudonyms inferred from metadata like GPT or UFS labels, GPT UUIDs, etc), use t

svn commit: r361837 - head/sys/geom

2020-06-05 Thread Conrad Meyer
Author: cem Date: Fri Jun 5 16:05:09 2020 New Revision: 361837 URL: https://svnweb.freebsd.org/changeset/base/361837 Log: geom: Don't re-add duplicate aliases Reviewed by: imp (informal +1; extracted from phab 24968) Modified: head/sys/geom/geom_subr.c Modified: head/sys/geom/geom_sub

Re: svn commit: r361791 - head/etc/mtree

2020-06-04 Thread Conrad Meyer
On Thu, Jun 4, 2020 at 9:04 AM Conrad Meyer wrote: > 750 is no more restrictive than defaults for the rest of the open source > Unix-alike world. In particular, Ben Woods surveyed DragonFly, NetBSD, > OpenBSD, ArchLinux, CentOS, Debian, Fedora, Slackware, and Ubuntu. None

svn commit: r361791 - head/etc/mtree

2020-06-04 Thread Conrad Meyer
Author: cem Date: Thu Jun 4 16:04:19 2020 New Revision: 361791 URL: https://svnweb.freebsd.org/changeset/base/361791 Log: Restrict default /root permissions Remove world-readability from the root directory. Sensitive information may be stored in /root and we diverge here from normative

Re: svn commit: r361783 - head/usr.bin/killall

2020-06-04 Thread Conrad Meyer
On Thu, Jun 4, 2020 at 3:43 AM Eugene Grosbein wrote: > > 04.06.2020 11:29, Benjamin Kaduk wrote: > > --- head/usr.bin/killall/killall.1Thu Jun 4 02:36:41 2020 > > (r361782) > > +++ head/usr.bin/killall/killall.1Thu Jun 4 04:29:43 2020 > > (r361783) > > @@ -145,6 +145,50

svn commit: r361635 - head/sys/geom/part

2020-05-29 Thread Conrad Meyer
Author: cem Date: Fri May 29 19:44:18 2020 New Revision: 361635 URL: https://svnweb.freebsd.org/changeset/base/361635 Log: geom_part: Dispatch to partitions to create providers and aliases This allows partitions to create additional aliases of their own. The default method implementation

svn commit: r361540 - in head/sys/x86: include x86

2020-05-26 Thread Conrad Meyer
Author: cem Date: Tue May 26 23:12:57 2020 New Revision: 361540 URL: https://svnweb.freebsd.org/changeset/base/361540 Log: x86: Detect new feature bits Fix an off-by-one in AVX512VPOPCNTDQ identification. That was actually the TME bit. Reported by: debdrup Modified: head/sys/x86

svn commit: r361466 - in head: sys/amd64/amd64 sys/arm/arm sys/arm64/arm64 sys/conf sys/fs/fuse sys/fs/unionfs sys/i386/i386 sys/kern sys/mips/mips sys/powerpc/powerpc sys/riscv/riscv sys/sys tools...

2020-05-25 Thread Conrad Meyer
Author: cem Date: Mon May 25 16:40:48 2020 New Revision: 361466 URL: https://svnweb.freebsd.org/changeset/base/361466 Log: copystr(9): Move to deprecate (attempt #2) This reapplies logical r360944 and r360946 (reverting r360955), with fixed copystr() stand-in replacement macro. Eventuall

svn commit: r361427 - head/sys/contrib/zstd/lib/common

2020-05-23 Thread Conrad Meyer
Author: cem Date: Sat May 23 23:10:03 2020 New Revision: 361427 URL: https://svnweb.freebsd.org/changeset/base/361427 Log: Unbreak ARM64 kernel build after r361426 X-MFC-With: r361426 Modified: head/sys/contrib/zstd/lib/common/zstd_internal.h Modified: head/sys/contrib/zstd/lib/common

svn commit: r361426 - in head: lib/libzstd sys/conf sys/contrib/zstd sys/contrib/zstd/contrib sys/contrib/zstd/contrib/docker sys/contrib/zstd/contrib/experimental_dict_builders/benchmarkDictBuilde...

2020-05-23 Thread Conrad Meyer
Author: cem Date: Sat May 23 21:23:46 2020 New Revision: 361426 URL: https://svnweb.freebsd.org/changeset/base/361426 Log: Update to Zstandard 1.4.5 As usual, the full release notes are found on Github: https://github.com/facebook/zstd/releases/tag/v1.4.5 Notable changes include

svn commit: r361425 - head/sys/contrib/zstd

2020-05-23 Thread Conrad Meyer
Author: cem Date: Sat May 23 20:39:36 2020 New Revision: 361425 URL: https://svnweb.freebsd.org/changeset/base/361425 Log: contrib/zstd: Revise Xlist for 1.4.5 import Modified: head/sys/contrib/zstd/FREEBSD-Xlist Modified: head/sys/contrib/zstd/FREEBSD-Xlist =

svn commit: r361385 - head/contrib/tzcode/stdtime

2020-05-22 Thread Conrad Meyer
Author: cem Date: Fri May 22 15:30:14 2020 New Revision: 361385 URL: https://svnweb.freebsd.org/changeset/base/361385 Log: ctime.3: Use ASCII asterisks for C, not special unicode math glyphs PR: 246656 Reported by: danfe Modified: head/contrib/tzcode/stdtime/ctime.3 Modifie

Re: svn commit: r361363 - in head/lib/libprocstat: . zfs

2020-05-22 Thread Conrad Meyer
Hi Andriy, Would it make sense to also export sizes of those members? Currently the code assumes the members may be relocated in the struct, but never changed in size. If they can be moved around, maybe they might be enlarged or shrunk at some time too? Maybe not; I am not very familiar with ZF

svn commit: r361284 - in head/sys/amd64: include vmm

2020-05-20 Thread Conrad Meyer
Author: cem Date: Wed May 20 17:27:54 2020 New Revision: 361284 URL: https://svnweb.freebsd.org/changeset/base/361284 Log: vmm(4): Add 12 user ABI compat after r349948 Reported by: kp Reviewed by: jhb, kp Tested by:kp Differential Revision:https://reviews.freebsd.org/D24

Re: svn commit: r361209 - head/sys/netinet

2020-05-18 Thread Conrad Meyer
Hi Michael, On Mon, May 18, 2020 at 12:05 PM Michael Tuexen wrote: > > > On 18. May 2020, at 20:23, Conrad Meyer wrote: > > > If truncation is intended, the GCC warning is spurious. Given how > > often snprintf is used in this way, I wonder if it would make sense to &g

  1   2   3   4   5   6   7   8   9   10   >