]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years ago- Fixes a bug in rwnd handling that would cause an incorrect rwnd
rrs [Thu, 15 Nov 2007 15:03:17 +0000 (15:03 +0000)]
- Fixes a bug in rwnd handling that would cause an incorrect rwnd
  advertisement during low mem conditions.
- Fixes a compile error on mac-os (signedness stuff).
- Touches up some comments.

Approved by: re@freebsd.org (Ken Smith)

16 years agoMFC rev. 1.139 of src/sys/compat/linux/linux_ioctl.c,
kib [Thu, 15 Nov 2007 10:38:06 +0000 (10:38 +0000)]
MFC rev. 1.139 of src/sys/compat/linux/linux_ioctl.c,
    rev. 1.27 of src/sys/compat/linux/linux_ioctl.h:

Implement  LINUX_SIOCGIFCOUNT and LINUX_SIOCGIFINDEX/LINUX_SIOGIFINDEX.

Approved by: re (kensmith)

16 years agoMFC: revision 1.30
attilio [Wed, 14 Nov 2007 23:33:41 +0000 (23:33 +0000)]
MFC: revision 1.30

Approved by: re

16 years agoMFC rev 1.7 nfsmb.c
remko [Wed, 14 Nov 2007 19:40:56 +0000 (19:40 +0000)]
MFC rev 1.7 nfsmb.c

  Add SMB support for the MCP61 chipset.

  PR: 108830
  Submitted by: Edwin Mons <freebsd at edwinm dot ik dot nu>
  Approbed by: imp (mentor)

Approved by:    imp (mentor, implicit)
Approved by: re (kensmith)

16 years agoMFC: Fix various markup nits.
ru [Wed, 14 Nov 2007 19:25:05 +0000 (19:25 +0000)]
MFC: Fix various markup nits.

Approved by: re (kensmith)

16 years agoMFC: Apply style(9) to usage(), fix markup of the manpage.
ru [Wed, 14 Nov 2007 19:24:10 +0000 (19:24 +0000)]
MFC: Apply style(9) to usage(), fix markup of the manpage.

Approved by: re (kensmith)

16 years agoMFC: 1.35: Fix documentation to match code.
ru [Wed, 14 Nov 2007 19:22:42 +0000 (19:22 +0000)]
MFC: 1.35: Fix documentation to match code.

Approved by: re (kensmith)

16 years agoMFC: 1.32: Fix numerous bugs when parsing options and arguments.
ru [Wed, 14 Nov 2007 19:18:40 +0000 (19:18 +0000)]
MFC: 1.32: Fix numerous bugs when parsing options and arguments.

Approved by: re (kensmith)

16 years agoMFC:
grehan [Wed, 14 Nov 2007 16:41:31 +0000 (16:41 +0000)]
MFC:
  Split decr_init() into two, with the section that reads the timebase
  frequency from OpenFirmware moved out and into a routine that is called
  from cpu_startup().

  This allows correct reporting of the CPU clockspeed when printing out
  CPU information at boot time.

Approved by: re (Ken Smith)

16 years agoMFC: rev 1.19 sys/netipsec/keysock.c
bz [Wed, 14 Nov 2007 11:52:44 +0000 (11:52 +0000)]
MFC: rev 1.19 sys/netipsec/keysock.c

  Add a missing priv check in key_attach to prevent non-su users
  from messing with the spdb and sadb.

  Problem sneaked in with the fast_ipsec+v6->ipsec merger by no
  longer going via raw_usrreqs.pr_attach.

Approved by: re (kensmith)

16 years agoMFC: Add support for non-portable adaptive mutexes, as well as experimental
kris [Wed, 14 Nov 2007 09:54:48 +0000 (09:54 +0000)]
MFC: Add support for non-portable adaptive mutexes, as well as experimental
support for spinning/yielding loops.

Approved by: re@ (kensmith)

16 years agoMFC addition of "freebsd-update upgrade".
cperciva [Wed, 14 Nov 2007 05:10:45 +0000 (05:10 +0000)]
MFC addition of "freebsd-update upgrade".

Approved by: re (kensmith)

16 years agoMFC: Add support for non-portable adaptive mutexes, as well as experimental
kris [Wed, 14 Nov 2007 01:10:12 +0000 (01:10 +0000)]
MFC: Add support for non-portable adaptive mutexes, as well as experimental
support for spinning/yielding loops.

Approved by: re@ (kensmith)

16 years agoMFC 1.6: correct handling of off-channel frames
sam [Mon, 12 Nov 2007 17:05:37 +0000 (17:05 +0000)]
MFC 1.6: correct handling of off-channel frames

Approved by: re (kensmith)

16 years agoMFC revisions
kan [Mon, 12 Nov 2007 16:09:45 +0000 (16:09 +0000)]
MFC revisions
  1.75: Make ukbd_getc respect non-blocking behavior if one is requested;
  1.76: Do not pass an address of local stack variable to
        usbd_set_report_async.

Approved by: re (kensmith)

16 years agoMFC revision 1.5
csjp [Sun, 11 Nov 2007 22:52:31 +0000 (22:52 +0000)]
MFC revision 1.5
Un-break logins to jailed environments when PTS is in use.

Approved by: re@ (kensmith)

16 years agoMFC 1.6: correct termination check doing amsdu de-aggregation
sam [Sun, 11 Nov 2007 17:52:32 +0000 (17:52 +0000)]
MFC 1.6: correct termination check doing amsdu de-aggregation

Approved by: re (kensmith)

16 years agosync with 11n changes
sam [Sun, 11 Nov 2007 17:49:50 +0000 (17:49 +0000)]
sync with 11n changes

Approved by: re (kensmith)

16 years agoMFC 1.2: align stats printed out w/o any args
sam [Sun, 11 Nov 2007 17:48:48 +0000 (17:48 +0000)]
MFC 1.2: align stats printed out w/o any args

Approved by: re (kensmith)

16 years agoMFC 1.2: add -o ampdu; remove noise from default stat list
sam [Sun, 11 Nov 2007 17:48:17 +0000 (17:48 +0000)]
MFC 1.2: add -o ampdu; remove noise from default stat list

Approved by: re (kensmith)

16 years agoMFC 1.48: sync with vap code base; updates for 11n support and some
sam [Sun, 11 Nov 2007 17:47:06 +0000 (17:47 +0000)]
MFC 1.48: sync with vap code base; updates for 11n support and some
     general code cleanups

Approved by: re (kensmith)

16 years agoMFC 1.143: minor wireless-related corrections
sam [Sun, 11 Nov 2007 17:45:56 +0000 (17:45 +0000)]
MFC 1.143: minor wireless-related corrections

Approved by: re (kensmith)

16 years agoMFC: sync 11n support with vap code base
sam [Sun, 11 Nov 2007 17:44:36 +0000 (17:44 +0000)]
MFC: sync 11n support with vap code base

Approved by: re (kensmith)

16 years agoMFC 1.25: correct channel flags returned by IEEE80211_IOC_STA_INFO
sam [Sun, 11 Nov 2007 17:34:38 +0000 (17:34 +0000)]
MFC 1.25: correct channel flags returned by IEEE80211_IOC_STA_INFO

Approved by: re (kensmith)

16 years agoMFC 1.43: don't try to re-associate after a parameter change
sam [Sun, 11 Nov 2007 17:32:30 +0000 (17:32 +0000)]
MFC 1.43: don't try to re-associate after a parameter change

Approved by: re (kensmith)

16 years agoMFC: sendmail 8.14.2
gshapiro [Sun, 11 Nov 2007 17:07:37 +0000 (17:07 +0000)]
MFC: sendmail 8.14.2

Approved by: re (kensmith)

16 years agoMFC:
mlaier [Sun, 11 Nov 2007 02:16:00 +0000 (02:16 +0000)]
MFC:
  Update pf examples from OpenBSD to catch up with new stateful defaults and
  other syntax changes.  Move pf.conf from /etc to examples, too.

Approved by: re (kensmith)

16 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_7'.
cvs2svn [Sun, 11 Nov 2007 01:16:52 +0000 (01:16 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_7'.

16 years agoMFC 1.2: upgrade zd1211b firmware; fixes reset problem
sam [Sun, 11 Nov 2007 00:24:43 +0000 (00:24 +0000)]
MFC 1.2: upgrade zd1211b firmware; fixes reset problem

Approved by: re (gnn)

16 years agoMFC 1.7: fix a typo in rx radiotap's flags
sam [Sun, 11 Nov 2007 00:23:39 +0000 (00:23 +0000)]
MFC 1.7: fix a typo in rx radiotap's flags

Approved by: re (gnn)

16 years agos/maybe/may be/
danger [Sat, 10 Nov 2007 11:32:37 +0000 (11:32 +0000)]
s/maybe/may be/

Approved by: re (bmah@)

16 years agoMFC rev 1.29 phys_pager.c
remko [Sat, 10 Nov 2007 11:21:17 +0000 (11:21 +0000)]
MFC rev 1.29 phys_pager.c

  Correct a copy and paste'o in phys_pager.c, we are talking about phys here
  and not about devices.

  PR: 93755
  Approved by: imp (mentor, implicit when re-assigning the ticket to me).

Approved by: re (kensmith), imp (mentor)

16 years agoMFC: 1.7
marius [Fri, 9 Nov 2007 21:15:58 +0000 (21:15 +0000)]
MFC: 1.7

In _pthread_key_create() ensure that libthr is initialized. This
fixes a NULL-dereference of curthread when libstdc+ initializes
the exception handling globals on archs we can't use GNU TLS due
to lack of support in binutils 2.15 (i.e. arm and sparc64), yet,
thus making threaded C++ programs compiled with GCC 4.2.1 work
again on these archs.

Approved by: re (kensmith)

16 years agoMFC: Teach source installation shell script and sysinstall(8) about
ru [Fri, 9 Nov 2007 16:16:59 +0000 (16:16 +0000)]
MFC: Teach source installation shell script and sysinstall(8) about
the 'scompat' source dist that holds src/compat/.

Approved by: re (kensmith)

16 years agoMFC: Don't look for GPT primary and secondary tables on a disk unless we
jhb [Fri, 9 Nov 2007 02:29:43 +0000 (02:29 +0000)]
MFC: Don't look for GPT primary and secondary tables on a disk unless we
have a valid PMBR.

Approved by: re (kensmith)

16 years agoMFC changes to X11 distributions based on xorg-7.3 layout.
kensmith [Thu, 8 Nov 2007 23:20:21 +0000 (23:20 +0000)]
MFC changes to X11 distributions based on xorg-7.3 layout.
Versions:
        dist.c v1.250
        dist.h v1.68
        menus.c v1.426

Approved by: re (bmah)

16 years agoMFC: Update copyright attribution.
jhb [Thu, 8 Nov 2007 21:33:40 +0000 (21:33 +0000)]
MFC: Update copyright attribution.

Approved by: re (kensmith)

16 years agoMFC: Use the smaller cgbase() macro in ufsread.c if UFS_SMALL_CGBASE is
jhb [Thu, 8 Nov 2007 21:31:38 +0000 (21:31 +0000)]
MFC: Use the smaller cgbase() macro in ufsread.c if UFS_SMALL_CGBASE is
defined.  This also effectively enables the use of the smaller cgbase()
in the arm/at91/boot2 loader.

Approved by: re (kensmith)

16 years agoMFC: poll EC during resume
njl [Thu, 8 Nov 2007 21:21:27 +0000 (21:21 +0000)]
MFC: poll EC during resume

Approved by: re

16 years agoMFC to RELENG_7
emaste [Thu, 8 Nov 2007 21:12:36 +0000 (21:12 +0000)]
MFC to RELENG_7

Revision  Changes    Path
1.123     +5 -2      src/sys/dev/aac/aac.c
1.29      +17 -17    src/sys/dev/aac/aac_cam.c

  Rework aac locking for MPSAFE CAM.  This fixes a Giant mutex assertion
  reported on freebsd-current [1].

  Also dequeue all events in aac_release_command (instead of just one)
  so that there's no risk of them getting stranded.

  Reported by:    Steven Brown [1]
  Submitted by:   scottl@

  [1] http://lists.freebsd.org/pipermail/freebsd-current/2007-October/077928.html

Approved by: re

16 years agoMFC: Split agp_generic_detach() up into two routines: agp_free_cdev() and
jhb [Thu, 8 Nov 2007 20:29:53 +0000 (20:29 +0000)]
MFC: Split agp_generic_detach() up into two routines: agp_free_cdev() and
agp_free_res().

Approved by: re (kensmith)

16 years agoMFC: Honor db_pager_quit in the examine command.
jhb [Thu, 8 Nov 2007 20:25:47 +0000 (20:25 +0000)]
MFC: Honor db_pager_quit in the examine command.

Approved by: re (kensmith)

16 years agoMFC: Don't always re-route IRQs on resume.
jhb [Thu, 8 Nov 2007 20:21:40 +0000 (20:21 +0000)]
MFC: Don't always re-route IRQs on resume.

Approved by: re (kensmith)

16 years agoMFC: Rework the read/write support in the bios disk driver some to cut down
jhb [Thu, 8 Nov 2007 20:19:58 +0000 (20:19 +0000)]
MFC: Rework the read/write support in the bios disk driver some to cut down
on duplicated code and support 64-bit LBAs for GPT.  This also changes the
code to always use EDD on devices that support it which matches the rest of
the x86 bootstrap.

Approved by: re (kensmith)

16 years agoMFC: Don't test the APIC flag in the cpuid features for amd64 to see if a
jhb [Thu, 8 Nov 2007 20:09:15 +0000 (20:09 +0000)]
MFC: Don't test the APIC flag in the cpuid features for amd64 to see if a
local APIC is present or not.

Approved by: re (kensmith)

16 years agoChange the default for hyperthreading (or, generally speaking, cases
cperciva [Thu, 8 Nov 2007 19:45:19 +0000 (19:45 +0000)]
Change the default for hyperthreading (or, generally speaking, cases
where the L1 cache is shared between CPUs) to disabled for security
reasons.  As in earlier releases, this can be changed by setting
machdep.hyperthreading_allowed=1 in /boot/loader.conf.

This is not an MFC -- no seatbelts in CURRENT.

Approved by: re (kensmith)
Security: See FreeBSD-SA-05:09.htt for background material.

16 years agoMFC
alc [Thu, 8 Nov 2007 17:17:23 +0000 (17:17 +0000)]
MFC
  Add comments explaining why all stores updating a non-kernel page table
  must be globally performed before calling any of the TLB invalidation
  functions.

  With one exception, on amd64, this requirement was already met.  Fix this
  one case.  Also, as a clarification, change an existing atomic op into a
  release.

Approved by: re (kensmith)

16 years agoMFC rev. 1.359:
kib [Thu, 8 Nov 2007 14:03:00 +0000 (14:03 +0000)]
MFC rev. 1.359:
Do not cache the page belonging to the swap object that has no backing
store allocated in the pager.

Approved by: re (kensmith)

16 years agoMFC 1.19: bandaid crash
sam [Thu, 8 Nov 2007 07:14:37 +0000 (07:14 +0000)]
MFC 1.19: bandaid crash

Approved by: re (kensmith)

16 years agoMFC network.subr r1.181, driver_freebsd.c r1.15
thompsa [Thu, 8 Nov 2007 05:52:24 +0000 (05:52 +0000)]
MFC network.subr r1.181, driver_freebsd.c r1.15

  Change wpa_supplicant to down the interface at the start of the init routine.
  wpa_supplicant expects that it has exclusive access to the net80211 state so
  when its starts poking in the WEP/WPA settings and the card is already
  scanning it can cause net80211 to try and associate incorrectly with a
  protected AP.

  This is an inconvenience for firmware based cards such as iwi where it can be
  sent an auth instruction with incomplete security info and cause a firmware
  error.

  Remove the 'ifconfig up' from network.subr since wpa_supplicant will
  immediately down the interface again.

Approved by: re (gnn)

16 years agoMFC
alc [Thu, 8 Nov 2007 04:37:02 +0000 (04:37 +0000)]
MFC
  Eliminate spurious "Approaching the limit on PV entries, ..."
  warnings by get_pv_entry().

  Eliminate the direct call to pagedaemon_wakeup() by get_pv_entry().

Approved by: re (gnn)

16 years agoUpdated release notes: IPFilter 4.1.28, OpenBSM 1.0.
bmah [Thu, 8 Nov 2007 04:04:53 +0000 (04:04 +0000)]
Updated release notes:  IPFilter 4.1.28, OpenBSM 1.0.

Approved by: re (implicitly)

16 years agoPad struct ifbreq to be the same size as in HEAD. This allows ifconfig to be
thompsa [Wed, 7 Nov 2007 19:21:41 +0000 (19:21 +0000)]
Pad struct ifbreq to be the same size as in HEAD. This allows ifconfig to be
used to configure a bridge on both and adds room for later MFCs.

The struct is part of the API/ABI and shouldnt be changed again (c/o rwatson)

Approved by: re (rwatson)

16 years agoMFC
emax [Wed, 7 Nov 2007 17:37:18 +0000 (17:37 +0000)]
MFC

Allow RFCOMM servers to bind to a ''wildcard'' RFCOMM channel
zero (0). Actual RFCOMM channel will be assigned after listen(2)
call is done on a RFCOMM socket bound to a ''wildcard'' RFCOMM
channel zero (0).

Address locking issues in ng_btsocket_rfcomm_bind()

Submitted by: Heiko Wundram (Beenic) < wundram at beenic dot net >
Approved by: re (kensmith)

16 years agoMFC: Catch up to current state of ports tree
kris [Wed, 7 Nov 2007 13:57:08 +0000 (13:57 +0000)]
MFC: Catch up to current state of ports tree

Approved by:  re (kensmith)

16 years agoMFC 1.68: remove smp_rendezvous() during shutdown
njl [Tue, 6 Nov 2007 20:13:33 +0000 (20:13 +0000)]
MFC 1.68: remove smp_rendezvous() during shutdown

Approved by: re

16 years agoMFC 1.17:
simon [Tue, 6 Nov 2007 18:15:21 +0000 (18:15 +0000)]
MFC 1.17:
  If the INDEX file cannot be opened, print the actual filename / path
  pkg_version tried to open instead of just "INDEX" to make the actual
  problem more clear (e.g. missing INDEX-8).

Approved by: re (kensmith)

16 years agoMFC 1.3:
simon [Tue, 6 Nov 2007 18:13:25 +0000 (18:13 +0000)]
MFC 1.3:

  Document the '-P pidfile' command line argument.

PR: docs/116658
Approved by: re (kensmith)

16 years agoMerge mac_framework.h:1.85, mac_policy.h:1.95, mac_posix_sem.c:1.10,
rwatson [Tue, 6 Nov 2007 14:46:59 +0000 (14:46 +0000)]
Merge mac_framework.h:1.85, mac_policy.h:1.95, mac_posix_sem.c:1.10,
mac_biba.c:1.108, mac_mls.c:1.89, mac_stub.c:1.69, mac_test.c:1.79 from
HEAD to RELENG_7:

  Canonicalize naming of local variables for struct ksem and associated
  labels to 'ks' and 'kslabel' to reflect the convention in posix_sem.c.

  Obtained from: TrustedBSD Project

Approved by: re (kensmith)

16 years agoMFC:
benjsc [Tue, 6 Nov 2007 04:02:45 +0000 (04:02 +0000)]
MFC:

Regen:

* Hart:         rev 652 of pcidevs.txt (2007-09-24)
* Boemler:      vendors.txt (2007-10-25)

Approved by:  mlaier (comentor)
Approved by:  re (kensmith)

16 years agoMFC of removal of single threading code from the main fork path.
julian [Tue, 6 Nov 2007 02:59:40 +0000 (02:59 +0000)]
MFC of removal of single threading code from the main fork path.
This turns out to be un-needed, and in fact can produce deadlocks.

Approved by: re(ken)

16 years ago - Change the Time Wait of vtags value to match the cookie-life
rrs [Tue, 6 Nov 2007 02:48:04 +0000 (02:48 +0000)]
 - Change the Time Wait of vtags value to match the cookie-life
 - Select a tag gains ability to optionally save new tags
   off in the timewait system.
 - When looking up associations do not give back a stcb that
   is in the about-to-be-freed state, and instead continue
   looking for other candiates.
 - New function to query to see if value is in time-wait.
 - Timewait had a time comparison error that caused very
   few vtags to actually stay in time-wait.
 - When setting tags in time-wait, we now use the time
   requested NOT a fixed constant value.
 - sstat now gets the proper associd when we do the query.
 - When we process an association, we expect the tag chosen
   (if we have one from a cookie) to be in time-wait. Before
   we would NOT allow the assoc up by checking if its good.
   In theory this should have caused almost all assoc not
   to come up except for the time-comparison bug above (this
   bug was hidden by the time comparison bug :-D).
 - Don't save tags for nonce values in the time-wait cache
   since these are used only during cookie collisions and do
   not matter if they are unique or not.

Approved by: re@freeBSD.org (Ken Smith)

16 years agoMFC:
ariff [Tue, 6 Nov 2007 02:07:56 +0000 (02:07 +0000)]
MFC:

  Revisions:
  1.21     src/sys/dev/sound/pci/atiixp.c
  1.4      src/sys/dev/sound/pci/atiixp.h

Add support for trimmed down version of ATI SB600 AC97 audio
controller.

URL: http://www.ipc2u.de/catalog/P/PE/36486.html
PR: kern/117813
Submitted by: Klaus Mayr
Approved by: re (kensmith)

16 years agoFix locking issue in ng_btsocket_l2cap_ctloutput()
emax [Mon, 5 Nov 2007 17:51:14 +0000 (17:51 +0000)]
Fix locking issue in ng_btsocket_l2cap_ctloutput()

Submitted by: Heiko Wundram (Beenic) < wundram at beenic dot net >
Approved by: re (kensmith)

16 years agoMFC miidevs rev 1.47 to RELENG_7
yongari [Mon, 5 Nov 2007 01:42:02 +0000 (01:42 +0000)]
MFC miidevs rev 1.47 to RELENG_7
  Add a newer RTL8211B(L) PHY.

Approved by: re (kensmith)

16 years agoMFC rgephy.c rev 1.17-1.18, rgephyreg.h rev 1.3 to RELENG_7
yongari [Mon, 5 Nov 2007 01:39:25 +0000 (01:39 +0000)]
MFC rgephy.c rev 1.17-1.18, rgephyreg.h rev 1.3 to RELENG_7
rgephy.c rev 1.17, rgephyreg.h rev 1.3
  Add support for RealTek RTL8211B(L) PHY. It's based on the patch
  made by Michael Eisele and the patch was slightly modified by me.
  With this change several NVIDIA ethernet controllers(e.g. MCP61)
  works.

  RTL8211B(L) is RealTek's new gigabit PHY. The PHY has several
  features including crossover correction, polarity correction as
  well as supporting triple speed(10/100/1000bps). Data transfer
  between MAC and PHY is via RGMII for 1000baseT, MII for
  10baseT/100baseTX.
  Unfortunately, RealTek used the same model number for RTL8211B(L)
  PHY so there is no way to discriminate between RTL8211B(L) and its
  predecessors. ATM RTL8211B uses revision number 2 so checking the
  revision number seems to be only way to identify it.

rgephyreg.c rev 1.18
  Setting sc->mii_anegticks to MII_ANEGTICKS_GIGE in rgephy_attach()
  is redundant. mii_phy_add_media() already takes care of that.

Approved by: re (kensmith)

16 years agoMFC rgephy.c rev 1.16 to RELENG_7
yongari [Mon, 5 Nov 2007 01:31:59 +0000 (01:31 +0000)]
MFC rgephy.c rev 1.16 to RELENG_7
  o RTL8169S/8110S integrated PHY and RTL8211B are gigabit PHYs so set
    mii_anegticks to MII_ANEGTICKS_GIGE and use it. Previously it used
    to MII_ANEGTICKS which may not be enough to wait before retrying
    autonegotiation process at 1000bps.
  o Reset autonegotation timer if media option is not IFM_AUTO or we
    got a valid link.
  o Announce link loss right after it happends.
  o Autonegiation is retried every mii_anegticks seconds.
  o Report link state changes right after setting autonegotiation.

Approved by: re (kensmith)

16 years agoMFC version 1.13, update of IP address for l.root-servers.net
dougb [Sun, 4 Nov 2007 23:58:11 +0000 (23:58 +0000)]
MFC version 1.13, update of IP address for l.root-servers.net

Approved by: re (kensmith)

16 years agoadd zyd
sam [Sun, 4 Nov 2007 17:59:12 +0000 (17:59 +0000)]
add zyd

Approved by: re (kensmith)

16 years agoMFC revision 1.13
csjp [Sun, 4 Nov 2007 16:44:48 +0000 (16:44 +0000)]
MFC revision 1.13

Make sure we are incrementing read counters

Approved by: re@ (kensmith)

16 years agoMerge OpenBSM 1.0 changes to src/sys/bsm from HEAD to RELENG_7:
rwatson [Sun, 4 Nov 2007 12:50:40 +0000 (12:50 +0000)]
Merge OpenBSM 1.0 changes to src/sys/bsm from HEAD to RELENG_7:

  - Remove AU_.* hard-coded audit class constants, as udit classes are now
    entirely dynamically configured using /etc/security/audit_class.

  Obtained from:  TrustedBSD Project

Approved by: re (kensmith)

16 years agoMerge OpenBSM 1.0 from HEAD to RELENG_7:
rwatson [Sun, 4 Nov 2007 12:50:01 +0000 (12:50 +0000)]
Merge OpenBSM 1.0 from HEAD to RELENG_7:

  - Fix bug in auditreduce(8) which resulted in a memory fault/crash when
    the user specified an event name with -m.
  - Remove AU_.* hard-coded audit class constants, as audit classes are now
    entirely dynamically configured using /etc/security/audit_class.

  Obtained from: TrustedBSD Project

Approved by: re (kensmith)

16 years agoMFC: rev. 1.5
brueffer [Sat, 3 Nov 2007 20:51:50 +0000 (20:51 +0000)]
MFC: rev. 1.5

Clean up after the previous commit.

Approved by: re (blanket)

16 years agoMFC: Don't attach to the "IBM0057" ID.
jhb [Fri, 2 Nov 2007 18:54:09 +0000 (18:54 +0000)]
MFC: Don't attach to the "IBM0057" ID.

Approved by: re (kensmith)

16 years agoMerge audit.c:1.35, audit_bsm_klib.c:1.8 from HEAD to RELENG_7:
rwatson [Fri, 2 Nov 2007 09:53:32 +0000 (09:53 +0000)]
Merge audit.c:1.35, audit_bsm_klib.c:1.8 from HEAD to RELENG_7:

  Replace use of AU_NULL with 0 when no audit classes are in use; this
  supports the removal of hard-coded audit class constants in OpenBSM
  1.0.  All audit classes are now dynamically configured via the
  audit_class database.

  Obtained from:  TrustedBSD Project

Approved by: re (kensmith)

16 years agoMFC 1.18: When skipping input data, request a minimum of 1 instead
kientzle [Fri, 2 Nov 2007 08:42:14 +0000 (08:42 +0000)]
MFC 1.18: When skipping input data, request a minimum of 1 instead
of the full request size.  This avoids a 32-bit overflow
problem skipping an exact multiple of 4GB and is faster
anyway because it allows the underlying I/O framework
to minimize copying.

In particular, this fixes bsdtar failing to properly skip
entries in uncompressed tar archives that are an exact
multiple of 4GB.

Approved by: re (Ken Smith)

16 years agoGet ready for the BETA2 builds.
kensmith [Fri, 2 Nov 2007 00:59:38 +0000 (00:59 +0000)]
Get ready for the BETA2 builds.

Approved by: re (implicit)

16 years agoMerge Neterion if_nxge driver version 2.0.9.11230 from HEAD to RELENG_7:
rwatson [Fri, 2 Nov 2007 00:52:34 +0000 (00:52 +0000)]
Merge Neterion if_nxge driver version 2.0.9.11230 from HEAD to RELENG_7:

    01 -  Enhanced LRO:
    LRO feature is extended to support multi-buffer mode. Previously,
    Ethernet frames received in contiguous buffers were offloaded.
    Now, frames received in multiple non-contiguous buffers can be
    offloaded, as well. The driver now supports LRO for jumbo frames.

    02 - Locks Optimization:
    The driver code was re-organized to limit the use of locks.
    Moreover, lock contention was reduced by replacing wait locks
    with try locks.

    03 - Code Optimization:
    The driver code was re-factored  to eliminate some memcpy
    operations.  Fast path loops were optimized.

    04 - Tag Creations:
    Physical Buffer Tags are now optimized based upon frame size.
    For better performance, Physical Memory Maps are now re-used.

    05 - Configuration:
    Features such as TSO, LRO, and Interrupt Mode can be configured
    either at load or at run time. Rx buffer mode (mode 1 or mode 2)
    can be configured at load time through kenv.

    06 - Driver Statistics:
    Run time statistics are enhanced to provide better visibility
    into the driver performance.

    07 - Bug Fixes:
    The driver contains fixes for the problems discovered and
    reported since last submission.

    08 - MSI support:
    Added Message Signaled Interrupt feature which currently uses 1
    message.
    message.

    09  Removed feature:
    Rx 3 buffer mode feature has been removed. Driver now supports 1,
    2 and 5 buffer modes of which 2 and 5 buffer modes can be used
    for header separation.

    10  Compiler warning:
    Fixed compiler warning when compiled for 32 bit system.

    11 Copyright notice:
    Source files are updated with the proper copyright notice.

  Submitted by:   Alicia Pena <Alicia dot Pena at neterion dot com>,
                  Muhammad Shafiq <Muhammad dot Shafiq at neterion dot com>

Approved by: re (gnn, kensmith)

16 years agoMFC revision 1.350, move where we audit the PID to ensure that it gets
csjp [Thu, 1 Nov 2007 19:04:13 +0000 (19:04 +0000)]
MFC revision 1.350, move where we audit the PID to ensure that it gets
audited even if it's invalid.

Approved by: re@ (kensmith)

16 years agoMFC revision 1.21, use extended process tokens by default
csjp [Thu, 1 Nov 2007 19:03:03 +0000 (19:03 +0000)]
MFC revision 1.21, use extended process tokens by default

Approved by: re@ (kensmith)

16 years agoMFC: Reindent the read/write code of bd_realstrategy().
jhb [Thu, 1 Nov 2007 18:22:53 +0000 (18:22 +0000)]
MFC: Reindent the read/write code of bd_realstrategy().

Approved by: re (kensmith)

16 years agoMFC: Slightly cleanup the 'bootdev' concept on x86.
jhb [Thu, 1 Nov 2007 18:19:19 +0000 (18:19 +0000)]
MFC: Slightly cleanup the 'bootdev' concept on x86.

Approved by: re (kensmith)

16 years agoMFC 1.2
rodrigc [Thu, 1 Nov 2007 14:20:37 +0000 (14:20 +0000)]
MFC 1.2
Add a small note about how "mkfs.xfs -p" can be used to create
an XFS file system populated with files.

Approved by: re (gnn)

16 years agoMFC: 1.267
rodrigc [Thu, 1 Nov 2007 14:09:07 +0000 (14:09 +0000)]
MFC: 1.267
In nmount(), if MNT_ROOT is in the mount flags, filter it
out instead of returning an error.
(1)  This makes the behavior consistent with mount(2).
(2)  This makes update mounts on the root file system work properly.
(3)  The explicit checks for MNT_ROOTFS in src/sbin/fsck_ffs/main.c
     and src/usr.sbin/mountd/mountd.c which were put in to
     eliminate errors during update mounts on the root file system
     can be removed.

The only place were MNT_ROOTFS can be validly set
is inside the kernel, i.e. with vfs_mountroot_try().

Approved by: re (gnn)

16 years agoMFC v1.243 of config.c and v1.48 of dmenu.c - fixes needed because
kensmith [Thu, 1 Nov 2007 13:07:28 +0000 (13:07 +0000)]
MFC v1.243 of config.c and v1.48 of dmenu.c - fixes needed because
sysinstall had made bad assumptions about the behavior of getenv(3)
and the new getenv(3) doesn't behave the same as the old one did
if you call it with getenv("amd_enable=YES").

It was noted during review that the use of strdup(3) here is wrong
and should be checked for NULL.  It's worth noting that's what I meant
when I said I conformed to sysinstall's style despite urges to do otherwise
in the original commit.  sysinstall is in desperate need of some major
rototilling (or being thrown out...).

Approved by: re (rwatson)

16 years agoMFC e1000phy.c rev 1.19, e1000phyreg.h rev. 1.5 to RELENG_7
yongari [Thu, 1 Nov 2007 04:26:33 +0000 (04:26 +0000)]
MFC e1000phy.c rev 1.19, e1000phyreg.h rev. 1.5 to RELENG_7

  Add 88E1116/88E1116R PHY support code that takes the PHY out of
  power-down mode.

Approved by: re (kensmith)

16 years agoMFC rev 1.4,1.5
mav [Wed, 31 Oct 2007 22:52:51 +0000 (22:52 +0000)]
MFC rev 1.4,1.5
Fix some mistakes.
Update my email.

Approved by: re (gnn)

16 years agoMFC:
sos [Wed, 31 Oct 2007 19:59:53 +0000 (19:59 +0000)]
MFC:
Add SATA ATAPI support for AHCI controllers.

Approved by: re@

16 years agoMFC 1.4: silence complaint about not loading the wlan_scan_monitor module
sam [Wed, 31 Oct 2007 16:53:44 +0000 (16:53 +0000)]
MFC 1.4: silence complaint about not loading the wlan_scan_monitor module

Approved by: re (gnn)

16 years agoMFC: etc/rc.d/ppp,v1.14 and etc/defaults/rc.conf,v1.319
emax [Wed, 31 Oct 2007 16:42:41 +0000 (16:42 +0000)]
MFC: etc/rc.d/ppp,v1.14 and etc/defaults/rc.conf,v1.319

Teach /etc/rc.d/ppp to start multiple instances of ppp.

ppp_profile variable can now contain multiple profiles.
Overrides for ppp mode and nat can go into ppp_$profile_mode
and ppp_$profile_nat variables respectively. If those are
not specified, defaults from ppp_mode and ppp_nat are used.

MFC: etc/rc.d/ppp v1.15

Teach /etc/rc.d/ppp how to start/stop individual instances
of ppp. This is an extension of previous commit.

Submitted by: Yuri Kurenkov < y dot kurenkov at init dot ru >
Reviewed by: mtm
Approved by: re (kensmith)

16 years agoMFC: Print IRQs in decimal rather than hex.
jhb [Wed, 31 Oct 2007 16:17:24 +0000 (16:17 +0000)]
MFC: Print IRQs in decimal rather than hex.

Approved by: re (kensmith)

16 years agoMFC: Actually support the new HT capability type from HT 2.00b.
jhb [Wed, 31 Oct 2007 16:15:33 +0000 (16:15 +0000)]
MFC: Actually support the new HT capability type from HT 2.00b.

Approved by: re (kensmith)

16 years agoMFC: Don't destroy an ACPI device_t for a PCI device if the ACPI device_t
jhb [Wed, 31 Oct 2007 16:10:12 +0000 (16:10 +0000)]
MFC: Don't destroy an ACPI device_t for a PCI device if the ACPI device_t
is already attached to a driver.

Approved by: re (kensmith)

16 years agoMFC the following:
darrenr [Wed, 31 Oct 2007 05:00:38 +0000 (05:00 +0000)]
MFC the following:
Apply a few changes from ipfilter-current:
* Do not hold any locks over calls to copyin/copyout.
* Clean up some #ifdefs
* fix a possible mbuf leak when NAT fails on policy routed packets

PR: 117216
Approved by: re

16 years agoMFC revision 1.389
alc [Wed, 31 Oct 2007 02:31:51 +0000 (02:31 +0000)]
MFC revision 1.389
  Correct an error in vm_map_sync(), nee vm_map_clean(), that has existed
  since revision 1.1.  Specifically, neither traversal of the vm map checks
  whether the end of the vm map has been reached.  Consequently, the first
  traversal can wrap around and bogusly return an error.

Approved by: re (kensmith)

16 years agoMFC revision 1.358
alc [Wed, 31 Oct 2007 02:27:28 +0000 (02:27 +0000)]
MFC revision 1.358
  Change vm_page_cache_transfer() such that it does not transfer pages
  that would have an offset beyond the end of the target object.  Such
  pages should remain in the source object.

Approved by: re (kensmith)

16 years agoMFC: Close a race when trying to lookup a gateway route in rt_check().
jhb [Tue, 30 Oct 2007 18:03:50 +0000 (18:03 +0000)]
MFC: Close a race when trying to lookup a gateway route in rt_check().

Approved by: re (kensmith)

16 years agoMFC: Update copyright attribution.
jhb [Tue, 30 Oct 2007 18:00:56 +0000 (18:00 +0000)]
MFC: Update copyright attribution.

Approved by: re (kensmith)

16 years agoMFC revision 1.34
csjp [Tue, 30 Oct 2007 13:17:02 +0000 (13:17 +0000)]
MFC revision 1.34
Add support for processing extended (ip6) subject termids

Approved by: re@ (kensmith)

16 years agoFast MFC: Adding recently removed etc/cached.conf to the list of
bushman [Tue, 30 Oct 2007 11:40:26 +0000 (11:40 +0000)]
Fast MFC: Adding recently removed etc/cached.conf to the list of
obsolete files.

Approved by: re (kensmith), brooks (mentor)