]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years agoMFC revision 1.28
csjp [Tue, 24 Jan 2006 04:05:47 +0000 (04:05 +0000)]
MFC revision 1.28
date: 2006/01/15 20:30:13;  author: csjp;  state: Exp;  lines: +5 -0
Validate that the supplied file is not empty before trying mmap(2) it
and access the pages associated with it.

18 years agoMFC:
davidxu [Tue, 24 Jan 2006 02:04:21 +0000 (02:04 +0000)]
MFC:
Add missing symbol pthread_set_name_np.

18 years agoMFC:
matteo [Mon, 23 Jan 2006 21:11:23 +0000 (21:11 +0000)]
MFC:

  Add myself to the list (Ehi, I'm not the youngest!)

      src/usr.bin/calendar/calendars/calendar.freebsd: rev 1.173 -> 1.174

(tomorrow is my birthday..)

Approved by: philip (mentor, implicit)

18 years agoRevert the hack introduced in rev. 1.6.2.1, a fix/workaround for the
marius [Mon, 23 Jan 2006 16:32:29 +0000 (16:32 +0000)]
Revert the hack introduced in rev. 1.6.2.1, a fix/workaround for the
underlying problem was committed in sys/sparc64/pci/psycho.c 1.55 and
MFC'ed to RELENG_6 in 1.53.2.1.

18 years agoMFC: sys/sparc64/pci/psycho.c 1.54 - 1.57,
marius [Mon, 23 Jan 2006 16:21:30 +0000 (16:21 +0000)]
MFC: sys/sparc64/pci/psycho.c 1.54 - 1.57,
     sys/sparc64/pci/psychoreg.h 1.10 - 1.11,
     sys/sparc64/pci/psychovar.h 1.13 - 1.14

Sync psycho(4) with HEAD expect for the UPA_RANGE_* -> OFW_PCI_RANGE_*
and PCI_CS_* -> OFW_PCI_CS_* changes in order to mainly obtain the
following changes:
- Add a workaround for the incorrect interrupt map entry for the EBus
  bridge on E250 machines. [1]
- Register an interrupt handler for the spare hardware interrupt which
  according to OpenSolaris is used as the over-temperature interrupt in
  systems with Psycho bridges.

PR: 88279 [1]

18 years agoMFC rev 1.185+1.186: m_getjcl() returning address of mbuf, not cluster.
andre [Mon, 23 Jan 2006 15:31:20 +0000 (15:31 +0000)]
MFC rev 1.185+1.186: m_getjcl() returning address of mbuf, not cluster.

18 years agoMFC: sys/sparc64/include/ktr.h 1.6, sys/sparc64/sparc64/genassym.c 1.59
marius [Mon, 23 Jan 2006 15:04:09 +0000 (15:04 +0000)]
MFC: sys/sparc64/include/ktr.h 1.6, sys/sparc64/sparc64/genassym.c 1.59

Use <sys/ktr.h> directly in .S files instead of exporting the
KTR_* class macros via genassym.c. Together with sys/sys/ktr.h 1.34
(MFC'ed in 1.32.2.2) this has the desired side-effect of providing a
default value for KTR_COMPILE. Thus this fixes warnings from -Wundef
regarding KTR_COMPILE not being defined for .S files.

18 years agoMFC: 1.34
marius [Mon, 23 Jan 2006 14:56:33 +0000 (14:56 +0000)]
MFC: 1.34

Extend the scope of #ifndef LOCORE to also cover the prototype of
ktr_tracepoint() and the macros using it. This allows this header
to be included in .S files for obtaining the KTR_* class macros
directly and providing a default value for KTR_COMPILE in case it's
not specified in the kernel config file including defining it to 0
when not using 'options KTR' at all.

18 years agoMFC: 1.3
marius [Mon, 23 Jan 2006 14:45:24 +0000 (14:45 +0000)]
MFC: 1.3

- The inline asm in this file uses output operands before all input
  operands are consumed so use the appropriate constraint modifier.
  Before this change GCC used one register for both an input and an
  unrelated output operand of in_addword(), causing the input to be
  overwritten before it was consumed and thus breaking in_addword().
  For in_cksum_hdr() and in_pseudo() this change is more or less
  cosmetic.
- Fix a misspelling in a nearby comment.

18 years agoMFC: 1.26
marius [Mon, 23 Jan 2006 14:33:53 +0000 (14:33 +0000)]
MFC: 1.26

In moduledir_readhints() cast the value returned by sizeof() to ssize_t
when checking whether it's greater than a struct stat st_size in order
to also catch the case when st_size is -1. Previously this check didn't
trigger on sparc64 when st_size is -1 (as it's the case for a file on
a bzipfs, TFTP server etc.), causing the content of the linker hints
file to be copied to memory referenced by a null-pointer.

PR: 91231

18 years agoMFC: 1.438
marius [Mon, 23 Jan 2006 14:19:36 +0000 (14:19 +0000)]
MFC: 1.438

Remove the commented out entry of the old ISA-only le(4) driver which
was retired 22 months ago.

18 years agoMFC revision 1.4:
ceri [Mon, 23 Jan 2006 14:13:41 +0000 (14:13 +0000)]
MFC revision 1.4:
Add nofification events to the list of event types.

18 years agoMFC:
ariff [Mon, 23 Jan 2006 05:06:53 +0000 (05:06 +0000)]
MFC:
  Restore old compatibility of feeding directly into /dev/dsp at 8000 hz
  while preserving the New World Order.

Discussed with: [1] Michael W. Oliver <michael at gargantuan.com>

[1] http://lists.freebsd.org/pipermail/freebsd-multimedia/2006-January/003562.html

18 years agoMFC: Remove big scary warning about nullfs state
kris [Mon, 23 Jan 2006 00:32:03 +0000 (00:32 +0000)]
MFC: Remove big scary warning about nullfs state

18 years agoMFC rev. 1.9, 1.10:
yar [Sun, 22 Jan 2006 19:22:53 +0000 (19:22 +0000)]
MFC rev. 1.9, 1.10:

Use a callback to set up a vlan interface so that "vlan"
and "vlandev" commands can be specified in any order.
This makes the code more compact and clear as well.

Improve error check on vlan argument.

Eliminate some unneeded code bits.

18 years agoMFC manpage fixes related to make.conf(5) and, in make.1,
yar [Sun, 22 Jan 2006 16:33:46 +0000 (16:33 +0000)]
MFC manpage fixes related to make.conf(5) and, in make.1,
to included makefiles at large.

sbin/reboot/boot_i386.8 1.56
share/man/man5/make.conf.5 1.122
share/man/man5/style.Makefile.5 1.16
share/man/man7/build.7 1.37
share/man/man7/development.7 1.16
share/man/man7/release.7 1.55
share/man/man8/diskless.8 1.27
usr.bin/make/make.1 1.94-1.96

18 years agoMFC rev. 1.3:
yar [Sun, 22 Jan 2006 14:54:24 +0000 (14:54 +0000)]
MFC rev. 1.3:

Spotted a call to a cdev-related function not wrapped
in "#ifdef KBD_INSTALL_CDEV".

18 years agoMFC: Return EINVAL if the tv_usec part of the utimes(2) arguments
dds [Sun, 22 Jan 2006 13:52:10 +0000 (13:52 +0000)]
MFC: Return EINVAL if the tv_usec part of the utimes(2) arguments
contains incorrect fractional second values (outside the range
0-999999).
Prior to this change users could create files with values outside
that range.  Moreover, on 32-bit machines tv_usec offsets larger than
4.3s would result in an unnormalized AND wrong timestamp value,
due to overflow.

18 years agoMFC rev. 1.8, 1.10:
yar [Sun, 22 Jan 2006 13:45:28 +0000 (13:45 +0000)]
MFC rev. 1.8, 1.10:

Simplify the code by making use of 'kldstat -q -m <mod>'.

Use available rc.subr features.
Reduce code duplication.
Follow the current style of rc.d scripting.

18 years agoMFC rev. 1.6, 1.7:
yar [Sun, 22 Jan 2006 13:40:47 +0000 (13:40 +0000)]
MFC rev. 1.6, 1.7:

Simplify the code by making use of 'kldstat -q -m <mod>'.

Use rc.subr(8) appropriately.

18 years agoMFC rev. 1.5:
yar [Sun, 22 Jan 2006 13:24:58 +0000 (13:24 +0000)]
MFC rev. 1.5:

Set $command to indicate that the script wants to use
the default rc.subr(8) methods.  This is mandatory now.

18 years agoMFC rev. 1.7, 1.8:
yar [Sun, 22 Jan 2006 13:19:13 +0000 (13:19 +0000)]
MFC rev. 1.7, 1.8:

Document that `reload' is not provided by default
yet it can be enabled when applicable.

Use consistent punctuation and vertical indenting around .Dl's.
Wrap a too long line.

18 years agoRemove another bogus KASSERT(). Examination of mb_free_ext() shows
glebius [Sun, 22 Jan 2006 13:16:13 +0000 (13:16 +0000)]
Remove another bogus KASSERT(). Examination of mb_free_ext() shows
that RELENG_6 is not yet ready for this KASSERT.

18 years agoMFC main.c#1.15, mail.1#1.46:
yar [Sun, 22 Jan 2006 12:40:06 +0000 (12:40 +0000)]
MFC main.c#1.15, mail.1#1.46:

Minor man page and help screen fixes.

18 years agoMFC change 2005-09-19 10:11:47 UTC
dds [Sun, 22 Jan 2006 11:56:15 +0000 (11:56 +0000)]
MFC change 2005-09-19 10:11:47 UTC
Setting .nofinger will not hide you from root.

18 years agoMFC 1.47: Document the TMPDIR environment variable.
dds [Sun, 22 Jan 2006 11:41:18 +0000 (11:41 +0000)]
MFC 1.47: Document the TMPDIR environment variable.

18 years agoMFC:
yar [Sat, 21 Jan 2006 22:51:40 +0000 (22:51 +0000)]
MFC:
Record renaming rc.d/ppp-user to rc.d/ppp.

18 years agoMFC:
yar [Sat, 21 Jan 2006 22:42:43 +0000 (22:42 +0000)]
MFC:
Rename the rc.d script "ppp-user" to just "ppp".

18 years agoMFC r1.12 -- back out r1.7.2.2.
yar [Sat, 21 Jan 2006 22:09:32 +0000 (22:09 +0000)]
MFC r1.12 -- back out r1.7.2.2.

As rse@ agreed, "status" should stay in $extra_commands
if an rc.d script doesn't use $command and default methods
associated with it.  This is true since rc.subr r1.42.
With r1.42 merged to rc.subr on RELENG_6 (thanks Doug!),
it's right time to re-add "status" to $extra_commands in
this script.

18 years agoMFC: Set flag in needsbuffer while still holding bqlock to avoid lost wakeup.
tegge [Sat, 21 Jan 2006 20:41:42 +0000 (20:41 +0000)]
MFC: Set flag in needsbuffer while still holding bqlock to avoid lost wakeup.

18 years agoMFC: share/man/man4/umass.4 1.42
mnag [Sat, 21 Jan 2006 20:39:21 +0000 (20:39 +0000)]
MFC: share/man/man4/umass.4 1.42

Add Time DPA20B MP3 Player (1Gb) [1]
Add Qware BeatZkey! Pro [2]
Add Merlin SM300 MP3/WMA Player (256Mb)

PR: usb/81846 [1], usb/79164 [2]
Approved by: njl (implict)

18 years agoMFC r1.13: Tell nextboot to clean up after itself.
wes [Sat, 21 Jan 2006 17:25:00 +0000 (17:25 +0000)]
MFC r1.13: Tell nextboot to clean up after itself.

18 years agoMFC: sync with reality / add some cards to the hardware list
netchild [Sat, 21 Jan 2006 15:00:14 +0000 (15:00 +0000)]
MFC: sync with reality / add some cards to the hardware list

18 years agoThis KASSERT() shouldn't have been merged. It checks the stuff done
glebius [Sat, 21 Jan 2006 12:08:03 +0000 (12:08 +0000)]
This KASSERT() shouldn't have been merged. It checks the stuff done
in mb_free_ext() in HEAD, that wasn't merged.

18 years agoMFC 1.26 - 1.29:
glebius [Sat, 21 Jan 2006 10:15:00 +0000 (10:15 +0000)]
MFC 1.26 - 1.29:
  Fix several bugs found by Coverity.

18 years agoMFC 1.25:
glebius [Sat, 21 Jan 2006 10:13:03 +0000 (10:13 +0000)]
MFC 1.25:
  Initialize variable.

  Found with:     Coverity Prevent(tm)

18 years agoMFC 1.25:
glebius [Sat, 21 Jan 2006 10:12:16 +0000 (10:12 +0000)]
MFC 1.25:
  Remove dead code.

  Found with:     Coverity Prevent(tm)

18 years agoMFC 1.12:
glebius [Sat, 21 Jan 2006 10:11:01 +0000 (10:11 +0000)]
MFC 1.12:
  Correct off-by-one errors.

  Found with:     Coverity Prevent(tm)

18 years agoMFC 1.18:
glebius [Sat, 21 Jan 2006 10:09:18 +0000 (10:09 +0000)]
MFC 1.18:
  When sending export datagram from interrupt thread, use NG_QUEUE
  in flags. When sending export datagram from expiry thread, then
  use default zero flags. This removes unpleasant contention of the
  interrupt thread on mutexes (usually ng_ksocket's socket buffer
  mutex).

18 years agoMFC 1.14:
glebius [Sat, 21 Jan 2006 10:08:15 +0000 (10:08 +0000)]
MFC 1.14:
  Skip format flags, when parsing ktr_desc.

18 years agoMFC 1.58:
glebius [Sat, 21 Jan 2006 10:07:25 +0000 (10:07 +0000)]
MFC 1.58:
  Do not force queueing on peer hooks. This was important only for
  5.0-CURRENT. And it looks like this didn't work before Julian's
  revamp of netgraph queue code.

  Reviewed by:    julian

18 years agoMFC 1.8:
glebius [Sat, 21 Jan 2006 10:06:15 +0000 (10:06 +0000)]
MFC 1.8:
  Mark appropriate commands with NGM_READONLY and NGM_HASREPLY and
  bump type cookie.

  This fixes flowctl(8) exiting without any output under high load on SMP.

18 years agoPartial MFC of NGM_HASREPLY flag. The flag is introduced, but message
glebius [Sat, 21 Jan 2006 10:04:40 +0000 (10:04 +0000)]
Partial MFC of NGM_HASREPLY flag. The flag is introduced, but message
codes and netgraph cookie are not altered, to preserve ABI compatibility.

18 years agoMFC 1.65:
glebius [Sat, 21 Jan 2006 10:00:51 +0000 (10:00 +0000)]
MFC 1.65:
  Provide additional macros for sending netgraph items, which allow
  to use non-default flags for netgraph functions. Implement current
  macros via new ones.

18 years agoSync with HEAD:
glebius [Sat, 21 Jan 2006 09:59:43 +0000 (09:59 +0000)]
Sync with HEAD:
  - Some whitespace and style(9) cleanup.
  - Add ktr(4) debugging.

18 years agoMFC rev. 1.3:
cperciva [Sat, 21 Jan 2006 09:59:07 +0000 (09:59 +0000)]
MFC rev. 1.3:
  Add a warning pointing out that incomplete ports trees are not
  supported and that users of REFUSE directives should update their
  entire ports tree before asking for help on the mailing lists.

18 years agoMFC rev 1.5:
cperciva [Sat, 21 Jan 2006 09:56:28 +0000 (09:56 +0000)]
MFC rev 1.5:
  Mention that the random time slept by "portsnap cron" is between 1 and
  3600 seconds.

18 years agoMFC ugraphire_rdesc.h r1.3, uhid.c r1.80, usbdevs r1.245:
mux [Fri, 20 Jan 2006 22:55:45 +0000 (22:55 +0000)]
MFC ugraphire_rdesc.h r1.3, uhid.c r1.80, usbdevs r1.245:
  Add support for the Wacom Graphire 3 4x5.  Like the Graphire 3, it has a
  broken report descriptor.  While I'm here, make all the other report
  descriptors const to match the newly added one.

18 years agoMFC uhid.c r1.79, usb.h r1.40, uxb360gp_rdesc.h r1.1:
mux [Fri, 20 Jan 2006 22:47:49 +0000 (22:47 +0000)]
MFC uhid.c r1.79, usb.h r1.40, uxb360gp_rdesc.h r1.1:
  Add support for Xbox 360 gamepads.  They are HID-capable devices, but
  lack a report descriptor and don't use the standard interface class.
  This patch works around these deficiencies so that the uhid(4) driver
  can recognize and use those broken devices.

18 years agoMFC: src/sys/cam/scsi/scsi_da.c 1.184
mnag [Fri, 20 Jan 2006 19:23:47 +0000 (19:23 +0000)]
MFC: src/sys/cam/scsi/scsi_da.c 1.184

Allow to use Time DPA20B 1GB MP3 Player [1]
Allow to use Qware BeatZkey! Pro [2]

PR: usb/81846 [1], usb/79164 [2]
Submitted by: Ruben de Groot <rdg@bzerk.org> [1], Radek Kozlowski <radek@raadradd.com> [2]
Approved by: njl (implict)

18 years agoMFC revision 1.133:
ceri [Fri, 20 Jan 2006 18:46:06 +0000 (18:46 +0000)]
MFC revision 1.133:
  Preserve any additional arguments to ifconfig that were specified in
  the DHCP case too.

18 years agoMFC revision 1.3 (disable default write community).
harti [Fri, 20 Jan 2006 16:41:11 +0000 (16:41 +0000)]
MFC revision 1.3 (disable default write community).

18 years agoMFC: Vendor release BEGEMOT_1_11
harti [Fri, 20 Jan 2006 16:36:43 +0000 (16:36 +0000)]
MFC: Vendor release BEGEMOT_1_11

18 years agoMFC: BEGEMOT_1_11 and vendor patches:
harti [Fri, 20 Jan 2006 16:34:37 +0000 (16:34 +0000)]
MFC: BEGEMOT_1_11 and vendor patches:
config.c: 1.1.1.7
main.c: 1.1.1.10, 1.1.1.11
snmpd.config: 1.1.1.6

18 years agoMFC: BEGEMOT_1_11 and vendor fixes:
harti [Fri, 20 Jan 2006 16:27:36 +0000 (16:27 +0000)]
MFC: BEGEMOT_1_11 and vendor fixes:
mibII.c: 1.1.1.9
mibII_interfaces.c: 1.1.1.7

18 years agoMFC: BEGEMOT_1_11 and vendor fixes:
harti [Fri, 20 Jan 2006 16:07:04 +0000 (16:07 +0000)]
MFC: BEGEMOT_1_11 and vendor fixes:
asn1.h: 1.1.1.5
asn1.c: 1.1.1.5
snmpclient.c: 1.1.1.6

18 years agoMFC: BEGEMOT_1_11 and vendor fix from Rev 1.1.1.9
harti [Fri, 20 Jan 2006 15:55:57 +0000 (15:55 +0000)]
MFC: BEGEMOT_1_11 and vendor fix from Rev 1.1.1.9

18 years agoMFC: Vendor release BEGEMOT_1_11
harti [Fri, 20 Jan 2006 15:51:04 +0000 (15:51 +0000)]
MFC: Vendor release BEGEMOT_1_11

18 years agoMFC: share/man/man4/umass.4 1.41
pjd [Fri, 20 Jan 2006 14:52:13 +0000 (14:52 +0000)]
MFC: share/man/man4/umass.4 1.41
sys/cam/scsi/scsi_da.c 1.182
sys/dev/usb/umass.c 1.125
sys/dev/usb/usbdevs 1.238

Allow to use TransFlash drive, which can be found in Motorola E398 Mobile Phone.

PR: usb/89889
Submitted by: Wojciech A. Koszek <dunstan@freebsd.czest.pl>

18 years agoMFC: don't check for /dev/mdctl and let mdconfig load the module if needed
matteo [Fri, 20 Jan 2006 14:24:34 +0000 (14:24 +0000)]
MFC:  don't check for /dev/mdctl and let mdconfig load the module if needed

Approved by: philip

18 years agoMFC revision 1.413:
ceri [Fri, 20 Jan 2006 13:03:13 +0000 (13:03 +0000)]
MFC revision 1.413:
Add ntp.cgi.cz.

18 years agoMFC revisions 1.36 and 1.37:
ceri [Fri, 20 Jan 2006 13:00:32 +0000 (13:00 +0000)]
MFC revisions 1.36 and 1.37:

r1.36:
  Correct obsolete chown syntax.

r1.37:
  If sysinstall was used to configure an anonymous FTP area, it
was possible for information to be copied from the group file to
the group file in the FTP area.  This patch based on a patch
from Zak Johnson <zakj at nox dot cx>.

18 years agoAdd myself to the calendar
vd [Fri, 20 Jan 2006 12:57:58 +0000 (12:57 +0000)]
Add myself to the calendar

Approved by: garga (mentor)

18 years agoMFC rev. 1.48 to RELENG_6:
yongari [Fri, 20 Jan 2006 07:38:01 +0000 (07:38 +0000)]
MFC rev. 1.48 to RELENG_6:
  Prefer NULL to 0.
  Add missing lock/unlock in sysctl handler.

18 years agoMFC if_hme.c:1.46 to RELENG_6:
yongari [Fri, 20 Jan 2006 06:27:49 +0000 (06:27 +0000)]
MFC if_hme.c:1.46 to RELENG_6:
  fix Rx checksum computation on little endian systems.

18 years agoMFC:
ariff [Fri, 20 Jan 2006 03:55:58 +0000 (03:55 +0000)]
MFC:
  - Workaround for sb16 behave poorly when running at 45000 hz while
    vchan is enabled.
    Ruthless vchan speed workaround against the dreaded sb16 / sb16x.
    It appear that nothing else using this weird 45k / 49k speed upper
    limit.
  - Raise VCHAN_DEFAULT_SPEED from 44100 to 48000.

Reported by: many sb16, AWE64 users.

18 years agoMFC: rev. 1.26 + 1.27
brueffer [Thu, 19 Jan 2006 22:14:20 +0000 (22:14 +0000)]
MFC: rev. 1.26 + 1.27

Mention the fire screensaver.

18 years agoSync driver with HEAD merging all revisions from 1.96 to 1.115. The most
glebius [Thu, 19 Jan 2006 13:36:26 +0000 (13:36 +0000)]
Sync driver with HEAD merging all revisions from 1.96 to 1.115. The most
markable changes are:

 o Suspend/resume methods.
 o Link state detection fixes.
 o Utilization of jumbo allocator and extended RX descriptors.
 o busdma(9) cleanup and support for big-endian architectures.
 o Improved checksum offloading support.
 o Reduced number of PCI register writes in bge_start().
 o Counting RX/TX errors as input/output interface errors.

18 years agoFix broken capabilites. There are possible calculation errors within
ariff [Thu, 19 Jan 2006 01:17:00 +0000 (01:17 +0000)]
Fix broken capabilites. There are possible calculation errors within
ess_calcspeed8() and ess_calcspeed9() that need to be fixed as well
(TODO).

Reported by: [1] Claude Buisson <cbuisson at nerim.net>

[1] http://lists.freebsd.org/pipermail/freebsd-multimedia/2006-January/003566.html

18 years agoMFC r1.148:
thompsa [Thu, 19 Jan 2006 00:38:00 +0000 (00:38 +0000)]
MFC r1.148:
  Include the bridge interface itself in the special arp handling.

18 years agoMFC: if_bridge.c, r1.50; if_bridgevar.h, r1.10
thompsa [Wed, 18 Jan 2006 20:49:21 +0000 (20:49 +0000)]
MFC: if_bridge.c, r1.50; if_bridgevar.h, r1.10

  Clear IFCAP_TXCSUM from member interfaces while bridging.

18 years agoMFC jumbo mbuf cluster allocation API providing 4k, 9k and 16k clusters:
andre [Wed, 18 Jan 2006 13:24:24 +0000 (13:24 +0000)]
MFC jumbo mbuf cluster allocation API providing 4k, 9k and 16k clusters:

 struct mbuf *m_getjcl(int how, short type, int flags, int size)
 void *m_cljget(struct mbuf *m, int how, int size)

For size both take MCLBYTES, MJUM4BYTES, MJUM9BYTES, MJUM16BYTES.

Tested by: glebius
Sponsored by: TCP/IP Optimization Fundraise 2005

18 years agoCheck ifp before dereferencing it in xl_detach(). xl_detach() can be called
glebius [Wed, 18 Jan 2006 09:42:21 +0000 (09:42 +0000)]
Check ifp before dereferencing it in xl_detach(). xl_detach() can be called
from xl_attach(), when ifp is not defined yet.

Found with: Coverity Prevent(tm)

18 years agoAdd FreeBSD-SA-06:05.80211.
simon [Wed, 18 Jan 2006 09:20:22 +0000 (09:20 +0000)]
Add FreeBSD-SA-06:05.80211.

18 years agoCorrect a buffer overflow when scanning for 802.11 wireless networks.
cperciva [Wed, 18 Jan 2006 09:03:15 +0000 (09:03 +0000)]
Correct a buffer overflow when scanning for 802.11 wireless networks.

Security: FreeBSD-SA-06:05.80211

18 years agoMFC:
ariff [Wed, 18 Jan 2006 01:05:34 +0000 (01:05 +0000)]
MFC:
  - Locking fixes. Release lock while chn_intr().
  - Mark MPSAFE since most of the locking procedures already implemented.
  - Turn on inverted external amplifier sense flag for selected boards.

Tested by: bland

18 years agoMFC r1.9: xref da(4) and sa(4).
jkoshy [Tue, 17 Jan 2006 15:26:28 +0000 (15:26 +0000)]
MFC r1.9: xref da(4) and sa(4).

18 years agoMFC: pf_norm.c, 1.15:
mlaier [Tue, 17 Jan 2006 13:05:32 +0000 (13:05 +0000)]
MFC: pf_norm.c, 1.15:
    Move m_adj after checking that m_dup succeeded.

    Found with: Coverity Prevent(tm)

18 years ago- Add FreeBSD-SA-06:0[1234].
simon [Tue, 17 Jan 2006 13:00:31 +0000 (13:00 +0000)]
- Add FreeBSD-SA-06:0[1234].
- Bump copyright year.

18 years agoMFC: Sync with HEAD.
pjd [Tue, 17 Jan 2006 11:49:09 +0000 (11:49 +0000)]
MFC: Sync with HEAD.

18 years agoMFC: sys/kern/kern_malloc.c 1.150
pjd [Tue, 17 Jan 2006 10:19:37 +0000 (10:19 +0000)]
MFC: sys/kern/kern_malloc.c 1.150

In realloc(9), determine size of the original block based on
UMA_SLAB_MALLOC flag.
In some circumstances (I observed it when I was doing a lot of reallocs)
UMA_SLAB_MALLOC can be set even if us_keg != NULL.

If this is the case we have wonderful, silent data corruption, because less
data is copied to the newly allocated region than should be.

18 years agoMFC: sys/kern/kern_malloc.c 1.149
pjd [Tue, 17 Jan 2006 10:17:37 +0000 (10:17 +0000)]
MFC: sys/kern/kern_malloc.c 1.149

Detect memory leaks when memory type is being destroyed.
This is very helpful for detecting kernel modules memory leaks on unload.

18 years agoMFC: Sync with HEAD.
pjd [Tue, 17 Jan 2006 09:28:57 +0000 (09:28 +0000)]
MFC: Sync with HEAD.

18 years agoMFC: Sync with HEAD.
pjd [Tue, 17 Jan 2006 09:11:30 +0000 (09:11 +0000)]
MFC: Sync with HEAD.

18 years agoMFC: Sync with HEAD.
pjd [Tue, 17 Jan 2006 08:59:55 +0000 (08:59 +0000)]
MFC: Sync with HEAD.

18 years agoMFC 1.8 - bring into conformance with rc.d standards
dougb [Tue, 17 Jan 2006 07:12:38 +0000 (07:12 +0000)]
MFC 1.8 - bring into conformance with rc.d standards
MFC 1.9 - Use hw.machine_arch instead of hw.machine

18 years agoMFC 1.279, use NETWORKING for early_late_divider in a jail
dougb [Tue, 17 Jan 2006 07:04:31 +0000 (07:04 +0000)]
MFC 1.279, use NETWORKING for early_late_divider in a jail

18 years agoMFC rc.conf 1.269 and rc.conf.5 1.275 - clear_tmp_X variable,
dougb [Tue, 17 Jan 2006 07:02:04 +0000 (07:02 +0000)]
MFC rc.conf 1.269 and rc.conf.5 1.275 - clear_tmp_X variable,
to support the cleanup of etc/rc.d/cleartmp

18 years agoMFC mechanism to include files added by ports which contain
dougb [Tue, 17 Jan 2006 06:53:18 +0000 (06:53 +0000)]
MFC mechanism to include files added by ports which contain
names of directories to include in the base ldconfig script.

Bump __FreeBSD_version to recognize this change

18 years agoMFC newsyslog 1.5, syslogd 1.11 - Swap REQUIRE and BEFORE
dougb [Tue, 17 Jan 2006 06:46:54 +0000 (06:46 +0000)]
MFC newsyslog 1.5, syslogd 1.11 - Swap REQUIRE and BEFORE

18 years agoMFC ntpd 1.12 and ntpdate 1.14 - use of REQUIRE rather than BEFORE,
dougb [Tue, 17 Jan 2006 06:45:05 +0000 (06:45 +0000)]
MFC ntpd 1.12 and ntpdate 1.14 - use of REQUIRE rather than BEFORE,
MFC ntpd 1.12 - REQUIRE devfs to help users with serial GPS interfaces
MFC ntpdate 1.15 - REQUIRE named

18 years agoMFC changes to have these scripts follow proper rc.d syntax
dougb [Tue, 17 Jan 2006 06:37:48 +0000 (06:37 +0000)]
MFC changes to have these scripts follow proper rc.d syntax

PR: conf/84574
Submitted by: Alexander Botero-Lowry

18 years agoMFC: Add another inverted EAPD quirk for Gateway 7326GZ.
ariff [Tue, 17 Jan 2006 05:13:37 +0000 (05:13 +0000)]
MFC: Add another inverted EAPD quirk for Gateway 7326GZ.

Tested by: Jeff Cross <jeff.cross at averageadmins.com>

18 years agoMFC:
flz [Mon, 16 Jan 2006 22:34:20 +0000 (22:34 +0000)]
MFC:

  Enable NO_GETMAXLUN quirk.

      src/sys/dev/usb/umass.c: rev 1.127 -> 1.128

PR: usb/81073
Submitted by: James E. Flemer <jflemer@alum.rpi.edu>

18 years agoMFC:
flz [Mon, 16 Jan 2006 19:51:41 +0000 (19:51 +0000)]
MFC:

  Add -K option to pkg_add and pkg_info.
  This option saves packages to PKGDIR (if defined or current directory by default)
  as they are downloaded.
  Silent a warning when -n is used and package has a +DISPLAY file.

      src/usr.sbin/pkg_install/info/perform.c: rev 1.53 -> 1.54
      src/usr.sbin/pkg_install/add/main.c: rev 1.65 -> 1.66
      src/usr.sbin/pkg_install/lib/lib.h: rev 1.56 -> 1.57
      src/usr.sbin/pkg_install/info/pkg_info.1: rev 1.55 -> 1.56
      src/usr.sbin/pkg_install/add/add.h: rev 1.12 -> 1.13
      src/usr.sbin/pkg_install/add/pkg_add.1: rev 1.68 -> 1.69
      src/usr.sbin/pkg_install/add/perform.c: rev 1.78 -> 1.79
      src/usr.sbin/pkg_install/info/info.h: rev 1.28 -> 1.29
      src/usr.sbin/pkg_install/lib/url.c: rev 1.4 -> 1.5
      src/usr.sbin/pkg_install/info/main.c: rev 1.48 -> 1.49

18 years agoMFC 1.4: fix bst.status and bst.rate to display correct informations.
bruno [Mon, 16 Jan 2006 09:13:53 +0000 (09:13 +0000)]
MFC 1.4: fix bst.status and bst.rate to display correct informations.

Approved by: njl

18 years agoMFC revision 1.40:
davidxu [Mon, 16 Jan 2006 06:25:32 +0000 (06:25 +0000)]
MFC revision 1.40:
Add a new feature to thr_kill, if thread ID argument is -1, send
signals to all threads except current sender.

18 years agoMFC following revisions:
davidxu [Mon, 16 Jan 2006 05:48:40 +0000 (05:48 +0000)]
MFC following revisions:
sys/umtx.h revision 1.17
kern/kern_umtx.c revision 1.34
kern/kern_thr.c revision 1.36

call kern_umtx_wake on thread exit.

18 years agoMFC:
davidxu [Mon, 16 Jan 2006 05:36:30 +0000 (05:36 +0000)]
MFC:
Sync with HEAD.

18 years agoMFC: Joyport blacklist. Either we're facing with broken hardware
ariff [Mon, 16 Jan 2006 02:08:56 +0000 (02:08 +0000)]
MFC: Joyport blacklist. Either we're facing with broken hardware
     or because this hardware need special (unknown) initialization
     procedures.

Reported by:    [1] Rob Clark <vx2 at tds.net>

[1] http://lists.freebsd.org/pipermail/freebsd-multimedia/2006-January/003535.html