121965 Commits

Author SHA1 Message Date
delphij
b6dce5eba4 MFC: diffutils 2.8.7. 2007-07-15 01:24:46 +00:00
csjp
5b61f61af0 Doh.. This is a forced commit to note the actual commit for the previous
commits:

MFC  1.29      +1 -1      src/sys/dev/bce/if_bce.c
MFC  1.22      +1 -1      src/sys/dev/ixgb/if_ixgb.c
MFC  1.91      +1 -1      src/sys/dev/nge/if_nge.c
MFC  1.87      +1 -1      src/sys/dev/re/if_re.c
MFC  1.6       +1 -1      src/sys/dev/stge/if_stge.c
MFC  1.44      +1 -1      src/sys/dev/txp/if_txp.c
MFC  1.31      +1 -1      src/sys/dev/vge/if_vge.c

Un-break processing of 802.1Q VLAN tags in the presence of hardware
offload of VLAN tags.
2007-07-14 20:25:20 +00:00
csjp
322e873bf8 commit.log 2007-07-14 20:22:17 +00:00
csjp
cf4ea132d0 MFC rtld.c revision 1.124
Unset potentially harmful environment variables.

Discussed on:	seacteam
PR:		kern/109836
2007-07-14 19:04:00 +00:00
bmah
4489277475 MFC: SA-07:05.libarchive. 2007-07-13 17:43:49 +00:00
yongari
873484fe3a MFC if_txp.c rev 1.45, 1.46 to RELENG_6.
Add checks for contigmalloc(9) failure.
 Nuke duplicated __FBSDID.
2007-07-13 04:55:52 +00:00
yongari
639c534bc4 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
2007-07-13 04:46:34 +00:00
thompsa
a44651dc34 MFC r1.99
The mac address must be written a word length at a time, it was having no
 effect before.
2007-07-13 01:27:45 +00:00
thompsa
8738b1d5e1 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.
2007-07-13 01:26:44 +00:00
yar
ea9934286a 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.
2007-07-12 20:50:06 +00:00
thompsa
5df0ac3d5e 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
2007-07-12 20:40:25 +00:00
cperciva
e459c538fb 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
2007-07-12 15:00:44 +00:00
yar
c7f05fc163 MFC rev. 1.15:
Update nologin(5) to match the modern reality of login.conf(5) and PAM.
2007-07-12 14:16:01 +00:00
yar
fa260264c0 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
2007-07-12 14:11:57 +00:00
yar
f510b9f527 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.
2007-07-12 13:25:55 +00:00
yar
b29966b1bd MFC revs. 1.19-1.22: Assorted small fixes. 2007-07-12 13:11:00 +00:00
yar
015f3eedb5 MFC rev. 1.76: Thoroughly handle error conditions when processing
an interpreted script as $command.
2007-07-12 12:56:54 +00:00
brian
45f2a023a7 MFC: Speaker durations are specified in 1/100ths of a second according to
spkr(4).

PR:		70610, 67995
2007-07-12 07:05:43 +00:00
ariff
e989d0705f 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
2007-07-12 06:39:38 +00:00
ariff
7254263f8c 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
2007-07-12 06:39:08 +00:00
dougb
c7b5f801f9 Comment out the BIND 9.4.x-only disable-emtpy-zone options.
Pointed out by: A cast of thousands
Pointy hat to:  Just me
2007-07-11 23:59:41 +00:00
novel
574800c221 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
2007-07-11 10:49:06 +00:00
dougb
cddec5774d Record the removal of the PROTO.localhost* stuff from etc/namedb 2007-07-11 07:23:39 +00:00
delphij
5db65c0475 Reflect bzip2 MFC. 2007-07-11 07:16:56 +00:00
dougb
2e29ef4131 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.
2007-07-11 07:08:23 +00:00
delphij
8e18321b82 MFC: bzip2 1.0.4. 2007-07-11 07:04:07 +00:00
simokawa
45590024c7 MFC rev. 1.98: Fix a bug of retrieving configuration ROM. 2007-07-11 02:13:50 +00:00
brueffer
4d6bed74df MFC: rev. 1.4
The driver will also first appear in 6.3.  While here, fix some
grammar issues and capitalize Jumbo Frames.
2007-07-10 17:13:31 +00:00
mlaier
936200194c MFC, rev 1.18:
Fix hardware checksum verification on fragments.

	Reported/tested by:	Hugo Koji Kobayashi, Vadym Chepkov
	Reviewed/help by:	yongari
2007-07-10 10:27:12 +00:00
cperciva
1a5d6ec606 MFC revision 1.11: Add support for the HTTP_TIMEOUT environment variable.
MFC revision 1.12: Add support for HTTP/1.0 Persistent Connections.
2007-07-09 22:50:51 +00:00
rodrigc
2f7815c541 MFC: Convert MSDOSFS_LARGE compile time option to a "-o large" mount option.
PR:	105964
2007-07-08 15:30:28 +00:00
ariff
47c22847e2 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.
2007-07-08 14:01:11 +00:00
netchild
70891f8aea regen after syscalls.master change 2007-07-08 12:23:37 +00:00
netchild
45f314826d 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)
2007-07-08 12:22:15 +00:00
netchild
ae2249d960 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)
2007-07-08 12:20:36 +00:00
netchild
962e1e6836 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)
2007-07-08 09:04:44 +00:00
netchild
47a37c3274 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)
2007-07-08 08:44:48 +00:00
netchild
b6ba7285b9 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)
2007-07-08 08:41:09 +00:00
netchild
34d21d2a2c 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)
2007-07-08 08:26:10 +00:00
kientzle
5c3735c354 MFC unbreak installworld. <sigh>
Pointy hat: me
2007-07-07 16:59:11 +00:00
remko
fdf641ceab 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)
2007-07-07 11:36:44 +00:00
remko
66a32e6850 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)
2007-07-07 11:22:46 +00:00
brian
77b1e42295 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
2007-07-07 00:54:46 +00:00
kientzle
3c3f90afd7 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.
2007-07-06 16:08:04 +00:00
kientzle
a9b5028b89 MFC removal of extraneous file. This function has been moved
into archive_read.c.
2007-07-06 16:01:06 +00:00
kientzle
4dac99162c 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.
2007-07-05 02:30:46 +00:00
kientzle
3cb23e7c55 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. ;-)
2007-07-05 01:56:41 +00:00
cvs2svn
65d8032785 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2007-07-04 23:27:39 +00:00
bms
e1599515d1 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
2007-07-04 12:29:15 +00:00
ariff
cdc5bc36ec 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
2007-07-04 04:05:22 +00:00