Commit Graph

248028 Commits

Author SHA1 Message Date
msaitoh
2611132dfa regen. 2017-01-15 04:44:01 +00:00
msaitoh
54c6a640e7 Add Intel 200 series chipset devices from "Table 2-2. PCH-H Device and
Revision ID Table, Intel 200 Series Chipset Family Platform Controller
Hub(PCI) Datasheet Volume 1 of 2 (335192-001)".
2017-01-15 04:43:27 +00:00
msaitoh
1f29083405 regen. 2017-01-15 03:49:43 +00:00
msaitoh
523877e8d7 Add Core 7G devices from "7th Generation Intel Processor Families for
{S, U/Y, H} Platforms Datasheel Volume 2 of 2" (S: 335196-001, U/Y: 334662-002,
H: 335191-001). For 0x5906 (U processor, HD Graphics 610), it's taken from
ark.inte.com.
2017-01-15 03:49:09 +00:00
pgoyette
163337a16d We no longer need ioconf.c - remove it to avoid "defined but not used"
compiler error.
2017-01-15 01:48:05 +00:00
maya
f6be953d31 use a bound string copy 2017-01-15 01:47:24 +00:00
maya
8341f84221 use a bound string copy 2017-01-15 01:28:14 +00:00
nat
46500ac1bd Forgot not to decrement sc_opens on unsuccessful open. 2017-01-15 00:04:01 +00:00
sjg
c3ec6594d3 Allow providing a utc value to :{gm,local}time
Reviewed by: christos
2017-01-14 22:58:04 +00:00
christos
b4cc495b2a protect against multiple inclusion. 2017-01-14 22:24:43 +00:00
christos
213f09a410 don't include machine/param.h <sys/param.h> already does WTF? 2017-01-14 22:19:29 +00:00
christos
4580c9c1dc Undo; the correct fix was applied in csu/arch/alpha/crtbegin.h 2017-01-14 21:58:17 +00:00
christos
48ad5593f8 there is no <string.h> in standalone code; should be getting strcpy from
libkern.
2017-01-14 21:57:20 +00:00
pgoyette
0792f962a8 Don't call the drvctl module's initialization code during rump component
initialization.  Instead, temporarily attach the drvctl's cdevsw to
determine its device c-major, create the /dev/drvctl node using that
c-major, and then detach.  This leaves things in a state where normal
module initialization can run.

Since we're now creating the /dev/drvctl device node correctly, we don't
need to create it again.  So mark the device as DEVNODE_DONTBOTHER in
the devsw_conv0 conversion table.

This bug was introduced more than a year ago (src/sys/kern/kern_drvctl.c
rev 1.40), but was silently ignored except when running a rump_server
built with LOCKDEBUG.
2017-01-14 21:36:58 +00:00
christos
e06c26e434 belatedly fix constants for ppc64 (this does not define __arch64__ like sparc
does?)
2017-01-14 21:33:09 +00:00
christos
8009d72ee0 Add PPC64 2017-01-14 21:29:02 +00:00
christos
26c11e6fec Don't error out for psabi. 2017-01-14 21:20:39 +00:00
pgoyette
19c83516ef Add an entry to discuss association of a kernel with its specific modules.
Prompted by recent Email discussion started by wiz (there have been many
earlier discussions on this topic, too).
2017-01-14 21:18:40 +00:00
christos
2162d23666 PR/51874: Ngie Cooper: Add __unused to signal handlers 2017-01-14 21:08:17 +00:00
christos
32eb699ff6 PR/51873: Ngie Cooper: add util.h #include 2017-01-14 20:59:23 +00:00
christos
468d6e2ffc PR/51872: Ngie Cooper: call sem_unlink after :basic and :child 2017-01-14 20:58:20 +00:00
christos
153621e321 PR/51871: Ngie Cooper: add fcntl.h for O_* fcntl/open constants 2017-01-14 20:57:24 +00:00
christos
dcc3af2fc9 PR/51868: Ngie Cooper: mkfifo does not return an fd 2017-01-14 20:55:26 +00:00
christos
5f5a00ced0 PR/51867: Ngie Cooper: misc cleanups 2017-01-14 20:52:42 +00:00
christos
80210e1441 Pr/51866: Ngie Cooper: fix leak and release limit on memory to prevent
false positives with mlock/mmap
2017-01-14 20:51:13 +00:00
dholland
07710e15fb note that the first step on the buffercache is to disentangle the buffer
cache and the buffer I/O path.
2017-01-14 20:50:15 +00:00
christos
cd517fb06c PR/51815: Ngie Cooper: don't leak dlopen'ed handle 2017-01-14 20:49:24 +00:00
christos
b318113857 PR/51825: Ngie Cooper: use the non _ version of the macro 2017-01-14 20:47:41 +00:00
christos
c3359ffa01 PR/51876: Ngie Cooper: kyua 0.11 $TMPDIR fixes 2017-01-14 20:45:16 +00:00
christos
8684dbb301 PR/51875: Ngie Cooper: portability fixes 2017-01-14 20:43:52 +00:00
nat
bfd0925ed4 Increment sc_opens only after channel is set up.
It should help PR kern/51746: Panics from audio.
2017-01-14 20:05:37 +00:00
kamil
c52f1ed048 Fix generation of PTRACE_LWP_EXIT event
Set p_lwp_exited instead of p_lwp_created for PTRACE_LWP_EXIT.

This made the lwp_exit1 ATF test passing.

Sponsored by <The NetBSD Foundation>
2017-01-14 19:32:10 +00:00
kamil
ac2c008382 Add additional check for pe_report_event in lwp_{create,exit}1
This caught bug that currently PTRACE_LWP_EXIT is reported as
PTRACE_LWP_CREATE.

Sponsored by <The NetBSD Foundation>
2017-01-14 19:17:10 +00:00
maya
f959afb267 reorganize the code so we test if open fails at the open call.
this doesn't actually make a functional difference as ftruncate can
handle it, but it's a bit clearer and appeases static analyzers.

ok riastradh
2017-01-14 18:35:43 +00:00
maya
be48413a3c Be explicit about how we're placing part of the on-disk name into
the extension, so it doesn't appear like we are overrunning an array.
Appeases coverity, NFC.

ok riastradh
2017-01-14 17:17:53 +00:00
martin
1ed40762bd Avoid gcc warnings 2017-01-14 17:14:23 +00:00
maya
fe2925feed appease coverity by using strlcpy instead of strncpy
ok riastradh
2017-01-14 16:34:44 +00:00
christos
1990f7e47c cast return value 2017-01-14 16:21:28 +00:00
martin
d8e142070e Avoid stupid gcc redefinition warnings by #undef before redefine. 2017-01-14 16:15:10 +00:00
christos
c22e861866 define empty bodies for incomplete implementations 2017-01-14 16:12:51 +00:00
christos
6802e8e0b8 remove dup definitions 2017-01-14 16:07:53 +00:00
christos
21ad29ec97 fix constant types 2017-01-14 15:58:11 +00:00
christos
9d493e3dc8 remove useless include; asm.h is not useful for c files. our current assumption
is that stuff in cdefs.h is duplicated in asm.h.
2017-01-14 15:50:24 +00:00
wiz
13cf5641ee Wording, macro use. 2017-01-14 14:33:18 +00:00
martin
56f34142db Include <string.h> for strcpy 2017-01-14 12:45:28 +00:00
martin
840c51e6d0 Make the copies of the FE_* macros match verbatim to avoid a gcc warning
when both ieeefp.h and fenv.h are included.
2017-01-14 12:00:13 +00:00
kamil
c2476a0996 Document PTRACE_LWP_CREATE and PTRACE_LWP_EXIT in ptrace(2)
Sponsored by <The NetBSD Foundation>
2017-01-14 07:17:38 +00:00
kamil
6b5f5581b3 Document TRAP_LWP in siginfo(2)
TRAP_LWP - process lwp (thread) traps

Sponsored by <The NetBSD Foundation>
2017-01-14 06:55:40 +00:00
kamil
b501ce61ac Document the latest ptrace(2) and siginfo(2) additions:
Added new entries:
        ptrace(2): Add new options in EVENT_MASK: PTRACE_LWP_CREATE and
                PTRACE_LWP_EXIT
        siginfo(2): Add new si_code for SIGTRAP: TRAP_LWP

Sponsored by <The NetBSD Foundation>
2017-01-14 06:51:02 +00:00
kamil
6413a1acf0 Introduce PTRACE_LWP_{CREATE,EXIT} in ptrace(2) and TRAP_LWP in siginfo(5)
Add interface in ptrace(2) to track thread (LWP) events:
 - birth,
 - termination.

The purpose of this thread is to keep track of the current thread state in
a tracee and apply e.g. per-thread designed hardware assisted watchpoints.

This interface reuses the EVENT_MASK and PROCESS_STATE interface, and
shares it with PTRACE_FORK, PTRACE_VFORK and PTRACE_VFORK_DONE.

Change the following structure:

typedef struct ptrace_state {
        int     pe_report_event;
        pid_t   pe_other_pid;
} ptrace_state_t;

to

typedef struct ptrace_state {
        int     pe_report_event;
        union {
                pid_t   _pe_other_pid;
                lwpid_t _pe_lwp;
        } _option;
} ptrace_state_t;

#define pe_other_pid    _option._pe_other_pid
#define pe_lwp          _option._pe_lwp

This keeps size of ptrace_state_t unchanged as both pid_t and lwpid_t are
defined as int32_t-like integer. This change does not break existing
prebuilt software and has minimal effect on necessity for source-code
changes. In summary, this change should be binary compatible and shouldn't
break build of existing software.


Introduce new siginfo(5) type for LWP events under the SIGTRAP signal:
TRAP_LWP. This change will help debuggers to distinguish exact source of
SIGTRAP.


Add two basic t_ptrace_wait* tests:
lwp_create1:
    Verify that 1 LWP creation is intercepted by ptrace(2) with
    EVENT_MASK set to PTRACE_LWP_CREATE

lwp_exit1:
    Verify that 1 LWP creation is intercepted by ptrace(2) with
    EVENT_MASK set to PTRACE_LWP_EXIT

All tests are passing.


Surfing the previous kernel ABI bump to 7.99.59 for PTRACE_VFORK{,_DONE}.

Sponsored by <The NetBSD Foundation>
2017-01-14 06:36:52 +00:00