]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoMFC rtld.c revision 1.124
csjp [Sat, 14 Jul 2007 19:04:00 +0000 (19:04 +0000)]
MFC rtld.c revision 1.124

Unset potentially harmful environment variables.

Discussed on: seacteam
PR: kern/109836

16 years agoMFC: SA-07:05.libarchive.
bmah [Fri, 13 Jul 2007 17:43:49 +0000 (17:43 +0000)]
MFC:  SA-07:05.libarchive.

16 years agoMFC if_txp.c rev 1.45, 1.46 to RELENG_6.
yongari [Fri, 13 Jul 2007 04:55:52 +0000 (04:55 +0000)]
MFC if_txp.c rev 1.45, 1.46 to RELENG_6.
 Add checks for contigmalloc(9) failure.
 Nuke duplicated __FBSDID.

16 years agoMFC if_re.c rev. 1.91, if_rlreg.h rev. 1.66 to RELENG_6.
yongari [Fri, 13 Jul 2007 04:46:34 +0000 (04:46 +0000)]
MFC if_re.c rev. 1.91, if_rlreg.h rev. 1.66 to RELENG_6.
  re(4) devices requires an external EEPROM. Depending on models it
  would be 93C46(1Kbit) or 93C56(2Kbit). One of differences between them
  is number of address lines required to access the EEPROM. For example,
  93C56 EEPROM needs 8 address lines to read/write data. If 93C56
  recevied premature end of required number of serial clock(CLK) to set
  OP code/address of EEPROM, the result would be unexpected behavior.
  Previously it tried to detect 93C46, which requires 6 address lines,
  and then assumed it would be 93C56 if read data was not expected
  value. However, this approach didn't work in some models/situations
  as 93C56 requries 8 address lines to access its data. In order to fix
  it, change EEPROM probing order such that 93C56 is detected reliably.

  While I'm here change hard-coded address line numbers with defined
  constant to enhance readability.

PR: 112710

16 years agoMFC r1.99
thompsa [Fri, 13 Jul 2007 01:27:45 +0000 (01:27 +0000)]
MFC r1.99
 The mac address must be written a word length at a time, it was having no
 effect before.

16 years agoMove the IFT_IEEE8023ADLAG case above the copy to IFP2ENADDR(ifp). This chunk
thompsa [Fri, 13 Jul 2007 01:26:44 +0000 (01:26 +0000)]
Move the IFT_IEEE8023ADLAG case above the copy to IFP2ENADDR(ifp). This chunk
of code has a slightly different layout to HEAD had was mismerged. This fixes
lagg(4) on RELENG_6.

16 years agoMFC revs. 1.15, 1.16:
yar [Thu, 12 Jul 2007 20:50:06 +0000 (20:50 +0000)]
MFC revs. 1.15, 1.16:

  Add a sysctl for the purge run interval so that it can
  be tuned along with the rest of hostcache parameters.
  The new sysctl name is `net.inet.tcp.hostcache.prune'.

  Replace a constant with an already defined symbolic name for it.

16 years agoSync lagg to HEAD
thompsa [Thu, 12 Jul 2007 20:40:25 +0000 (20:40 +0000)]
Sync lagg to HEAD
 - Implement the Marker Protocol for lacp
 - Export the actor and partner peer info and show in ifconfig verbose
 - Compare the partner system priority when choosing the aggregator.
 - Cleanup whitespace, variable names and gc unused defines

16 years agoCorrect multiple security issues in how libarchive handles corrupt
cperciva [Thu, 12 Jul 2007 15:00:44 +0000 (15:00 +0000)]
Correct multiple security issues in how libarchive handles corrupt
tar archives, including a potentially exploitable buffer overflow.

Reviewed by: kientzle
Security: FreeBSD-SA-07:05.libarchive

16 years agoMFC rev. 1.15:
yar [Thu, 12 Jul 2007 14:16:01 +0000 (14:16 +0000)]
MFC rev. 1.15:

  Update nologin(5) to match the modern reality of login.conf(5) and PAM.

16 years agoMFC:
yar [Thu, 12 Jul 2007 14:11:57 +0000 (14:11 +0000)]
MFC:

  Use the current user's login class for the decisions about where
  the nologin(5) file is located and whether the user may bypass its
  restriction.

  Add some error checks.

  Revision  Changes    Path
  1.7       +16 -15    src/lib/libpam/modules/pam_nologin/pam_nologin.8
  1.13      +42 -29    src/lib/libpam/modules/pam_nologin/pam_nologin.c

Note: To avoid POLA violation, the merged module still lets root
in irrespective of login.conf settings.  In HEAD, root has to have
an explicit "ignorenologin" capability to bypass nologin(5).

PR: bin/107612

16 years agoMFC login_cap.3 1.35-1.37, login_cap.c 1.34:
yar [Thu, 12 Jul 2007 13:25:55 +0000 (13:25 +0000)]
MFC login_cap.3 1.35-1.37, login_cap.c 1.34:

- Finally document the LOGIN_MECLASS hack in the manpage and comments.
- Fix login_getcaplist() prototype in the manpage.
- Improve the manpage markup.

16 years agoMFC revs. 1.19-1.22: Assorted small fixes.
yar [Thu, 12 Jul 2007 13:11:00 +0000 (13:11 +0000)]
MFC revs. 1.19-1.22: Assorted small fixes.

16 years agoMFC rev. 1.76: Thoroughly handle error conditions when processing
yar [Thu, 12 Jul 2007 12:56:54 +0000 (12:56 +0000)]
MFC rev. 1.76: Thoroughly handle error conditions when processing
an interpreted script as $command.

16 years agoMFC: Speaker durations are specified in 1/100ths of a second according to
brian [Thu, 12 Jul 2007 07:05:43 +0000 (07:05 +0000)]
MFC: Speaker durations are specified in 1/100ths of a second according to
     spkr(4).

PR: 70610, 67995

16 years agoMFC (revision: 1.78):
ariff [Thu, 12 Jul 2007 06:39:38 +0000 (06:39 +0000)]
MFC (revision: 1.78):

- malloc M_NOWAIT -> M_WAITOK.

- Protect against divide by zero while calculating bus speed due to
  possible broken kernel timecounter.

  Reported/Tested by:     silby

16 years agoMFC:
ariff [Thu, 12 Jul 2007 06:39:08 +0000 (06:39 +0000)]
MFC:

  Revisions:
  1.44      src/sys/dev/sound/pci/hda/hdac.c
  1.8       src/sys/dev/sound/pci/hda/hdac_private.h

- Add codec id for Realtek ALC268.

- Add controller id for Intel 82801I (ICH9).
  PR: kern/114399
  Submitted by: Michael Fuckner <michael@fuckner.net>

- MSI support. Disable by default due to various issues with too many
  broken hardwares. MSI can be enabled through device.hints(5) or
  kenv(8) by setting "hint.pcm.%d.msi=1" (for RELENG_6, you need to
  set/enable hw.pci.enable_msi=1).
  Partially submitted by: kevlo
                          YAMAMOTO Taku <taku@tackymt.homeip.net>
  Tested by: joel, kevlo, YAMAMOTO Taku

16 years agoComment out the BIND 9.4.x-only disable-emtpy-zone options.
dougb [Wed, 11 Jul 2007 23:59:41 +0000 (23:59 +0000)]
Comment out the BIND 9.4.x-only disable-emtpy-zone options.

Pointed out by: A cast of thousands
Pointy hat to:  Just me

17 years agoMFC command.c 1.307, radius.h 1.22, radius.c 1.54, ppp.8.m4 1.326:
novel [Wed, 11 Jul 2007 10:49:06 +0000 (10:49 +0000)]
MFC command.c 1.307, radius.h 1.22, radius.c 1.54, ppp.8.m4 1.326:

Add a new option for ppp.conf: rad_port_id. It allows to
change the way of what ppp submits to the RADIUS server
as NAS-Port-Id. Possible options are: the PID of the process
owning the corresponding interface, tun(4) interface number,
interface index (as it would get returned by if_nametoindex(3)),
or it's possible to keep the default behavior. Check the ppp(8)
manual page for details.

MFC ppp.8.m4 1.327:
Cleanup after previous commit.

PR: bin/112764
Submitted by: novel (myself)
Approved by: flz

17 years agoRecord the removal of the PROTO.localhost* stuff from etc/namedb
dougb [Wed, 11 Jul 2007 07:23:39 +0000 (07:23 +0000)]
Record the removal of the PROTO.localhost* stuff from etc/namedb

17 years agoReflect bzip2 MFC.
delphij [Wed, 11 Jul 2007 07:16:56 +0000 (07:16 +0000)]
Reflect bzip2 MFC.

17 years agoMFC of the work committed on 2007-06-18 to improve the default
dougb [Wed, 11 Jul 2007 07:08:23 +0000 (07:08 +0000)]
MFC of the work committed on 2007-06-18 to improve the default
named.conf. This brings us in line with BCP, and makes our
installed configuration usable as a local resolver right out
of the box.

This includes:
1.359 of etc/Makefile
1.5 of etc/namedb/Makefile
1.1 of etc/namedb/master/Makefile
all for the new files in etc/namedb/master,

1.23 and 1.24 of etc/namedb/named.conf to bring in the new
configuration options,

The new files in etc/namedb/master to support those options,

And deletion of the old *localhost*.rev files.

See the commit message to HEAD and the comments in the new
named.conf file for more details about the changes and the
reasons for them.

17 years agoMFC: bzip2 1.0.4.
delphij [Wed, 11 Jul 2007 07:04:07 +0000 (07:04 +0000)]
MFC: bzip2 1.0.4.

17 years agoMFC rev. 1.98: Fix a bug of retrieving configuration ROM.
simokawa [Wed, 11 Jul 2007 02:13:50 +0000 (02:13 +0000)]
MFC rev. 1.98: Fix a bug of retrieving configuration ROM.

17 years agoMFC: rev. 1.4
brueffer [Tue, 10 Jul 2007 17:13:31 +0000 (17:13 +0000)]
MFC: rev. 1.4

The driver will also first appear in 6.3.  While here, fix some
grammar issues and capitalize Jumbo Frames.

17 years agoMFC, rev 1.18:
mlaier [Tue, 10 Jul 2007 10:27:12 +0000 (10:27 +0000)]
MFC, rev 1.18:
Fix hardware checksum verification on fragments.

Reported/tested by: Hugo Koji Kobayashi, Vadym Chepkov
Reviewed/help by: yongari

17 years agoMFC revision 1.11: Add support for the HTTP_TIMEOUT environment variable.
cperciva [Mon, 9 Jul 2007 22:50:51 +0000 (22:50 +0000)]
MFC revision 1.11: Add support for the HTTP_TIMEOUT environment variable.

MFC revision 1.12: Add support for HTTP/1.0 Persistent Connections.

17 years agoMFC: Convert MSDOSFS_LARGE compile time option to a "-o large" mount option.
rodrigc [Sun, 8 Jul 2007 15:30:28 +0000 (15:30 +0000)]
MFC: Convert MSDOSFS_LARGE compile time option to a "-o large" mount option.

PR: 105964

17 years agoMFC:
ariff [Sun, 8 Jul 2007 14:01:11 +0000 (14:01 +0000)]
MFC:

New sysctl: "hw.snd.compat_linux_mmap" to allow PROT_EXEC page
mapping, due to recent changes in linux compatibility layer which
require it. All linux applications that using sound + mmap() (mostly games)
require this to be enabled. Disabled by default.

17 years agoregen after syscalls.master change
netchild [Sun, 8 Jul 2007 12:23:37 +0000 (12:23 +0000)]
regen after syscalls.master change

17 years agoMFC (5a of X):
netchild [Sun, 8 Jul 2007 12:22:15 +0000 (12:22 +0000)]
MFC (5a of X):
 - linuxulator mmap handling

Compile tested by: scf (i386, as part of a mega-MFC-patch)
Tested by: Arno J. Klaassen <arno@heho.snv.jussieu.fr> (amd64)

17 years agoMFC (5 of X):
netchild [Sun, 8 Jul 2007 12:20:36 +0000 (12:20 +0000)]
MFC (5 of X):
 - linuxulator mmap handling
 - memleak fixes
 - extend linux errno mapping
 - handle address space limits for linux processes
 - sync linprocfs (/proc/sys/... part)

Compile tested by: scf (i386, as part of a mega-MFC-patch)
Tested by: Arno J. Klaassen <arno@heho.snv.jussieu.fr> (amd64)

17 years agoMFC (4 of X):
netchild [Sun, 8 Jul 2007 09:04:44 +0000 (09:04 +0000)]
MFC (4 of X):
 - don't limit number of syscalls to 255
 - handle more socket options
 - bug-/compatibility-fixes to linux
   * file related (includes fixes which prevent creation of strange files
     which can only be removed with a fsck)
   * make ping work
   * ...
 - add devfs to the file system type handling/translation

Compile tested by: scf (i386, as part of a mega-MFC-patch)
Tested by: Arno J. Klaassen <arno@heho.snv.jussieu.fr> (amd64)

17 years agoMFC (3 of X):
netchild [Sun, 8 Jul 2007 08:44:48 +0000 (08:44 +0000)]
MFC (3 of X):
 - In preparation of further linuxulator fixes MFC kern_descrip.c rev 1.296 and
   syscallsubr.h rev 1.41 by jhb:
   Add a kern_close() so that the ABIs can close a file descriptor w/o having
   to populate a close_args struct and change some of the places that do.

Tested by: scf (i386, as part of a mega-MFC-patch),
Arno J. Klaassen <arno@heho.snv.jussieu.fr> (amd64)

17 years agoMFC (2 of X):
netchild [Sun, 8 Jul 2007 08:41:09 +0000 (08:41 +0000)]
MFC (2 of X):
 - some linuxulator style(9) fixes
 - add datatypes and definitions in preparation of further commits
 - use one (l_sigval) of the new datatypes on amd64 and get rid of a now unused
   include (this may or may not fix some signal handling issues on amd64) [1]
 - convert some unconditional debug handling into the common linuxulator way
 - use some more appropriate format string types in some debug printf's
 - convert signal validation into a macro

Except for [1] on amd64 there is no visible change to a normal user.

Tested by: scf (i386), Arno J. Klaassen <arno@heho.snv.jussieu.fr> (amd64)

17 years agoMFC (1 of X):
netchild [Sun, 8 Jul 2007 08:26:10 +0000 (08:26 +0000)]
MFC (1 of X):
 - easy linuxulator style(9) fixes (easy = hand removal of non-style code
   change sections in a full diff)

Tested by: scf (i386), Arno J. Klaassen <arno@heho.snv.jussieu.fr> (amd64)

17 years agoMFC unbreak installworld. <sigh>
kientzle [Sat, 7 Jul 2007 16:59:11 +0000 (16:59 +0000)]
MFC unbreak installworld.  <sigh>

Pointy hat: me

17 years agoMFC v 1.124 ata-all.h
remko [Sat, 7 Jul 2007 11:36:44 +0000 (11:36 +0000)]
MFC v 1.124 ata-all.h
MFC v 1.204 ata-disk.c

  Add Viking Interworks 256MB as an ata device; this might give
  some false positives but at this moment it is better to add
  support then to dont have it at all (comment from Soren).

  PR: kern/111516
  Submitted by: Thomas Nystrom <thn at saeab dot se>
  Approved by: re (kensmith)
  Approved by: imp (mentor)
  OK'ed by: sos (With the comment noted above about false
  positives).

Approved by: imp (mentor,implicit)

17 years agoMFC rev 1.33 mdmfs.c
remko [Sat, 7 Jul 2007 11:22:46 +0000 (11:22 +0000)]
MFC rev 1.33 mdmfs.c

 -n is used by newfs to tell "do not generate a .snap directory" instead of
 specifying rotational-positions, reflect that in the command arguments.

 PR: bin/110178
 Submitted by: Alex Kozlov <spam at rm-rf dot kiev dot ua>
 Approved by: imp (mentor)

Approved by: imp (mentor, implicit)

17 years agoFix a problem introduced in netinet/in.c 1.85.2.7 where
brian [Sat, 7 Jul 2007 00:54:46 +0000 (00:54 +0000)]
Fix a problem introduced in netinet/in.c 1.85.2.7 where
in_ifdetach() calls in_delmulti_ifp().

The code now *really* deletes the elements in in_multihead
for the ifp that's going away (rather than just decrementing
the reference count).  Previously we were left with inm and
ifma structures containing bogus ifnet pointers after
destroying an interface that had more than one IP4 assignment
made to it in it's lifetime.

I've also added a if_delmulti_ent() to make deleting known
ifma structures possible rather than depending on
if_findmulti() to end up finding the same thing.  It
will in fact always find the correct ifma *unless* the
passed sockaddr has a bogus sa_len of zero.

Finally, when adding a multicast address, we no longer
increment the refcount (well, we do, but then we decrement
it again).  The refcount here is in fact bogus so hopefully
readers will see that now.

This code is going directly into -stable as it has been
rewritten in -current and those changes are deemed too
intrusive for -stable consumption right now.

Reviewed by: bms

17 years agoMFC some comment changes and a reworking of one cast.
kientzle [Fri, 6 Jul 2007 16:08:04 +0000 (16:08 +0000)]
MFC some comment changes and a reworking of one cast.
With this change, libarchive source in -CURRENT and 6-STABLE
is exactly identical.  The only difference is the
version number (1.9 for 6-STABLE, 2.2 for -CURRENT) and
SHLIB_MAJOR (2 in 6-STABLE, 4 in -CURRENT).  The
source has conditionals to compile the old libarchive 1
API/ABI or the newer libarchive 2 API/ABI depending on
the version number set at compile time.

17 years agoMFC removal of extraneous file. This function has been moved
kientzle [Fri, 6 Jul 2007 16:01:06 +0000 (16:01 +0000)]
MFC removal of extraneous file.  This function has been moved
into archive_read.c.

17 years agoForced commit to note that the big MFC included
kientzle [Thu, 5 Jul 2007 02:30:46 +0000 (02:30 +0000)]
Forced commit to note that the big MFC included
the recent fix to disable attempts to use lseek()
on non-regular files.  In particular, this fixes
"tar -t" on tape drives.

17 years agoMFC libarchive 1.9.
kientzle [Thu, 5 Jul 2007 01:56:41 +0000 (01:56 +0000)]
MFC libarchive 1.9.

This is identical to libarchive 2.2.3 from -CURRENT, with
all of the performance improvements, bug fixes, and new
formats, except that:
  * archive_read_finish() and archive_write_finish() don't return errors
  * archive_write_data() has a different return type
  * user-provided skip callbacks have a slightly different signature

These differences maintain ABI compatibility with libarchive 1.3.1
(hence the "1" in "1.9") and allows libarchive 1.9 to have the
same SHLIB_MAJOR and otherwise serve as a straight replacement
for libarchive 1.3.1 (only better).

Thanks to:  Many, many people who contributed error reports, bug fixes,
  and suggestions over the last three years. ;-)

17 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_6'.
cvs2svn [Wed, 4 Jul 2007 23:27:39 +0000 (23:27 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_6'.

17 years agoMFC rev XXXX:
bms [Wed, 4 Jul 2007 12:29:15 +0000 (12:29 +0000)]
MFC rev XXXX:
 Do not attempt to enable AHCI mode on ALi SATA controllers other
 than the 5288.

 It is not correctly implemented in earlier silicon, and the BIOS often
 lies about AHCI capability on platforms where these chips are deployed.
 With this change I am able to boot FreeBSD on the ASUS Vintage AH-1
 barebones system.

Approved by: sos

17 years agoMFC:
ariff [Wed, 4 Jul 2007 04:05:22 +0000 (04:05 +0000)]
MFC:

  Revisions:
  1.43      src/sys/dev/sound/pci/hda/hdac.c
  1.7       src/sys/dev/sound/pci/hda/hdac_private.h

- Fix input/microphone support for ASUS A8N-VMCSM series.

  Submitted by: Simon Schubert <corecode@fs.ei.tum.de>

- Defer flushing unsolicited response into taskqueue thread rather
  than handle it directly in interrupt handler, since few of its
  operations (like measuring/calibrating jack impedance) are quite
  expensive.
- Misc. debugging cleanups.

Tested by: joel

17 years agoMFC (revision 1.10):
ariff [Wed, 4 Jul 2007 04:04:42 +0000 (04:04 +0000)]
MFC (revision 1.10):

Fix no-sound issues with ASUS A9T notebook.

Note: The offending quirk should have been made model/codec specific,
but since there were no records / log which model requires it, the quirk
logic had to be inverted (blacklist instead of whitelist).

Tested by: Arkadiy Dudevitch <dudevitch@englerllc.com>

17 years agoMFC rp.c rev 1.73
remko [Tue, 3 Jul 2007 20:35:07 +0000 (20:35 +0000)]
MFC rp.c rev 1.73

  Fix Rocketport so that it does not crash the system when a device pointer
  changes for example:

  (From Craig Leres):

  tip to a rocketport line
  run "/etc/rc.d/devfs restart"
  exit tip
  (wait for the system to reboot)

  Thanks to Robert Watson for poking me to fix this.

  PR: kern/109152
  Approved by: imp (mentor)
  Approved by: re (kensmith)
  Reviewed by: jhb
  Submitted by: Craig Leres <leres@ee dot lbl dot gov>

Approved by: imp (mentor, implicit)

17 years agoMFC: less v406.
bmah [Tue, 3 Jul 2007 16:01:10 +0000 (16:01 +0000)]
MFC:  less v406.

17 years agoFix a bug in sblock() that has existed since revision 1.1 from BSD:
rwatson [Tue, 3 Jul 2007 10:14:13 +0000 (10:14 +0000)]
Fix a bug in sblock() that has existed since revision 1.1 from BSD:
correctly return an error if M_NOWAIT is passed to sblock() and the
operation might block.  This remarkably subtle macro bug appears to
be responsible for quite a few undiagnosed socket buffer corruption
and mbuf-related kernel panics.

This bug has already been fixed in 7-CURRENT as part of the move to
using sx(9) locks to serialize simultaneous socket I/O, but is an
MFC candidate for all earlier FreeBSD -STABLE branches.

MFC after: 2 weeks
Found by: Isilon
Submitted by: jeff
Tested by: jhb, Yahoo!

17 years agoMFC: less v406
delphij [Tue, 3 Jul 2007 05:12:43 +0000 (05:12 +0000)]
MFC: less v406

17 years agoMFC 1.12: Replace rather inefficient bubble sort with a recursive depth-first
pav [Mon, 2 Jul 2007 08:05:34 +0000 (08:05 +0000)]
MFC 1.12: Replace rather inefficient bubble sort with a recursive depth-first
  search.  This speeds up registration of packages considerably.

17 years agoMFC rev. 1.114: Add new x11-drivers category.
pav [Sun, 1 Jul 2007 10:37:16 +0000 (10:37 +0000)]
MFC rev. 1.114: Add new x11-drivers category.
MFC rev. 1.115: Add new virtual category kld

17 years agoMFC: Use the tsc to implement DELAY() if it is usable and calibrated.
jhb [Fri, 29 Jun 2007 21:05:28 +0000 (21:05 +0000)]
MFC: Use the tsc to implement DELAY() if it is usable and calibrated.

Reviewed by: peter

17 years agoProperly initialize the address value in siginfo for Linux binaries on
jhb [Fri, 29 Jun 2007 21:04:22 +0000 (21:04 +0000)]
Properly initialize the address value in siginfo for Linux binaries on
amd64.  amd64 has a separate tf_addr in the trapframe unlike i386 which
reuses tf_err to pass the address to signals.

17 years agoMFC: Add -k option.
delphij [Fri, 29 Jun 2007 01:45:18 +0000 (01:45 +0000)]
MFC: Add -k option.

17 years agoMFC r1.37
thompsa [Fri, 29 Jun 2007 00:35:37 +0000 (00:35 +0000)]
MFC r1.37
  Check the correct port to see if synced is true.

PR:             misc/113958
Submitted by:   Aaron Needles

17 years agoMFC: use busdma to get a page for activating speedstep mode.
njl [Thu, 28 Jun 2007 21:26:11 +0000 (21:26 +0000)]
MFC: use busdma to get a page for activating speedstep mode.

17 years agoMFC: makefile cleanups and remove hard-coded SMBus port from alpm and viapm.
njl [Thu, 28 Jun 2007 21:23:56 +0000 (21:23 +0000)]
MFC: makefile cleanups and remove hard-coded SMBus port from alpm and viapm.

17 years agoMFC 1.131: Fix for a race between the thread transmitting the request and
jhb [Thu, 28 Jun 2007 03:28:28 +0000 (03:28 +0000)]
MFC 1.131: Fix for a race between the thread transmitting the request and
the thread processing the reply.

17 years agoForce commit to note in previous MFC the correct discussion for
rafan [Wed, 27 Jun 2007 02:37:54 +0000 (02:37 +0000)]
Force commit to note in previous MFC the correct discussion for
removing warning about nullfs is

http://docs.freebsd.org/cgi/mid.cgi?6eb82e0706182246q6563ba03x31038082125b50ae

Reminded by: des

17 years agoMFC v 1.66 udf_vnops.c
remko [Tue, 26 Jun 2007 06:59:24 +0000 (06:59 +0000)]
MFC v 1.66 udf_vnops.c

Correct corrupt read when the read starts at a non-aligned offset.

PR: kern/77234
Approved by: imp (mentor)
Requested by: many many people
Submitted by: Andriy Gapon <avg at icyb dot net dot ua>

Approved by: imp (implicit, mentor)

17 years agoMFC rev 1.1435 (nullfs part)
rafan [Tue, 26 Jun 2007 01:11:03 +0000 (01:11 +0000)]
MFC rev 1.1435 (nullfs part)

  - Remove the warning about NULL filesystem. It is stable and safe to use in
    both 6.x and 7.x. This is based on feedbacks on this thread

    http://docs.freebsd.org/cgi/getmsg.cgi?fetch=81818+0+current/freebsd-stable
    and my use it on 6.x.

Discussed on:  freebsd-stable@

17 years agoMFC 1.11 - 1.14: Add a new counter for SACK retransmits and expand TCP
jhb [Tue, 26 Jun 2007 00:05:36 +0000 (00:05 +0000)]
MFC 1.11 - 1.14: Add a new counter for SACK retransmits and expand TCP
counters from 9 digits to 12.

17 years agoMFC 1.306: Conditionally acquire Giant when dropping a reference on the
jhb [Mon, 25 Jun 2007 23:58:46 +0000 (23:58 +0000)]
MFC 1.306: Conditionally acquire Giant when dropping a reference on the
ktrace vnode during execve().

17 years agoMFC compat32 argument to do_wait() to make it use fuword32() for readling
emaste [Sat, 23 Jun 2007 19:18:50 +0000 (19:18 +0000)]
MFC compat32 argument to do_wait() to make it use fuword32() for readling
longs from 32 bit processes.

Submitted by: jhb

17 years agoMFC: rev. 1.11
brueffer [Sat, 23 Jun 2007 15:37:34 +0000 (15:37 +0000)]
MFC: rev. 1.11

Catch up with the code.

17 years agoMFC rev. 1.17: do not warn if the process exits before we get its name.
maxim [Sat, 23 Jun 2007 06:22:24 +0000 (06:22 +0000)]
MFC rev. 1.17: do not warn if the process exits before we get its name.

17 years agoMFC rev. 1.56: an example how to create /etc/mtree style mtree(8) files.
maxim [Sat, 23 Jun 2007 06:19:39 +0000 (06:19 +0000)]
MFC rev. 1.56: an example how to create /etc/mtree style mtree(8) files.

17 years agoMFC rev 1.21:
marck [Fri, 22 Jun 2007 00:01:55 +0000 (00:01 +0000)]
MFC rev 1.21:

Failing to set new frequency should not lead to powerd exiting.
Change err(3) to warn(3) as three other cases.

Approved by:    njl, des

17 years agoMFC: (revision 1.42)
ariff [Thu, 21 Jun 2007 20:58:44 +0000 (20:58 +0000)]
MFC: (revision 1.42)

- Fix headphone jack sensing support for Olivetti Olibook 610-430 XPSE [1].
- Drain all callout handlers during driver detach appropriately.
- M_NOWAIT -> M_WAITOK

Tested by: [1] Gonzalo Lionel Rodriguez

17 years agoMFC:
kmacy [Thu, 21 Jun 2007 03:30:18 +0000 (03:30 +0000)]
MFC:
 - switch adapter and port lock over to using sx so that resources
   can be allocated atomically
 - add debug macros for printing lock initialization / teardown
 - add buffers to port_info and adapter to allow each lock to have a
   unique name
 - destroy mutexes initialized by cxgb_offload_init
 - remove recursive calls to ADAPTER_LOCK
 - move callout_drain calls so that they don't occur with the lock held
 - ensure that only as many qsets as are needed are initialized and
   destroyed

 Sponsored by: Chelsio Inc.

17 years agoMFC: moused.c rev 1.79
philip [Wed, 20 Jun 2007 08:29:18 +0000 (08:29 +0000)]
MFC: moused.c rev 1.79

    Fix a (very) longstanding bug in moused(8) affecting high-resolution
    rodents when linear acceleration (-a) was enabled with a <1 value to
    slow them down.

    Previously, rounding errors would eat small movements so the mouse
    had to be moved a certain distance to get any movement at all.  We
    now calculate the rounding errors and take them into account when
    reporting movement.

Submitted by: Oliver Fromme <olli -at- lurza.secnetix.de>

17 years agoMFC: rev 1.7
simokawa [Wed, 20 Jun 2007 03:24:38 +0000 (03:24 +0000)]
MFC: rev 1.7
Increase buffer size of DV stream to prevent buffer overrun.

17 years agoMFC: Fix off-by-one error (introduced in r1.60) that had the effect of
bmah [Tue, 19 Jun 2007 18:16:42 +0000 (18:16 +0000)]
MFC:  Fix off-by-one error (introduced in r1.60) that had the effect of
disallowing a read of exactly MAXPHYS bytes.

pseudofs_vnops.c 1.63 -> 1.64

17 years agoRegen.
jhb [Mon, 18 Jun 2007 22:45:41 +0000 (22:45 +0000)]
Regen.

17 years agoMFC: Support for running 32-bit multithreaded binaries using libthr on
jhb [Mon, 18 Jun 2007 22:44:59 +0000 (22:44 +0000)]
MFC: Support for running 32-bit multithreaded binaries using libthr on
amd64 including:
- Add 32-bit wrappers for thr_new(), thr_suspend(), and the umtx system
  calls.
- Add support to amd64 for constructing thread upcalls for 32-bit
  processes.
- Leave %fs and %gs alone in the signal trampoline for 32-bit processes on
  amd64.
- Add 'casuword32()' to amd64 and ia64.

Tested by: emaste

17 years agoMFC: You can never have enough documentation.
gshapiro [Mon, 18 Jun 2007 04:35:36 +0000 (04:35 +0000)]
MFC: You can never have enough documentation.

     Document the SENDMAIL_ALIASES, SENDMAIL_MAP_SRC, SENDMAIL_MAP_TYPE, and
     SENDMAIL_START_SCRIPT
     .Xr make.conf 5
     variables.
     These are used in
     .Pa /etc/mail/Makefile .

     PR:       conf/40548

     Revision  Changes    Path
     1.140     +40 -0     src/share/man/man5/make.conf.5

17 years agomissed add
kmacy [Mon, 18 Jun 2007 02:05:17 +0000 (02:05 +0000)]
missed add

17 years agoFix compile problem using older acpi-ca interface.
njl [Mon, 18 Jun 2007 00:29:55 +0000 (00:29 +0000)]
Fix compile problem using older acpi-ca interface.

17 years agoMFC:
kmacy [Sun, 17 Jun 2007 23:52:17 +0000 (23:52 +0000)]
MFC:

- switch over to standard method for initializing cdevs (contributed by scottl@)
 - break out timer_reclaim_task to be per-port
 - move msix teardown into separate function
 - fix bus_setup_intr for msi-x for the multi-port case so that msi-x resources
   are not corrupted on unload
 - handle 10/100/1000 base-T media and auto negotiation
 - bind qset to cpu even for singleq case
 - white space cleanups
 - remove recursive PORT_LOCK
 - move mtu setting to separate function
 - stop and re-init port when changing mtu
 - replace all direct references to m_data with calls to mtod
 - handle attach failure better by not trying to de-initialize
   taskqueues when they have not been allocated
 - no longer default to jumbo frames
 - fix gcc-4.2 signedness compile errors

Sponsored by: Chelsio Inc.

17 years agoMFC: add hooks for HPET missed in previous commit
njl [Sun, 17 Jun 2007 17:28:41 +0000 (17:28 +0000)]
MFC: add hooks for HPET missed in previous commit

17 years agoMFC: add support for probing HPET via table
njl [Sun, 17 Jun 2007 17:19:21 +0000 (17:19 +0000)]
MFC: add support for probing HPET via table

17 years agoMFC: Suppress compiler optimization so that orb[1] must be written first.
simokawa [Sun, 17 Jun 2007 10:46:19 +0000 (10:46 +0000)]
MFC: Suppress compiler optimization so that orb[1] must be written first.

17 years agoMFC:
brueffer [Sun, 17 Jun 2007 09:38:27 +0000 (09:38 +0000)]
MFC:

Remove compat ifdefs for version < 500014

Approved by: rwatson (mentor)

17 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_6'.
cvs2svn [Sun, 17 Jun 2007 00:43:51 +0000 (00:43 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_6'.

17 years agoForced commit to clarify preceding unclear commit message:
wilko [Sat, 16 Jun 2007 20:49:49 +0000 (20:49 +0000)]
Forced commit to clarify preceding unclear commit message:
- core was contacted by Joerg Peter Schley requesting 2 comment lines
  be removed with his name & email address in it.

17 years agoPer request (to core) by the person refered to in the comment.
wilko [Sat, 16 Jun 2007 19:23:14 +0000 (19:23 +0000)]
Per request (to core) by the person refered to in the comment.

17 years agoMFC periodic/daily/480.status-ntpd.
maxim [Sat, 16 Jun 2007 08:07:08 +0000 (08:07 +0000)]
MFC periodic/daily/480.status-ntpd.

17 years agoPullup revision 1.191
delphij [Fri, 15 Jun 2007 08:53:23 +0000 (08:53 +0000)]
Pullup revision 1.191
date: 2007/03/12 09:13:13;  author: sos;  state: Exp;  lines: +1 -1
Fix support for the VIA8237A SATA part.

HW sponsored by: Bob Bishop

17 years agoMFC 1.4: note panic if struct selinfo is used without being zeroed.
njl [Fri, 15 Jun 2007 02:54:32 +0000 (02:54 +0000)]
MFC 1.4: note panic if struct selinfo is used without being zeroed.

17 years agoMFC: Add a new rc.conf variable, sendmail_rebuild_aliases, which tells
gshapiro [Fri, 15 Jun 2007 02:39:36 +0000 (02:39 +0000)]
MFC: Add a new rc.conf variable, sendmail_rebuild_aliases, which tells
     /etc/rc.d/sendmail whether or not to run newaliases if the database
     is missing or the aliases text file is newer than aliases.db.

     In my opinion, the aliases file should never be automatically rebuilt.
     The current text form could represent a work in progress.  Therefore,
     in FreeBSD 7.0, this new option will default to "NO".  When this rc.d
     change is MFC'ed, it will need to remain "YES" to maintain backward
     compatibility.

     PR:             conf/86252
     Approved by:    re (kensmith)
     MFC after:      3 days

     Revision  Changes    Path
     1.316     +1 -0      src/etc/defaults/rc.conf
     1.17      +10 -8     src/etc/rc.d/sendmail
     1.1039    +6 -0      src/release/doc/en_US.ISO8859-1/relnotes/article.sgml

17 years ago- Fixed build problem with unused variable.
davidch [Thu, 14 Jun 2007 22:58:14 +0000 (22:58 +0000)]
- Fixed build problem with unused variable.

17 years ago- Updated firmware to latest release (v3.4.8) to fix TSO + jumbo frame lockup
davidch [Thu, 14 Jun 2007 21:28:14 +0000 (21:28 +0000)]
- Updated firmware to latest release (v3.4.8) to fix TSO + jumbo frame lockup
- Added MSI (hw.bce.msi_enable) sysctl
- Fixed kernel panic when MSI is used and module is unloaded
- Added several new debug routines
- Removed slack space for RX/TX chains since it only covers sloppy coding
- Fixed a potential problem when programming jumbo MTU size in hardware
- Various other comment changes
- Added 2.5G support for BCM5708S

17 years agoNew features:
davidch [Thu, 14 Jun 2007 21:07:19 +0000 (21:07 +0000)]
New features:
- Moved BCM5706S/5708S SerDes support to brgphy (since they are not technically
  TBI interfaces)
- Added 2.5G support for BCM5708S

17 years ago- Added a new Ethernet media type (2500BaseSX) to support BCM5708 controllers
davidch [Thu, 14 Jun 2007 20:02:41 +0000 (20:02 +0000)]
- Added a new Ethernet media type (2500BaseSX) to support BCM5708 controllers
  which support a 2.5Gbps mode over fiber using next page extensions during
  autonegotiation.  Typically only found in blade systems which also include
  a Broadcom 2.5Gbps capable switch.

17 years agoMFC: all except 1.63:
bde [Thu, 14 Jun 2007 12:38:12 +0000 (12:38 +0000)]
MFC: all except 1.63:

1.59-1.62: already merged
1.63: removal of bridge(45) not merged
1.64: already merged
1.65: use uintmax_t
1.66: repair formatting to 79 columns
1.67: increase accuracy of timeouts and thus of per-interval counts
1.68: style fixes

Requested by: kuriyama (1.66)

1.66 changes the whitespace in output.  Hopefully nothing depends on the
exact misformatting that it fixes.

17 years agoMFC 1.326 -- Add a description of moused_XXX_flags to rc.conf(5)
keramida [Thu, 14 Jun 2007 08:09:37 +0000 (08:09 +0000)]
MFC 1.326 -- Add a description of moused_XXX_flags to rc.conf(5)

17 years agoMFC: 1.9: fix an alaising bug.
bde [Thu, 14 Jun 2007 06:44:25 +0000 (06:44 +0000)]
MFC: 1.9: fix an alaising bug.