Commit Graph

151643 Commits

Author SHA1 Message Date
Pyun YongHyeon
1cf8f2c431 MFC r208512:
sge_encap() can sometimes return an error with m_head set to NULL.
  Make sure not to requeue freed mbuf in sge_start_locked(). This
  should fix NULL pointer dereference panic.

  Reported by:	Nikolay Denev <ndenev <> gmail dot com>
  Submitted by:	jhb
  Approved by:	re (bz)
2010-05-31 22:03:56 +00:00
Robert Watson
1732ca8fb3 Merge r203410 from head to stable/8:
Only audit pathnames in namei(9) if copying the directory string completes
 successfully.  Continue to do this before the empty path check so that the
 ENOENT returned in that case gets an empty string token in the BSM record.

Approved by:	re (kib)
2010-05-31 21:57:31 +00:00
Robert Watson
b269c05e01 Merge r200976 from head to stable/8:
Minor comment tweaks in rmlocks.

Approved by:	re (kib)
2010-05-31 21:35:40 +00:00
Robert Watson
25d3931a9f Merge r200899 from head to stable/8:
When warning about possible netisr configuration problems during boot,
  report using "netisr_init" rather than "netisr2", which was the development
  name for the project.

Approved by:	re (kib)
2010-05-31 21:14:56 +00:00
Andriy Gapon
84ba62ee66 MFC r201374: g_part_gpt: Properly return the UUID represented by the alias
PR:		kern/142174
Approved by:	re (kib)
Approved by:	marcel
2010-05-31 20:17:37 +00:00
Colin Percival
e39a411806 MFC r208606: Remove $Mdocdate$ from man page imported from OpenBSD;
their mdoc supports it, but ours doesn't.

Approved by:	re (hrs)
2010-05-31 07:14:40 +00:00
Bjoern A. Zeeb
0ed5d06536 MFC r199818:
New style of jail(8) usage requires "-c" argument to create a jail.

Approved by:	re (hrs)
2010-05-30 11:28:01 +00:00
Ulrich Spörlein
182140f04a MFC r208493:
These features will first appear in 8.1, soon to be released

Approved by:	re (kib)
2010-05-30 08:38:41 +00:00
Colin Percival
31b99bfe49 Change the current working directory to be inside the jail created by
the jail(8) command. [10:04]

Fix a one-NUL-byte buffer overflow in libopie. [10:05]

Correctly sanity-check a buffer length in nfs mount. [10:06]

Approved by:	so (cperciva)
Approved by:	re (kensmith)
Security:	FreeBSD-SA-10:04.jail
Security:	FreeBSD-SA-10:05.opie
Security:	FreeBSD-SA-10:06.nfsclient
2010-05-27 03:15:04 +00:00
Konstantin Belousov
f3e1e28bcc MFC r208488:
Fix the double counting of the last process thread td_incruntime
on exit, that is done once in thread_exit() and the second time in
proc_reap(), by clearing td_incruntime.

Approved by:	re (kensmith)
2010-05-26 19:26:28 +00:00
Matt Jacob
7b0f9e6cc7 This is an MFC of 208119, 208129
Hook up some wires that were forgotten a few months ago and restore
the zombie device timeout code and the loop down time code and the fabric
hysteresis code.

Approved by:    re (ken smith)
2010-05-26 18:56:06 +00:00
Marius Strobl
6709b9fdf6 MFC: r208468
At least on sparc64 these modules require ata_machdep.c.

Approved by:	re (kib)
2010-05-26 17:30:14 +00:00
Ken Smith
129c311289 Add packages-8.1-release directory. While here add packages-7.3-release.
Approved by:	re (implicit)
2010-05-26 17:18:32 +00:00
Ken Smith
f57aeb7d71 Bump version number from 8.0 to 8.1. Belatedly bump stable/7 to stable/8
for SVNBRANCH.

Approved by:	re (implicit)
2010-05-26 17:11:01 +00:00
Ken Smith
e81db4f2dc Change the FreeBSD version that will be printed for the manual pages.
Approved by:	re (implicit)
2010-05-26 17:07:39 +00:00
Marius Strobl
83884db72c MFC: r208459, r208511
- Update the sparc64 hardware list regarding machines that will be supported
  beginning with 8.1-RELEASE as well as correct some existing entries and
  add previously missed ones. [1]
- According to simon@ when referring to a company along a product just to
  identify the company one shouldn't use the company trademark. [2]

Approved by:	re (kib), blackend [1], simon [2]
2010-05-26 17:05:54 +00:00
Jung-uk Kim
470007435e Regen for r208547.
Approved by:	re (kib)
2010-05-25 20:21:46 +00:00
Jung-uk Kim
8528a36cfb MFC: r208322
Add an option file for WITHOUT_MAN_UTILS to regenerate src.conf(5).

Approved by:	re (kib)
2010-05-25 20:19:31 +00:00
Jung-uk Kim
2ddf40c67d MFC: r208320
Add a new build option, MAN_UTILS.  This option lets you control building
utilities and related support files for manual pages, which were previously
controlled by MAN.  For POLA, the default depends on MAN, i.e., WITHOUT_MAN
implies WITHOUT_MAN_UTILS and WITH_MAN implies WITH_MAN_UTILS.
Note this patch implicitly fixes a documentation bug of src.conf(5), which
says WITHOUT_MAN may be used to not build manual pages while it was also
disabling some utilities for manual pages.

Approved by:	re (kib)
2010-05-25 20:16:36 +00:00
Randi Harper
f8db260873 MFC r198477,198503:
Eject CDROM after installation if used as source media.

Approved by: cperciva (mentor)
2010-05-25 03:15:09 +00:00
Randi Harper
8ddf122eea MFC r208407:
Flush all routes before adding the default route in order to allow
  sysinstall to cleanly re-initialize the network.

PR: bin/145553
Submitted by: gcooper
Approved by: cperciva (mentor)
2010-05-25 03:08:47 +00:00
Andrew Thompson
9751d55f06 MFC r200824
Set correct USB device description

Submitted by:	Paul B Mahol
2010-05-25 02:52:10 +00:00
Andrew Thompson
494793d68a MFC r202612
Use the iflladdr_event event to keep the mac address on the vap in sync with
 the parent wirless interface. If the user passed in a mac address or it was
 autogenerated then flag this to avoid trashing it on update.

 This will fix wlan+lagg in a post vap world.
2010-05-25 02:39:55 +00:00
Andrew Thompson
7c61d49370 MFC r202588
Declare a new EVENTHANDLER called iflladdr_event which signals that the L2
 address on an interface has changed. This lets stacked interfaces such as
 vlan(4) detect that their lower interface has changed and adjust things in
 order to keep working. Previously this situation broke at least vlan(4) and
 lagg(4) configurations.

 The EVENTHANDLER_INVOKE call was not placed within if_setlladdr() due to the
 risk of a loop.

 PR:		kern/142927
 Submitted by:	Nikolay Denev

MFC r202611

 Do not hold the lock over if_setlladdr() as it calls into the interface driver
 init routine.
2010-05-25 02:36:06 +00:00
Andrew Thompson
70dd8d2da0 MFC r200014
Remove unknown ath hal device entries.
2010-05-25 02:28:39 +00:00
Weongyo Jeong
6755578151 MFC r208120:
- fixes a bug that it didn't initialize the ratectl after association;
    so ni_txrate returned 0 which is a invalid result.
  - The fourth argument of ieee80211_ratectl_tx_complete() could be not
    NULL.

  Reported by:  Gustau P?rez <gperez at entel.upc.edu>
  Tested by:    Gustau P?rez <gperez at entel.upc.edu>,
                Ian FREISLICH <ianf at clue.co.za>
2010-05-24 21:01:37 +00:00
Martin Matuska
61d14e164c MFC r208472, r208474:
MFC r208472:
Fix zfs receive temporarily changing unchanged stream properties.
Fix possible panic with zfs_enable_datasets.
OpenSolaris onnv revision: 8536:33bd5de3260e [1]

MFC r208474:
Remove kstat.zfs.arcstats.l2_write_bytes_written
The arcstats.l2_write_bytes_written kstat counter introduced
in r205231 was duplicite with vendor's arcstats.l2_write_bytes counter
imported in r208373 (OpenSolaris revision 8582:df9361868dbe)

Approved by:	pjd, delphij (mentor)
Obtained from:	OpenSolaris (Bug ID 6748561, 6757075) [1]
2010-05-24 20:09:40 +00:00
Ryan Stone
fa3592281b MFC r207482
When configuring hwpmc to use the EXT_SNOOP event, only send a default
 cachestate qualifier on the Atom processor.  Other Intel processors do not
 accept a cachestate qualifier and currently hwpmc will return EINVAL if you
 try to use the EXT_SNOOP event on those processors

Approved by:	emaste (mentor)
2010-05-24 19:42:27 +00:00
John Baldwin
f1a66ecbb5 MFC 208350:
Add support for the Perle Speed4 LE.
2010-05-24 19:36:15 +00:00
Ryan Stone
0cd51665f0 MFC r207484:
When configuring a system-wide couting PMC, hwpmc was incorrectly logging
 process mappings for that PMC.  Nothing ever reads pmc logs out of a
 counting PMC, so the log buffers were leaked when the PMC was
 deconfigured.  The process mappings are only useful for sampling PMCs
 anyway, so only log the mappings if the PMC is a sampling PMC.

 This bug would cause allocating sample-mode PMCs to fail with ENOMEM
 after allocating several counting-mode PMCs.

Approved by:	emaste (mentor)
2010-05-24 18:21:42 +00:00
Jack F Vogel
2a147bb27e MFC of driver version 2.2.0 for 8.1 2010-05-24 18:00:28 +00:00
Ken Smith
7718b093ca Merge r208110:
> Do not attempt to render a logrecord with length byte, until we have
> decompressed all the bytes required.

Requested by:	phk
2010-05-24 15:26:40 +00:00
Andrew Gallatin
cb1d64f228 MFC 208379: Add interrupt descriptions for mxge's msi-x vectors 2010-05-24 13:01:02 +00:00
Andrew Gallatin
6ac1a72de0 MFC 208312: Correctly identify some twinax cables, which report
a media type of 1
2010-05-24 12:51:00 +00:00
Andrew Gallatin
8588559569 MFC 208309: Update mxge firmware to latest available from Myricom. 2010-05-24 12:10:53 +00:00
Alexander Motin
8c14a06f56 MFC r208410:
Report ATA/SATA channel number to NewBus at location string.
2010-05-24 11:01:56 +00:00
Alexander Motin
bb4b8a9f5f MFC r208414:
Fill rman range start/end values. It makes devinfo output more readable.
2010-05-24 10:54:50 +00:00
Alexander Motin
a0c6c874af MFC r208449:
mvs(4) will first appear in FreeBSD 8.1.
2010-05-24 10:45:51 +00:00
Pawel Jakub Dawidek
665b912a0a MFC r207920,r207934,r207936,r207937,r207970,r208142,r208147,r208148,r208166,
r208454,r208455,r208458:

r207920:

Back out r205134. It is not stable.

r207934:

Add missing new line characters to the warnings.

r207936:

Eventhough r203504 eliminates taste traffic provoked by vdev_geom.c,
ZFS still like to open all vdevs, close them and open them again,
which in turn provokes taste traffic anyway.

I don't know of any clean way to fix it, so do it the hard way - if we can't
open provider for writing just retry 5 times with 0.5 pauses. This should
elimitate accidental races caused by other classes tasting providers created on
top of our vdevs.

Reported by:	James R. Van Artsdalen <james-freebsd-fs2@jrv.org>
Reported by:	Yuri Pankov <yuri.pankov@gmail.com>

r207937:

I added vfs_lowvnodes event, but it was only used for a short while and now
it is totally unused. Remove it.

r207970:

When there is no memory or KVA, try to help by reclaiming some vnodes.
This helps with 'kmem_map too small' panics.

No objections from:	kib
Tested by:		Alexander V. Ribchansky <shurik@zk.informjust.ua>

r208142:

The whole point of having dedicated worker thread for each leaf VDEV was to
avoid calling zio_interrupt() from geom_up thread context. It turns out that
when provider is forcibly removed from the system and we kill worker thread
there can still be some ZIOs pending. To complete pending ZIOs when there is
no worker thread anymore we still have to call zio_interrupt() from geom_up
context. To avoid this race just remove use of worker threads altogether.
This should be more or less fine, because I also thought that zio_interrupt()
does more work, but it only makes small UMA allocation with M_WAITOK.
It also saves one context switch per I/O request.

PR:		kern/145339
Reported by:	Alex Bakhtin <Alex.Bakhtin@gmail.com>

r208147:

Add task structure to zio and use it instead of allocating one.
This eliminates the only place where we can sleep when calling zio_interrupt().
As a side-effect this can actually improve performance a little as we
allocate one less thing for every I/O.

Prodded by:	kib

r208148:

Allow to configure UMA usage for ZIO data via loader and turn it on by
default for amd64. On i386 I saw performance degradation when UMA was used,
but for amd64 it should help.

r208166:

Fix userland build by making io_task available only for the kernel and by
providing taskq_dispatch_safe() macro.

r208454:

Remove ZIO_USE_UMA from arc.c as well.

r208455:

ZIO_USE_UMA is no longer used.

r208458:

Create UMA zones unconditionally.
2010-05-24 10:09:36 +00:00
Martin Matuska
eb507f0acc MFC r208373:
Update L2ARC code and fix several bugs.

- improve ARC memory consumption (Bug ID 6488341)
- ARC/L2ARC metadata accounting (Bug ID 6748019)
- L2ARC turbo warmup (Bud ID 6748023)
- kstats for ARC content (Bug ID 6748023)
- kstats for evicted bytes from ARC by L2ARC state (Bud ID 6871680)
- fix panic on i386 systems (Bug ID 6821260)

OpenSolaris onnv revisions:
8582:df9361868dbe, 8628:97dcded6e556, 9215:7c4584f76b47,
9274:a10f8bd993c1, 10357:29060492b29d

OpenSolaris Bug IDs:
6748019, 6748023, 6748030, 6488341, 6798268, 6821260, 6790261, 6871680

Approved by:	pjd, delphij (mentor)
Obtained from:	OpenSlaris (multiple bug IDs)
2010-05-24 06:11:33 +00:00
Martin Matuska
2fa42c802c MFC r208370, r208371, r208372, r208442, r208443:
MFC r208370:
Fix: vdev_reopen() can lead to failed allocations
OpenSolaris onnv-revision: 7980:589f37f25048, Bug ID: 6764914

MFC r208371:
Fix stack overflow in zfs send.
OpenSolaris onnv-revision: 8012:8ea30813950f, Bug ID: 6765626

MFC r208372:
Reorder some already introduced locking variables.
OpenSolaris onnv revision: 8214:d7abf7c1f1c1, Bug ID: 6747934

MFC r208442:
Fix mutex_exit misorder that can cause a kernel panic.
OpenSolaris onnv revision: 8667:5c308a17eb7c, Bug ID: 6795440

MFC r208443:
Fix kernel panic when calling spa_tryimport() on a corrupted pool.
OpenSolaris onnv revision: 8680:005fe27123ba, Bug ID: 6786321

Approved by:	pav, delphij (mentor)
Obtained from:	OpenSolaris (multiple Bug IDs)
2010-05-24 06:07:55 +00:00
Jung-uk Kim
af25d42d53 MFC: r208279
Restore the previous video mode after VESA BIOS POST, just in case.
2010-05-24 01:46:06 +00:00
Jung-uk Kim
a5386a13c2 MFC: r208276
Remove unnecessary pointer increment. A wrong pointer may be passed to
free(9) and it can cause kernel panic when there are multiple graphics
controllers in the system.
2010-05-24 01:44:30 +00:00
Alan Cox
452e6e0d44 MFC r208159
Add a comment about the proper use of vm_object_page_remove().
2010-05-23 21:57:45 +00:00
Doug Barton
b40a53690e Upgrade to 9.6.2-P2, which addresses the following;
Named could return SERVFAIL for negative responses
	from unsigned zones.
2010-05-23 21:15:36 +00:00
Christian Brueffer
355b5becad MFC: r207998
Fix grammar in a line of output.
2010-05-23 20:27:13 +00:00
Christian Brueffer
7272024088 MFC: r208054
List /var/cron/tabs in FILES and add descriptions for the other entries.
2010-05-23 20:23:34 +00:00
Christian Brueffer
84103aafa7 MFC: r208056
Wording fixes.
2010-05-23 20:18:51 +00:00
Christian Brueffer
5ddefc17e7 MFC: r208053
Mention LSI Logic FC949E.
2010-05-23 20:10:11 +00:00
Marius Strobl
931e615af7 MFC: r208349
Change ad_firmware_geom_adjust() to operate on a struct disk * only and
hook it up to ada(4) also. While at it, rename *ad_firmware_geom_adjust()
to *ata_disk_firmware_geom_adjust() etc now that these are no longer
limited to ad(4). This also allows to maintain a compatibility shim for
pc98_ad_firmware_geom_adjust() for the tier-1 PC98 in stable/8.

Reviewed by:	mav (r208349)
2010-05-23 16:16:33 +00:00