118361 Commits

Author SHA1 Message Date
delphij
68b438857e MFC pidfile(3) function, and convert several applications to make use
of it.

Bump __FreeBSDversion for the MFC.

Discussed with:	pjd
2006-01-15 17:50:38 +00:00
glebius
a06eca80b3 MFC 1.183:
Forget about ipfw1 and ipfw2. We aren't in RELENG_4 anymore.
2006-01-15 01:05:21 +00:00
glebius
470df2fb19 MFC:
Add a new feature for optimizining ipfw rulesets - substitution of the
  action argument with the value obtained from table lookup. The feature
  is now applicable only to "pipe", "queue", "divert", "tee", "netgraph"
  and "ngtee" rules.
2006-01-15 01:00:55 +00:00
glebius
9bfc349ebe MFC 1.118:
Optimize parallel processing of ipfw(4) rulesets eliminating the locking
  of the radix lookup tables. Since several rnh_lookup() can run in
  parallel on the same table, we can piggyback on the shared locking
  provided by ipfw(4).
    However, the single entry cache in the ip_fw_table can't be used lockless,
  so it is removed. This pessimizes two cases: processing of bursts of similar
  packets and matching one packet against the same table several times during
  one ipfw_chk() lookup. To optimize the processing of similar packet bursts
  administrator should use stateful firewall. To optimize the second problem
  a solution will be provided soon.

  Details:
    o Since we piggyback on the ipfw(4) locking, and the latter is per-chain,
      the tables are moved from the global declaration to the
      struct ip_fw_chain.
    o The struct ip_fw_table is shrunk to one entry and thus vanished.
    o All table manipulating functions are extended to accept the struct
      ip_fw_chain * argument.
    o All table modifing functions use IPFW_WLOCK_ASSERT().
2006-01-15 00:55:04 +00:00
glebius
bf3ba15d9b Cleanup _FreeBSD_version. 2006-01-15 00:52:15 +00:00
glebius
63168c1b16 MFC:
Catch up with ip_dummynet.h rev. 1.38.
2006-01-15 00:51:02 +00:00
glebius
035a021290 MFC:
First step in removing welding between ipfw(4) and dummynet.

  o Do not use ipfw_insn_pipe->pipe_ptr in locate_flowset(). The
    _ipfw_insn_pipe isn't touched by this commit to preserve ABI
    compatibility.
  o To optimize the lookup of the pipe/flowset in locate_flowset()
    introduce hashes for pipes and queues:
    - To preserve ABI compatibility utilize the place of global list
      pointer for SLIST_ENTRY.
    - Introduce locate_flowset(queue nr) and locate_pipe(pipe nr).
  o Rework all the dummynet code to deal with the hashes, not global
    lists. Also did some style(9) changes in the code blocks that were
    touched by this sweep:
    - Be conservative about flowset and pipe variable names on stack,
      use "fs" and "pipe" everywhere.
    - Cleanup whitespaces.
    - Sort variables.
    - Give variables more meaningful names.
    - Uppercase and dots in comments.
    - ENOMEM when malloc(9) failed.
2006-01-15 00:46:17 +00:00
glebius
7799eeee1b Fix build. 2006-01-15 00:20:31 +00:00
delphij
ac58eacb60 MFC revision 1.185
date: 2005/12/16 18:32:39;  author: delphij;  state: Exp;  lines: +2 -0
In pipe_write(): when uiomove() fails, do not spin on it forever.

Submitted by:   Kostik Belousov <kostikbel at gmail.com> on -current@
Message-ID:     <20051216151016.GE84442@deviant.zoral.local>
Security:	Local DoS
2006-01-14 19:57:48 +00:00
netchild
54d6a62a16 MFC r1.12:
Emit USB_EVENT_DRIVER_DETACH on detach.

  PR:             83247
  Submitted by:   Sangwoo Shim <ssw@neo.redjade.org>
2006-01-14 14:21:59 +00:00
netchild
d4a48e23d3 MFC bktr_card.c 1.35, bktr_card.h 1.12, bktr_tuner.c 1.20, bktr_tuner.h 1.7:
Add some cards:
   - several TerraTec TValue [1]
   - PixelView PlayTV Pro REV-4C [2]

  In case you have the PixelView card, please tell us the "pciconf -v -l"
  output on multimedia@FreeBSD.org if it works. There are revisions out there
  which may not work and we need to know which ones work.

  PR:             53383 [1], 76002 [2]
  Submitted by:   Tanja Wittke <tawi@gruft.de> [1], barner [1],
                  Dan Angelescu <mrhsaacdoh@yahoo.com> [2]
2006-01-14 14:18:34 +00:00
pav
9ee0aaafb3 MFC 1.34: mention the size of the additional header 2006-01-14 12:13:04 +00:00
dougb
efccc3e1e4 MFC import of BIND 9.3.2 2006-01-14 10:13:50 +00:00
glebius
e9cbabbbdd - Restore VLAN_INPUT_TAG() macro to preserve API compatibility for
third party drivers.
- Fix bugs destribed in previous revision using macro with
  another name.
2006-01-14 10:05:07 +00:00
joel
b387971eec MFC r1.1343: Fix minor sorting issue. 2006-01-14 10:00:13 +00:00
dougb
01fd4599c4 These files are only relevant in HEAD, where the imports are done. 2006-01-14 06:13:17 +00:00
tegge
81ceadf72a MFC: Add marker vnodes to ensure that all vnodes associated with the mount
point are iterated over when using MNT_VNODE_FOREACH.
2006-01-14 01:18:03 +00:00
tegge
479ccb2392 MFC: Close race where wakeup after background write could be lost. 2006-01-14 01:09:10 +00:00
tegge
c398a9e83f MFC: Broaden scope of softdep_worklist_busy rwlock protection. 2006-01-14 01:07:14 +00:00
tegge
c8d0f60cdf MFC: Obtain mount point lock before restarting sync loop if vget() failed. 2006-01-14 01:05:22 +00:00
ariff
019b9af95d MFC: Fix broken playback capabilities to prevent impending disaster.
The minimum / maximum speed was way too low / high!

     minspeed =   2000 - is this for real ?
     maxspeed = 767999 - is this for real ?????

     Wrap everything into 8000 - 48000 boundary, just to be safe.
2006-01-14 00:35:18 +00:00
pav
aeeb3bfd31 MFC 1.74: xref mount_reiserfs(8) 2006-01-13 20:05:59 +00:00
pav
b68f1c7b71 MFC 1.16: fix: documentation for -m option was inserted halfway thru the text
of -l option.
2006-01-13 20:02:56 +00:00
jhb
256ff0a5b8 MFC: Fix description of si2 firmware and update the si3 firmware to the
latest version in the SDK.
2006-01-13 19:27:35 +00:00
jhb
4fafdc5737 MFC: Fix /dev entries for cards with multiple modules. 2006-01-13 19:26:08 +00:00
glebius
03bc08061d - Restore VLAN_INPUT_TAG() macro to preserve API compatibility for
third party drivers.
- Fix bugs destribed in previous revision using macro with
  another name.
2006-01-13 19:21:45 +00:00
joel
a889984747 MFC: Remove references to snd_vortex1(4). 2006-01-13 14:56:51 +00:00
glebius
ed67dec936 MFC:
- Use VLAN_TAG_VALUE() not only to read a dot1q tag
    value from an m_tag, but also to set it.  This reduces
    complex code duplication and improves its readability.
  - Fix VLAN_INPUT_TAG() macro, so that it doesn't touch mtag in
    case if memory allocation failed.
  - Remove fourth argument from VLAN_INPUT_TAG(), that was used
    incorrectly in almost all drivers. Indicate failure with
    mbuf value of NULL.
2006-01-13 11:51:11 +00:00
rwatson
2776f9ec11 MFC smb_dev.c:1.29 from HEAD to RELENG_6:
Prevent module unloading if there are active connections.

   PR:             kern/89085
   Submitted by:   Rostislav Krasny

Requested by:	Rostislav Krasny <rosti dot bsd at gmail dot com>
2006-01-13 10:23:39 +00:00
des
35d97efa7b MFC: (1.76) reflect progress in proctitle (1.77) fix mirror mode 2006-01-13 09:07:49 +00:00
ariff
3dcf9009a7 MFC: Another major fixes and enhancements:
- MPSAFE
     - Fix / reorganize attach routine. Device specific initialization must
       be done after generic bus / DMA setup. At last, Virtual Channels
       (vchan) works as expected.

Tested by:	barner
2006-01-13 05:24:41 +00:00
ariff
3769380cc5 MFC: More thorough fixes to enable inverted external amplifier sense flag.
Instead of dragging the entire ICH4/82801DB into this mess, select
     only few boards based on pci subdevice / subvendor.

Tested by:	Daisuke Orikasa <luxury-acura-3.5rl at nifty.com>
2006-01-13 04:26:48 +00:00
marcel
b2222f6810 MFC rev 1.20: Fix FD_ISSET() on LP64 platforms.
PR: ia64/91421
Submitted by: Tanaka Akira (akr at m17n dot org)
2006-01-13 03:11:16 +00:00
cperciva
dad028c05c MFC:
Make "portsnap extract" automatically create ${PORTSDIR} if necessary
  instead of complaining that "Directory does not exist or is not
  writable".
2006-01-13 00:53:53 +00:00
ru
8fa524d428 MFC: Present new BSD releases to -mdoc. 2006-01-12 15:44:42 +00:00
ru
33034883e0 MFC: 1.3: Remove public declaration of static. 2006-01-12 10:35:24 +00:00
ru
b3c6d28d9a MFC: Fix creation of smb devices. 2006-01-12 10:34:38 +00:00
maxim
2e1a8fea8a MFC rev. 1.70: deal with the overridden SIGCHLD handler. 2006-01-12 05:24:46 +00:00
flz
384cb78489 MFC:
Fix -r causing SIGSEGV due to parse_args() being called before font_current is set.

      src/usr.sbin/kbdmap/kbdmap.c: rev 1.4
2006-01-12 01:26:34 +00:00
glebius
102e170e76 Merge rev. 1.130 that I though was merged long time ago. Thanks to emaste
for noticing this.

  Drop current rtentry lock before calling rt_getifa(). This fixes a LOR
  and a possible recursive use of rtentry mutex.
2006-01-12 00:22:12 +00:00
dumbbell
14ecd1f659 MFC:
src/sys/dev/atkbdc/psm.c; revision 1.88
  date: 2006/01/05 19:24:01;  author: dumbbell;  state: Exp;  lines: +2 -1

  Fix a bug in Synaptics Touchapd support where psm(4) will enter an infinite
  loop if it receives an out of sync packet.

  Reviewed by:	mux (mentor)
2006-01-11 20:27:23 +00:00
delphij
19aa2b762e MFC revision 1.131
date: 2005/12/13 15:32:52;  author: delphij;  state: Exp;  lines: +5 -5
In Linux, kernel parameters passed to ioctl are by value, while in FreeBSD
they are passed by reference.  Handle the difference within the
linux_ioctl_termio on the LINUX_TCFLSH path.

Submitted by:   Jaroslav Drzik <jaro_AT_coop-voz_dot_sk>
Reminded by:	glebius
2006-01-11 15:40:00 +00:00
pav
dd3c9c4347 MFC 1.28: fix timeouted probes in pretty print of multipath routes 2006-01-11 12:59:39 +00:00
rwatson
5bb071d425 MFC devfs_rule.c:1.21 from HEAD to RELENG_6:
When returning EIO from DEVFSIO_RADD ioctl, drop the exclusive rule
  lock.  Otherwise the system comes to a rather sudden and grinding
  halt.

As the underlying devfs locking changes that lead to this bug have not
been merged to RELENG_5, this fix to those locking changes does not
need to be merged.
2006-01-11 10:15:57 +00:00
cperciva
25cd32d200 Correct insecure temporary file usage in texindex. [06:01]
Correct insecure temporary file usage in ee. [06:02]
Correct a race condition when setting file permissions, sanitize file
names by default, and fix a buffer overflow when handling files
larger than 4GB in cpio. [06:03]
Fix an error in the handling of IP fragments in ipfw which can cause
a kernel panic. [06:04]

Security:	FreeBSD-SA-06:01.texindex
Security:	FreeBSD-SA-06:02.ee
Security:	FreeBSD-SA-06:03.cpio
Security:	FreeBSD-SA-06:04.ipfw
2006-01-11 08:02:16 +00:00
brooks
e6a4fb6f3c MFC revs 1.27 and 1.28.
1.27: don't crash when given an invalid nwkey string
 1.28: parse SSIDs correctly and bail immediatly when invalid

PR:		misc/88159, bin/74509
2006-01-11 05:56:02 +00:00
flz
b129cd52e6 MFC:
- Add an entry for Acer Acerscan 1240U.

      src/share/man/man4/uscanner.4: rev 1.21
2006-01-11 00:37:32 +00:00
flz
411c651bd6 MFC:
Add Product ID for Acerscan 1240u and the corresponding entry in uscanner.c.

      src/sys/dev/usb/usbdevs: rev 1.247
      src/sys/dev/usb/uscanner.c: rev 1.67
2006-01-11 00:29:16 +00:00
krion
742f52a8cb MFC: add/extract.c:1.44 create/perform.c:1.82 create/pkg_create.1:1.70 create/pl.c:1.28
info/show.c:1.40 lib/plist.c:1.51

  date: 2006/01/07 22:10:57;  author: krion;  state: Exp;  lines: +10 -3
  When using @cwd %%FOO%%, we must ensure to return in the original
  prefix later, but doing so with @cwd %%OLDPREFIX%% (having
  PLIST_SUB+="OLDPREFIX=${PREFIX}") hardcodes the value in the packing
  list. That's not really a problem when dealing with ports but that's
  a problem with packages since pkg_add -p option only overrides the
  first @cwd occurrence.

  This patch allow us to use @cwd without any argument. If no
  directory argument is given, it will set current working directory
  to the first prefix given by the @cwd command.

  PR:             bin/77212
  Submitted by:   flz
2006-01-10 22:17:08 +00:00
jhb
b01bef48d7 MFC: Fix a couple of issues with the ibcs2 module event handler. 2006-01-10 21:44:58 +00:00