Commit Graph

244043 Commits

Author SHA1 Message Date
dholland b33ce90a0c PR 51384 David Binderman: don't shift into the void 2016-08-01 18:09:50 +00:00
maxv c4ef193adb This panic is wrong. There could be two consecutive clusters below
avail_start.
2016-08-01 16:07:39 +00:00
maxv 607912eebd Don't fail if a module does not have a data or rodata section. Small
modules don't have data.
2016-08-01 15:41:05 +00:00
wiz 3a76e604f5 OpenSSH-7.3 out. 2016-08-01 15:01:49 +00:00
skrll e084e74ccf Re-run mknative 2016-08-01 11:22:34 +00:00
knakahara 56995fecb7 improve fast-forward performance when the number of flows exceeds IPFLOW_MAX.
In the fast-forward case, when the number of flows exceeds IPFLOW_MAX, the
performmance degraded to about 50% compared to the case less than IPFLOW_MAX
flows. This modification suppresses the degradation to 65%. Furthermore,
the modified kernel is about the same performance as the original kernel
when the number of flows is less than IPFLOW_MAX.

The original patch is implemented by ryo@n.o. Thanks.
2016-08-01 10:22:53 +00:00
ozaki-r 466f21f0b9 Fix kernel builds (gcc 4.8) 2016-08-01 04:37:53 +00:00
ozaki-r d7e4cc2a19 Bump kernel version for struct ifaddr change 2016-08-01 03:43:25 +00:00
ozaki-r a403cbd4f5 Apply pserialize and psref to struct ifaddr and its variants
This change makes struct ifaddr and its variants (in_ifaddr and in6_ifaddr)
MP-safe by using pserialize and psref. At this moment, pserialize_perform
and psref_target_destroy are disabled because (1) we don't need them
because of softnet_lock (2) they cause a deadlock because of softnet_lock.
So we'll enable them when we remove softnet_lock in the future.
2016-08-01 03:15:30 +00:00
ozaki-r 74fbff1628 Revert "Revert part of "Switch the address list of intefaces to pslist(9)" (r1.220)"
netstat now uses sysctl instead of kvm(3) to get address information from
the kernel. So we can avoid the issue introduced by the reverted commit
(PR kern/51325) by updating netstat with the latest source code.
2016-08-01 02:50:03 +00:00
dholland 05ce5c4223 Apply patch from PR 43587, mostly from martin and kre. When writing a
sysctl variable using ?= fails with EPERM, don't print an error
message.

Ideally setting a sysctl to the same value it already has should also
not fail regardless of permissions, but this would need to be done in
the kernel.
2016-07-31 23:30:28 +00:00
dholland cf12c76a8b Don't allow initializers of the form { .a = .b = expr } as this is not
valid. Helps a bit with PR 22500.
2016-07-31 22:38:04 +00:00
dholland 096da17405 typo in comment 2016-07-31 22:36:53 +00:00
dholland 7a0e0ec5db PR 38290 Adam Hoka: IXANY should exist for _XOPEN_SOURCE 2016-07-31 21:34:53 +00:00
dholland 585fe4a842 typo in comment 2016-07-31 20:34:04 +00:00
dholland e0ba28d784 Speed limit 80. 2016-07-31 19:33:18 +00:00
dholland d6aeeea295 KNF 2016-07-31 19:22:25 +00:00
dholland b6673285f7 Instead of testing for unsigned < 0, compare before subtracting.
Reset of PR 51297 from David Binderman.
2016-07-31 19:12:41 +00:00
dholland d31a64a071 Don't check for unsigned variables being less than 0 in
patchunwindframe(). Instead, check before subtracting, which in this
case means at the call site.

It would probably be better to change the call signature so the
subtraction happens inside patchunwindframe(), but since I don't
really know exactly what this code is trying to do I'm not comfortable
changing it.

Issue 1 in PR 51297 from David Binderman.
2016-07-31 19:10:54 +00:00
dholland ed2ef35eef PR 51264 Jose Luis Rodriguez Garcia: lfs userland bufcache rehash is broken 2016-07-31 18:27:26 +00:00
dholland fc8d0c1c35 Manipulate the signal masks so signals only arrive while we're waiting,
so they can't illegally reenter libc.

Fixes the problem Greg A. Woods describes in PR 51267, which might or
might not be the original submitter's problem.
2016-07-31 18:14:36 +00:00
dholland 52b3d9565c Don't call variables that are used "dummy". 2016-07-31 17:59:08 +00:00
skrll 42bce04c59 Fix up uarea page mapping compile conditional - we only need code if
USPACE is > PAGE_SIZE.
2016-07-31 15:33:42 +00:00
christos 59c5c6b5ef we require root for sched_fifo, and more verbose messages. 2016-07-31 13:01:29 +00:00
hannken b9214c1c83 Disestablish COW handler on error. No need to do further copies after
the snapshot device failed.

Should fix PR kern/51377: fss(4) panic if snapshot mounted read/write
2016-07-31 12:17:36 +00:00
skrll 34cc9d6537 Whitespace. 2016-07-31 07:06:24 +00:00
dholland 28ccf570bf In bwrite, add assertion that vp != NULL. (vp is the vnode from the
buffer being written.)

There's some logic here that carefully checks for vp being null, and
other logic that will crash if it is. It appears that it's all
needless paranoia. See tech-kern for more info.

Unless someone sees the assertion go off (in which case a lot more
investigation is needed) I or someone will clean out the logic at some
future point.

Spotted by coypu.
2016-07-31 04:05:32 +00:00
pgoyette e8022dfde6 Include rump-vs-host ops files 2016-07-31 02:15:54 +00:00
pgoyette 6be1f10355 Add rump.fssconfig to sets lists 2016-07-31 02:14:12 +00:00
pgoyette d5966167a4 Add rump.fssconfig 2016-07-31 02:13:26 +00:00
pgoyette 2dc75bdc9e Fix variable names in previous 2016-07-30 23:07:23 +00:00
pgoyette 763a6486bb More adaptation of the rump component init, to avoid EEXIST during
regular module initialization.
2016-07-30 22:36:14 +00:00
christos b265873d52 Fix reversed test. 2016-07-30 15:38:17 +00:00
pgoyette 8628665eb6 Update command line parsing to match reality. Only one of -c, -u, or
-l can be specified, and the -x option is available only for -c.
2016-07-30 12:33:27 +00:00
wiz 6333fb3d2f Sort errors. 2016-07-30 11:31:00 +00:00
njoly c38e2c9645 Remove obsolete BUGS section. getsockname(2) report sensible values
for bound UNIX domain sockets.
2016-07-30 11:10:40 +00:00
njoly d3e4dbe2f3 New getsockname(2) testcase for UNIX domain sockets. 2016-07-30 11:03:54 +00:00
skrll 2cf0afbf6c Correct comment 2016-07-30 07:10:42 +00:00
skrll 8d208f6bff Don't always include PARANOIA code 2016-07-30 07:09:03 +00:00
matt 46340a3827 Supply lastvaddr to load_buffer. Fix printf formats. 2016-07-30 06:29:28 +00:00
matt 9939694552 Use register_t for _ds_vaddr 2016-07-30 06:28:05 +00:00
matt df84c45521 KX needs to set on !O32 kernels 2016-07-30 06:27:45 +00:00
matt db60ea7c0d For LP64 and N32 make sure KX is set in the trapframe as well. 2016-07-30 06:20:54 +00:00
dholland b42061f23c stick my neck out for a runnable-but-experimental lfs64 2016-07-30 06:20:14 +00:00
dholland cc620b0609 typo 2016-07-30 06:09:29 +00:00
skrll 2d098c76a5 KASSERT for KX in __mips_n32 as well. 2016-07-30 05:58:15 +00:00
matt 8ce9492b9c Fix typo. N32 doesn't want UX on. 2016-07-30 05:55:34 +00:00
alnsn db4395c55a Don't trigger BJ_ASSERT(false) on invalid BPF_Jxxx opcode in jmp_to_op().
This change helps survive AFL fuzzing without calling bpf_validate() first.

Also change alu_to_op() function to have a similar interface.
2016-07-29 20:29:38 +00:00
pgoyette 64222d3a12 Mount the snapshot read-only; otherwise we get a nasty panic.
Re-order the clean-up steps to properly undo what we did.
2016-07-29 20:27:37 +00:00
palle 5914a139ed scsipi(9): Removed duplicate "for" 2016-07-29 19:27:45 +00:00