Commit Graph

276467 Commits

Author SHA1 Message Date
ginsbach
dde087a379 Add OWASP 2020-05-05 01:28:17 +00:00
kamil
ac9ae533a1 Move core tests out of t_ptrace_wait.c to t_ptrace_core_wait.h
The same tests are now included with the preprocessor in t_ptrace_wait.c.

No functional change intended.
2020-05-05 01:24:29 +00:00
kamil
6ca9c4c6fc Move siginfo tests out of t_ptrace_wait.c to t_ptrace_siginfo_wait.h
The same tests are now included with the preprocessor in t_ptrace_wait.c.

No functional change intended.
2020-05-05 00:57:34 +00:00
kamil
373d242e6e Move threads tests out of t_ptrace_wait.c to t_ptrace_threads_wait.h
The same tests are now included with the preprocessor in t_ptrace_wait.c.

No functional change intended.
2020-05-05 00:50:39 +00:00
kamil
29ff229651 Move topology tests out of t_ptrace_wait.c to t_ptrace_topology_wait.h
The same tests are now included with the preprocessor in t_ptrace_wait.c.

No functional change intended.
2020-05-05 00:33:37 +00:00
kamil
6afb1960b8 Move exec() tests out of t_ptrace_wait.c to t_ptrace_exec_wait.h
The same tests are now included with the preprocessor in t_ptrace_wait.c.

No functional change intended.
2020-05-05 00:23:12 +00:00
kamil
fadd423b64 Move LWP tests out of t_ptrace_wait.c to t_ptrace_lwp_wait.h
The same tests are now included with the preprocessor in t_ptrace_wait.c.

No functional change intended.
2020-05-05 00:15:45 +00:00
kamil
f74903642d Remove the duplicate ATF_TP_ADD_TC() entries
Event mask tests are already defined in
ATF_TP_ADD_TCS_PTRACE_WAIT_EVENTMASK().
2020-05-05 00:03:49 +00:00
kamil
bb8e4b817e Move eventmask tests out of t_ptrace_wait.c to t_ptrace_eventmask_wait.h
The same tests are now included with the preprocessor in t_ptrace_wait.c.

No functional change intended.
2020-05-05 00:01:14 +00:00
kamil
8f6a1c9ed3 Remove the duplicate ATF_TP_ADD_TC() entries
Byte transfer tests are already defined in
ATF_TP_ADD_TCS_PTRACE_WAIT_BYTETRANSFER().
2020-05-04 23:53:20 +00:00
kamil
a0f774c8c6 Move signal tests out of t_ptrace_wait.c to t_ptrace_signal_wait.h
The same tests are now included with the preprocessor in t_ptrace_wait.c.

No functional change intended.
2020-05-04 23:49:31 +00:00
kamil
70aa5111f3 Move fork/vfork/posix_spawn tests out of t_ptrace_wait.c to t_ptrace_fork_wait.h
The same tests are now included with the preprocessor in t_ptrace_wait.c.

No functional change intended.
2020-05-04 22:34:22 +00:00
kamil
aab911e8f8 Bump (c) year 2020-05-04 22:24:31 +00:00
kamil
7c347f59c8 Move clone() tests out of t_ptrace_wait.c to t_ptrace_clone_wait.h
The same tests are now included with the preprocessor in t_ptrace_wait.c.

No functional change intended.
2020-05-04 22:15:23 +00:00
kamil
cacb90637f Move byte transfer tests out of t_ptrace_wait.c to t_ptrace_bytetransfer_wait.h
The same tests are now included with the preprocessor in t_ptrace_wait.c.

No functional change intended.
2020-05-04 22:05:28 +00:00
kamil
fffa14ce79 Move kill()-like tests out of t_ptrace_wait.c to t_ptrace_kill_wait.h
The same tests are now included with the preprocessor in t_ptrace_wait.c.

No functional change intended.
2020-05-04 21:55:12 +00:00
kamil
b1a00b5909 Move PT_STEP tests out of t_ptrace_wait.c to t_ptrace_step_wait.h
The same tests are now included with the preprocessor in t_ptrace_wait.c.

No functional change intended.
2020-05-04 21:33:20 +00:00
kamil
7ecec66137 Move syscall tests out of t_ptrace_wait.c to t_ptrace_syscall_wait.h
The same tests are now included with the preprocessor in t_ptrace_wait.c.

No functional change intended.
2020-05-04 21:21:30 +00:00
kamil
bc8c7c1627 Move register tests out of t_ptrace_wait.c to t_ptrace_register_wait.h
The same tests are now included with the preprocessor in t_ptrace_wait.c.

No functional change intended.
2020-05-04 20:55:48 +00:00
jdolecek
1164d10d30 constify 2020-05-04 20:06:38 +00:00
joerg
2f09f7454a Prevent double definition of pt_entry_t from machine/param.h 2020-05-04 18:36:24 +00:00
riastradh
012d806232 New timedwaitclock_setup.
C99 initializers would have been nice, but part of the struct is
explicit parameters and part of the struct is implicit state, and
-Wmissing-field-initializers can't discriminate between them
(although for some reason it doesn't always fire!).

Instead, just do:

        struct timedwaitclock T;

        timedwaitclock_setup(&T, timeout, clockid, flags, epsilon);
        while (...) {
                error = timedwaitclock_begin(&T, &timo);
                if (error)
                        ...
                error = waitwhatever(timo);
                timedwaitclock_end(&T);
                ...
        }
2020-05-04 18:23:37 +00:00
joerg
a692036705 boardype should not be common. 2020-05-04 18:19:34 +00:00
jdolecek
9283e7380f note feature-sg and jumbo frames for xennet(4)/xvif(4), MSI for XenPV 2020-05-04 16:21:23 +00:00
jdolecek
d5100c2314 add support for using MSI for XenPV Dom0
use PHYSDEVOP_map_pirq to get the pirq/gsi for MSI/MSI-X, switch also INTx
to use it instead of PHYSDEVOP_alloc_irq_vector

MSI confirmed working with single-vector MSI for wm(4), ahcisata(4), bge(4)

XXX added some provision for MSI-X, but it doesn't actually work (no interrupts
delivered), needs some further investigation; disable MSI-X for XENPV
via flag in x86/pci/pci_machdep.c
2020-05-04 15:55:56 +00:00
wiz
8b5b0fc37e Improve markup. 2020-05-04 15:13:45 +00:00
wiz
3b9d941ba3 Break line after macro arguments end. Use \- for minus. 2020-05-04 15:10:40 +00:00
thorpej
862dc4c75a Add a test case for PR kern/55230. It is currently marked as expect-fail. 2020-05-04 15:09:34 +00:00
riastradh
c89c01dec4 Release the collision if we find one.
Candidate fix for:

panic: lock error: Mutex: mutex_vector_enter,542: locking against myself: lock 0xffff8f611abd37e0 cpu 8 lwp 0xffff8f60a3c6a040
cpu8: Begin traceback...
vpanic() at netbsd:vpanic+0x178
snprintf() at netbsd:snprintf
lockdebug_abort() at netbsd:lockdebug_abort+0xe6
mutex_vector_enter() at netbsd:mutex_vector_enter+0x3c1
ksem_close_fop() at netbsd:ksem_close_fop+0x17
closef() at netbsd:closef+0x69
fd_free() at netbsd:fd_free+0x101
exit1() at netbsd:exit1+0x118
sys_exit() at netbsd:sys_exit+0x3d
syscall() at netbsd:syscall+0x299

Would be nice to have an automatic test for this.  Since semids are
only 24 bits, we only need to create a few thousand of them to have a
high probability of collision.  Maybe we should bump default semmax
while here...
2020-05-04 13:58:48 +00:00
simonb
36c01c395b Enable PTYFS. 2020-05-04 12:15:43 +00:00
jdolecek
810e08fd3b fix delet-o 2020-05-04 10:03:45 +00:00
jdolecek
a37cbed637 constify the pic templates 2020-05-04 09:34:37 +00:00
jdolecek
8a3c1b5cf9 remove IPv4 csum offloading for xennet(4) - it's not complete, and even
if it was, it doesn't work with Linux Dom0 as it expects the IPv4 csum present
2020-05-04 08:22:45 +00:00
tsutsui
5e966d19f7 Note hp425e EVRX framebuffer bitmap ops support. 2020-05-04 06:55:12 +00:00
tsutsui
9b81b6d763 Add bitmap access ops support for EVRX framebuffer on HP9000/425e.
8bpp Xorg wsfb server and mlterm-wscons (formerly mlterm-fb) work.
No particular comment on port-hp300@ and port-hppa@:
 https://mail-index.netbsd.org/port-hp300/2020/05/02/msg000170.html

Special thanks to Miod Vallat, for his advice about HP-UX implementation
and binutils patches to disassemble old HP-UX a.out-hp300hpux binaries
(and also contributing his 425e back in 2014).
2020-05-04 06:52:53 +00:00
skrll
22b0819af2 Remove unnecesary #define/#undef _LOCORE 2020-05-04 06:42:11 +00:00
agc
472564b29d Bring over changes from source of truth in pkgsrc - bump version to 20200503
Update netpgpverify and libnetpgpverify to version 20200503

	ensure all exported functions use a unique prfix, so that they don't
	conflict with symbols (both data and text) in libcrypto. this works for
	statically linked binaries and libraries, rather then the version map which
	only works for dynalically-linked.
2020-05-04 00:18:34 +00:00
christos
6fc1bc48bc Add a linker map to hide all the symbols the this library accidentally
exported. In particular the following symbols:

DSA_SIG_free
DSA_SIG_new
DSA_do_sign
DSA_do_verify
DSA_free
DSA_new
DSA_size
RSA_check_key
RSA_free
RSA_generate_key
RSA_new
RSA_private_decrypt
RSA_private_encrypt
RSA_public_decrypt
RSA_public_encrypt

conflict with libcrypto and break pkg_add which links against both
libraries.
2020-05-03 21:46:37 +00:00
joerg
48722dc95d Avoid common symbol declarations. 2020-05-03 21:02:24 +00:00
jdolecek
f0a8920e5c add support for scatter-gather also for frontend Rx path (backend -> frontend)
enable ETHERCAP_JUMBO_MTU and feature-sg
2020-05-03 17:56:19 +00:00
jdolecek
987d0db606 reduce buffer size for format_number() so that xbd(4) would show the size
in KB/GB/TB instead of bytes again; the '9' matches what xbd(4) used before,
and also e.g. wd(4)
2020-05-03 17:54:28 +00:00
thorpej
cb0aafc488 Move timedwaitclock_begin() and timedwaitclock_end() to subr_time.c
so they can be used by other things.
2020-05-03 17:36:33 +00:00
bouyer
b664fe8020 For PVH and HVM, copy hvm_start_info.flags to xen_start_info.flags 2020-05-03 17:24:11 +00:00
bouyer
03ea5b3f0f Hanble dom0 console. This one doesn't need a ring to be mapped, and
can be used earlier.
2020-05-03 17:23:14 +00:00
bouyer
49ecdbbc37 If hvm_start_info has no memmap_entries, fall back to XENMEM_memory_map
hypercall.
2020-05-03 17:22:03 +00:00
christos
27459b53fd PR/54435: Adjust for new kernel behavior of soreceive(9) clearing MSG_OOB
when receiving the oob message. This made SIOCATMARK return always 0 since
the oob message was cleared. Instead, use recvmsg(2) to determine if
the message was oob or not. This works with both the old and new kernel
and it is not racy.
2020-05-03 16:32:16 +00:00
christos
f553ec2782 (foo *) 0 -> NULL
int -> ssize_t/size_t
2020-05-03 16:11:06 +00:00
jdolecek
eb137e54ca return EOPNOTSUPP for unknown IP protocol (same as unknown ethernet type),
so that EINVAL is returned only when the packet is too short
2020-05-03 16:10:26 +00:00
skrll
7f91a39bb5 Even more trailing whitespace 2020-05-03 15:29:22 +00:00
skrll
94eade6946 More trailing whitespace 2020-05-03 15:27:06 +00:00