svn commit: r368510 - head/usr.sbin/diskinfo

2020-12-10 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Dec 10 10:23:18 2020 New Revision: 368510 URL: https://svnweb.freebsd.org/changeset/base/368510 Log: Make "diskinfo -i" also test 1MB reads. Modified: head/usr.sbin/diskinfo/diskinfo.c Modified: head/usr.sbin/diskinfo/diskinfo.c

svn commit: r367956 - head/usr.sbin/ctladm

2020-11-23 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Nov 23 14:30:27 2020 New Revision: 367956 URL: https://svnweb.freebsd.org/changeset/base/367956 Log: Replace paths in ctladm(8) examples with something sensible. PR: 251181 Reviewed by: 0mp, rm, ygy MFC after:2 weeks Sponsored by: EPSRC

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

2020-11-23 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Nov 23 14:26:59 2020 New Revision: 367954 URL: https://svnweb.freebsd.org/changeset/base/367954 Log: Assorted tweaks to hier(7): punctuation, some .Xr's, clarify wording. Reviewed by: 0mp, bcr, imp MFC after:2 weeks Sponsored by: EPSRC Differential

svn commit: r367953 - head/sys/dev/firewire

2020-11-23 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Nov 23 13:05:11 2020 New Revision: 367953 URL: https://svnweb.freebsd.org/changeset/base/367953 Log: Make sbp(4) use xpt_alloc_ccb/xpt_free_ccb instead of malloc/free. Reviewed by: imp, mav MFC after:2 weeks Sponsored by: NetApp, Inc. Sponsored by: Klara,

svn commit: r367952 - head/sys/dev/tws

2020-11-23 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Nov 23 13:02:23 2020 New Revision: 367952 URL: https://svnweb.freebsd.org/changeset/base/367952 Log: Make tws(4) use xpt_alloc_ccb()/xpt_free_ccb() instead of malloc/free. Reviewed by: imp MFC after:2 weeks Sponsored by: NetApp, Inc. Sponsored by: Klara,

svn commit: r367951 - head/sys/dev/hptmv

2020-11-23 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Nov 23 12:59:56 2020 New Revision: 367951 URL: https://svnweb.freebsd.org/changeset/base/367951 Log: Don't check return from xpt_alloc_ccb() for being NULL; since it's not the _nowait wariant, it cannot fail. Suggested by: mav MFC after:2 weeks Sponsored

svn commit: r367950 - head/sys/dev/hptmv

2020-11-23 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Nov 23 12:57:24 2020 New Revision: 367950 URL: https://svnweb.freebsd.org/changeset/base/367950 Log: Make hptmv(4) use xpt_alloc_ccb/xpt_free_ccb instead of malloc/free. Reviewed by: imp, mav MFC after:2 weeks Sponsored by: NetApp, Inc. Sponsored by:

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

2020-11-23 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Nov 23 12:54:19 2020 New Revision: 367949 URL: https://svnweb.freebsd.org/changeset/base/367949 Log: smartpqi: don't bzero the new ccb; xpt_alloc_ccb_nowait() already does that. Reviewed by: imp MFC after:2 weeks Sponsored by: NetApp, Inc. Sponsored by:

svn commit: r367948 - head/sys/dev/arcmsr

2020-11-23 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Nov 23 12:50:38 2020 New Revision: 367948 URL: https://svnweb.freebsd.org/changeset/base/367948 Log: arcmsr(4): don't bzero newly allocated ccb; xpt_alloc_ccb() already does that. Reviewed by: delphij, imp, ching2...@areca.com.tw Tested by:

svn commit: r367947 - head/sys/kern

2020-11-23 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Nov 23 12:47:23 2020 New Revision: 367947 URL: https://svnweb.freebsd.org/changeset/base/367947 Log: Remove the 'wantparent' variable, unused since r145004. Reviewed by: kib MFC after:2 weeks Sponsored by: NetApp, Inc. Sponsored by: Klara, Inc.

svn commit: r367517 - in head/sys: compat/linux fs/fuse

2020-11-09 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Nov 9 08:53:15 2020 New Revision: 367517 URL: https://svnweb.freebsd.org/changeset/base/367517 Log: Make it possible to mount a fuse filesystem, such as squashfuse, from a Linux binary. Should come handy for AppImages. Reviewed by: asomers MFC after:2

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

2020-11-08 Thread Edward Tomasz Napierala
Author: trasz Date: Sun Nov 8 15:54:59 2020 New Revision: 367488 URL: https://svnweb.freebsd.org/changeset/base/367488 Log: Move syscall_thread_{enter,exit}() into the slow path. This is only needed for syscalls from unloadable modules. Reviewed by: kib MFC after:2 weeks

svn commit: r367445 - head/sys/kern

2020-11-07 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Nov 7 13:09:51 2020 New Revision: 367445 URL: https://svnweb.freebsd.org/changeset/base/367445 Log: Move TDB_USERWR check under 'if (traced)'. If we hadn't been traced in the first place when syscallenter() started executing, we can ignore TDB_USERWR. TDB_USERWR

svn commit: r367430 - head/sys/powerpc/include

2020-11-06 Thread Edward Tomasz Napierala
Author: trasz Date: Fri Nov 6 19:27:27 2020 New Revision: 367430 URL: https://svnweb.freebsd.org/changeset/base/367430 Log: Make powerpc use MAXARGS (defined as 8) instead of hardcoding '10'. This brings its 'struct syscall_args' in sync with other architectures. Reviewed by: bdragon,

svn commit: r367429 - in head/sys/mips: include mips

2020-11-06 Thread Edward Tomasz Napierala
Author: trasz Date: Fri Nov 6 19:19:51 2020 New Revision: 367429 URL: https://svnweb.freebsd.org/changeset/base/367429 Log: Remove 'struct trapframe' pointer from mips64's 'struct syscall_args'. While here, use MAXARGS. This brings its 'struct syscall_args' in sync with most other

svn commit: r367394 - in head/sys/arm: arm include

2020-11-05 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Nov 5 18:10:03 2020 New Revision: 367394 URL: https://svnweb.freebsd.org/changeset/base/367394 Log: Remove the 'nap' field from ARM's 'struct syscall_args', to bring it in sync with (most) other architectures. No functional changes. Reviewed by: manu Tested

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

2020-11-04 Thread Edward Tomasz Napierala
Author: trasz Date: Wed Nov 4 21:39:04 2020 New Revision: 367348 URL: https://svnweb.freebsd.org/changeset/base/367348 Log: Unbreak buildworld after r367339. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Modified: head/sys/compat/linux/linux_errno.h Modified:

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

2020-11-04 Thread Edward Tomasz Napierala
Author: trasz Date: Wed Nov 4 19:54:18 2020 New Revision: 367339 URL: https://svnweb.freebsd.org/changeset/base/367339 Log: Add linux_to_bsd_errtbl[], mapping Linux errnos to their BSD counterparts. This will be used by fuse(4). Reviewed by: asomers MFC after:2 weeks Sponsored

svn commit: r367301 - in head: lib/libsysdecode sys/compat/linux sys/modules/linux_common

2020-11-03 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Nov 3 19:12:33 2020 New Revision: 367301 URL: https://svnweb.freebsd.org/changeset/base/367301 Log: Make linux_errtbl[] static. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Differential Revision:https://reviews.freebsd.org/D27004

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

2020-11-03 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Nov 3 14:44:33 2020 New Revision: 367298 URL: https://svnweb.freebsd.org/changeset/base/367298 Log: Fix rookie mistake - it's nitems(), not sizeof(). Reported by: xtouqh_icloud.com MFC after:2 weeks Sponsored by: The FreeBSD Foundation Modified:

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

2020-10-29 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Oct 29 15:44:44 2020 New Revision: 367139 URL: https://svnweb.freebsd.org/changeset/base/367139 Log: Make linprocfs(4) print a warning when there's not enough room to fill /proc/self/maps. Submitted by: dchagin (earlier version) Reviewed by: emaste (earlier

svn commit: r367138 - head/sys/riscv/riscv

2020-10-29 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Oct 29 15:36:20 2020 New Revision: 367138 URL: https://svnweb.freebsd.org/changeset/base/367138 Log: Optimize set_syscall_retval for riscv by predicting the return value to be zero. Reviewed by: mhorne, kp MFC after:2 weeks Sponsored by: EPSRC

svn commit: r367137 - head/sys/fs/nullfs

2020-10-29 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Oct 29 15:28:15 2020 New Revision: 367137 URL: https://svnweb.freebsd.org/changeset/base/367137 Log: Make it possible to mount nullfs(5) using plain mount(8) instead of mount_nullfs(8). Obviously you'd need to force mount(8) to not call mount_nullfs(8) to make

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

2020-10-29 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Oct 29 14:42:51 2020 New Revision: 367135 URL: https://svnweb.freebsd.org/changeset/base/367135 Log: Fix typo. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Modified: head/sys/compat/linux/linux_errno.h Modified:

svn commit: r367132 - in head: lib/libsysdecode sys/compat/linux

2020-10-29 Thread Edward Tomasz Napierala
00:00 1970 (empty, because file is newly added) +++ head/sys/compat/linux/linux_errno.h Thu Oct 29 14:23:52 2020 (r367132) @@ -0,0 +1,183 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * + * Copyright (c) 2020 The FreeBSD Foundation + * + * This software was developed by Edward T

svn commit: r367107 - head/sys/kern

2020-10-28 Thread Edward Tomasz Napierala
Author: trasz Date: Wed Oct 28 14:43:38 2020 New Revision: 367107 URL: https://svnweb.freebsd.org/changeset/base/367107 Log: Add local variable to store the sysent pointer. Just a cleanup, no functional changes. Reviewed by: kib (earlier version) MFC after:2 weeks Sponsored by:

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

2020-10-28 Thread Edward Tomasz Napierala
Author: trasz Date: Wed Oct 28 14:16:08 2020 New Revision: 367106 URL: https://svnweb.freebsd.org/changeset/base/367106 Log: Make linux_errtbl a bit more readable by using named initializers. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Differential Revision:

svn commit: r367105 - in head: lib/geom/mountver lib/libc/posix1e lib/libc/sys sbin/mdconfig/tests share/man/man4 share/man/man5 share/man/man7 sys/amd64/linux sys/cam/ctl sys/cddl/compat/opensolar...

2020-10-28 Thread Edward Tomasz Napierala
m/mountver/geom_mountver.c Wed Oct 28 13:46:11 2020 (r367105) @@ -2,7 +2,6 @@ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2010 Edward Tomasz Napierala - * All rights reserved. * * Redistribution and use in source and binary forms, with or without * mo

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

2020-10-27 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Oct 27 12:49:40 2020 New Revision: 367079 URL: https://svnweb.freebsd.org/changeset/base/367079 Log: Fix misnomer - linux_to_bsd_errno() does the exact opposite. Reported by: arichardson MFC after:2 weeks Sponsored by: The FreeBSD Foundation Differential

Re: svn commit: r367038 - head/sbin/mount_nullfs

2020-10-25 Thread Edward Tomasz Napierala
On 1025T0717, Cy Schubert wrote: > In message om> > , Oliver Pinter writes: > > On Sunday, October 25, 2020, Edward Tomasz Napierala > > wrote: > > > > > Author: trasz > > > Date: Sun Oct 25 14:09:00 2020 > > > New Revision: 367038 >

svn commit: r367038 - head/sbin/mount_nullfs

2020-10-25 Thread Edward Tomasz Napierala
Author: trasz Date: Sun Oct 25 14:09:00 2020 New Revision: 367038 URL: https://svnweb.freebsd.org/changeset/base/367038 Log: Remove the check that prevents creating "loops" from mount_nullfs(8). Reviewed by: kib MFC after:2 weeks Sponsored by: The FreeBSD Foundation Differential

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

2020-10-24 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Oct 24 14:25:38 2020 New Revision: 367001 URL: https://svnweb.freebsd.org/changeset/base/367001 Log: Tweak linux(4) socket(2) debug messages. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Differential Revision:

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

2020-10-24 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Oct 24 14:23:44 2020 New Revision: 367000 URL: https://svnweb.freebsd.org/changeset/base/367000 Log: Further improve prctl(2) debug. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Differential Revision:https://reviews.freebsd.org/D26916

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

2020-10-23 Thread Edward Tomasz Napierala
Author: trasz Date: Fri Oct 23 12:00:30 2020 New Revision: 366967 URL: https://svnweb.freebsd.org/changeset/base/366967 Log: Improve prctl(2) debug. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Differential Revision:https://reviews.freebsd.org/D26899 Modified:

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

2020-10-23 Thread Edward Tomasz Napierala
Author: trasz Date: Fri Oct 23 11:57:55 2020 New Revision: 366966 URL: https://svnweb.freebsd.org/changeset/base/366966 Log: Add /proc/sys/kernel/ngroups_max to linprocfs(4). The id(1) command seems to use it - it works fine without it, but still. MFC after:2 weeks Sponsored by:

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

2020-10-21 Thread Edward Tomasz Napierala
Author: trasz Date: Wed Oct 21 18:45:48 2020 New Revision: 366915 URL: https://svnweb.freebsd.org/changeset/base/366915 Log: Make linux(4) warn about unsupported socket(2) types. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Differential Revision:

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

2020-10-20 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Oct 20 17:24:29 2020 New Revision: 366900 URL: https://svnweb.freebsd.org/changeset/base/366900 Log: Fix linprocfs(4) /proc/self/mem semantics to more closely match Linux. Steam's Anti-Cheat might depend on it. PR: 248223 Analyzed by: Alex S

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

2020-10-20 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Oct 20 17:19:10 2020 New Revision: 366899 URL: https://svnweb.freebsd.org/changeset/base/366899 Log: Fix potential race condition in linux stat(2). Reviewed by: kib MFC after:2 weeks Sponsored by: The FreeBSD Foundation Differential Revision:

svn commit: r366855 - in head/sys/geom: . uzip

2020-10-19 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Oct 19 20:26:37 2020 New Revision: 366855 URL: https://svnweb.freebsd.org/changeset/base/366855 Log: Fix fallout from r366811. PR: 250442 Reported by: lwhsu Reviewed by: mav MFC after:2 weeks Sponsored by: NetApp, Inc. Sponsored by: Klara,

svn commit: r366812 - head/sys/dev/iscsi

2020-10-18 Thread Edward Tomasz Napierala
Author: trasz Date: Sun Oct 18 16:30:49 2020 New Revision: 366812 URL: https://svnweb.freebsd.org/changeset/base/366812 Log: If the SIM freezes the queue at exactly the wrong moment, after another thread has started to send in a CCB and already checked the queue wasn't frozen, we would end

svn commit: r366811 - in head: share/man/man9 sys/geom sys/geom/bde sys/geom/cache sys/geom/concat sys/geom/journal sys/geom/label sys/geom/linux_lvm sys/geom/mirror sys/geom/mountver sys/geom/mult...

2020-10-18 Thread Edward Tomasz Napierala
Author: trasz Date: Sun Oct 18 16:24:08 2020 New Revision: 366811 URL: https://svnweb.freebsd.org/changeset/base/366811 Log: Make g_attach() return ENXIO for orphaned providers; update various classes to add missing error checking. Reviewed by: imp MFC after:2 weeks Sponsored

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

2020-10-18 Thread Edward Tomasz Napierala
Author: trasz Date: Sun Oct 18 16:16:22 2020 New Revision: 366810 URL: https://svnweb.freebsd.org/changeset/base/366810 Log: Stop calling set_syscall_retval() from linux_set_syscall_retval(). The former clobbers some registers that shouldn't be touched. Reviewed by: kib (earlier

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

2020-10-18 Thread Edward Tomasz Napierala
Author: trasz Date: Sun Oct 18 15:58:16 2020 New Revision: 366809 URL: https://svnweb.freebsd.org/changeset/base/366809 Log: Add compat.linux.dummy_rlimits, and disable by default. Turns out the dummy rlimits fix prlimit(1), but break su(8) (login-1:4.5-1ubuntu2) - although not sudo(8),

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

2020-10-18 Thread Edward Tomasz Napierala
Author: trasz Date: Sun Oct 18 15:56:47 2020 New Revision: 366808 URL: https://svnweb.freebsd.org/changeset/base/366808 Log: Slightly tweak linux ptrace(2) debug message; no functional changes. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Differential Revision:

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

2020-10-16 Thread Edward Tomasz Napierala
Author: trasz Date: Fri Oct 16 11:23:30 2020 New Revision: 366756 URL: https://svnweb.freebsd.org/changeset/base/366756 Log: Set default stack size for Linux apps to 8MB. This matches Linux' defaults, makes core files smaller, and fixes applications which use pthread_join(3) in a wrong

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

2020-10-16 Thread Edward Tomasz Napierala
Author: trasz Date: Fri Oct 16 10:10:09 2020 New Revision: 366749 URL: https://svnweb.freebsd.org/changeset/base/366749 Log: Make linux getrlimit(2) and prlimit(2) return something reasonable for linux-specific limits. Fixes prlimit (util-linux-2.31.1-0.4ubuntu3.7). Reviewed by: emaste

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

2020-10-16 Thread Edward Tomasz Napierala
Author: trasz Date: Fri Oct 16 09:58:10 2020 New Revision: 366748 URL: https://svnweb.freebsd.org/changeset/base/366748 Log: Bump pseudofs size limit from 128kB to 1MB. The old limit could result in process' memory maps being truncated. PR: 237883 Submitted by: dchagin MFC

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

2020-10-15 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Oct 15 12:48:30 2020 New Revision: 366722 URL: https://svnweb.freebsd.org/changeset/base/366722 Log: With some popular multiplayer games (such as Counter-Strike: Global Offensive) the Linux Steam client likes to occasionally scan the game process memory, presumably

svn commit: r366534 - head/sys/riscv/riscv

2020-10-08 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Oct 8 11:04:32 2020 New Revision: 366534 URL: https://svnweb.freebsd.org/changeset/base/366534 Log: Remove yet another useless assignment, adding a KASSERT just in case. Reviewed by: kp Sponsored by: DARPA Differential Revision:

svn commit: r366515 - head/sys/riscv/riscv

2020-10-07 Thread Edward Tomasz Napierala
Author: trasz Date: Wed Oct 7 12:11:11 2020 New Revision: 366515 URL: https://svnweb.freebsd.org/changeset/base/366515 Log: Don't use critical section when calling intr_irq_handler() - that function enters critical section by itself anyway. Reviewed by: kp Sponsored by: DARPA

svn commit: r366456 - head/sys/arm64/arm64

2020-10-05 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Oct 5 18:46:14 2020 New Revision: 366456 URL: https://svnweb.freebsd.org/changeset/base/366456 Log: Tweak arm64's cpu_fetch_syscall_args(). This should make it possible for the compiler to inline the memcpy(). Reviewed by: andrew Sponsored by: DARPA

svn commit: r366454 - head/sys/riscv/riscv

2020-10-05 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Oct 5 18:41:35 2020 New Revision: 366454 URL: https://svnweb.freebsd.org/changeset/base/366454 Log: Drop useless assignment, and add a KASSERT to make sure it really was useless. Reviewed by: nick, jhb Sponsored by: DARPA Differential Revision:

svn commit: r366392 - head/sys/riscv/riscv

2020-10-03 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Oct 3 13:01:07 2020 New Revision: 366392 URL: https://svnweb.freebsd.org/changeset/base/366392 Log: Optimize riscv's cpu_fetch_syscall_args(), making it possible for the compiler to inline the memcpy. Reviewed by: arichardson, mhorne MFC after:2 weeks

svn commit: r366391 - head/sys/kern

2020-10-03 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Oct 3 12:03:08 2020 New Revision: 366391 URL: https://svnweb.freebsd.org/changeset/base/366391 Log: Move KTRUSERRET() from userret() to ast(). It's a really long detour - it writes ktrace entries to the filesystem - so the overhead of ast() won't make any

svn commit: r366337 - head/usr.sbin/ctld

2020-10-01 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Oct 1 18:56:44 2020 New Revision: 366337 URL: https://svnweb.freebsd.org/changeset/base/366337 Log: Don't ignore the return value from gethostname(3). It probably cannot happen, but it silences Coverity. Reviewed by: mav MFC after:2 weeks Sponsored by:

svn commit: r366336 - head/sys/kern

2020-10-01 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Oct 1 18:45:31 2020 New Revision: 366336 URL: https://svnweb.freebsd.org/changeset/base/366336 Log: Only clear TDP_NERRNO when needed, ie when it's previously been set. Reviewed by: kib Tested by:pho Sponsored by: DARPA Differential Revision:

svn commit: r366251 - head/sys/conf

2020-09-29 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Sep 29 11:48:22 2020 New Revision: 366251 URL: https://svnweb.freebsd.org/changeset/base/366251 Log: Build debug kernels with -O2. LLVM 11 changed the meaning of '-O' from '-O2' to '-O1', which resulted in debug kernels (with 'makeoptions DEBUG=-g') being built

svn commit: r366250 - head/sys/kern

2020-09-29 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Sep 29 11:18:48 2020 New Revision: 366250 URL: https://svnweb.freebsd.org/changeset/base/366250 Log: Use the 'traced' variable instead of comparing p->p_flag again. Reviewed by: kib Sponsored by: DARPA Differential Revision:

svn commit: r366205 - in head/sys: amd64/amd64 amd64/cloudabi32 amd64/cloudabi64 amd64/ia32 amd64/include amd64/linux amd64/linux32 arm/arm arm/cloudabi32 arm/include arm64/arm64 arm64/cloudabi32 a...

2020-09-27 Thread Edward Tomasz Napierala
Author: trasz Date: Sun Sep 27 18:47:06 2020 New Revision: 366205 URL: https://svnweb.freebsd.org/changeset/base/366205 Log: Get rid of sa->narg. It serves no purpose; use sa->callp->sy_narg instead. Reviewed by: kib Sponsored by: DARPA Differential Revision:

svn commit: r366201 - head/sys/sys

2020-09-27 Thread Edward Tomasz Napierala
Author: trasz Date: Sun Sep 27 18:14:01 2020 New Revision: 366201 URL: https://svnweb.freebsd.org/changeset/base/366201 Log: Shrink struct sysent from 48 to 32 bytes (on LP64; on ILP32 its probably from 32 to 28) by shrinking some entries and reordering them. Reviewed by: kib

svn commit: r366147 - in head/sys: amd64/linux amd64/linux32 arm/linux arm64/linux compat/cloudabi32 compat/cloudabi64 compat/freebsd32 i386/linux kern sys

2020-09-25 Thread Edward Tomasz Napierala
Author: trasz Date: Fri Sep 25 10:05:38 2020 New Revision: 366147 URL: https://svnweb.freebsd.org/changeset/base/366147 Log: Regen after r366145. Sponsored by: DARPA Modified: head/sys/amd64/linux/linux_proto.h head/sys/amd64/linux/linux_sysent.c

svn commit: r366145 - head/sys/tools

2020-09-25 Thread Edward Tomasz Napierala
Author: trasz Date: Fri Sep 25 09:34:00 2020 New Revision: 366145 URL: https://svnweb.freebsd.org/changeset/base/366145 Log: Make makesyscalls.lua initialize 'struct sysent' entries using c99 designated initializers. This makes it easier to modify 'struct sysent' layout. Reviewed by:

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

2020-09-17 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Sep 17 12:14:24 2020 New Revision: 365834 URL: https://svnweb.freebsd.org/changeset/base/365834 Log: Reduce code duplication by introducing linux_copyout_sockaddr() helper function. No functional changes. Reviewed by: emaste MFC after:2 weeks Sponsored

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

2020-09-17 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Sep 17 11:44:45 2020 New Revision: 365833 URL: https://svnweb.freebsd.org/changeset/base/365833 Log: Add support for SOUND_MIXER_WRITE_MONITOR ioctl. Fixes alsamixer(1) on my x220. Reviewed by: emaste MFC after:2 weeks Sponsored by: The FreeBSD

svn commit: r365832 - in head/sys: amd64/amd64 amd64/linux amd64/linux32 arm/arm arm64/arm64 arm64/linux compat/ia32 compat/linux i386/i386 i386/linux kern mips/mips powerpc/powerpc riscv/riscv sys

2020-09-17 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Sep 17 11:39:33 2020 New Revision: 365832 URL: https://svnweb.freebsd.org/changeset/base/365832 Log: Get rid of sv_errtbl and SV_ABI_ERRNO(). Reviewed by: kib Sponsored by: DARPA Differential Revision:https://reviews.freebsd.org/D26388 Modified:

svn commit: r365755 - in head/sys: amd64/amd64 amd64/linux amd64/linux32 arm/arm arm64/arm64 arm64/linux i386/i386 i386/linux powerpc/powerpc

2020-09-15 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Sep 15 16:41:21 2020 New Revision: 365755 URL: https://svnweb.freebsd.org/changeset/base/365755 Log: Move SV_ABI_ERRNO translation into linux-specific code, to simplify the syscall path and declutter it a bit. No functional changes intended. Reviewed by: kib

svn commit: r365713 - in head: lib/libbe/tests sbin/bectl/tests

2020-09-14 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Sep 14 10:35:39 2020 New Revision: 365713 URL: https://svnweb.freebsd.org/changeset/base/365713 Log: Skip armv7 bectl tests on CI; they deadlock (""KSTACK_PAGES is 2"). PR: 249229 Sponsored by: DARPA Modified: head/lib/libbe/tests/be_create.sh

svn commit: r365712 - head/sys/kern

2020-09-14 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Sep 14 10:17:07 2020 New Revision: 365712 URL: https://svnweb.freebsd.org/changeset/base/365712 Log: Move td_softdep_cleanup() from userret() to ast(); it's infrequent at best. The schedule_cleanup() function already sets TDF_ASTPENDING. Reviewed by: kib,

svn commit: r365711 - in head/sys: geom kern

2020-09-14 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Sep 14 10:14:03 2020 New Revision: 365711 URL: https://svnweb.freebsd.org/changeset/base/365711 Log: Move TDP_GEOM check from userret() to ast(); this code path is quite infrequent. Reviewed by: kib No objections:mav Tested by:pho MFC after:

svn commit: r365710 - head/sys/kern

2020-09-14 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Sep 14 09:44:24 2020 New Revision: 365710 URL: https://svnweb.freebsd.org/changeset/base/365710 Log: Move racct/rctl throttling from userret() to ast(). There's no reason for it to sit in the syscall fast path. Reviewed by: kib MFC after:2 weeks

svn commit: r365042 - head/usr.sbin/ctld

2020-09-01 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Sep 1 14:58:57 2020 New Revision: 365042 URL: https://svnweb.freebsd.org/changeset/base/365042 Log: Make sure not to pass NULL to strtoul(3). The values come from the kernel, but let's try to be on the safe side. Reviewed by: mav MFC after:2 weeks

svn commit: r365040 - head/usr.sbin/iscsid

2020-09-01 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Sep 1 14:52:35 2020 New Revision: 365040 URL: https://svnweb.freebsd.org/changeset/base/365040 Log: Fix string overflow that could occur during redirection due to passing the wrong length to strlcpy(3). It looks like it could overflow into the next field, isc_user,

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

2020-07-19 Thread Edward Tomasz Napierala
Author: trasz Date: Sun Jul 19 12:25:03 2020 New Revision: 363322 URL: https://svnweb.freebsd.org/changeset/base/363322 Log: Make linux(4) support the BLKPBSZGET ioctl. Oracle uses it. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Differential Revision:

Re: svn commit: r353283 - in head: lib lib/libstats share/man/man3 share/mk sys/amd64/conf sys/conf sys/kern sys/sys tools/build/options

2020-07-19 Thread Edward Tomasz Napierala
On 0714T0838, Kyle Evans wrote: > On Mon, Oct 7, 2019 at 2:05 PM Edward Tomasz Napierala > wrote: [..] > > Added: head/lib/libstats/Makefile > > == > > --- /dev/null 00:00:00 1970 (empty, bec

svn commit: r363321 - head/share/man/man9

2020-07-19 Thread Edward Tomasz Napierala
Author: trasz Date: Sun Jul 19 12:22:32 2020 New Revision: 363321 URL: https://svnweb.freebsd.org/changeset/base/363321 Log: Add missing bitset(9) MLINKS. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Differential Revision:https://reviews.freebsd.org/D25713

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

2020-07-18 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Jul 18 12:21:08 2020 New Revision: 363307 URL: https://svnweb.freebsd.org/changeset/base/363307 Log: Make linux fallocate(2) return EOPNOTSUPP, not ENOSYS, on unsupported mode, as documented in the man page. MFC after:2 weeks Sponsored by: The FreeBSD

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

2020-07-18 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Jul 18 11:37:30 2020 New Revision: 363306 URL: https://svnweb.freebsd.org/changeset/base/363306 Log: Bump the default linux version from 3.2.0 to 3.10.0, which corresponds to RHEL 7. Required for DB2. Reviewed by: emaste MFC after:2 weeks Sponsored by:

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

2020-07-18 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Jul 18 11:31:31 2020 New Revision: 363305 URL: https://svnweb.freebsd.org/changeset/base/363305 Log: Regen after r363304. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Modified: head/sys/amd64/linux/linux_proto.h

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

2020-07-18 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Jul 18 11:28:40 2020 New Revision: 363304 URL: https://svnweb.freebsd.org/changeset/base/363304 Log: Add a trivial linux(4) splice(2) implementation, which simply returns EINVAL. Fixes grep (grep-3.1-2build1). PR: kern/218699 Reported by: avos

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

2020-07-18 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Jul 18 10:56:04 2020 New Revision: 363303 URL: https://svnweb.freebsd.org/changeset/base/363303 Log: Add missing SysV IPC stats to linprocfs(4). Fixes 'ipcs -l', and also helps Oracle. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Differential

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

2020-07-18 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Jul 18 10:53:56 2020 New Revision: 363302 URL: https://svnweb.freebsd.org/changeset/base/363302 Log: Fix bogomips calculation. Previously it was off by half. This was verified under VMWare Fusion, comparing to what's reported under CentOS, and by comparing numbers

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

2020-07-18 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Jul 18 10:49:17 2020 New Revision: 363301 URL: https://svnweb.freebsd.org/changeset/base/363301 Log: Fix two typos in flag names in /proc/cpuinfo. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Differential Revision:

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

2020-07-11 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Jul 11 13:11:54 2020 New Revision: 363094 URL: https://svnweb.freebsd.org/changeset/base/363094 Log: Make linprocfs(5) report correct tty number in /proc//stat. Fixes sudo (sudo-1.8.21p2-3ubuntu1.2); previously would fail with "sudo: no tty present and no askpass

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

2020-07-11 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Jul 11 13:08:16 2020 New Revision: 363093 URL: https://svnweb.freebsd.org/changeset/base/363093 Log: Make linux stat(2) return the same st_dev for every devfs instance. The reason for this is to work around an idiosyncrasy of glibc getttynam(3) implementation: it

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

2020-07-10 Thread Edward Tomasz Napierala
Author: trasz Date: Fri Jul 10 21:41:09 2020 New Revision: 363087 URL: https://svnweb.freebsd.org/changeset/base/363087 Log: Don't emit warnings on MADV_HUGEPAGE; Firefox uses it a lot. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Modified:

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

2020-07-05 Thread Edward Tomasz Napierala
Author: trasz Date: Sun Jul 5 13:15:13 2020 New Revision: 362943 URL: https://svnweb.freebsd.org/changeset/base/362943 Log: Make linux(4) man page also mention /compat/linux/dev. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Modified: head/share/man/man4/linux.4

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

2020-07-05 Thread Edward Tomasz Napierala
Author: trasz Date: Sun Jul 5 10:57:28 2020 New Revision: 362941 URL: https://svnweb.freebsd.org/changeset/base/362941 Log: Fix Linux recvmsg(2) when msg_namelen returned is 0. Previously it would fail with EINVAL, breaking some of the Python regression tests. While here, cap the

svn commit: r362935 - in head: libexec/rc/rc.d share/man/man4

2020-07-04 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Jul 4 18:01:29 2020 New Revision: 362935 URL: https://svnweb.freebsd.org/changeset/base/362935 Log: Make the linux rc script use linrdlnk by default. This fixes Linux gettyname(3), with caveats (see PR). PR: kern/240767 MFC after:2 weeks

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

2020-07-04 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Jul 4 11:26:03 2020 New Revision: 362930 URL: https://svnweb.freebsd.org/changeset/base/362930 Log: Add /proc/sys/kernel/tainted to linprocfs(5). Helps LTP. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Differential Revision:

svn commit: r362929 - in head/sys/compat: linprocfs linsysfs

2020-07-04 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Jul 4 11:22:35 2020 New Revision: 362929 URL: https://svnweb.freebsd.org/changeset/base/362929 Log: Make linprocfs(5) create /proc/bus/pci/devices/, and linsysfs(5) create /sys/class/power_supply/. This silences some warnings from biology/linux-foldingathome.

Re: svn commit: r362806 - head/sys/compat/linprocfs

2020-07-03 Thread Edward Tomasz Napierala
On 0630T1828, Mateusz Piotrowski wrote: > Hi, > > On 6/30/20 6:24 PM, Edward Tomasz Napierala wrote: > > Author: trasz > > Date: Tue Jun 30 16:24:28 2020 > > New Revision: 362806 > > URL: https://svnweb.freebsd.org/changeset/base/362806 > > > > Log: &

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

2020-07-01 Thread Edward Tomasz Napierala
Author: trasz Date: Wed Jul 1 10:37:08 2020 New Revision: 362833 URL: https://svnweb.freebsd.org/changeset/base/362833 Log: Rework linux accept(2). This makes the code flow easier to follow, and fixes a bug where calling accept(2) could result in closing fd 0. Note that the code still

svn commit: r362807 - head/usr.sbin/sesutil

2020-06-30 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Jun 30 16:49:43 2020 New Revision: 362807 URL: https://svnweb.freebsd.org/changeset/base/362807 Log: Fix misplaced voltages/temperatures labels in 'sesutil show'. PR: bin/247384 Reported by: brd MFC after:2 weeks Differential Revision:

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

2020-06-30 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Jun 30 16:24:28 2020 New Revision: 362806 URL: https://svnweb.freebsd.org/changeset/base/362806 Log: Make linprocfs(5) create the /proc//task/ directores. This is to silence down some Chromium assertions. PR: kern/240991 Analyzed by: Alex S MFC

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

2020-06-30 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Jun 30 16:18:09 2020 New Revision: 362804 URL: https://svnweb.freebsd.org/changeset/base/362804 Log: Make linux(4) ignore SA_INTERRUPT. The zsh(1) binary from Bionic uses it. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Differential Revision:

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

2020-06-28 Thread Edward Tomasz Napierala
Author: trasz Date: Sun Jun 28 18:56:32 2020 New Revision: 362735 URL: https://svnweb.freebsd.org/changeset/base/362735 Log: Make linux(4) support SO_PROTOCOL. Running Python test suite with python3.8 from Focal triggers those. MFC after:2 weeks Sponsored by: The FreeBSD

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

2020-06-27 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Jun 27 15:50:35 2020 New Revision: 362699 URL: https://svnweb.freebsd.org/changeset/base/362699 Log: Make linux(4) warn about unsupported SA_ flags. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Differential Revision:

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

2020-06-27 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Jun 27 14:43:29 2020 New Revision: 362693 URL: https://svnweb.freebsd.org/changeset/base/362693 Log: Regen. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Modified: head/sys/amd64/linux/linux_proto.h head/sys/amd64/linux/linux_sysent.c

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

2020-06-27 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Jun 27 14:42:08 2020 New Revision: 362692 URL: https://svnweb.freebsd.org/changeset/base/362692 Log: Add proper types for linux message queue syscalls; mostly taken from 32-bit Linuxulator. MFC after:2 weeks Sponsored by: The FreeBSD Foundation

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

2020-06-27 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Jun 27 14:39:44 2020 New Revision: 362691 URL: https://svnweb.freebsd.org/changeset/base/362691 Log: Add syscall definitions for linux xattr syscalls. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Differential Revision:

  1   2   3   4   5   6   7   8   9   10   >