Commit Graph

244132 Commits

Author SHA1 Message Date
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
christos ec40c28b64 Use %s+strerro(errno) instead of %m (From Kurt Lidl) 2016-07-29 17:13:09 +00:00
skrll 4dc2832e6a Fix up va for pmap_md_map_ephemeral_page and so that cache ops get the
correct address
2016-07-29 15:43:02 +00:00
skrll 102137de55 more debug 2016-07-29 15:38:05 +00:00
pgoyette 6e4e96b573 Add the real directory as well as the debug directory. 2016-07-29 10:09:38 +00:00
roy 3799d64d34 Sync 2016-07-29 10:07:57 +00:00
pgoyette 9c91731aa4 Add destination directory for new dev/fss test 2016-07-29 09:52:46 +00:00
skrll ee05feec7f Simplify ARM_MMU_EXTENDED #ifdefs
No functional change
2016-07-29 09:47:09 +00:00
nonaka edd893fef7 regen 2016-07-29 07:28:52 +00:00
nonaka 1d5ef3eac5 Add MegaRAID SAS3008 2016-07-29 07:28:19 +00:00
pgoyette fa8676f447 Add files for the new fss(4) test 2016-07-29 07:02:24 +00:00
pgoyette 0c0a621f71 Add a basic test for fss(4)
XXX For now, we just create required files (including mount-points)
XXX in the test's working directory.  Eventually someone with more
XXX rump-foo than I should create a fss rump-component and then update
XXX the test to run under rump.
2016-07-29 06:13:39 +00:00