Commit Graph

248406 Commits

Author SHA1 Message Date
martin
b38640c5c6 Regen for accept4 2017-02-03 06:07:29 +00:00
martin
be06eb4de6 Add accept4 definitions 2017-02-03 06:06:08 +00:00
martin
8bde12d789 Add test program for PR kern/51762 2017-02-02 22:07:33 +00:00
martin
06d5dce161 PR kern/51762: add a test program 2017-02-02 22:07:05 +00:00
uwe
11495586f9 Pass kernend as the start parameter to uvm_page_physload(). This
fixes pmap_steal_memory() as it can now unplug from the start of the
segment.  This might be the right thing to do too as the pages before
kernend are accessed via directly mapped P1, but i need to ask someone
with a clue.  This is also what evbsh3 always did.

Anyway, this at least unbreaks landisk after uvm hotplug fallout.
2017-02-02 21:57:03 +00:00
rin
9e3d987a53 PR port-mac68k/51923
Bump default MAXTSIZ to 32MB for m68k ports, which allos us to use GCC 5.4 on
GENERIC kernels.
Ok jklos
2017-02-02 21:53:54 +00:00
rin
6eadace49f PR port-mac68k/51923
Remove unused SYSPTSIZE and USRPTSIZE from m68k ports.
Ok jklos
2017-02-02 21:50:22 +00:00
uwe
06bb7d7f96 pmap_steal_memory - a few more s/start/avail_start/ fixes for the
hotplug conversion.
2017-02-02 21:35:29 +00:00
uwe
5465d902d6 Add missing spaces in split string literals. 2017-02-02 21:22:08 +00:00
uwe
4777ae6bba pmap_steal_memory - s/start/avail_start/ to fix mistake in the hotplug
conversion.  The kernel now panics (can't unplug memory from the
middle of a segment) instead of triggering a reset.
2017-02-02 21:17:40 +00:00
uwe
b9239b76ad It's completely bogus to pass physmem (i.e. the memory size) as the
"start" parameter to uvm_page_physload().  I guess it never exploded
only because it's the correct "avail_start" that is used.
2017-02-02 21:11:25 +00:00
christos
7e6c542685 add + 2017-02-02 20:49:55 +00:00
christos
8fb3f05024 set 7 and 8 to close on exec. 2017-02-02 20:01:36 +00:00
christos
168f1d4a50 Add fdflags builtin. Discussed with Chet and he has implemented it for
bash too.
2017-02-02 20:00:40 +00:00
macallan
246a181951 support anti-aliased fonts, glyphcache etc. 2017-02-02 19:55:05 +00:00
macallan
a0e93c0528 chipsfb needs glyphcache now 2017-02-02 19:50:35 +00:00
christos
afa63a6672 Who Ride Wit Us? 2017-02-02 19:26:37 +00:00
maxv
7faa8beef7 Fix these comments, we probably won't want to keep them up to date. 2017-02-02 19:12:09 +00:00
maxv
2b26583164 Increase KERNTEXTOFF from 1MB to 2MB on amd64. [1MB; 2MB[ is now handled
by UVM, so there is no physical loss.

On amd64 we always remap the kernel text with 2MB pages, and because of the
1MB start address we were forced to map [0MB; 2MB[ inside the first large
page. The problem is, the lower half is used by UVM to allocate physical
pages, and it is possible that some of these could be used by userland. We
could end up with userland-controllable data mapped into the kernel text on
a privileged page, which is far from being a good idea from a security pov.

I am not fixing i386 yet, because the large page size depends on PAE, and
we probably don't want to have a text located at 4MB on low-memory systems.

(note: I didn't introduce this issue, it was already there when I came in)
2017-02-02 19:09:08 +00:00
christos
3b775e5cd5 declare sockaddr_big; 2017-02-02 18:01:16 +00:00
maxv
7fbd00cfca The first va should depend on the text offset, not the kernel base. Use
rounddown. Note: this value is still wrong, it should be roundup. But
that's another issue that will be fixed in amd64 soon.
2017-02-02 17:37:49 +00:00
christos
8c06ed2feb expose copyout_sockname_sb 2017-02-02 15:37:42 +00:00
christos
98e9e0daa7 implement accept4 2017-02-02 15:36:55 +00:00
christos
c155f74a3f regen 2017-02-02 15:36:12 +00:00
christos
5e0e954523 implement accept4
XXX: mips looks busted (the syscalls file has lots of NOARGS syscalls that
should be STD).
2017-02-02 15:35:46 +00:00
njoly
cada2c18c7 Fix a typo : pthread_mutexaddr_init -> pthread_mutexattr_init. 2017-02-02 10:48:22 +00:00
knakahara
30becc464a remove WM_CORE_LOCK in deferred start routine.
It is enough to check each txq's txq_stopping with
mutex_enter(not mutex_tryenter).

reviewed by ozaki-r@n.o.
2017-02-02 10:29:10 +00:00
nonaka
5ffb0503f3 wlan interfaces make interrupt routine running on softint context.
see http://mail-index.netbsd.org/tech-kern/2016/12/06/msg021281.html

tested device:
 * ath at pci: AR5212, AR5424
 * athn at pci: AR9287
 * ipw at pci: 2100BG
 * iwi at pci: 2915ABG
 * iwm at pci: 3165, 7260, 8260
 * iwn at pci: 4945, 6235
 * ral at pci: RT2560
 * rtwn at pci: RTL8192CE
2017-02-02 10:05:35 +00:00
maxv
a4a4753729 Use __read_mostly on these variables, to reduce the probability of false
sharing.
2017-02-02 08:57:04 +00:00
martin
68068a92f5 PR port-sparc64/51925: cosmetic cleanup, no functional change 2017-02-02 08:12:08 +00:00
msaitoh
e3593d2a92 Modify comment. Use long form. 2017-02-02 05:43:48 +00:00
msaitoh
d94cc7059e Fix typo in comment. 2017-02-02 05:38:59 +00:00
jakllsch
c5b0c4ab5e wpi(4): use MSI if available. 2017-02-02 03:41:22 +00:00
nonaka
4cb74e69ad iwn(4): use MSI if available. 2017-02-02 03:20:19 +00:00
ozaki-r
589739056f Defer some pr_input to workqueue
pr_input is currently called in softint. Some pr_input such as ICMP, ICMPv6
and CARP can add/delete/update IP addresses and routing table entries. For
example, icmp6_redirect_input updates an a routing table entry and
nd6_ra_input may delete an IP address.

Basically such operations shouldn't be done in softint. That aside, we have
a reason to avoid the situation; psz/psref waits cannot be used in softint,
however they are required to work in such pr_input in the MP-safe world.

The change implements the workqueue pr_input framework called wqinput which
provides a means to defer pr_input of a protocol to workqueue easily.
Currently icmp_input, icmp6_input, carp_proto_input and carp6_proto_input
are deferred to workqueue by the framework.

Proposed and discussed on tech-kern and tech-net
2017-02-02 02:52:10 +00:00
chs
e2632a59f3 put back the include of dtrace_bsd.h, it actually is needed. 2017-02-01 21:59:09 +00:00
chs
82ba364bfa fix this module to depend on the solaris module rather than the dtrace module.
remove an unneeded header.
2017-02-01 20:06:21 +00:00
chs
769e07db09 add some missing bits from freebsd r211554:
remove the DOODAD from prochandler().
we are now DOODAD-compatible with current freebsd.
2017-02-01 20:02:22 +00:00
chs
b222cea9e3 implement proc_getlwpstatus() for netbsd using PT_GET_SIGINFO. 2017-02-01 20:01:39 +00:00
jakllsch
9aa5903c8e Use boolean logical and operation on booleans, rather than bitwise and.
From David Binderman in PR kern/51936.
2017-02-01 19:10:33 +00:00
abhinav
4ed98e090f Add missing entries in the NAME section.
These functions are described in the body of the man page but not
mentioned in the NAME section. Without an entry in the NAME section
apropos(1) doesn't get this man page in the results when queried for
one of those functions.

ok from christos.
2017-02-01 18:47:24 +00:00
sjg
693df6904d Since we are avoiding VAR_INTERNAL, allow the variable :_ stores to
to be specified, also allows for multiple stages of modification to
be stashed.
2017-02-01 18:39:27 +00:00
christos
c64104c2e3 PR/51935: David Binderman: bad call to printf
- fix debugging printfs in general.
- KNF
2017-02-01 18:24:22 +00:00
sjg
a4a30cd47c Just have :_ use current ctxt, avoid need to force VAR_INTERNAL. 2017-02-01 18:00:14 +00:00
maxv
1fca26e9a0 Not sure what we are trying to achieve here, but there are two issues;
error can be printed while it is not initialized, and if m_pulldown fails
m is freed and reused.

Quickly reviewed by christos and martin
2017-02-01 17:58:47 +00:00
abhinav
60763e809a Add comma between two Nm entries in the NAME section. 2017-02-01 16:06:19 +00:00
abhinav
d2174aa7ea Add modff and modfl in the NAME section. 2017-02-01 15:57:47 +00:00
abhinav
11aef024b5 Fix a sentence.
Correct function name in the DESCRIPTION section.
2017-02-01 15:49:02 +00:00
abhinav
5f9e091f8e Also, fix spelling of described. 2017-02-01 14:51:29 +00:00
abhinav
6cef231ea2 Fix sentence. 2017-02-01 14:46:51 +00:00