]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoDon't include encryption features of ed(1) when building for the
kensmith [Mon, 2 Jul 2007 14:00:25 +0000 (14:00 +0000)]
Don't include encryption features of ed(1) when building for the
"rescue media" bundled with releases.

Suggested by: ru
Approved by: re (hrs)

17 years ago- Add some needed error checking on bad fd passing in the sctp
rrs [Mon, 2 Jul 2007 12:50:53 +0000 (12:50 +0000)]
- Add some needed error checking on bad fd passing in the sctp
  syscalls.
Approved by: re@freebsd.org (Ken Smith)
Obtained from: Weongyo Jeong (weongyo.jeong@gmail.com)

17 years ago- Removes some incorrect error returns (errno was being overriden in
rrs [Mon, 2 Jul 2007 10:52:34 +0000 (10:52 +0000)]
- Removes some incorrect error returns (errno was being overriden in
 one of the functions)
- Fixes the error return of sctp_get_opt, it was returning the errno not
 -1.
Approved by: re@freebsd.org (Robert Watson)
Obtained from: Weongyo Jeong (weongyo.jeong@gmail.com)

17 years agoIn the previous revision, when I replaced the unconditional acquisition
alc [Mon, 2 Jul 2007 06:56:37 +0000 (06:56 +0000)]
In the previous revision, when I replaced the unconditional acquisition
of Giant in vm_pageout_scan() with VFS_LOCK_GIANT(), I had to eliminate
the acquisition of the vnode interlock before releasing the vm object's
lock because the vnode interlock cannot be held when VFS_LOCK_GIANT() is
performed.  Unfortunately, this allows the vnode to be recycled between
the release of the vm object's lock and the vget() on the vnode.

In this revision, I prevent the vnode from being recycled by acquiring
another reference to the vm object and underlying vnode before releasing
the vm object's lock.

This change also addresses another preexisting but trivial problem.  By
acquiring another reference to the vm object, I also prevent the vm
object from being recycled.  Previously, the "vnodes skipped" counter
could be wrong because if it examined a recycled vm object.

Reported by: kib
Reviewed by: kib
Approved by: re (kensmith)
MFC after: 3 weeks

17 years agoWD Firewire/USB Combo hangs under load on USB interface. Fix with
imp [Mon, 2 Jul 2007 04:55:56 +0000 (04:55 +0000)]
WD Firewire/USB Combo hangs under load on USB interface.  Fix with
these quirks.

Submitted by: John Pettitt
PR: 79140
Approved by: re@ (blanket)

17 years agoRemoving old, dead, KAME IPsec files as part of the move to the
gnn [Mon, 2 Jul 2007 04:02:21 +0000 (04:02 +0000)]
Removing old, dead, KAME IPsec files as part of the move to the
new FAST_IPSEC based IPsec stack.

Approved by: re
Reviewed by: bz

17 years agoFix an annoying pointer/int cast warning that shows up on 64 bit systems.
peter [Mon, 2 Jul 2007 01:31:43 +0000 (01:31 +0000)]
Fix an annoying pointer/int cast warning that shows up on 64 bit systems.

Approved by:  re

17 years agoRevert previous commit, retaining cpufreq.
njl [Sun, 1 Jul 2007 22:19:20 +0000 (22:19 +0000)]
Revert previous commit, retaining cpufreq.

Approved by: re (implicitly)

17 years agoAdd cpufreq(4) to GENERIC. It does not change the frequency by default,
njl [Sun, 1 Jul 2007 21:47:45 +0000 (21:47 +0000)]
Add cpufreq(4) to GENERIC.  It does not change the frequency by default,
so systems should be relatively unaffected.  Users can then simply enable
powerd(8) in rc.conf to take advantage of it.

Approved by: re

17 years agoRemove two boot printfs generated by Audit to announce it's presence,
rwatson [Sun, 1 Jul 2007 20:51:30 +0000 (20:51 +0000)]
Remove two boot printfs generated by Audit to announce it's presence,
and replace with software-testable sysctl node (security.audit) that
can be used to detect kernel audit support.

Obtained from: TrustedBSD Project
Approved by: re (kensmith)

17 years agoThe wicontrol(8) manpage is obsolete too.
thompsa [Sun, 1 Jul 2007 20:05:19 +0000 (20:05 +0000)]
The wicontrol(8) manpage is obsolete too.

Pointed out by: Pawel Worach
Approved by: re (rwatson)

17 years agoAfter talking with njl@, change this wildcard entry to be a bit less wild.
imp [Sun, 1 Jul 2007 17:42:07 +0000 (17:42 +0000)]
After talking with njl@, change this wildcard entry to be a bit less wild.

Approved by: re (blanket)

17 years ago- Fix input/microphone support for ASUS A8N-VMCSM series.
ariff [Sun, 1 Jul 2007 17:31:20 +0000 (17:31 +0000)]
- 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
Approved by: re (hrs)
MFC after: 3 days

17 years agoFix no-sound issues with ASUS A9T notebook.
ariff [Sun, 1 Jul 2007 17:28:58 +0000 (17:28 +0000)]
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>
Approved by: re (hrs)
MFC after: 3 days

17 years agoFix a dangling netinet6 to netipsec transition for SCTP include files.
gnn [Sun, 1 Jul 2007 14:18:20 +0000 (14:18 +0000)]
Fix a dangling netinet6 to netipsec transition for SCTP include files.

Approved by: re

17 years agoRemove a dangling file reference that is no longer needed with the removal
gnn [Sun, 1 Jul 2007 12:42:37 +0000 (12:42 +0000)]
Remove a dangling file reference that is no longer needed with the removal
of KAME IPsec

Reviewed by:    bz
Approved by:    re
Supported by:   Secure Computing

17 years agoAs part of KAME IPsec removal:
bz [Sun, 1 Jul 2007 12:31:27 +0000 (12:31 +0000)]
As part of KAME IPsec removal:
change the date to today instead of leaving the date when the patch was done.
Move the block to the top.

Approved by: re (kensmith)

17 years agoFollow on cleanup and removal of two unnecessary include files.
gnn [Sun, 1 Jul 2007 12:31:01 +0000 (12:31 +0000)]
Follow on cleanup and removal of two unnecessary include files.

Reviewed by:    bz
Approved by:    re
Supported by:   Secure Computing

17 years agoCommit IPv6 support for FAST_IPSEC to the tree.
gnn [Sun, 1 Jul 2007 12:08:08 +0000 (12:08 +0000)]
Commit IPv6 support for FAST_IPSEC to the tree.
This commit includes all remaining changes for the time being including
user space updates.

Submitted by:    bz
Approved by:    re

17 years agoSwitch to "-O1 -pipe" as cross-build compatible gcc workaround.
ache [Sun, 1 Jul 2007 11:51:06 +0000 (11:51 +0000)]
Switch to "-O1 -pipe" as cross-build compatible gcc workaround.

"Looks like Alexander chimed in with "I'm comfortable with that until we
can import a fixed GCC"."

Approved by: re (kensmith)

17 years agoCommit IPv6 support for FAST_IPSEC to the tree.
gnn [Sun, 1 Jul 2007 11:41:27 +0000 (11:41 +0000)]
Commit IPv6 support for FAST_IPSEC to the tree.
This commit includes only the kernel files, the rest of the files
will follow in a second commit.

Reviewed by:    bz
Approved by:    re
Supported by:   Secure Computing

17 years agoRemove wicontrol(8) from the base system. Using wicontrol to configure an
thompsa [Sun, 1 Jul 2007 10:25:07 +0000 (10:25 +0000)]
Remove wicontrol(8) from the base system. Using wicontrol to configure an
interface has been deprecated since 5.1, wi(4) wireless interfaces are managed
via the net80211 stack and ifconfig.

Approved by: re (rwatson)

17 years agoThe driver will also first appear in 6.3. While here, fix some
brueffer [Sun, 1 Jul 2007 09:42:47 +0000 (09:42 +0000)]
The driver will also first appear in 6.3.  While here, fix some
grammar issues and capitalize Jumbo Frames.

Approved by: re (blanket)
MFC after: 3 days

17 years agoAdd my ports heritage.
obrien [Sun, 1 Jul 2007 08:14:54 +0000 (08:14 +0000)]
Add my ports heritage.

Approved by: re(KEN)

17 years agoPages that do belong to an object and page queue can now be freed without
alc [Sun, 1 Jul 2007 07:08:26 +0000 (07:08 +0000)]
Pages that do belong to an object and page queue can now be freed without
holding the page queues lock.  Thus, the page table pages released by
pmap_remove() and pmap_remove_pages() can be freed after the page queues
lock is released.

Approved by: re (kensmith)

17 years agoMove the XCHANNEL radiotap definition to a free slot. NetBSD defined some
thompsa [Sun, 1 Jul 2007 06:59:30 +0000 (06:59 +0000)]
Move the XCHANNEL radiotap definition to a free slot.  NetBSD defined some
additional values causing a conflict.

Submitted by: sam
Approved by: re (kensmith)

17 years ago - Use rufetchcalc() rather than calcru() in ttyinfo so that we get
jeff [Sun, 1 Jul 2007 00:17:59 +0000 (00:17 +0000)]
 - Use rufetchcalc() rather than calcru() in ttyinfo so that we get
   correct system and user time stats.

Approved by: re
Reported by: kris
Discussed with: Attilio

17 years agoFix scanning issues since the new net80211 code went in
thompsa [Sat, 30 Jun 2007 21:39:21 +0000 (21:39 +0000)]
Fix scanning issues since the new net80211 code went in
- provide dummy routines for ic_scan_curchan and ic_scan_mindwell, we do not support those operations.
- add ieee80211_scan_done() to tell the scanning module that all channels have been scanned.
- pass IEEE80211_S_SCAN state off to net80211 so it can initiate scanning
- fix overflow in the rates array
- scale the rate value passed back from the firmware scan to the units that net80211 uses.

Submitted by: Token
Reviewed by: sam, avatar
Approved by: re (kensmith)

17 years agoChange the channel number in the scan results struct to be a pointer to the
thompsa [Sat, 30 Jun 2007 21:23:23 +0000 (21:23 +0000)]
Change the channel number in the scan results struct to be a pointer to the
operating channel and use this in the scan cache rather than directly using
ic_curchan. Some firmware cards can only do a full scan and so ic_curchan does
not have the correct value.

Also add IEEE80211_CHAN2IEEE to directly dereference ic_ieee from the channel
to be used in the fast path.

Reviewed by: sam, sephe
Approved by: re (kensmith)

17 years agoFix the channel reporting when the card is associated. The channel array used
thompsa [Sat, 30 Jun 2007 21:12:41 +0000 (21:12 +0000)]
Fix the channel reporting when the card is associated. The channel array used
to be index by IEEE channel number but that is no longer the case and it needs
to be searched for.

Submitted by: avatar
Reviewed by: sam
Approved by: re (kensmith)

17 years agoFix two more PRs:
imp [Sat, 30 Jun 2007 20:18:44 +0000 (20:18 +0000)]
Fix two more PRs:
(1) Add size parameter to usbd_get_string()
(2) Properly limit speed when a full speed hub is plugged into a high
    speed hub.

Submitted by: Hans Petter Selasky
PR: 80773, 79725
Approved by: re@ (kensmith)

17 years agoAdditional devices from NetBSD and OpenBSD. This includes devices not
imp [Sat, 30 Jun 2007 20:08:08 +0000 (20:08 +0000)]
Additional devices from NetBSD and OpenBSD.  This includes devices not
yet supported by this driver.  Support will be committed soon, or a
filter on all the 'newer' devices will be installed before the
release.

Approved by: re@ (blanket)
Obtained from: NetBSD, OpenBSD
Small Furry Animals by: Pink Floyd

17 years agoAdd support for HTTP/1.0 Persistent Connections to phttpget. Requests are
cperciva [Sat, 30 Jun 2007 19:48:28 +0000 (19:48 +0000)]
Add support for HTTP/1.0 Persistent Connections to phttpget.  Requests are
be marked as HTTP/1.1 but "Connection: Keep-Alive" is added; this convinces
HTTP/1.0 servers and proxies to hold the TCP connection open despite not
being able to use HTTP pipelining.

This dramatically cuts down on the number of TCP connections (and thus port
numbers) used by portsnap when talking to an HTTP/1.0 proxy (e.g., squid),
and has the side benefit of improving performance in those cases.

Tested by: simon
Approved by: re (kensmith)
MFC After: 1 week

17 years agoMy previous commit introduced a spurious warning for the case where a
njl [Sat, 30 Jun 2007 17:27:31 +0000 (17:27 +0000)]
My previous commit introduced a spurious warning for the case where a
switch (i.e. lid) is set to have an action of NONE.  This is not an
invalid state, so silently return.  This fixes the warning:
"acpi: request to enter state S6 failed (err 22)"

Approved by: re

17 years agoQuirk for WD Mybook. Seems they do not like serial number queries.
imp [Sat, 30 Jun 2007 14:58:56 +0000 (14:58 +0000)]
Quirk for WD Mybook.  Seems they do not like serial number queries.

Submitted by: Jason Harris
PR: 107495
Approved by: re@ (blanket)

17 years agoumass quirk: Samsung YP-U2 USB MP3/Ogg Player
imp [Sat, 30 Jun 2007 14:53:44 +0000 (14:53 +0000)]
umass quirk: Samsung YP-U2 USB MP3/Ogg Player

Submitted by: Ulrich Spoerlein
PR: 114154
Approved by: re@ (blanket)

17 years agoQuirk for ChipsBnk usb stick
imp [Sat, 30 Jun 2007 14:44:09 +0000 (14:44 +0000)]
Quirk for ChipsBnk usb stick

Submitted by: Mark Andrews
PR: 103702
Approved by: re@ (blanket)

17 years agoAdd quirk for JoyFly 128mb USB Flash Drive
imp [Sat, 30 Jun 2007 14:41:30 +0000 (14:41 +0000)]
Add quirk for JoyFly 128mb USB Flash Drive

submitted by: Toni Schmidbauer
PR: 96133
Approved by: re@ (blanket)

17 years agoNote the change in /dev name
imp [Sat, 30 Jun 2007 14:36:37 +0000 (14:36 +0000)]
Note the change in /dev name

Submitted By: Kay Abendroth
PR: usb/106070
Approved by: re (blanket)

17 years agoCapitalize a few terms.
brueffer [Sat, 30 Jun 2007 13:36:33 +0000 (13:36 +0000)]
Capitalize a few terms.

Approved by: re (blanket)

17 years agoMerge fixes back from heimdal.
dfr [Sat, 30 Jun 2007 07:47:45 +0000 (07:47 +0000)]
Merge fixes back from heimdal.

Approved by: re (kensmith)

17 years agoAutogenerate hardware notes for nfe(4) and nxge(4).
brueffer [Sat, 30 Jun 2007 07:46:26 +0000 (07:46 +0000)]
Autogenerate hardware notes for nfe(4) and nxge(4).

Approved by: re (blanket)

17 years agoGeneral cleanup.
brueffer [Sat, 30 Jun 2007 07:28:39 +0000 (07:28 +0000)]
General cleanup.

Approved by: re (blanket)

17 years agoquirk for I/O Magic USB flash drive "Giga Bank"
imp [Sat, 30 Jun 2007 05:24:25 +0000 (05:24 +0000)]
quirk for I/O Magic USB flash drive "Giga Bank"

Submitted by: Jeff Anton
PR: 108810
Approved by: re@ (blanket)

17 years agoSamsung MP0402H quirk
imp [Sat, 30 Jun 2007 05:21:18 +0000 (05:21 +0000)]
Samsung MP0402H quirk

Submitted by: Gipsy<wint3r@securimail.com>
PR: 108427
Approved by: re@ (blanket)

17 years agouhid.4: correct structure field names to match dev/usb/usb.h
imp [Sat, 30 Jun 2007 05:07:51 +0000 (05:07 +0000)]
uhid.4: correct structure field names to match dev/usb/usb.h

Submitted by: Dmitry Marakasov
PR: 101757
Approved by: re (blanket)

17 years agoAdd support for JNC MP3 Player
imp [Sat, 30 Jun 2007 05:03:03 +0000 (05:03 +0000)]
Add support for JNC MP3 Player

Submitted by: User & <dhenin@cypries.cyclopes.org>
PR: 94439
Approved by: re (blanket)

17 years agoquirk for CENTURY EX35QUAT disk enclosure
imp [Sat, 30 Jun 2007 04:58:35 +0000 (04:58 +0000)]
quirk for CENTURY EX35QUAT disk enclosure

Submitted by: Daniel Hartmeier
PR: 94132
Approved by: re (blanket)

17 years agoFix cheapy Myson USB-IDE adapter
imp [Sat, 30 Jun 2007 04:42:29 +0000 (04:42 +0000)]
Fix cheapy Myson USB-IDE adapter

Submitted by: Arno J. Klaassen
PR: 88939
Approved by: re@ (blanket)

17 years agofix ia64 build
sam [Sat, 30 Jun 2007 04:35:34 +0000 (04:35 +0000)]
fix ia64 build

Approved by: re (followup to previous commit)

17 years agoPhilips USB Key Audio KEY013
imp [Sat, 30 Jun 2007 04:34:45 +0000 (04:34 +0000)]
Philips USB Key Audio KEY013

Submitted by: Arnoud Engelfriet
PR: 68412
Approved by: re (blanket)

17 years agoAdd support using an alternate table file to usbhidaction(1).
imp [Sat, 30 Jun 2007 03:58:01 +0000 (03:58 +0000)]
Add support using an alternate table file to usbhidaction(1).

Submitted by: Michael Haro
PR: 61234
Approved by: re (bmah)

17 years agoExpand the transform API to allow transports to return 'success' for
imp [Sat, 30 Jun 2007 02:50:57 +0000 (02:50 +0000)]
Expand the transform API to allow transports to return 'success' for
the command.  Make UFI devices return 'success' when asked to do a
SYNC_CACHE.  There's no support for write caching in the UFI spec, so
this is the most appropriate action to undertake.

Reviewed by: scottl
Approved by: re@ (blanket)

17 years agoReduce diffs to OtherBSD by using usb_lookup. No functional changes.
imp [Sat, 30 Jun 2007 02:42:36 +0000 (02:42 +0000)]
Reduce diffs to OtherBSD by using usb_lookup.  No functional changes.

Approved by: re@ (Blanket)

17 years agoRemove duplicate USBDEVUNIT #define
imp [Sat, 30 Jun 2007 02:41:29 +0000 (02:41 +0000)]
Remove duplicate USBDEVUNIT #define

Approved by: re@ (blanket)

17 years agoAdd definition for UIPROTO_MOUSE.
imp [Sat, 30 Jun 2007 02:40:21 +0000 (02:40 +0000)]
Add definition for UIPROTO_MOUSE.

Approved by: re@

17 years agoUpdate to merged names for things. No functional changes.
imp [Sat, 30 Jun 2007 02:35:42 +0000 (02:35 +0000)]
Update to merged names for things.  No functional changes.

Approved by: re (blanket)

17 years agoNeterion Xframe 10GbE Server/Storage adapter driver.
sam [Fri, 29 Jun 2007 22:47:18 +0000 (22:47 +0000)]
Neterion Xframe 10GbE Server/Storage adapter driver.

The nxge driver provides support for Neterion Xframe-I and Xframe-II
adapters. The driver supports TCP Segmentation Offload (TSO/LSO),
Jumbo frames (5 buffer mode), Header separation (2 and 3 Receive
buffer modes), VLAN, and Promiscuous mode.

Submitted by: Neterion
Reviewed by: rwatson
Approved by: re (kensmith)

17 years agoAdd support for various MS Wirless usb mice. the patch is from
imp [Fri, 29 Jun 2007 21:07:41 +0000 (21:07 +0000)]
Add support for various MS Wirless usb mice.  the patch is from
Hellmuth with some refinements by myself and flz@.  It works for me
with my non-MS mice, so nothing should be broken by it.

Submitted by: Hellmuth Michaelis
PR: 90162
Approved by: re (blanket)

17 years agoChange uhub to dynamic status size for status change endpoint. From a
imp [Fri, 29 Jun 2007 20:34:42 +0000 (20:34 +0000)]
Change uhub to dynamic status size for status change endpoint.  From a
pr, the submitter says:

Found this while running freebsd as guest in qemu with -usb
parameter. The patch implements the missing dynamic size based on
number of ports a hub has.

Submitted by: Lonnie Mendez
PR: 94946
Approved by: re@ (blanket)

17 years agoRemove reference to 'phosphor' in the screensaver menu as this is less
murray [Fri, 29 Jun 2007 20:24:57 +0000 (20:24 +0000)]
Remove reference to 'phosphor' in the screensaver menu as this is less
meaningful in the LCD world.

Submitted by: Ben Kaduk <minimarmot@gmail.com>
Approved by: re (kensmith)

17 years agoimport opt_ah.h for newer hal's that optionally include 11n support
sam [Fri, 29 Jun 2007 19:52:31 +0000 (19:52 +0000)]
import opt_ah.h for newer hal's that optionally include 11n support

Approved by: re (kensmith)
MFC after: 2 weeks

17 years ago- When a SCTP socket is closed, but the last data
rrs [Fri, 29 Jun 2007 15:14:23 +0000 (15:14 +0000)]
- When a SCTP socket is closed, but the last data
  SACK is lost, we would incorrectly abort the association
  instead of retransmitting the SACK.
Approved by: re@freebsd.org (Ken Smith)

17 years agoMFp4:
delphij [Fri, 29 Jun 2007 05:23:15 +0000 (05:23 +0000)]
MFp4:

 - Remove unnecessary NULL checks after M_WAITOK allocations.
 - Use VOP_ACCESS instead of hand-rolled suser_cred()
   calls. [1]
 - Use malloc(9) KPI to allocate memory for string.  The
   optimization taken from NetBSD is not valid for FreeBSD
   because our malloc(9) already act that way. [2]

Requested by: rwatson [1]
Submitted by: Howard Su [2]
Approved by: re (tmpfs blanket)

17 years agoDon't use 64-byte header on each packet in radiotap.
kevlo [Fri, 29 Jun 2007 02:43:13 +0000 (02:43 +0000)]
Don't use 64-byte header on each packet in radiotap.

Reviewed by: sam
Approved by: re(bmah)

17 years agoTeach sysinstall about the 'scddl' source dist.
jhb [Thu, 28 Jun 2007 18:27:29 +0000 (18:27 +0000)]
Teach sysinstall about the 'scddl' source dist.

Approved by: re (kensmith)

17 years agoTeach the 'src-install' script about the 'scddl' source dist that holds
jhb [Thu, 28 Jun 2007 18:26:35 +0000 (18:26 +0000)]
Teach the 'src-install' script about the 'scddl' source dist that holds
/usr/src/cddl.

Approved by: re (kensmith)

17 years ago- Add new virtual category kld
pav [Thu, 28 Jun 2007 17:42:20 +0000 (17:42 +0000)]
- Add new virtual category kld

MFC after: 3 days
Approved by: re (mux)

17 years agoMark wire data structures in netatalk as __packed so that they are
rwatson [Thu, 28 Jun 2007 12:54:58 +0000 (12:54 +0000)]
Mark wire data structures in netatalk as __packed so that they are
properly (un)padded on the arm platform.  With this change, FreeBSD/arm
boxes are able to route AppleTalk properly.

Submitted/tested by: Nathan Whitehorn <nathanw at uchicago dot edu>
Tested on: arm, i386, amd64
Approved by: re (kensmith)

17 years agoBack out gcc workaround per re@ request. Details:
ache [Thu, 28 Jun 2007 09:25:47 +0000 (09:25 +0000)]
Back out gcc workaround per re@ request. Details:
"There seems to be some continuing discussion about how this is best fixed,
and we'd like to get Alexander (as our gcc guru) to opine on a final
solution before picking one.  In the mean time, could you back out the
original commit (sys.mk:1.89)?"

Approved by: re (rwatson)

17 years agoThe timeout is in milliseconds, not in hz. Only the portion of the
imp [Thu, 28 Jun 2007 06:22:40 +0000 (06:22 +0000)]
The timeout is in milliseconds, not in hz.  Only the portion of the
patch that converts ms to ticks was used.  Another PR states that a
return code of 0 is the right one for libusb.

Submitted by: Lonnie Mendez
PR: 94311
Approved by: re (blanket)

17 years agoSupport for iRiver U10 USB connection
imp [Thu, 28 Jun 2007 06:12:55 +0000 (06:12 +0000)]
Support for iRiver U10 USB connection

PR: 92306
Submitted by: Soren Dossing
Approved by: re (blanket)

17 years agoWith the advent of G3/CDMA modems, the old buffer sizes are no longer
imp [Thu, 28 Jun 2007 05:50:14 +0000 (05:50 +0000)]
With the advent of G3/CDMA modems, the old buffer sizes are no longer
adequate.  Increase them to 1k.  The referenced PR made this a sysctl,
but that seems like overkill to me.  The difference between 320 and
2048 bytes in modern systems, even embedded ones, seems to be in the
noise to be worth the extra hair to make it settable.

PR: 74609
Submitted by: Divacky Roman
Approved by: re (blanket)

17 years agoFor both interrupt and isochronous (the patch was unclear which one it
imp [Thu, 28 Jun 2007 05:15:33 +0000 (05:15 +0000)]
For both interrupt and isochronous (the patch was unclear which one it
applied to, but I'd think both), honor the timeout that's been set.
Return 0 bytes to be consistant with what libusb expects.  By default,
the timeout will be zero, so only applications that change the default
will see a change.  The patch only seems to apply to the interrupt end
points, but it should also apply to isochronous endpoints as well.

Submitted by: Maurice Castro
PR: 110122
Approved by: re (blanket)

17 years agoQuirk for Denver MP3 player usb.
imp [Thu, 28 Jun 2007 04:51:19 +0000 (04:51 +0000)]
Quirk for Denver MP3 player usb.

Submitted by: Ed Schouten
PR: 107101
Approved by: re (blanket for device supprot)

17 years agoSpace/style cleanups after last set of commits.
delphij [Thu, 28 Jun 2007 02:39:31 +0000 (02:39 +0000)]
Space/style cleanups after last set of commits.

Approved by: re (tmpfs blanket)

17 years agoStaticify most of fifo/vn operations, they should not
delphij [Thu, 28 Jun 2007 02:36:41 +0000 (02:36 +0000)]
Staticify most of fifo/vn operations, they should not
be directly exposed outside.

Approved by: re (tmpfs blanket)

17 years agoUse vfs_timestamp instead of nanotime when obtaining
delphij [Thu, 28 Jun 2007 02:34:32 +0000 (02:34 +0000)]
Use vfs_timestamp instead of nanotime when obtaining
a timestamp for use with timekeeping.

Approved by: re (tmpfs blanket)

17 years agoReorder tf_gen and tf_id in struct tmpfs_fid. This
delphij [Thu, 28 Jun 2007 02:32:44 +0000 (02:32 +0000)]
Reorder tf_gen and tf_id in struct tmpfs_fid.  This
saves 8 bytes on amd64 architecture.

Obtained from: NetBSD
Approved by: re (tmpfs blanket)

17 years ago- Add audit_arg_audinfo_addr() for auditing the arguments for setaudit_addr(2)
csjp [Wed, 27 Jun 2007 17:01:15 +0000 (17:01 +0000)]
- Add audit_arg_audinfo_addr() for auditing the arguments for setaudit_addr(2)
- In audit_bsm.c, make sure all the arguments: ARG_AUID, ARG_ASID, ARG_AMASK,
  and ARG_TERMID{_ADDR} are valid before auditing their arguments. (This is done
  for both setaudit and setaudit_addr.
- Audit the arguments passed to setaudit_addr(2)
- AF_INET6 does not equate to AU_IPv6. Change this in au_to_in_addr_ex() so the
  audit token is created with the correct type. This fixes the processing of the
  in_addr_ex token in users pace.
- Change the size of the token (as generated by the kernel) from 5*4 bytes to
  4*4 bytes (the correct size of an ip6 address)
- Correct regression from ucred work which resulted in getaudit() not returning
  E2BIG if the subject had an ip6 termid
- Correct slight regression in getaudit(2) which resulted in the size of a pointer
  being passed instead of the size of the structure. (This resulted in invalid
  auditinfo data being returned via getaudit(2))

Reviewed by: rwatson
Approved by: re@ (kensmith)
Obtained from: TrustedBSD Project
MFC after: 1 month

17 years agoFix reference within TIOCNOTTY from TIOSCTTY to TIOCSCTTY.
remko [Wed, 27 Jun 2007 15:14:06 +0000 (15:14 +0000)]
Fix reference within TIOCNOTTY from TIOSCTTY to TIOCSCTTY.

PR: docs/114058
Submitted by: David Sanderson <dsanderson at panasas dot com>
Approved by: re (bmah)
MFC After: 3 days

17 years agoUse vm_offset_t for kmembase and kmemlimit rather than char *, avoiding
rwatson [Wed, 27 Jun 2007 13:39:38 +0000 (13:39 +0000)]
Use vm_offset_t for kmembase and kmemlimit rather than char *, avoiding
unnecessary casts, and making it possible to compile kern_malloc.c with
strict aliasing.

Submitted by: rdivacky
Approved by: re (kensmith)

17 years agoIn zfs_vget, if we fail to translate an inode number to the corresponding
dfr [Wed, 27 Jun 2007 12:00:24 +0000 (12:00 +0000)]
In zfs_vget, if we fail to translate an inode number to the corresponding
vnode, make sure we return an error code to the caller.

Reviewed by: pjd
Approved by: re

17 years agoRemove a section on the area of the debugging sysctls used to tune
kevlo [Wed, 27 Jun 2007 09:32:50 +0000 (09:32 +0000)]
Remove a section on the area of the debugging sysctls used to tune
enforcement.

Approved by: re (rwatson)

17 years agoFix sbrk.S to use _end symbol the same way brk.s was fixed some time
kan [Wed, 27 Jun 2007 02:45:37 +0000 (02:45 +0000)]
Fix sbrk.S to use _end symbol the same way brk.s was fixed some time
ago. sbrk.S should have gotten the same change then but was forgotten.

Approved by: re (bmah)
PR: kern/114049

17 years agoForce commit to note in rev. 1.1435 the correct discussion for
rafan [Wed, 27 Jun 2007 02:34:22 +0000 (02:34 +0000)]
Force commit to note in rev. 1.1435 the correct discussion for
removing warning about nullfs is

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

Approved by: re (implicit)
Reminded by: des

17 years agoUpdate suser(9) and priv(9) to document that the 'flags' argument is now
rwatson [Tue, 26 Jun 2007 23:12:05 +0000 (23:12 +0000)]
Update suser(9) and priv(9) to document that the 'flags' argument is now
unused -- SUSER_RUID and SUSER_ALLOWJAIL are no longer defined or used.

Approved by: re (bmah)

17 years agoPointy hat to me. Committed with building.
mjacob [Tue, 26 Jun 2007 23:08:57 +0000 (23:08 +0000)]
Pointy hat to me. Committed with building.

Approved by: re (ken, implicit)

17 years agoSync comments to code: we now use priv_check() rather than suser() to
rwatson [Tue, 26 Jun 2007 23:01:01 +0000 (23:01 +0000)]
Sync comments to code: we now use priv_check() rather than suser() to
determine privilege.

Approved by: re (bmah)

17 years agoMFp4: Bugfixes for truss(1):
delphij [Tue, 26 Jun 2007 22:42:37 +0000 (22:42 +0000)]
MFp4: Bugfixes for truss(1):

 - Fix logic handling execve().  We will not be able to
   obtain information otherwise.
 - truss coredump [1].
 - truss does not work against itself [2].

PR: bin/58970 [1], bin/45193 [2]
Submitted by: Howard Su
Approved by: re (kensmith)

17 years agoAdd Viking Interworks 256MB as an ata device; this might give
remko [Tue, 26 Jun 2007 22:13:43 +0000 (22:13 +0000)]
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).

17 years agoFix an old standing LOR between callout_lock and sleepqueues chain (which
attilio [Tue, 26 Jun 2007 21:42:01 +0000 (21:42 +0000)]
Fix an old standing LOR between callout_lock and sleepqueues chain (which
could lead to a deadlock).
- sleepq_set_timeout acquires callout_lock (via callout_reset()) only
  with sleepq chain lock held
- msleep_spin in _callout_stop_safe lock the sleepqueue chain with
  callout_lock held

In order to solve this don't use msleep_spin in _callout_stop_safe() but
use directly sleepqueues as inline msleep_spin code. Rearrange the
wakeup path in order to have it consistent too.

Reported by: kris (via stress2 test suite)
Tested by: Timothy Redaelli <drizzt@gufi.org>
Reviewed by: jhb
Approved by: jeff (mentor)
Approved by: re

17 years agoIntroduce a new rwlocks initialization function: rw_init_flags.
attilio [Tue, 26 Jun 2007 21:31:56 +0000 (21:31 +0000)]
Introduce a new rwlocks initialization function: rw_init_flags.
This is very similar to sx_init_flags: it initializes the rwlock using
special flags passed as third argument (RW_DUPOK, RW_NOPROFILE,
RW_NOWITNESS, RW_QUIET, RW_RECURSE).
Among these, the most important new feature is probabilly that rwlocks
can be acquired recursively now (for both shared and exclusive paths).

Because of the recursion counter, the ABI is changed.

Tested by: Timothy Redaelli <drizzt@gufi.org>
Reviewed by: jhb
Approved by: jeff (mentor)
Approved by: re

17 years agoExtension of previous commit- when we have 2k login firmware, we need to
mjacob [Tue, 26 Jun 2007 20:53:07 +0000 (20:53 +0000)]
Extension of previous commit- when we have 2k login firmware, we need to
put out a ispreqt2e_t structure onto the request queue- not a ispreqt2_t
structure. I forgot that the 23XX can use a t2 structure.

Approved by:    re (ken, implicitly)
MFC after: 3 days

17 years agoMake zoneinfo optional so that a filesystem upgrade/update does not overwrite
remko [Tue, 26 Jun 2007 19:40:03 +0000 (19:40 +0000)]
Make zoneinfo optional so that a filesystem upgrade/update does not overwrite
possibly installed thirdparte zoneinfo databases (from ports for example).

PR: bin/104713
Submitted by: Mark Andrews <Mark_Andrews at isc dot org> (original patch
rewritten by me to be more consistent with the new practise).
Approved by:  re (kensmith)
Approved by: imp (mentor)
Reviewed by: ru (some time ago already)

17 years agoThis is temp workaround of nasty gcc 4.2.0 -O2 bug which may skip the rest
ache [Tue, 26 Jun 2007 19:10:20 +0000 (19:10 +0000)]
This is temp workaround of nasty gcc 4.2.0 -O2 bug which may skip the rest
of the loop when arrays used inside.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32500

Approved by:    re (kensmith)

17 years agoEliminate the use of Giant from vm_daemon(). Replace the unconditional
alc [Tue, 26 Jun 2007 18:24:05 +0000 (18:24 +0000)]
Eliminate the use of Giant from vm_daemon().  Replace the unconditional
use of Giant in vm_pageout_scan() with VFS_LOCK_GIANT().

Approved by: re (kensmith)
MFC after: 3 weeks

17 years agoAdd a new MAC framework and policy entry point,
rwatson [Tue, 26 Jun 2007 14:14:01 +0000 (14:14 +0000)]
Add a new MAC framework and policy entry point,
mpo_check_proc_setaudit_addr to be used when controlling use of
setaudit_addr(), rather than mpo_check_proc_setaudit(), which takes a
different argument type.

Reviewed by: csjp
Approved by: re (kensmith)

17 years agoFix a obsecure coredump while testing with tmpfs on amd64.
delphij [Tue, 26 Jun 2007 13:51:53 +0000 (13:51 +0000)]
Fix a obsecure coredump while testing with tmpfs on amd64.

Approved by: re (kensmith)

17 years agoFix Rocketport so that it does not crash the system when a device pointer
remko [Tue, 26 Jun 2007 13:50:48 +0000 (13:50 +0000)]
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>