]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
3 years agoMFC r362473:
Michael Tuexen [Mon, 24 Aug 2020 08:25:00 +0000 (08:25 +0000)]
MFC r362473:
leanup the defintion of struct sctp_getaddresses. This stucture
is used by the IPPROTO_SCTP level socket options SCTP_GET_PEER_ADDRESSES
and SCTP_GET_LOCAL_ADDRESSES, which are used by libc to implement
sctp_getladdrs() and sctp_getpaddrs().
These changes allow an old libc to work on a newer kernel.

3 years agoMFC r362462:
Michael Tuexen [Mon, 24 Aug 2020 08:22:37 +0000 (08:22 +0000)]
MFC r362462:
Fix the build for an INET6 only configuration.
The fix from the last commit is actually needed twice...

3 years agoMFC r362454:
Michael Tuexen [Mon, 24 Aug 2020 08:20:49 +0000 (08:20 +0000)]
MFC r362454:
Set a variable also in the case of an INET6 only kernel

3 years agoMFC r362451:
Michael Tuexen [Mon, 24 Aug 2020 08:19:25 +0000 (08:19 +0000)]
MFC r362451:
Use a struct sockaddr_in or struct sockaddr_in6 as the option value
for the IPPROTO_SCTP level socket options SCTP_BINDX_ADD_ADDR and
SCTP_BINDX_REM_ADDR. These socket option are intended for internal
use only to implement sctp_bindx().
This is one user of struct sctp_getaddresses less.
struct sctp_getaddresses is strange and will be changed shortly.

3 years agoMFC r362448:
Michael Tuexen [Mon, 24 Aug 2020 08:16:07 +0000 (08:16 +0000)]
MFC r362448:
Cleanup the adding and deleting of addresses via sctp_bindx().

There is no need to use the association identifier, so remove it.
While there, cleanup the code a bit.

3 years agoMFC r362377:
Michael Tuexen [Mon, 24 Aug 2020 08:14:41 +0000 (08:14 +0000)]
MFC r362377:
Remove last argument of sctp_addr_mgmt_ep_sa(), since it is not used.

3 years agoMFC r362332:
Michael Tuexen [Mon, 24 Aug 2020 08:13:06 +0000 (08:13 +0000)]
MFC r362332:
Whitespace changes, not functional change intended.

3 years agoMFC r362277:
Michael Tuexen [Mon, 24 Aug 2020 08:11:47 +0000 (08:11 +0000)]
MFC r362277:
Allow the self reference to be NULL in case the timer was stopped.

3 years agoMFC r362178:
Michael Tuexen [Mon, 24 Aug 2020 08:10:27 +0000 (08:10 +0000)]
MFC r362178:
Allocate the mbuf for the signature in the COOKIE or the correct size.
While there, do also do some cleanups.

3 years agoMFC r362173:
Michael Tuexen [Mon, 24 Aug 2020 08:08:12 +0000 (08:08 +0000)]
MFC r362173:
Cleanups, no functional change.

3 years agoMFC r362155:
Michael Tuexen [Mon, 24 Aug 2020 08:01:09 +0000 (08:01 +0000)]
MFC r362155:
Remove usage of empty macro.

3 years agoMFC r362153:
Michael Tuexen [Mon, 24 Aug 2020 07:58:59 +0000 (07:58 +0000)]
MFC r362153:
Simpify a condition, no functional change.

3 years agoMFC r362107:
Michael Tuexen [Mon, 24 Aug 2020 07:57:29 +0000 (07:57 +0000)]
MFC r362107:
Whitespace change due to upstream cleanup.

3 years agoMFC r362106:
Michael Tuexen [Mon, 24 Aug 2020 07:55:46 +0000 (07:55 +0000)]
MFC r362106:
More cleanups due to ifdef cleanup done upstream.

3 years agoMFC r362090:
Michael Tuexen [Mon, 24 Aug 2020 07:53:14 +0000 (07:53 +0000)]
MFC r362090:
Small cleanup due to upstream ifdef cleanups.

3 years agoMFC r362054:
Michael Tuexen [Mon, 24 Aug 2020 07:42:50 +0000 (07:42 +0000)]
MFC r362054:
Non-functional changes due to upstream cleanup.

3 years agoMFC r364463: Fix CTL ioctl port creation error handling.
Alexander Motin [Mon, 24 Aug 2020 01:11:29 +0000 (01:11 +0000)]
MFC r364463: Fix CTL ioctl port creation error handling.

3 years agoMFC r361934:
Michael Tuexen [Sun, 23 Aug 2020 23:26:00 +0000 (23:26 +0000)]
MFC r361934:
Whitespace cleanups and removal of a stale comment.

3 years agoMFC r361895:
Michael Tuexen [Sun, 23 Aug 2020 23:24:38 +0000 (23:24 +0000)]
MFC r361895:
Retire SCTP_SO_LOCK_TESTING.

This was intended to test the locking used in the MacOS X kernel on a
FreeBSD system, to make use of WITNESS and other debugging infrastructure.
This hasn't been used for ages, to take it out to reduce the #ifdef
complexity.

3 years agoMFC r361877:
Michael Tuexen [Sun, 23 Aug 2020 23:22:55 +0000 (23:22 +0000)]
MFC r361877:
Fix typo in comment.

Submitted by Orgad Shaneh for the userland stack.

3 years agoMFC r361872:
Michael Tuexen [Sun, 23 Aug 2020 23:21:26 +0000 (23:21 +0000)]
MFC r361872:
Non-functional changes due to cleanup (upstream removing of Panda support)
of the code.

3 years agoMFC r361243:
Michael Tuexen [Sun, 23 Aug 2020 23:19:32 +0000 (23:19 +0000)]
MFC r361243:
Replace snprintf() by SCTP_SNPRINTF() and let SCTP_SNPRINTF() map
to snprintf() on FreeBSD. This allows to check for failures of snprintf()
on platforms other than FreeBSD kernel.

3 years agoMFC r361227:
Michael Tuexen [Sun, 23 Aug 2020 23:17:51 +0000 (23:17 +0000)]
MFC r361227:
Remove assignment without effect.

3 years agoMFC r361226:
Michael Tuexen [Sun, 23 Aug 2020 23:16:14 +0000 (23:16 +0000)]
MFC r361226:
Don't check an unsigned variable for being negative.

3 years agoMFC r361225:
Michael Tuexen [Sun, 23 Aug 2020 23:14:47 +0000 (23:14 +0000)]
MFC r361225:
Remove redundant assignment.

3 years agoMFC r361224:
Michael Tuexen [Sun, 23 Aug 2020 23:13:12 +0000 (23:13 +0000)]
MFC r361224:
Cleanup, no functional change intended.

3 years agoMFC r361222:
Michael Tuexen [Sun, 23 Aug 2020 23:11:53 +0000 (23:11 +0000)]
MFC r361222:
Avoid an integer underflow.

3 years agoMFC r361221:
Michael Tuexen [Sun, 23 Aug 2020 23:10:25 +0000 (23:10 +0000)]
MFC r361221:
Remove redundant check.

3 years agoMFC r361214:
Michael Tuexen [Sun, 23 Aug 2020 23:08:55 +0000 (23:08 +0000)]
MFC r361214:
Fix logical condition by looking at usecs.

This issue was found by cpp-check running on the userland stack.

3 years agoMFC r361213:
Michael Tuexen [Sun, 23 Aug 2020 23:02:51 +0000 (23:02 +0000)]
MFC r361213:
Whitespace change.

3 years agoMFC r361116:
Michael Tuexen [Sun, 23 Aug 2020 22:54:30 +0000 (22:54 +0000)]
MFC r361116:
Ensure that an stcb is not dereferenced when it is about to be
freed.
This issue was found by SYZKALLER.

3 years agoMFC r360885:
Michael Tuexen [Sun, 23 Aug 2020 22:52:47 +0000 (22:52 +0000)]
MFC r360885:
Ensure that the SCTP iterator runs with an stcb and inp, which belong to
each other.

3 years agoMFC r360878:
Michael Tuexen [Sun, 23 Aug 2020 22:50:59 +0000 (22:50 +0000)]
MFC r360878:
Ensure that we have a path when starting the T3 RXT timer.

MFC r360942:
Fix a copy and paste error introduced in r360878.

3 years agoMFC r360869:
Michael Tuexen [Sun, 23 Aug 2020 22:48:19 +0000 (22:48 +0000)]
MFC r360869:
Only drop DATA chunk with lower priorities as specified in RFC 7496.
This issue was found by looking at a reproducer generated by syzkaller.

3 years agoMFC r356170:
Edward Tomasz Napierala [Sun, 23 Aug 2020 22:47:08 +0000 (22:47 +0000)]
MFC r356170:

Implement Linux BLKGETSIZE64 ioctl.

Sponsored by: The FreeBSD Foundation

3 years agoMFC r360671:
Michael Tuexen [Sun, 23 Aug 2020 22:40:38 +0000 (22:40 +0000)]
MFC r360671:
Avoid underflowing a variable, which would result in taking more
data from the stream queues then needed.

Thanks to Timo Voelker for finding this bug and providing a fix.

3 years agoMFC r360662:
Michael Tuexen [Sun, 23 Aug 2020 22:39:06 +0000 (22:39 +0000)]
MFC r360662:
Fix the computation of the numbers of entries of the mapping array to
look at when generating a SACK. This was wrong in case of sequence
numbers wrap arounds.

Thanks to Gwenael FOURRE for reporting the issue for the userland stack:
https://github.com/sctplab/usrsctp/issues/462

3 years agoMFC r360209:
Michael Tuexen [Sun, 23 Aug 2020 22:35:52 +0000 (22:35 +0000)]
MFC r360209:
Improve input validation when processing AUTH chunks.

Thanks to Natalie Silvanovich from Google for finding and reporting the
issue found by her in the SCTP userland stack.

3 years agoMFC r360193:
Michael Tuexen [Sun, 23 Aug 2020 22:34:15 +0000 (22:34 +0000)]
MFC r360193:
Improve input validation when processing AUTH chunks.

Thanks to Natalie Silvanovich from Google for finding and reporting the
issue found by her in the SCTP userland stack.

3 years agoMFC r359657:
Michael Tuexen [Sun, 23 Aug 2020 22:30:52 +0000 (22:30 +0000)]
MFC r359657:
Do more argument validation under INVARIANTS when starting/stopping
an SCTP timer.

3 years agoMFC r359410:
Michael Tuexen [Sun, 23 Aug 2020 22:28:19 +0000 (22:28 +0000)]
MFC r359410:
Small cleanup by using a variable just assigned.

3 years agoMFC r359405:
Michael Tuexen [Sun, 23 Aug 2020 22:26:38 +0000 (22:26 +0000)]
MFC r359405:
Handle integer overflows correctly when converting msecs and secs to
ticks and vice versa.
These issues were caught by recently added panic() calls on INVARIANTS
systems.

3 years agoMFC r359379:
Michael Tuexen [Sun, 23 Aug 2020 22:24:46 +0000 (22:24 +0000)]
MFC r359379:
Some more uint32_t cleanups, no functional change.

3 years agoMFC r363093:
Edward Tomasz Napierala [Sun, 23 Aug 2020 22:23:19 +0000 (22:23 +0000)]
MFC r363093:

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 checks whether st_dev returned for
fd 0 is the same as st_dev returned for the target of /proc/self/fd/0
symlink, and with linux chroots having their own devfs instance,
the check will fail if you chrooted into it.

PR: kern/240767
Sponsored by: The FreeBSD Foundation

3 years agoMFC r356172:
Edward Tomasz Napierala [Sun, 23 Aug 2020 22:21:36 +0000 (22:21 +0000)]
MFC r356172:

Make Linux stat(2) et al distinguish between block and character
devices.  It's required for LTP, among other things.  It's not
complete, but good enough for now.

Sponsored by: The FreeBSD Foundation

3 years agoMFC r359306:
Michael Tuexen [Sun, 23 Aug 2020 22:19:39 +0000 (22:19 +0000)]
MFC r359306:
Remove an optimization, which was incorrect a couple of times and
therefore doesn't seem worth to be there.
In this case COOKIE where not retransmitted anymore, when the
socket was already closed.

3 years agoMFC r359305:
Michael Tuexen [Sun, 23 Aug 2020 22:17:29 +0000 (22:17 +0000)]
MFC r359305:
Improve consistency in debug output.

3 years agoMFC r359301:
Michael Tuexen [Sun, 23 Aug 2020 22:16:03 +0000 (22:16 +0000)]
MFC r359301:
Use consistent debug output.

3 years agoMFC r359300:
Michael Tuexen [Sun, 23 Aug 2020 22:13:57 +0000 (22:13 +0000)]
MFC r359300:
Don't restore the vnet too early in error cases.

3 years agoMFC r362052:
Edward Tomasz Napierala [Sun, 23 Aug 2020 22:12:55 +0000 (22:12 +0000)]
MFC r362052:

Improve the warnings.

Sponsored by: The FreeBSD Foundation

3 years agoMFC r359288:
Michael Tuexen [Sun, 23 Aug 2020 22:09:20 +0000 (22:09 +0000)]
MFC r359288:
Only call panic when building with INVARIANTS.

3 years agoMFC r359287:
Michael Tuexen [Sun, 23 Aug 2020 22:07:49 +0000 (22:07 +0000)]
MFC r359287:
Another cleanup of the timer code. Also be more pedantic about the
parameters of the timer start and stop routines. Several inconsistencies
have been fixed in earlier commits. Now they will be catched when running
an INVARIANTS system.

3 years agoMFC r359234:
Michael Tuexen [Sun, 23 Aug 2020 22:05:57 +0000 (22:05 +0000)]
MFC r359234:
Cleanup the file and add two ASSERT variants for locks, which will be
used shortly.

3 years agoMFC r359195:
Michael Tuexen [Sun, 23 Aug 2020 22:04:02 +0000 (22:04 +0000)]
MFC r359195:
More timer cleanups, no functional change.

3 years agoMFC r359162:
Michael Tuexen [Sun, 23 Aug 2020 22:02:19 +0000 (22:02 +0000)]
MFC r359162:
Remove a set, but unused variable.

3 years agoMFC r359152:
Michael Tuexen [Sun, 23 Aug 2020 21:59:23 +0000 (21:59 +0000)]
MFC r359152:
Consistently provide arguments for timer start and stop routines.
This is another step in cleaning up timer handling.

3 years agoMFC r359151::
Michael Tuexen [Sun, 23 Aug 2020 21:57:24 +0000 (21:57 +0000)]
MFC r359151::
Cleanup the stream reset and asconf timer.

3 years agoMFC r359131:
Michael Tuexen [Sun, 23 Aug 2020 21:55:34 +0000 (21:55 +0000)]
MFC r359131:
The MTU candidates MUST be a multiple of 4, so make them so.

3 years agoMFC r359048:
Michael Tuexen [Sun, 23 Aug 2020 21:52:54 +0000 (21:52 +0000)]
MFC r359048:
Handle the timers in a consistent sequence according to the definition
of the timer type.
Just a cleanup, no functional change intended.

3 years agoMFC r353725 by yuripv:
Edward Tomasz Napierala [Sun, 23 Aug 2020 21:48:57 +0000 (21:48 +0000)]
MFC r353725 by yuripv:

linux: futex_mtx should follow futex_list

Move futex_mtx to linux_common.ko for amd64 and aarch64 along
with respective list/mutex init/destroy.

PR: 240989
Reported by: Alex S <iwtcex@gmail.com>

3 years agoMFC r353724 by yuripv:
Edward Tomasz Napierala [Sun, 23 Aug 2020 21:46:48 +0000 (21:46 +0000)]
MFC r353724 by yuripv:

linux: provide just one instance of futex_list

Move futex_list definition to linux.c which is included once
in linux.ko (i386) and in linux_common.ko (amd64 and aarch64)
allowing 32/64 bit linux programs to access the same futexes
in the latter case.

PR: 240989

3 years agoMFC r352914 by kaktus:
Edward Tomasz Napierala [Sun, 23 Aug 2020 21:44:05 +0000 (21:44 +0000)]
MFC r352914 by kaktus:

linux_renameat2: don't add extra \n on error.

linux_msg() already adds \n at the end of all messages.

3 years agoMFC r350451 by emaste:
Edward Tomasz Napierala [Sun, 23 Aug 2020 21:38:48 +0000 (21:38 +0000)]
MFC r350451 by emaste:

linuxulator: rename linux_locore.s to .asm

It is assembled using "${CC} -x assembler-with-cpp", which by convention
(bsd.suffixes.mk) uses the .asm extension.

This is a portion of the review referenced below (D18344).  That review
also renamed linux_support.s to .S, but that is a functional change
(using the compiler's integrated assembler instead of as) and will be
revisited separately.

Sponsored by: The FreeBSD Foundation

3 years agoMFC r358965:
Michael Tuexen [Sun, 23 Aug 2020 21:35:23 +0000 (21:35 +0000)]
MFC r358965:
sendfile() does currently not support SCTP sockets.
Therefore, fail the call.
Manually fix a compile issue.

3 years agoMFC r358169:
Michael Tuexen [Sun, 23 Aug 2020 21:27:54 +0000 (21:27 +0000)]
MFC r358169:
Remove an unused timer type.

3 years agoMFC r358080:
Michael Tuexen [Sun, 23 Aug 2020 21:23:45 +0000 (21:23 +0000)]
MFC r358080:
Remove unused function.

3 years agoMFC r358028:
Michael Tuexen [Sun, 23 Aug 2020 21:22:13 +0000 (21:22 +0000)]
MFC r358028:

Fix the non-default stream schedulers such that do not interleave
user messages when it is now allowed.

Thanks to Christian Wright for reporting the issue for the userland
stack and providing a fix for the priority scheduler.

3 years agoMFC r357830:
Michael Tuexen [Sun, 23 Aug 2020 21:19:17 +0000 (21:19 +0000)]
MFC r357830:
Don't panic under INVARIANTS when we can't allocate memory for storing
a vtag in time wait.
This issue was found by running syzkaller.

3 years agoMFC r357768:
Michael Tuexen [Sun, 23 Aug 2020 21:12:37 +0000 (21:12 +0000)]
MFC r357768:
Don't start an SCTP timer using a net, which has been removed.

3 years agoMFC r357708:
Michael Tuexen [Sun, 23 Aug 2020 21:10:24 +0000 (21:10 +0000)]
MFC r357708:
Stop the PMTU and HB timer when removing a net, not when freeing it.

3 years agoMFC r357705:
Michael Tuexen [Sun, 23 Aug 2020 21:07:39 +0000 (21:07 +0000)]
MFC r357705:
Cleanup timer handling.

3 years agoMFC r357501:
Michael Tuexen [Sun, 23 Aug 2020 21:05:54 +0000 (21:05 +0000)]
MFC r357501:
Remove unused timer.

3 years agoMFC r357500:
Michael Tuexen [Sun, 23 Aug 2020 21:04:22 +0000 (21:04 +0000)]
MFC r357500:
Improve numbering of debug information.

3 years agoMFC r357197:
Michael Tuexen [Sun, 23 Aug 2020 21:01:56 +0000 (21:01 +0000)]
MFC r357197:
Fix build issues for the userland stack on 32-bit platforms.

3 years agoMFC r355818:
Edward Tomasz Napierala [Sun, 23 Aug 2020 20:25:10 +0000 (20:25 +0000)]
MFC r355818:

Add compat.linux.emul_path, so it can be set to something other
than "/compat/linux".  Useful when you have several compat directories
with different Linux versions and you don't want to clash with files
installed by linux-c7 packages.

Sponsored by: The FreeBSD Foundation

3 years agoMFC r354691:
Edward Tomasz Napierala [Sun, 23 Aug 2020 20:20:13 +0000 (20:20 +0000)]
MFC r354691:

Improve Linuxulator man pages to better reflect the current state,
and add some missing Xrs.

Sponsored by: The FreeBSD Foundation

3 years agoMFC r357503:
Edward Tomasz Napierala [Sun, 23 Aug 2020 20:14:57 +0000 (20:14 +0000)]
MFC r357503:

Add missing linux(4) syscall entries.  This fixes missing debug
messages for some of the unimplemented syscalls, in particular
the AIO-related ones.

MFC r357504:

Regen after r357503.

Sponsored by: The FreeBSD Foundation

3 years agoMFC r356241:
Edward Tomasz Napierala [Sun, 23 Aug 2020 20:12:07 +0000 (20:12 +0000)]
MFC r356241:

Add basic getcpu(2) support to linuxulator.  The purpose of this
syscall is to query the CPU number and the NUMA domain the calling
thread is currently running on.  The third argument is ignored.
It doesn't do anything regarding scheduling - it's literally
just a way to query the current state, without any guarantees
you won't get rescheduled an opcode later.

This unbreaks Java from CentOS 8
(java-11-openjdk-11.0.5.10-0.el8_0.x86_64).

Sponsored by: The FreeBSD Foundation

3 years agoMFC r356231:
Edward Tomasz Napierala [Sun, 23 Aug 2020 20:10:10 +0000 (20:10 +0000)]
MFC r356231:

Regen after r356229.

Sponsored by: The FreeBSD Foundation

3 years agoMFC r356229:
Edward Tomasz Napierala [Sun, 23 Aug 2020 20:08:49 +0000 (20:08 +0000)]
MFC r356229:

Fix definitions for Linux getcpu(2).

Sponsored by: The FreeBSD Foundation

3 years agoMFC r356177:
Edward Tomasz Napierala [Sun, 23 Aug 2020 19:59:38 +0000 (19:59 +0000)]
MFC r356177:

Implement Linux syslog(2) syscall; just enough to make Linux dmesg(8)
utility work.

Sponsored by: The FreeBSD Foundation

3 years agoMFC r352224 by emaste:
Edward Tomasz Napierala [Sun, 23 Aug 2020 19:54:03 +0000 (19:54 +0000)]
MFC r352224 by emaste:

Update comments and ordering in linux*_dummy.c

- sort alphabetically
- getcpu arrived in Linux 2.6.19
- fanotify_* arrived in 2.6.36

Sponsored by: The FreeBSD Foundation

3 years agoMFC r352222 by emaste:
Edward Tomasz Napierala [Sun, 23 Aug 2020 19:47:10 +0000 (19:47 +0000)]
MFC r352222 by emaste:

linuxulator: memfd_create first appeared in Linux 3.17

Sponsored by: The FreeBSD Foundation

3 years agoMFC r352221 by emaste:
Edward Tomasz Napierala [Sun, 23 Aug 2020 19:45:56 +0000 (19:45 +0000)]
MFC r352221 by emaste:

linuxulator: seccomp syscall first appeared in Linux 3.17

Sponsored by: The FreeBSD Foundation

3 years agoMFC r352210 by emaste:
Edward Tomasz Napierala [Sun, 23 Aug 2020 19:44:29 +0000 (19:44 +0000)]
MFC r352210 by emaste:

linux: add trivial renameat2 implementation

Just return EINVAL if flags != 0.  The Linux man page documents one
case of EINVAL as "The filesystem does not support one of the flags in
flags."

After r351723 userland binaries will try using new system calls.

Sponsored by: The FreeBSD Foundation

3 years agoMFC r352209 by emaste:
Edward Tomasz Napierala [Sun, 23 Aug 2020 19:42:48 +0000 (19:42 +0000)]
MFC r352209 by emaste:

regen linuxulator sysent after r352208

Sponsored by: The FreeBSD Foundation

3 years agoMFC r352208 by emaste:
Edward Tomasz Napierala [Sun, 23 Aug 2020 19:41:16 +0000 (19:41 +0000)]
MFC r352208 by emaste:

make linux_renameat2 args consistent with linux_renameat

Use 'dfd' consistently for a directory fd.

Sponsored by: The FreeBSD Foundation

3 years agoMFC r351821:
Edward Tomasz Napierala [Sun, 23 Aug 2020 19:30:12 +0000 (19:30 +0000)]
MFC r351821:

Improve debugging output.

Sponsored by: The FreeBSD Foundation

3 years agoMFC r349748:
Edward Tomasz Napierala [Sun, 23 Aug 2020 19:28:09 +0000 (19:28 +0000)]
MFC r349748:

Add support for PTRACE_O_TRACEEXIT to linuxulator ptrace(2).
This fixes strace 4.25 from Ubuntu 19.04.

Sponsored by: The FreeBSD Foundation

3 years agoMFC r349747:
Edward Tomasz Napierala [Sun, 23 Aug 2020 19:26:46 +0000 (19:26 +0000)]
MFC r349747:

Implement PTRACE_GETSIGINFO.  This makes Linux strace(1) quieter
in some cases (strace -f man id > /dev/null).

Sponsored by: The FreeBSD Foundation

3 years agoMFC r348049:
Edward Tomasz Napierala [Sun, 23 Aug 2020 19:25:19 +0000 (19:25 +0000)]
MFC r348049:

Make linux_ptrace() use linux_msg() instead of printf().

Sponsored by: The FreeBSD Foundation

3 years agoMFC r347971:
Edward Tomasz Napierala [Sun, 23 Aug 2020 19:22:42 +0000 (19:22 +0000)]
MFC r347971:

Implement PTRACE_O_TRACESYSGOOD.  This makes Linux strace(1) work.

Sponsored by: The FreeBSD Foundation

3 years agoMFC r347580:
Edward Tomasz Napierala [Sun, 23 Aug 2020 19:20:38 +0000 (19:20 +0000)]
MFC r347580:

Fix handling of r10 in Linux ptrace(2).  This fixes decoding
of the 'flags' argument to mmap(2) with Linux strace(1).

Sponsored by: The FreeBSD Foundation

3 years agoMFC r347231:
Edward Tomasz Napierala [Sun, 23 Aug 2020 19:19:00 +0000 (19:19 +0000)]
MFC r347231:

Support PTRACE_GETREGSET w/ NT_PRSTATUS in Linux ptrace(2).

While Linux strace(1) doesn't strictly require it - it has a fallback
to PTRACE_GETREGS - it's a newer interface, so we better support it
before the old one is deprecated.

Sponsored by: The FreeBSD Foundation

3 years agoMFC r363381:
Craig Leres [Sun, 23 Aug 2020 17:46:10 +0000 (17:46 +0000)]
MFC r363381:
Fix some regressions with the zgrep(1) wrapper.

PR: 247126

3 years agoMFC r364411:
Mark Johnston [Sun, 23 Aug 2020 17:34:21 +0000 (17:34 +0000)]
MFC r364411:
Use pmap_mapbios() to map ACPI tables on amd64 and i386.

PR: 248746

3 years agoMFC r364407: Unify AcpiGetTable() KPI use in identify, probe and attach.
Alexander Motin [Sat, 22 Aug 2020 00:42:33 +0000 (00:42 +0000)]
MFC r364407: Unify AcpiGetTable() KPI use in identify, probe and attach.

While there, change probe order to not call AcpiGetTable() for every
probed ACPI device.

PR: 248746

3 years agoMFC r364321: ipfw: line up `ipfw -t list` with and without timestamp
Ed Maste [Fri, 21 Aug 2020 19:28:26 +0000 (19:28 +0000)]
MFC r364321: ipfw: line up `ipfw -t list` with and without timestamp

From the PR:
    When I run `ipfw -t list` on release/12 or current, I get misaligned
    output between lines that do and do not have a last match timestamp,
    like so:

    00100 Tue Aug 11 03:03:26 2020 allow ip from any to any via lo0
    00200                         deny ip from any to 127.0.0.0/8

    (specifically, the "allow" and "deny" strings do not line up)

PR: 248608
Submitted by: Taylor Stearns

3 years agoMFC r355744:
Kristof Provost [Fri, 21 Aug 2020 13:11:33 +0000 (13:11 +0000)]
MFC r355744:

pf: Make request_maxcount runtime adjustable

There's no reason for this to be a tunable. It's perfectly safe to
change this at runtime.

3 years agoMFC r363997
Vincenzo Maffione [Fri, 21 Aug 2020 07:54:16 +0000 (07:54 +0000)]
MFC r363997

iflib: netmap: drop redundant check

The validity of head is already checked by nm_rxsync_prologue().