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
===
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
Differe
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 Revisio
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,
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, I
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 by
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: Klara
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: Kl
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:ching2...@areca.com.
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.
Different
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 week
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
Sponso
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
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, j
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 architec
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 by
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: head/sys/co
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 b
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
Modified:
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:
head/sys
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 vers
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
Differenti
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 us
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: head/sys/compat/linux/linux_errno.h
0: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 Edw
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:
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:https:
ad/lib/geom/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
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 R
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
>
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
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:https://reviews.freebsd.org/D269
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
Modif
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:
h
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: Th
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:https://reviews.fre
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
Reviewe
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:https:
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, I
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 u
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 by:
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 version)
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), f
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:http
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 way,
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
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
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 as
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:https://reviews.freebsd.o
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
Differ
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
Differen
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:https://r
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
Spo
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 difference
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: N
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:https
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 wit
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:https://reviews.freebsd.org/D2
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:https://reviews.fr
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
Sponsored
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
head/sys/amd64/linux32/linux32_proto.
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:
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 by
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 Foundation
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:
head/
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 (ear
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
head/s
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, mckusic
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:2
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
Sponsored
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
Sponso
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, w
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
stable/12/sys/amd64/linux/linux_sys
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 by:
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 fun
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.
R
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
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 b
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 'linux_ena
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
Mo
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 l
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' to
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:
stable/12/sys/compat/linux/linux_mmap
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
stable/12/sys/amd64/linux/linux_sys
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.
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
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
stable/12/s
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 Fo
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
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
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 tha
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
Modi
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
Di
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
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 mountpoi
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/ (
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:
stable/12/sys/comp
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:
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)
Modi
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 - 100 of 2685 matches
Mail list logo