122899 Commits

Author SHA1 Message Date
yongari
fda0556ed2 MFC if_lge.c rev 1.53 to RELENG_6:
Plug memory leak in jumbo buffer allocation failure path.
  Patch in the PR was modified to check active jumbo buffers in use
  and other possible jumbo buffer leak.

  Jumbo buffer usage in lge(4) still wouldn't be reliable due to lack
  of driver lock in local jumbo buffer allocator. Either introduce
  a new lock to protect jumbo buffer or switch to UMA backed page
  allocator for jumbo frame is required.

  I've removed informational device_printf in lge_free_jumbo_mem as
  lge_dev member variable in softc does not exist on RELENG_6.
  if_printf can't be used as sc->lge_ifp could be NULL.

  PR:	kern/78072
2008-03-18 02:01:21 +00:00
yongari
78d61a1d36 MFC: if_msk.c 1.30, if_msk.c 1.31 to RELENG_6
To overcome hardware checksum offload bug msk(4) used to compute
  TCP/UDP checksum in driver for short frames. For frames that requires
  hardware VLAN tag insertion, the checksum offload trick does not
  work due to changes of checksum offset in mbuf after the VLAN tag.

  Disable hardware checksum offload for VLAN interface to fix the bug.
2008-03-18 01:33:47 +00:00
yongari
d9c3b930aa MFC: if_msk.c 1.29, if_mskreg.h 1.12 to RELENG_6
Workaround GMAC hardware hang of Yukon II on the receipt of pause
  frames. This bug seems to happen on certain hardware model/revision
  (e.g. 88E8053) but it's not identified which hardwares are affected.
  Revision 1.4 of if_mskreg.h was not enough to workaround the bug.
  To workaround it, inrease GMAC FIFO threshold by one FIFO word to
  flush received pause frames.
2008-03-18 01:27:15 +00:00
emax
08f482b2ee MFC:
Add support for the NAP, GN and PANU profiles to the sdpd(8).
It should be mentioned that a somewhat similar patch was
submitted by Rako < rako29 at gmail dot com >
2008-03-18 00:29:26 +00:00
emax
36d31a4160 MFC:
Add structures to hold SDP parameters for the NAP, GN and PANU profiles.
It should be mentioned that a somewhat similar patch was submitted by
Rako < rako29 at gmail dot com >
2008-03-18 00:26:01 +00:00
rpaulo
4bd774d0b3 MFC r1.71:
Some PIIX4 chipsets need to be told to generate Stop Breaks by
 setting
 the appropriate bit in the DEVACTB register.
 This change allows the C2 state on those systems to work as expected.

 Reviewed by:    njl
 Submitted by:   Andriy Gapon <avg at icyb.net.ua>
2008-03-17 19:57:21 +00:00
antoine
4393c6109b MFC to RELENG_6
- Make Disk_Names() behave as documented in libdisk(3): return an array
  of disk names, where you must free each pointer, as well as the array
  by hand. [1]
  - Destaticize "disks" in Disk_Names, it has no reasons to be static.

  PR:             kern/96077 [1]
  PR:             kern/114110 [1]
  MFC after:      1 month
  Approved by:    rwatson (mentor)
2008-03-17 19:08:32 +00:00
jhb
ee63d7e78a MFC: Use cpu_feature2 and don't free anything in detach. 2008-03-17 18:31:06 +00:00
jhb
617495c5d4 MFC: Calculate the number of pages the GATT spans instead of assuming it
always spans 33 pages.
2008-03-17 18:27:23 +00:00
jhb
8dbb58f339 MFC: Add support for the BCM5722. 2008-03-17 18:24:04 +00:00
jhb
3ca0754306 MFC: Force an explicit dependency on opt_global.h for all module object
files.
2008-03-17 18:12:13 +00:00
jhb
61adc24114 MFC: Add a 'c7' CPUTYPE for VIA C7 CPUs. 2008-03-17 18:08:45 +00:00
jhb
0e5c8de59c MFC: Display the correct /boot.config file contents after parsing it. 2008-03-17 18:04:59 +00:00
jhb
dec5cd6ff9 MFC: Fail attempts to use file descriptors larger than SHRT_MAX. 2008-03-17 17:42:26 +00:00
jhb
9c82fd4f0f MFC: Remove the 'needbounce' variable from _bus_dmamap_load_buffer(). 2008-03-17 17:33:32 +00:00
gshapiro
95623d189d MFC: Switch libmilter from select(2) to poll(2) so milters are not limited
by the size of FD_SETSIZE.

     PR:             118824
     Submitted by:   vsevolod
2008-03-15 20:55:37 +00:00
alfred
4ca8b29bef In calcru, we make sure the thread's state is correct, however we
do not emit the thread or proc information making debugging this
assertion difficult.

Emit the thread/proc that caused the KASSERT to fail to ease debugging.

Note: this assert does not exist in later branches of FreeBSD.
2008-03-15 03:20:53 +00:00
emax
37ed69d618 MFC:
Update usage() - add new -D option. While I'm here, update copyright
information and license formatting
2008-03-15 02:36:32 +00:00
emax
e664415a4e MFC:
Add an option to register DUN (Dial-Up Networking) service on the same
RFCOMM channel if needed. There is really no good reason to not to support
this. AT-command exchange can be faked with chat script in ppp.conf.
2008-03-14 16:11:20 +00:00
emaste
977c485418 Honour mpsafe_vfs=0 in softdep_flush. This is basically a MFC of revision
1.206, except that Giant remains unconditionally acquired in the #ifdef
QUOTA case here (as QUOTA-enabled UFS on RELENG_6 is not MPSAFE).

Reviewed by:	kib
2008-03-14 15:25:44 +00:00
kensmith
a1f09e03eb MFC: dist.c v1.254, dist.h v1.72, menus.c v1.429, sysinstall.h v1.275
> Change sysinstall's handling of X11 stuff.  Doing it in pieces was
> probably the right thing to do a while ago but xorg has progressed
> to the point that for novice users (who are the ones expected to think
> installing X11 during an install...) it's best to just install the
> whole x11/xorg metaport for them.  This removes the X11 sub-menus
> and sets it up so you just select whether or not you want X11.  While
> here garbage collect an X11 configuration menu I missed removing when
> I removed support for attempting xorg configuration from inside sysinstall
> a while ago.
2008-03-13 15:28:17 +00:00
csjp
519bf56805 MFC revision 1.25 -- Make sure we return EINVAL for invalid commands 2008-03-13 13:53:20 +00:00
wollman
2b54dfe0c2 MFC rev. 1.26:
stdio is currently limited to file descriptors not greater than
  {SHRT_MAX}, so {STREAM_MAX} should be no greater than that.  (This
  does not exactly meet the letter of POSIX but comes reasonably close
  to it in spirit.)
2008-03-13 02:33:20 +00:00
brooks
7f99930208 Sync with current merging revs 1.27 and 1.31.
1.27:
Use get_if_var() to retrieve interface specific values of dhclient_flags
and background_dhclient.  This allows interfaces who's names are not
valid parts of shell variables and shortens the code.

1.31:
When the state of the interface changes rapidly enough there is a race
where dhclient is in the process of exiting due to the link going down
when the link coming up causes devd to try and start a new one.  This
results is the link being up, but no dhclient running.

Work around this race by checking a second time after a one second delay
before refusing to start a dhclient instance due to one already being
running.
2008-03-12 17:41:37 +00:00
brooks
3355824a91 MFC rev 1.18:
During PREINIT, when giving the interface the address 0.0.0.0, do it as an
alias to avoid distrubing other addresses.

PR:		bin/119255
Submitted by:	Jaakko Heinonen <jh at saunalahti dot fi>
2008-03-12 17:29:42 +00:00
cognet
49273f3e8c MFC rev 1.6:
date: 2008/03/06 22:27:35;  author: cognet;  state: Exp;  lines: +3 -1
MFi386:
revision 1.6
date: 2004/08/21 18:50:34;  author: alc;  state: Exp;  lines: +3 -1
Properly free the temporary sf_buf in uiomove_fromphys() if a copyin or
copyout fails.

Obtained from: DragonFlyBSD

Spotted out by: Mark Tinguely
2008-03-12 13:51:51 +00:00
rwatson
f4830d9c85 Merge gzip.c:1.6 from HEAD to RELENG_7:
Teach gunzip that .tbz and .tbz2 uncompress to .tar, in a manner similar to
  its existing understanding that .tgz uncompresses to .tar.

  PR:             121519
  Submitted by:   Ighighi <ighighi at gmail.com>
2008-03-12 11:34:26 +00:00
rwatson
526e2cbe38 Merge NOTES:1.1475 from HEAD to RELENG_6:
HZ now defaults to 1000 on many architectures, so update NOTES to reflect
  that.

  PR:             113670
  Submitted by:   Ighighi <ighighi at gmail.com>
2008-03-12 11:33:06 +00:00
delphij
a5473e5bf3 Merge revision 1.1.1.8
date: 2007/04/03 15:51:53;  author: mp;  state: Exp;  lines: +2 -1
Import vendor patch to fix postcmd regression in tcsh-6.15.00.
2008-03-12 01:52:48 +00:00
delphij
278e381182 MFC: tcsh 6.15.00. 2008-03-11 22:12:58 +00:00
mav
9025c17b0c MFC rev. 1.23-1.24
To avoid control data losses, do not acknowledge recieving of control packet
if netgraph reported error while delivering to destination.
Reset 'next send' counter to the last requested by peer on ack timeout,
to resend all subsequest packets after lost one again without additional hints.
2008-03-11 19:14:10 +00:00
mav
c3331adffe MFC rev. 1.61
Send only one incoming notification at a time to reduce queue
trashing and improve performance.
Remove waitflag argument from ng_ksocket_incoming2(), it means nothing
as function call was queued by netgraph.
Remove node validity check, as node validity guarantied by netgraph.
Update comments.
2008-03-11 19:04:42 +00:00
cvs2svn
2721040c5b This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2008-03-11 16:51:08 +00:00
emaste
baf3e27b7d MFC minor cleanups:
ffs_softdep.c 1.210
  Add a newline to the printf message.

ffs_softdep.c 1.214 (part)
  Update comment to match the DIAGNOSTIC -> INVARIANTS change.
2008-03-11 15:14:31 +00:00
mav
ec0275f98d MFC: rev. 1.148-1.149
Implement 128 items node name hash for faster name search.
Increase node ID hash size from 32 to 128 items.
Increase default queue items allocation limit from 512 to 4096 items
to avoid terrible unpredicted effects for netgraph operation of their
exhaustion while allocating control messages.
Add separate configurable 512 items limit for data items allocation
for DoS/overload protection.
2008-03-10 20:38:56 +00:00
nyan
b093f49518 MFC: sys/pc98/include/md_var.h 1.3; sys/pc98/pc98/pc98_machdep.c 1.28
Add pc98 specific code to adjust the firmware geometry when it differs
  from the actual geometry.  This enables support of disks larger than
  ~120GB on pc98 boxes.
2008-03-10 12:57:49 +00:00
rwatson
fd324744cb Merge db_command.c from HEAD to RELENG_6:
When killing a user process from DDB, check that the requested signal is
  > 0 rather than >= 0, or we will panic when trying to deliver the signal.

  PR:             100802
  Submitted by:   Valerio Daelli <valerio.daelli at gmail.com>
2008-03-10 10:40:00 +00:00
rwatson
e3589b2a7f Merge db_input.c:1.39 from HEAD to RELENG_6:
Reserve two bytes at the end of the DDB input line in db_readline() to
  hold the newline and nul terminator.  Otherwise, there are cases where
  garbage may end up in the command history due to a lack of a nul
  terminator, or input may end up without room for a newline.

  PR:             119079
  Submitted by:   Michael Plass <mfp49_freebsd@plass-family.net>
2008-03-10 10:23:37 +00:00
mav
3d9f1f5c36 MFC rev. 1.93-1.94
Make session ID generator to use session ID hash.
Make session ID generator thread-safe.
Use more compact LIST instead of TAILQ for session hash.
Add all listening hooks into LIST to simplify searches.
Use ng_findhook() instead of own equal implementation.
2008-03-09 20:05:39 +00:00
mav
28e6df5f37 MFC: Add support for the libalias redirect functionality.
Submitted by:   Vadim Goncharov <vadim_nuclight@mail.ru>
2008-03-09 20:02:35 +00:00
rwatson
6195cc13a0 Merge db_input.c:1.38 from HEAD to RELENG_6:
When redrawing an input line, count backspaces to get to the beginning of
  the input field from the current cursor location, rather than the end of
  the input line, as the cursor may not be at the end of the line.
  Otherwise, we may overshoot, overwriting a bit of the previous line and
  failing to fully overwrite the current line.

  PR:             119079
  Submitted by:   Michael Plass <mfp49_freebsd@plass-family.net>
2008-03-09 14:50:28 +00:00
marius
108519b65a MFC: sys/conf/files.sparc64 1.94; sys/sparc64/include/md_var.h 1.17;
sys/sparc64/sparc64/ata_machdep.c 1.1

The Sun disk label only uses 16-bit fields for cylinders, heads and
sectors so the geometry of large IDE disks has to be adjusted.
2008-03-09 14:34:26 +00:00
marius
03ab12d504 MFC: 1.198
Add a hook that allows the geometry to be overridden on certain platforms.
2008-03-09 14:30:49 +00:00
marius
11999f7ee9 MFC: 1.11
Allow the targeted CPU type to be set via -mcpu instead of
limiting to the hardcoded equivalent of -mcpu=ultrasparc.

PR:		109510
2008-03-09 14:10:23 +00:00
edwin
74ebd0154a MFV: tzdata2008a
Notable changes:

- Chilis DST has been extended for 3 weeks.
- No leapsecond in 2008

Approved by:	grog@ (mentor)
2008-03-09 11:23:08 +00:00
bz
a30a5ef13a MFC rev.s 1.18 ipsec_input.c, 1.16 ipsec_output.c, 1.15 xform_ipip.c
Replace hard coded options by their defined PFIL_{IN,OUT} names.
2008-03-08 18:56:22 +00:00
bz
eb3f079300 MFC rev. 1.27 key.c
'spi' and the return value of ntohl are unsigned. Remove the extra >=0
  check which was always true.
  Document the special meaning of spi values of 0 and 1-255 with a comment.

  Found with:     Coverity Prevent(tm)
  CID:            2047
2008-03-08 18:38:25 +00:00
bz
360f674775 MFC rev. 1.26 key.c
In case of failure we can directly return ENOBUFS because
  'result' is still NULL and we do not need to free anything.
  That allows us to gc the entire goto parts and a now unused variable.

  Found with:     Coverity Prevent(tm)
  CID:            2519
2008-03-08 18:37:03 +00:00
bz
633096586a MFC rev. 1.25
Add a missing return so that we drop out in case of an error and
  do not continue with a NULL pointer. [1]

  While here change the return of the error handling code path above.
  I cannot see why we should always return 0 there. Neither does KAME
  nor do we in here for the similar check in all the other functions.

  Found with:     Coverity Prevent(tm) [1]
  CID:            2521
2008-03-08 18:34:17 +00:00
bz
c2be452caa MFC rev. 1.17 ipsec_input.c
Looking at {ah,esp}_input_cb it seems we might be able to end up
  without an mtag in ipsec4_common_input_cb.
  So in case of !IPCOMP (AH,ESP) only change the m_tag_id if an mtag
  was passed to ipsec4_common_input_cb.

  Found with:     Coverity Prevent(tm)
  CID:            2523
2008-03-08 18:29:38 +00:00