Commit Graph

211583 Commits

Author SHA1 Message Date
christos
a480a96956 Open and write to ttys using non-blocking I/O to prevent DoS when hardware
or software flow control prevents tty writes or when the tty line is too
slow to respond.
2012-06-05 19:33:17 +00:00
sjg
d8f6b5d3a6 kill(2) is more appropriate and more portable than raise(3) 2012-06-05 17:31:04 +00:00
wiz
1728003ef9 Bump date for previous. 2012-06-05 17:22:01 +00:00
mhitch
cb21df7acc Fix system freeze when trying to write to a raw iSCSI device with MAXPHYS
bytes.  Newfs does large writes when initializing the filesystem.
First, don't copy the head of a TAILQ to make a copy - the first entry will
still point back to the original head.  This caused the ccb list to link to
itself, resulting in a continous loop processing the same ccb and blocked
interrupts.  Use TAILQ_CONCAT() to copy the list.
Next, the ccb disposition was not set in the ccb when the ccb was throttled,
losing the CCBDISP_SCSIPI, so when a throttled ccb was resent, it failed to
call scscipi_done(), and left that I/O hanging.
I am now able to newfs an iSCSI device, was well as issued large writes
using dd.
2012-06-05 16:36:06 +00:00
manu
1d0360b1c9 Add placeholder so that we can later add allbacks without breaking the ABI 2012-06-05 15:04:18 +00:00
wiz
34091835fd Remove trailing whitespace. Use more macros. 2012-06-05 14:17:43 +00:00
tsutsui
0532bb776d Use ${DESTDIR}/usr/mdec for DEFAULT_BOOTDIR on tools fdisk(8)
rather than unknown build host's /usr/mdec directory.

XXX: no option to leave MBR bootcode empty on x86 targets
2012-06-05 13:41:23 +00:00
tsutsui
ac2c5cf13a Invoke MAKEDEV.local via $HOST_SH (default ${HOST_SH:=sh}) instead of
hardcoded "sh" to avoid unexpected errors on cross build hosts in
src/distrib/common/Makefile.makedev etc.

Should fix PR toolchain/46537, ok apb@
2012-06-05 13:20:01 +00:00
sborrill
100e1d86bf Sort vif and vbd device IDs numerically so that attach order does not depend
on the order they are passed in through xenstore. While this works for
hand-crafted Xen configuration files, it does not work for XenServer, XCP or
EC2 instances. This means that adding an extra virtual disk can make the
domU unbootable.

ID is actually based on the Linux device major/minor so this approach isn't
entirely correct (for instance, you can specify devices to be non-contiguous
which doesn't fit too well with our autoconf approach), but it works as a
first approximation.

Tested by me on XenServer and riz@ on EC2. OK bouyer@
2012-06-05 10:58:56 +00:00
abs
1566ab7fba Mention wsconscfg(8) needs WSDISPLAY_COMPAT_USL 2012-06-05 08:49:16 +00:00
martin
7a598c266d Try to estimate the number of locked pages the mincore() test will need and
check it against resource limits, skipping the tests if it probably is too
low.
2012-06-05 08:44:21 +00:00
abs
8f45a59205 Adjust the WSDISPLAY_COMPAT_USL comment to mention wsconscfg, to at least
give a hint that its not just for third party compat. No functional change.
2012-06-05 08:44:07 +00:00
abs
37d94841fa If a port is going to have wscons for virtual terminals then it really makes
sense to enable WSDISPLAY_COMPAT_USL so the system can switch between the
virtual terminals...
2012-06-05 08:41:36 +00:00
martin
f8fdd418df Measure kinfo_proc2::p_vm_vsize in pages, as it was always documented.
This value seems to never have been used anywhere.
This makes it consistent with it's cousin p_vm_msize (which is in pages as
well and has several uses).
2012-06-05 08:23:05 +00:00
sjg
b711398c86 Re-raising SIGINT etc, after running .INTERRUPT
provides much more reliable shutdown on some systems.
Based on CompatInterrupt in FreeBSD's make.
2012-06-05 06:11:51 +00:00
christos
ab0e24a0c8 new bind 2012-06-05 00:57:09 +00:00
christos
672c75b90f Merge bind-9.9.1-P1 to fix:
Processing of DNS resource records where the rdata field is zero length
may cause various issues for the servers handling them.
CVE: CVE-2012-1667
2012-06-05 00:38:45 +00:00
christos
e2fcebd868 bump for bind-9.9.1-P1 2012-06-05 00:37:46 +00:00
christos
f2d8e54f16 don't crash if add_history is called from an empty line. Called from
nslookup in new bind.
XXX: pullup to 6
2012-06-05 00:30:22 +00:00
sjg
5408a8dad9 Fix findenv() to fully match name 2012-06-04 22:45:05 +00:00
riastradh
482b8291f9 Use two separate comments for stub where IN_RENAME was. 2012-06-04 22:01:07 +00:00
joerg
02682f7d23 ANSIfy 2012-06-04 20:56:40 +00:00
sjg
8d38755103 Var_UnExport() and setenv() can both realloc environ.
Use a common variable (savedEnv) to track that to avoid wasting memory.
Also, if providing setenv and unsetenv, do getenv too to ensure a consistent
set.
2012-06-04 20:34:20 +00:00
rkujawa
553cd10b7f Add empb(4) page to distribution list 2012-06-04 20:19:28 +00:00
rkujawa
7e119a70fa Add man page for recently introduced empb(4). 2012-06-04 20:16:57 +00:00
riastradh
b8c3b27f99 Kill the IN_RENAME in-core inode flag in ufs and ext2fs.
Now that rename works we need not to wave this sort of voodoo at it.

ok dholland
2012-06-04 20:13:47 +00:00
riastradh
93765c12f0 Fix typo in comment: bp->b_bcount, not bp->b_count. 2012-06-04 19:58:57 +00:00
riastradh
2881e7e069 Fix ext2fs's scary cross-block directory message too.
(See rev. 1.3 of sys/ufs/ufs/ufs_rename.c for the analysis.)
2012-06-04 19:45:59 +00:00
rkujawa
e38ac060b1 Finally add support for memory space access for empb(4). Buggy but better than nothing. 2012-06-04 19:45:50 +00:00
riastradh
487d92ffe0 Kill scary message about cross-block directories and fix its cause.
Add a bunch of kasserts to check more stringently that ufs_direnter
did not compact across directory blocks.  Don't bother fetching
subsequent I/O blocks from the directory: ufs_lookup guarantees that
it's not necessary, and the kasserts check this to be sure.

The message fired when we were looking at the start of an I/O block,
not when we crossed from the end of one to the start of another.  I
believe it fired only when tulr->ulr_offset was a multiple of the I/O
block size (fs_bsize), which can happen if ufs_lookup either finds an
entry or finds free space at the start of an I/O block.

If ufs_lookup found an entry, none of this ulr recalculation logic
should kick in -- if tvp != NULL, then tulr->ulr_count is garbage, so
it's not merely unnecessary but wrong (although I suspect harmless in
the end) to read it in ufs_rename_overlap_p in consideration of
whether to recalculate fulr.

Discussed with chuq and dholland.

ok dholland
2012-06-04 19:37:36 +00:00
joerg
1fa9b84508 Add cdbr(3) support to tools/compat. 2012-06-04 19:06:45 +00:00
joerg
571103e860 Build getcap.c only once. 2012-06-04 18:53:02 +00:00
christos
4f3e64d772 Import bind 9.9.1-P1 2012-06-04 17:53:08 +00:00
riastradh
3ce4df2ac9 Tidy up some typos and vestiges in comments after the ulr changes. 2012-06-04 16:46:45 +00:00
njoly
0e4029fbef Small spacing fix. Unbreaks section in xref. 2012-06-04 14:24:03 +00:00
rkujawa
fca4069ffb Fix PCI interrupt handling on empb. Also, continue work on memory accesses. Now empb is good enough to handle satalink! 2012-06-04 12:56:48 +00:00
joerg
4b38c823d2 Make Alan Barrett happy and add (). 2012-06-04 10:18:01 +00:00
rmind
79afee64f7 npftest: add a module for TCP state tracking and add few test cases. 2012-06-04 00:28:34 +00:00
wiz
cad559dd33 Fix typos. 2012-06-04 00:26:29 +00:00
joerg
fc67b0cd11 Switch terminfo(3) to cdb(5). 2012-06-03 23:19:09 +00:00
joerg
1907ec3a61 Switch device database to cdb(5). Rework ttyname(3) and ttyname_r(3) to
depend on new devname_r(3) as heart. Add /dev/pts magic directly to
devname(3). While it can lead to returning non-existing paths, the
behavior is more consistent that way. Drop caching layer in devname(3),
it doesn't buy anything for the common case of having access to the
database. Teach devname(3) proper fallback behavior of scanning /dev.
Create both old-style and new-style database for now in /etc/rc.d/sysdb.
2012-06-03 21:42:44 +00:00
joerg
e9c843846e Provide a usable thr_once for !_REENTRANT 2012-06-03 21:27:30 +00:00
joerg
f22837c031 Prototype for cdbw_stable_seeder. 2012-06-03 21:21:45 +00:00
joerg
f7ef3610be Add a special seeder for cdbw_output that gives stable results.
Hook up cdbw(3) for the tool build.
2012-06-03 21:02:50 +00:00
joerg
4f6bb5e029 Add __predict_true / __predict_false definitions. 2012-06-03 21:01:43 +00:00
rmind
227075769a Improve the wording slightly. 2012-06-03 17:12:49 +00:00
wiz
fc4d427c11 Remove superfluous Pp. New sentence, new line. Remove trailing whitespace. 2012-06-03 17:01:21 +00:00
rmind
0d6cd2ebfa rumpvfs:
- ubc_uiomove: avoid the re-lock dance, since the lock is shared these days.
- uvm_aio_aiodone: acquire the lock before modifying the page flags.

Tested by martin@.
2012-06-03 16:46:08 +00:00
dsl
5d8067f580 Use separate temporaries for the 'int' percentage and the 'long'
water marks.
Previous paniced on sparc64 due to a misaligned copy.
2012-06-03 16:23:44 +00:00
dsl
f4005a420d Remove a couple of (void *) casts added in the previous commin.
They aren't needed here (script error).
2012-06-03 13:52:46 +00:00