Sepherosa Ziehau [Sat, 26 Jul 2008 15:46:18 +0000 (15:46 +0000)]
MFC rev 1.89
Bring following change from FreeBSD (yar@freebsd.org):
uipc_syscall.c rev 1.154
If connect(2) has been interrupted by a signal and therefore the
connection is to be established asynchronously, behave as in the
case of non-blocking mode:
- keep the SS_ISCONNECTING bit set thus indicating that
the connection establishment is in progress, which is the case
(clearing the bit in this case was just a bug);
- return EALREADY, instead of the confusing and unreasonable
EADDRINUSE, upon further connect(2) attempts on this socket
until the connection is established (this also brings our
connect(2) into accord with IEEE Std 1003.1.)
Tested-by: y0netan1@
Reviewed-by: hsu@
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1079>
Sascha Wildner [Mon, 7 Jul 2008 15:34:48 +0000 (15:34 +0000)]
Sync with HEAD.
Sascha Wildner [Tue, 3 Jun 2008 09:41:55 +0000 (09:41 +0000)]
MFC r1.8:
Fix a crash when "Arctic Ocean" was selected.
Taken-from: FreeBSD
Sepherosa Ziehau [Sun, 1 Jun 2008 04:28:35 +0000 (04:28 +0000)]
MFC: acx111.c rev 1.14
acx111 parts can't send using short slot time, but it seems to have no problem
to receive packets sent using short slot time. Turn on short slot time
support, so that we don't prevent other STA from using short slot time.
Sepherosa Ziehau [Sun, 1 Jun 2008 04:27:53 +0000 (04:27 +0000)]
MFC: acxcmd.c rev 1.11
Use 1Mbits/s as beacon sending rate; it seems to fix TX performance issue
when using acx(4) as hostap.
Sepherosa Ziehau [Sat, 31 May 2008 13:16:31 +0000 (13:16 +0000)]
MFC: if_acx.c rev 1.28
Reduce log verbosity
Sascha Wildner [Tue, 27 May 2008 12:14:20 +0000 (12:14 +0000)]
Sync with HEAD.
Sascha Wildner [Sun, 25 May 2008 08:22:39 +0000 (08:22 +0000)]
MFC r1.5:
Make c89 work by using 'cc' as execv()'s argv[0] to satisfy objformat.
Hasso Tepper [Thu, 22 May 2008 07:19:33 +0000 (07:19 +0000)]
MFC rev 1.9
The char dummy must be dummy[2] to accomodate a nul terminator when dealing
with a degenerate buffer size.
Hasso Tepper [Thu, 22 May 2008 07:10:57 +0000 (07:10 +0000)]
MFC: strspn.c rev 1.5 and strcspn.c rev 1.5
Fix str[c]spn off by one error.
Matthew Dillon [Fri, 9 May 2008 15:38:32 +0000 (15:38 +0000)]
MFC - Fix a nasty memory corruption issue related to the kernel's use
of the FP registers for large copies.
Hasso Tepper [Fri, 9 May 2008 12:26:04 +0000 (12:26 +0000)]
MFC rev 1.12:
Make the code we're running under total signal mask as short as possible.
Sascha Wildner [Sun, 4 May 2008 17:12:14 +0000 (17:12 +0000)]
MFC r1.8:
Adjust to our current directory layout on pkgbox.
Reported-by: aggelos and others
Matthew Dillon [Sat, 19 Apr 2008 16:34:34 +0000 (16:34 +0000)]
Bump sub-versions to 1.12.2
Peter Avalos [Sat, 19 Apr 2008 15:02:52 +0000 (15:02 +0000)]
Fix for CVE-2008-1657:
"OpenSSH before 4.9 allows remote authenticated users to bypass the
sshd_config ForceCommand directive by modifying the .ssh/rc session file."
Obtained-from: OpenBSD
Peter Avalos [Sat, 19 Apr 2008 04:09:23 +0000 (04:09 +0000)]
Fix for CVE-2008-1483.
Obtained-from: FreeBSD
Matthew Dillon [Wed, 16 Apr 2008 23:29:11 +0000 (23:29 +0000)]
MFC prototype for sreadahead(), for M4 lib support.
Peter Avalos [Wed, 16 Apr 2008 23:15:45 +0000 (23:15 +0000)]
Update to bzip-1.0.5 which fixes CVE-2008-1372.
Matthew Dillon [Wed, 16 Apr 2008 18:07:48 +0000 (18:07 +0000)]
MFC - Fix some issues in libthread_xu's condvar implementation.
Matthew Dillon [Wed, 16 Apr 2008 18:05:09 +0000 (18:05 +0000)]
MFC - Fix a bug in umtx_sleep().
Matthew Dillon [Wed, 16 Apr 2008 18:00:47 +0000 (18:00 +0000)]
MFC: Don't free held clean pages when asked to clean.
Matthew Dillon [Wed, 16 Apr 2008 17:58:31 +0000 (17:58 +0000)]
MFC - Fix ktrace for threaded processes.
Matthew Dillon [Wed, 16 Apr 2008 17:45:18 +0000 (17:45 +0000)]
MFC cpdup 1.09 w/ parallelization feature.
Hasso Tepper [Tue, 15 Apr 2008 23:48:51 +0000 (23:48 +0000)]
MFC rev 1.4
Add libc support for gcc stack protector. Compatibility with gcc34 propolice
is preserved.
Matthew Dillon [Tue, 15 Apr 2008 01:22:58 +0000 (01:22 +0000)]
MFC add __sreadahead() (and repo branch sreadahead.c)
branch-fixup [Tue, 15 Apr 2008 01:16:14 +0000 (01:16 +0000)]
Add files from parent branch HEAD:
lib/libc/stdio/sreadahead.c
Sascha Wildner [Tue, 1 Apr 2008 15:24:19 +0000 (15:24 +0000)]
MFC r1.4:
Make the value of PTT_RELAY_SID match the RFC.
This fixes problems with relayed PPPoE.
Reported-by: Jordan Gordeev <jgordeev@dir.bg>
Taken-from: FreeBSD
Sascha Wildner [Mon, 24 Mar 2008 12:56:59 +0000 (12:56 +0000)]
Sync with HEAD.
Aggelos Economopoulos [Sun, 16 Mar 2008 11:24:21 +0000 (11:24 +0000)]
MFC: The i386/amd64 abi specifies that the direction flag must be
clear on function entry. Newer versions of gcc (>=4.3) depend on
this behavior (and reportedly so does icc), so make sure the flag
is clear when running a signal handler.
Requested-by: joerg@
Hasso Tepper [Tue, 11 Mar 2008 10:54:46 +0000 (10:54 +0000)]
Fix buffer overflow in ppp command prompt parsing (OpenBSD errata 2008-009).
Obtained-from: OpenBSD
Hasso Tepper [Mon, 10 Mar 2008 13:41:32 +0000 (13:41 +0000)]
MFC: rev 1.2
Fix incomplete stack traces by gdb.
Hasso Tepper [Mon, 10 Mar 2008 13:30:36 +0000 (13:30 +0000)]
MFC:
Remove #ifndef __cplusplus around wchar related stuff in include/wchar.h
and sys/sys/stdint.h headers. It allows to build libstdc++ with std::w*
(wstring, wint_t etc) support.
Amongst others fixes building boost libraries with g++41.
Sascha Wildner [Sat, 8 Mar 2008 11:29:48 +0000 (11:29 +0000)]
Sync with HEAD.
Matthew Dillon [Thu, 6 Mar 2008 21:40:19 +0000 (21:40 +0000)]
Bump to 1.12.1
Matthew Dillon [Tue, 4 Mar 2008 19:25:36 +0000 (19:25 +0000)]
MFC use-after-free case patch.
branch-fixup [Tue, 4 Mar 2008 19:23:05 +0000 (19:23 +0000)]
Add files from parent branch HEAD:
usr.sbin/sendmail/srvrsmtp.c.patch
Thomas E. Spanjaard [Fri, 29 Feb 2008 22:17:08 +0000 (22:17 +0000)]
MFC 1.17:
Remove unmatched crit_exit() from dsp_ioctl(). A critical section
was never entered before, and it doesn't seem necessary to have one
either. This prevents a panic from happening when you operate mixer
ioctls on /dev/dsp.
Requested-by: swildner@
Matthew Dillon [Fri, 22 Feb 2008 18:43:00 +0000 (18:43 +0000)]
MFC 1.87 - add ownership check when dumping core.
Hasso Tepper [Thu, 21 Feb 2008 22:43:32 +0000 (22:43 +0000)]
MFC: Fix pf and ipfilter module loading checks.
Hasso Tepper [Thu, 21 Feb 2008 13:20:30 +0000 (13:20 +0000)]
MFC: Add _SC_NPROCESSORS_CONF and _SC_NPROCESSORS_ONLN variables to the
sysconf(3). These are nonstandard, but implemented in many systems.
Matthew Dillon [Mon, 18 Feb 2008 19:50:03 +0000 (19:50 +0000)]
MFC main.c.patch (just tag it) and Makefile adjustments for fix to
use-after-free bug in sendmail 8.14.2.
branch-fixup [Mon, 18 Feb 2008 19:47:32 +0000 (19:47 +0000)]
Add files from parent branch HEAD:
usr.sbin/sendmail/main.c.patch
Sascha Wildner [Sun, 17 Feb 2008 21:30:14 +0000 (21:30 +0000)]
MFC: Remove more (x)ntpd remains.
Matthew Dillon [Sat, 16 Feb 2008 20:50:45 +0000 (20:50 +0000)]
MFC 1.6 - fix bug in random noise injector that could cause the thread to
stall.
Matthew Dillon [Sat, 16 Feb 2008 20:49:28 +0000 (20:49 +0000)]
MFC 1.13 - allow hostnames which begin with a digit.
Sepherosa Ziehau [Thu, 14 Feb 2008 13:06:22 +0000 (13:06 +0000)]
MFC if_acx.c rev 1.26 and bwimac.c rev 1.12:
Release serializer around firmware_load_image() to avoid possible dead
lock. Add comment about it.
Sepherosa Ziehau [Thu, 14 Feb 2008 13:02:21 +0000 (13:02 +0000)]
MFC rev 1.10:
Initialize firmware image tailq
Matthias Schmidt [Thu, 14 Feb 2008 08:39:46 +0000 (08:39 +0000)]
Merge:
Remove some more leftovers from _ntp and add _sdpd where necessary.
Matthias Schmidt [Tue, 12 Feb 2008 23:02:24 +0000 (23:02 +0000)]
Merge rev 1.4:
Oops. its index.cgi, not index.php
Matthias Schmidt [Tue, 12 Feb 2008 22:54:25 +0000 (22:54 +0000)]
Merge rev 1.3:
Correct two links
Matthias Schmidt [Tue, 12 Feb 2008 22:12:08 +0000 (22:12 +0000)]
Merge rev 1.3:
Don't overwrite dma(8)'s config files.
Hasso Tepper [Tue, 12 Feb 2008 21:49:33 +0000 (21:49 +0000)]
MFC rev 1.2
- Install bthcid.conf.
- Don't overwrite bthcid.conf and hosts.
- Use permissions which make sense.
Matthias Schmidt [Tue, 12 Feb 2008 16:15:22 +0000 (16:15 +0000)]
MFC Rev 1.4.
Adjust for 1.12
Matthias Schmidt [Tue, 12 Feb 2008 16:11:45 +0000 (16:11 +0000)]
test
Hasso Tepper [Tue, 12 Feb 2008 14:46:28 +0000 (14:46 +0000)]
MFC rev 1.5
Update to the version
2008020400.
Matthew Dillon [Tue, 12 Feb 2008 02:48:16 +0000 (02:48 +0000)]
Release Engineering: release branch adjustments
* version, subversion, sync newvers.sh, mdoc.local
Matthew Dillon [Tue, 12 Feb 2008 02:12:18 +0000 (02:12 +0000)]
Release engineering, Add a slip target to /usr/src/Makefile for 1.12 and
add a cvsup example file for 1.12.
Matthew Dillon [Tue, 12 Feb 2008 02:09:24 +0000 (02:09 +0000)]
Bump to 1.11.1 prior to 1.12 branch and update the preview tag.
Matthew Dillon [Tue, 12 Feb 2008 02:06:12 +0000 (02:06 +0000)]
Adjust nrelease to a new package set.
Rebuild the installer, bootstrap, and other packages from pkgsrc, and
make the resulting binary packages available to the nrelease build.
No modifications to the pkgsrc installer have been made but it now uses
a more up-to-date support gettext.
Simon Schubert [Mon, 11 Feb 2008 22:50:12 +0000 (22:50 +0000)]
Report the last error code when searching for a tap device.
Sascha Wildner [Mon, 11 Feb 2008 20:10:23 +0000 (20:10 +0000)]
Fix WARNS6: mark s as unused.
Sascha Wildner [Mon, 11 Feb 2008 20:09:42 +0000 (20:09 +0000)]
Fix WARNS6: values_len is size_t, thus n must be unsigned.
Sascha Wildner [Mon, 11 Feb 2008 19:57:30 +0000 (19:57 +0000)]
Clean up remains of the umsm(4) -> ugensa(4) renaming.
Hasso Tepper [Mon, 11 Feb 2008 18:13:58 +0000 (18:13 +0000)]
umsm(4) -> ugensa(4) as it makes much more sense - there is nothing Qualcomm
MSM chipset specific in the driver. Manpage is rewritten in progress.
Matthew Dillon [Mon, 11 Feb 2008 16:56:53 +0000 (16:56 +0000)]
Make the Brother HL1240 printer work with ulpt.
Submitted-by: Joe Talbott <josepht@cstone.net>
Nuno Antunes [Mon, 11 Feb 2008 16:42:39 +0000 (16:42 +0000)]
Fix arprequest serialization.
arprequest() calls ifp->if_output() without locally grabbing the
respective serializer, so ASSERT_SERIALIZED at the beginning of the
function.
Grab the serializer at arp_rtrequest() when it calls arprequest().
Reviewed-by: sephe@
Matthias Schmidt [Mon, 11 Feb 2008 16:01:11 +0000 (16:01 +0000)]
Remove link to FreeBSD porters handbook and to removed version example.
Matthias Schmidt [Mon, 11 Feb 2008 15:59:37 +0000 (15:59 +0000)]
Mention our handbook instead of FreeBSDs.
Sascha Wildner [Mon, 11 Feb 2008 00:27:31 +0000 (00:27 +0000)]
Clarify that KTR_VERBOSE is needed for verbose mode.
Sascha Wildner [Sun, 10 Feb 2008 23:35:30 +0000 (23:35 +0000)]
Fix include file name.
Sascha Wildner [Sun, 10 Feb 2008 22:53:22 +0000 (22:53 +0000)]
Point to our handbook.
Sascha Wildner [Sun, 10 Feb 2008 22:46:02 +0000 (22:46 +0000)]
Point to our handbook.
Sascha Wildner [Sun, 10 Feb 2008 22:34:25 +0000 (22:34 +0000)]
Remove old cvsup examples.
Sascha Wildner [Sun, 10 Feb 2008 22:32:19 +0000 (22:32 +0000)]
Oops, forgotten part in last commit.
Sascha Wildner [Sun, 10 Feb 2008 22:25:36 +0000 (22:25 +0000)]
Clean up and update our supfile examples.
Remove most FreeBSD supfiles and keep FreeBSD-cvs-supfile (renamed to
FreeBSD-supfile, like OpenBSD and NetBSD).
Matthew Dillon [Sun, 10 Feb 2008 18:58:23 +0000 (18:58 +0000)]
HAMMER 28A/many: Translation and write performance optimizations
* Cache a buffer's virtual (zoneX->zone2) translation to avoid unnecessary
re-translations when a hot-cached buffer is available.
* Use the sequential heuristic provided by the kernel to detect sequential
writes and call bawrite() instead bdwrite() in such cases. This
prevents the buffer cache from hitting slow fallback cases and
completely solves the write performance issue.
Note that the undo fifo is not yet in place and performance will drop
slightly once it is, but what you see now is basically what you're gonna
get in the final.
* Performance is now on par with UFS.
Simon Schubert [Sun, 10 Feb 2008 13:45:21 +0000 (13:45 +0000)]
Yield after processing a couple of vnodes to avoid running too long.
This fixes the stuttering of xmms et al when sync is running.
Sepherosa Ziehau [Sun, 10 Feb 2008 11:14:25 +0000 (11:14 +0000)]
tcp_output_dispatch() is only used by SMP kernel
Noticed-by: swildner@
Sascha Wildner [Sun, 10 Feb 2008 11:13:50 +0000 (11:13 +0000)]
Remove obsolete header file.
Matthias Schmidt [Sun, 10 Feb 2008 11:01:46 +0000 (11:01 +0000)]
o Convert search string to lowercase to allow case-insensitive matching.
o Fix non-meaningful example in man page.
Matthew Dillon [Sun, 10 Feb 2008 09:51:01 +0000 (09:51 +0000)]
HAMMER 28/many: Implement zoned blockmap
* Implement a zoned blockmap. Separate B-Tree nodes, records, small blocks
of data, and large blocks of data into their own zones. Use 8MB large
blocks, 32-byte blockmap entry structures, and two layers to support
59 bits (512 petabytes).
* Create a temporary freeblock allocator so the blockmap can be tested.
It just allocates sequentially and asserts when it hits the end of the
volume. This will be replaced with a real freeblock allocator soon.
* Clean up some of the mess I created from the temporary fifo mechanism
that had been put in-place to test the major rewiring in 27.
* Adjust newfs_hammer. The 'hammer' utility has not yet been adjusted
(it can't decode blockmaps yet but will soon).
Sepherosa Ziehau [Sun, 10 Feb 2008 07:29:27 +0000 (07:29 +0000)]
- Turn on IFM_HDX
- If unknown SR values are encountered, return immediately
Peter Avalos [Sun, 10 Feb 2008 00:32:53 +0000 (00:32 +0000)]
It's confusing to say that "Command Queueing Supported" just based
upon the scsi flag validity field. Instead, just say "Command Queueing Enabled"
when it is- otherwise remain mute.
Obtained-from: FreeBSD
Peter Avalos [Sun, 10 Feb 2008 00:01:03 +0000 (00:01 +0000)]
Make CAM_NEW_TRAN_CODE default.
As previously mentioned, this makes a huge performance difference for one
of my disks, and future work depends on this change.
Obtained-from: FreeBSD
Peter Avalos [Sat, 9 Feb 2008 18:35:32 +0000 (18:35 +0000)]
Merge from vendor branch TNFTP:
Sync tnftp with NetBSD:
Rename HAVE_STRUCT_SOCKADDR_SA_LEN to HAVE_STRUCT_SOCKADDR_IN_SIN_LEN
to accurately reflect the structure member being used.
Turn off the alarmtimer before resetting the SIGALRM handler back to SIG_DFL.
Peter Avalos [Sat, 9 Feb 2008 18:35:32 +0000 (18:35 +0000)]
Sync tnftp with NetBSD:
Rename HAVE_STRUCT_SOCKADDR_SA_LEN to HAVE_STRUCT_SOCKADDR_IN_SIN_LEN
to accurately reflect the structure member being used.
Turn off the alarmtimer before resetting the SIGALRM handler back to SIG_DFL.
Peter Avalos [Sat, 9 Feb 2008 18:13:13 +0000 (18:13 +0000)]
MPSAFE locking for the ahc/ahd drivers using lockmgr locks.
Obtained-from: FreeBSD
Matthias Schmidt [Sat, 9 Feb 2008 17:12:05 +0000 (17:12 +0000)]
Add space to correctly align Office and Office phone.
Before:
Login Name TTY Idle Login Time Office Phone
matthias Matthias Schmidt *v0 5 Sat 16:01 C4347 282-1591
After:
Login Name TTY Idle Login Time Office Phone
matthias Matthias Schmidt *v0 5 Sat 16:01 C4347 282-1591
Matthias Schmidt [Sat, 9 Feb 2008 15:29:26 +0000 (15:29 +0000)]
Remove superfluous ,
Sepherosa Ziehau [Sat, 9 Feb 2008 13:38:03 +0000 (13:38 +0000)]
In TCP PRU_CONNECT handling, install inp's route with the route entry on the
correct CPU:
If the TCP connection's target port is not tcp_thread[0]'s port on which TCP
PRU_CONNECT is processed, then
- In tcp_connect(), the route entry installed in inp's route by in_pcbladdr()
is freed, so the next fix could take effect.
- In tcp_usr_connect(), tcp_output() is dispatched to the connection's target
port to be called, so the route entry on the connection's target CPU will
be installed in inp's route.
Approved-by: dillon@
Nicolas Thery [Sat, 9 Feb 2008 11:40:12 +0000 (11:40 +0000)]
Add readelf(1) in SEE ALSO.
Sascha Wildner [Sat, 9 Feb 2008 09:45:03 +0000 (09:45 +0000)]
Move text which is not part of .Fa to the next line.
Sascha Wildner [Sat, 9 Feb 2008 09:32:05 +0000 (09:32 +0000)]
Move text which is not part of .Fa to the next line.
Sascha Wildner [Sat, 9 Feb 2008 02:31:35 +0000 (02:31 +0000)]
Don't break the line before .An.
Sascha Wildner [Sat, 9 Feb 2008 00:28:26 +0000 (00:28 +0000)]
Remove redundant sentence.
Sascha Wildner [Sat, 9 Feb 2008 00:10:29 +0000 (00:10 +0000)]
Add a mountctl(2) manual page.
Hasso Tepper [Fri, 8 Feb 2008 14:26:38 +0000 (14:26 +0000)]
Remove btpin(1), rfcomm_sppd(1) and sdpquery(1) from /usr/sbin.
Hasso Tepper [Fri, 8 Feb 2008 14:06:25 +0000 (14:06 +0000)]
Mobe btpin(1), rfcomm_sppd(1) and sdpquery(1) where they really should be -
into /usr/bin.
Sascha Wildner [Fri, 8 Feb 2008 10:41:43 +0000 (10:41 +0000)]
Remove empty line.
Matthias Schmidt [Fri, 8 Feb 2008 10:17:40 +0000 (10:17 +0000)]
Add 'virtual scrolling' support to moused(8). When holding down the middle
mouse button, motions are interpreted as scrolling.
Besides that, the code contains some whitespace and mdoc cleanup.
Obtained-from: FreeBSD