Commit Graph

248316 Commits

Author SHA1 Message Date
kamil a7e8e90e67 Add new test signal8 in t_ptrace_wait{,3,4,6,id,pid}
signal8:
    Verify that masking SIGTRAP in tracee does not stop tracer from
    catching PTRACE_VFORK_DONE breakpoint

This test is marked as broken and linked with PR kern/51918.

Sponsored by <The NetBSD Foundation>
2017-01-27 16:06:23 +00:00
christos 939f67809b propagate deadness. 2017-01-27 15:52:21 +00:00
rin ecb5770e7c Fix build with LLVM, which does not support -mthumb-interwork. 2017-01-27 15:20:31 +00:00
wiz bb66c0074f Spelling fixes. 2017-01-27 12:52:39 +00:00
hannken 748bb65685 Vrecycle() cannot wait for the vnode lock. On a leaf file system this lock
will always succeed as we hold the last reference and prevent further
references.  On layered file systems waiting for the lock would open a can of
deadlocks as the lower vnodes may have other active references.
2017-01-27 10:50:10 +00:00
hannken 3262813bfb Run vflush() when going from read/write to read only.
Set link count to zero once a node has been removed.
"Implement" MNT_GETARGS.
2017-01-27 10:48:51 +00:00
hannken ac23b49f6d Run vflush() when going from read/write to read only. 2017-01-27 10:47:54 +00:00
hannken 6412ef2b99 Handle v_writecount from layer_open(), layer_close() and layer_revoke()
so lower file system vnodes get marked as open for writing.
2017-01-27 10:47:13 +00:00
hannken 8e09b56de2 When called with WRITECLOSE vflush() must sync the vnode and take
care of unlinked but open vnodes.

PR kern/30525 remounting ffs read-only (mount -ur) does not sync metadata.
2017-01-27 10:46:18 +00:00
hannken a9f23b81d0 Add test for read/write to readonly update mount. 2017-01-27 10:45:11 +00:00
abhinav d468dc41e1 Fix spelling of partition. 2017-01-27 10:21:16 +00:00
abhinav f1b8958974 Fix spelling of simultaneous. 2017-01-27 10:12:05 +00:00
ozaki-r a18d81bb89 Unbreak builds of rump libraries with RUMP_LOCKDEBUG 2017-01-27 09:50:47 +00:00
nat 712047004e Revert to previous. Audio passes the test properly again. 2017-01-27 05:14:54 +00:00
nat 4ce86a2f75 Audio passes the ver 1.2 of the atf test again. t_pad_outpuut will be
reverted in a follow up commit.
2017-01-27 05:05:51 +00:00
knakahara 85d89047af add comment about txq->txq_lock contentions in wm_nq_transmit(). 2017-01-27 05:04:47 +00:00
christos eb4e2ff6fe rump does not have ucontext32_t 2017-01-27 03:53:01 +00:00
kamil fa3933b2b8 Add new tests signal[67] in t_ptrace_wait{4,6,id,pid}
signal6:
    Verify that masking SIGTRAP in tracee does not stop tracer from
    catching PTRACE_FORK breakpoint

signal7:
    Verify that masking SIGTRAP in tracee does not stop tracer from
    catching PTRACE_VFORK breakpoint

signal6 fails due to PR kern/51918
signal6 fails due to PR kern/51918 and PR kern/51630

Sponsored by <The NetBSD Foundation>
2017-01-27 00:34:52 +00:00
kamil ac522b683c Add new test signal5 in t_ptrace_wait{,3,4,6,id,pid}
signal5:
    Verify that masking SIGTRAP in tracee does not stop tracer from
    catching exec() breakpoint

signal5 is failing and linked with PR kern/51918

Sponsored by <The NetBSD Foundation>
2017-01-26 22:46:19 +00:00
kamil a34102a3aa Add new test signal4 in t_ptrace_wait{,3,4,6,id,pid}
signal4:
    Verify that masking SIGTRAP in tracee does not stop tracer from
    catching single step trap

signal4 is marked as failing and referenced with PR kern/51918.

Sponsored by <The NetBSD Foundation>
2017-01-26 22:32:48 +00:00
skrll 5366c9f585 Fix logic inversion spotted by paulg 2017-01-26 21:38:11 +00:00
skrll cf1b64a79e Make MP-safe and use kmem(9)
Mostly from rmind-smpnet
2017-01-26 21:13:19 +00:00
kamil a17a9cedbb Add new tests signal[23] in t_ptrace_wait{,3,4,6,id,pid}
signal2:
    Verify that masking SIGTRAP in tracee stops tracer from
    catching this raised signal

signal3:
    Verify that masking SIGTRAP in tracee does not stop tracer from
    catching software breakpoints

signal3 is marked as failing and refrenced with PR kern/51918
Currently signal3 requires code for other architectures than x86_64

Sponsored by <The NetBSD Foundation>
2017-01-26 20:15:44 +00:00
ginsbach 27c9fdd3fa Add virtual routing and forwarding 2017-01-26 19:00:13 +00:00
kamil 7da544b6ff Add new test signal1 in t_ptrace_wait{,3,4,6,id,pid}
signal1:
    Verify that masking single unrelated signal does not stop tracer
    from catching other signals

Sponsored by <The NetBSD Foundation>
2017-01-26 17:03:21 +00:00
christos e4cf317682 provide __HAVE_COMPAT_NETBSD32 and fix multiple include protection consistently. 2017-01-26 15:55:08 +00:00
christos 914b3cbf1a use __HAVE_COMPAT_NETBSD32 2017-01-26 15:54:31 +00:00
wiz fed872eca6 Fix a typo, add a comma. 2017-01-26 13:52:29 +00:00
ryoon 91ab8d2322 Add viornd(4) to virtio(4) man page 2017-01-26 13:38:28 +00:00
knakahara 46ddd00677 fix memory leak at wm_detach.
pointed out and reviewed by msaitoh@n.o.
2017-01-26 10:14:52 +00:00
martin ee2ea00dd5 Restrict the forcing of COMPAT_NETBSD32 to _LP64 kernels - this is probably
not the right thing to do, but unbreaks the build for now.
2017-01-26 08:09:27 +00:00
martin d57a70bd13 No COMPAT_NETBSD32 for rump 2017-01-26 07:54:05 +00:00
pgoyette 34fb8cb604 Add comment about possibly prompting for "release" portion of module
path at boot-loader time.
2017-01-26 04:24:20 +00:00
nat 10bab8a3fa Use sc_pr the mixing ring in full not just the first block.
Audio will pass the atf test again.
2017-01-26 04:15:38 +00:00
christos 9be065fb89 For LOCKDEBUG:
Always provide the location of the caller of the lock as __func__, __LINE__.
2017-01-26 04:11:56 +00:00
nat 7257364421 Don't hold the thread_lock between successive calls to sc_intr as it
breaks mixing.

This will help passing the atf test.  Changes to audio.c to ensue this
will be in a followup commit.
2017-01-26 04:10:27 +00:00
christos 655a10972a always compile in the COMPAT32 code; it is tiny and if we don't it breaks
the modules.
2017-01-26 03:54:54 +00:00
christos 46149e83cc don't return early holding a lock! 2017-01-26 03:54:01 +00:00
nonaka 78d84e817e Fix compile failure on i386 with DEBUG_MEMLOAD. 2017-01-26 01:36:35 +00:00
nonaka b1c9a8a10f Fix compile failure on i386 with PAE. 2017-01-26 01:35:51 +00:00
christos 8b431b6f84 Define MODULAR so we can have syscalls autoload after the module autoloads.
XXX: This is toxic, and currently caused LOCKDEBUG crashes.
2017-01-26 01:32:34 +00:00
kamil 8943353e76 Update TODO.ptrace
Added:
 - reiterate over FreeBSD tests and add missing ones if applicable

Sponsored by <The NetBSD Foundation>
2017-01-26 01:12:13 +00:00
kamil a55086ec09 Update TODO.ptrace
Drop:
 - add ATF tests for PIOD_READ_AUXV

Add new entry:
 - research what happens when a tracee masks signals (including SIGTRAP)
   and a breakpoint is triggered

Sponsored by <The NetBSD Foundation>
2017-01-26 01:04:23 +00:00
jakllsch 15a5ead236 Catch netbsd32_copyargs() up to changes in r1.441 src/sys/kern/kern_exec.c 2017-01-25 21:45:39 +00:00
christos 4705defbf3 es_arglen is already in bytes... 2017-01-25 17:57:14 +00:00
christos 44c43f62df The argument length is in bytes; don't use howmany() 2017-01-25 17:56:45 +00:00
christos 908d408b7e PR/51916: Kamil Rytarowski: Don't multiply es_arglen with ptrsz since it is
already in bytes and contains the maximum possible size:
	ELF_AUX_ENTRIES * sizeof(auxv) + MAXPATHLEN + ALIGN
2017-01-25 17:55:47 +00:00
jakllsch d783875ca2 Improve/fix igsfb(4) support for 15BPP.
Use howmany(depth, NBBY) instead of (depth >> 3), so that 15 bits maps
to 2 bytes instead of 1.

While here, in a nearly-identical change, don't hard-code 8BPP into the
CyberPro blitter.
2017-01-25 17:31:55 +00:00
kamil 231f136ce0 Make the PIOD_READ_AUXV operation more clear
Describe how to set piod_offs.

Sponsored by <The NetBSD Foundation>
2017-01-25 17:12:56 +00:00
kamil 905db9de05 Add io_read_auxv1 in t_ptrace_wait{,3,4,6,id,pid}
io_read_auxv1:
    Verify PT_READ_AUXV called for tracee

Sponsored by <The NetBSD Foundation>
2017-01-25 17:01:57 +00:00