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: r365035 - in stable/12/sys: amd64/linux amd64/linux32 arm64/linux i386/linux

2020-09-01 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Sep 1 12:11:59 2020 New Revision: 365035 URL: https://svnweb.freebsd.org/changeset/base/365035 Log: MFC r363305: Regen after r363304. Sponsored by: The FreeBSD Foundation Modified: stable/12/sys/amd64/linux/linux_proto.h

svn commit: r365034 - in stable/12/sys: amd64/linux amd64/linux32 arm64/linux compat/linux i386/linux

2020-09-01 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Sep 1 12:09:13 2020 New Revision: 365034 URL: https://svnweb.freebsd.org/changeset/base/365034 Log: MFC r363304: Add a trivial linux(4) splice(2) implementation, which simply returns EINVAL. Fixes grep (grep-3.1-2build1). PR: 218699 Sponsored

svn commit: r364985 - stable/12/libexec/rc/rc.d

2020-08-31 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 31 12:14:20 2020 New Revision: 364985 URL: https://svnweb.freebsd.org/changeset/base/364985 Log: In 13-CURRENT, the linux rc script uses "nocover" mount option to avoid mounting required filesystems twice. However, this option hasn't been MFC'd. Implement its

svn commit: r364955 - stable/12/libexec/rc/rc.d

2020-08-29 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Aug 29 12:54:17 2020 New Revision: 364955 URL: https://svnweb.freebsd.org/changeset/base/364955 Log: Drop the "nocover" option from the linux rc script; the option is not yet supported in 12-STABLE. This is a direct commit intended as a temporary workaround.

svn commit: r364885 - stable/12/share/man/man4

2020-08-27 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Aug 27 19:44:08 2020 New Revision: 364885 URL: https://svnweb.freebsd.org/changeset/base/364885 Log: MFC r362943: Make linux(4) man page also mention /compat/linux/dev. Sponsored by: The FreeBSD Foundation Modified: stable/12/share/man/man4/linux.4 Directory

svn commit: r364884 - in stable/12: libexec/rc/rc.d share/man/man4

2020-08-27 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Aug 27 19:42:52 2020 New Revision: 364884 URL: https://svnweb.freebsd.org/changeset/base/364884 Log: MFC r362935: Make the linux rc script use linrdlnk by default. This fixes Linux gettyname(3), with caveats (see PR). PR: kern/240767 Sponsored

svn commit: r364883 - in stable/12/libexec/rc: . rc.d

2020-08-27 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Aug 27 19:41:31 2020 New Revision: 364883 URL: https://svnweb.freebsd.org/changeset/base/364883 Log: MFC r354690: Add 'linux_mounts_enable' rc.conf(5) variable, to make it possible to disable mounting Linux-specific filesystems under /compat/linux when

svn commit: r364882 - stable/12/libexec/rc/rc.d

2020-08-27 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Aug 27 19:40:33 2020 New Revision: 364882 URL: https://svnweb.freebsd.org/changeset/base/364882 Log: MFC r354458: Extend the linux rc script to mount the neccessary file systems, set ELF fallback brand, and load pty(4). Sponsored by: The FreeBSD Foundation

svn commit: r364881 - stable/12/libexec/rc/rc.d

2020-08-27 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Aug 27 19:37:28 2020 New Revision: 364881 URL: https://svnweb.freebsd.org/changeset/base/364881 Log: MFC r352999: Rename etc/rc.d/abi to etc/rc.d/linux; after moving out the SysV IPC stuff it's entirely linux-specific. MFC r353054: Add rcvar back to the

svn commit: r364880 - in stable/12/libexec/rc: . rc.d

2020-08-27 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Aug 27 19:35:02 2020 New Revision: 364880 URL: https://svnweb.freebsd.org/changeset/base/364880 Log: MFC r352836: 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'

svn commit: r364717 - stable/12/sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 17:31:17 2020 New Revision: 364717 URL: https://svnweb.freebsd.org/changeset/base/364717 Log: MFC r363087: Don't emit warnings on MADV_HUGEPAGE; Firefox uses it a lot. Sponsored by: The FreeBSD Foundation Modified:

svn commit: r364716 - in stable/12/sys: amd64/linux amd64/linux32 arm64/linux i386/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 17:29:37 2020 New Revision: 364716 URL: https://svnweb.freebsd.org/changeset/base/364716 Log: MFC r362441: Regen after r362440. Sponsored by: The FreeBSD Foundation Modified: stable/12/sys/amd64/linux/linux_proto.h

svn commit: r364715 - in stable/12/sys: amd64/linux amd64/linux32 arm64/linux compat/linux i386/linux sys vm

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 17:25:26 2020 New Revision: 364715 URL: https://svnweb.freebsd.org/changeset/base/364715 Log: MFC r362440: Add linux_madvise(2) instead of having Linux apps call the native FreeBSD madvise(2) directly. While some of the flag values match, most don't.

svn commit: r364712 - in stable/12/sys: amd64/linux amd64/linux32 arm64/linux compat/linux i386/linux modules/linux modules/linux64 modules/linux_common

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 17:06:34 2020 New Revision: 364712 URL: https://svnweb.freebsd.org/changeset/base/364712 Log: MFC r347538 by dchagin: Linuxulator depends on a fundamental kernel settings such as SMP. Many of them listed in opt_global.h which is not generated while building

svn commit: r364710 - stable/12/sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 16:44:17 2020 New Revision: 364710 URL: https://svnweb.freebsd.org/changeset/base/364710 Log: MFC r362101: Minor code cleanup; no functional changes. Sponsored by: The FreeBSD Foundation Modified: stable/12/sys/compat/linux/linux_socket.c

svn commit: r364709 - stable/12/sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 16:41:10 2020 New Revision: 364709 URL: https://svnweb.freebsd.org/changeset/base/364709 Log: MFC r356729: Make linux(4) use kern_setsockopt(9) instead of going through sys_setsockopt. Just a cleanup; no functional changes. Sponsored by: The FreeBSD

svn commit: r364708 - stable/12/sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 16:36:35 2020 New Revision: 364708 URL: https://svnweb.freebsd.org/changeset/base/364708 Log: MFC r356728: Make linux(4) use kern_getsockopt(9) instead of going through sys_getsockopt(). It's a cleanup; no functional changes. Sponsored by: The FreeBSD

svn commit: r364707 - stable/12/sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 16:27:51 2020 New Revision: 364707 URL: https://svnweb.freebsd.org/changeset/base/364707 Log: MFC r362941: Fix Linux recvmsg(2) when msg_namelen returned is 0. Previously it would fail with EINVAL, breaking some of the Python regression tests. While

svn commit: r364706 - stable/12/sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 16:25:27 2020 New Revision: 364706 URL: https://svnweb.freebsd.org/changeset/base/364706 Log: MFC r362833: 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

svn commit: r364705 - stable/12/sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 16:23:27 2020 New Revision: 364705 URL: https://svnweb.freebsd.org/changeset/base/364705 Log: MFC r362735: Make linux(4) support SO_PROTOCOL. Running Python test suite with python3.8 from Focal triggers those. Sponsored by: The FreeBSD Foundation

svn commit: r364704 - stable/12/sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 16:21:03 2020 New Revision: 364704 URL: https://svnweb.freebsd.org/changeset/base/364704 Log: MFC r362176: Make linux(4) warn about unsupported CMSG level/type. Sponsored by: The FreeBSD Foundation Modified: stable/12/sys/compat/linux/linux_socket.c

svn commit: r364703 - stable/12/sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 16:15:12 2020 New Revision: 364703 URL: https://svnweb.freebsd.org/changeset/base/364703 Log: MFC r362059: Don't use newlines with linux_msg(). No functional changes. Sponsored by: The FreeBSD Foundation Modified: stable/12/sys/compat/linux/linux.c

svn commit: r364702 - in stable/12/sys: compat/linux i386/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 16:06:17 2020 New Revision: 364702 URL: https://svnweb.freebsd.org/changeset/base/364702 Log: MFC r354413: Make linux(4) create /dev/shm. Linux applications often expect a tmpfs to be mounted there, and because they like to verify it's actually a

svn commit: r364700 - stable/12/sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 16:00:58 2020 New Revision: 364700 URL: https://svnweb.freebsd.org/changeset/base/364700 Log: MFC r362103: Fix naming clash. Sponsored by: The FreeBSD Foundation Modified: stable/12/sys/compat/linux/linux_socket.c Directory Properties: stable/12/

svn commit: r364699 - stable/12/sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 15:56:31 2020 New Revision: 364699 URL: https://svnweb.freebsd.org/changeset/base/364699 Log: MFC r348418 by dchagin: Linux does not support MSG_OOB for unix(4) or non-stream oriented socket, return EOPNOTSUPP as a Linux does. Modified:

svn commit: r364698 - stable/12/sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 15:54:58 2020 New Revision: 364698 URL: https://svnweb.freebsd.org/changeset/base/364698 Log: MFC r348058 by dchagin: Do not leak sa in linux_recvmsg() call if kern_recvit() fails. Modified: stable/12/sys/compat/linux/linux_socket.c Directory Properties:

svn commit: r364697 - stable/12/sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 15:53:52 2020 New Revision: 364697 URL: https://svnweb.freebsd.org/changeset/base/364697 Log: MFC r348057 by dchagin: Do not use uninitialised sa. Modified: stable/12/sys/compat/linux/linux_socket.c Directory Properties: stable/12/ (props changed)

svn commit: r364696 - stable/12/sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 15:52:45 2020 New Revision: 364696 URL: https://svnweb.freebsd.org/changeset/base/364696 Log: MFC r348056 by dchagin: Do not leak sa in linux_recvfrom() call if kern_recvit() fails. Modified: stable/12/sys/compat/linux/linux_socket.c Directory Properties:

  1   2   3   4   5   6   7   8   9   10   >