]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoBump version addendum.
des [Sat, 30 Sep 2006 13:39:07 +0000 (13:39 +0000)]
Bump version addendum.

MFC after: 1 week

17 years agoMerge conflicts.
des [Sat, 30 Sep 2006 13:38:06 +0000 (13:38 +0000)]
Merge conflicts.

MFC after: 1 week

17 years agoDocument ioctls differently, like is done in other section four manpages.
ru [Sat, 30 Sep 2006 13:34:46 +0000 (13:34 +0000)]
Document ioctls differently, like is done in other section four manpages.

17 years agoThis commit was generated by cvs2svn to compensate for changes in r162852,
des [Sat, 30 Sep 2006 13:29:51 +0000 (13:29 +0000)]
This commit was generated by cvs2svn to compensate for changes in r162852,
which included commits to RCS files with non-trunk default branches.

17 years agoVendor import of OpenSSH 4.4p1.
des [Sat, 30 Sep 2006 13:29:51 +0000 (13:29 +0000)]
Vendor import of OpenSSH 4.4p1.

17 years agoFix build due to the incomplete removal of demangle.h.
ru [Sat, 30 Sep 2006 12:52:15 +0000 (12:52 +0000)]
Fix build due to the incomplete removal of demangle.h.

17 years agoForcet commit to note repo copy:
netchild [Sat, 30 Sep 2006 12:44:30 +0000 (12:44 +0000)]
Forcet commit to note repo copy:
 envy24.c -> envy24ht.c
 envy24.h -> envy24ht.h
 ak452x.c -> spicds.c
 ak452x.h -> spicds.h

Fast repo copy by: simon (30min turn-around)

17 years agoDon't use data after free.
netchild [Sat, 30 Sep 2006 12:37:43 +0000 (12:37 +0000)]
Don't use data after free.

Found by: Coverity Prevent
CID: 536
Submitted by: harti (via vs)

17 years agoRevise markup.
ru [Sat, 30 Sep 2006 11:48:12 +0000 (11:48 +0000)]
Revise markup.

17 years agoRegen (removal of WITHOUT_LIBC_R).
ru [Sat, 30 Sep 2006 11:34:22 +0000 (11:34 +0000)]
Regen (removal of WITHOUT_LIBC_R).

17 years agoRemoved libc_r build support.
ru [Sat, 30 Sep 2006 11:32:46 +0000 (11:32 +0000)]
Removed libc_r build support.

17 years agoRemove mentions of libc_r.
ru [Sat, 30 Sep 2006 11:22:26 +0000 (11:22 +0000)]
Remove mentions of libc_r.

17 years agoMarkup nit.
ru [Sat, 30 Sep 2006 11:12:36 +0000 (11:12 +0000)]
Markup nit.

17 years agoRevise markup.
ru [Sat, 30 Sep 2006 11:02:17 +0000 (11:02 +0000)]
Revise markup.

17 years agoRevise markup in recently added manpages.
ru [Sat, 30 Sep 2006 10:34:13 +0000 (10:34 +0000)]
Revise markup in recently added manpages.

17 years agoFix markup, language, function prototype, and example code.
ru [Sat, 30 Sep 2006 10:24:00 +0000 (10:24 +0000)]
Fix markup, language, function prototype, and example code.

17 years agoRemove the no longer relevant or correct bootinfo sysctls.
phk [Sat, 30 Sep 2006 10:08:09 +0000 (10:08 +0000)]
Remove the no longer relevant or correct bootinfo sysctls.

17 years agoThis commit was generated by cvs2svn to compensate for changes in r162837,
delphij [Sat, 30 Sep 2006 09:44:58 +0000 (09:44 +0000)]
This commit was generated by cvs2svn to compensate for changes in r162837,
which included commits to RCS files with non-trunk default branches.

17 years agoMFS: Remove file that was disappeared from gcc distribution.
delphij [Sat, 30 Sep 2006 09:44:58 +0000 (09:44 +0000)]
MFS: Remove file that was disappeared from gcc distribution.

While I'm there, add the file into ObsoleteFiles.inc.

Approved by: maintainer (kan)

17 years agoCreate section 8 man subdirectories for PowerPC.
ru [Sat, 30 Sep 2006 09:02:38 +0000 (09:02 +0000)]
Create section 8 man subdirectories for PowerPC.

17 years agoOne more white space fix.
pjd [Sat, 30 Sep 2006 08:23:06 +0000 (08:23 +0000)]
One more white space fix.

17 years agoRemove trailing spaces.
pjd [Sat, 30 Sep 2006 08:16:49 +0000 (08:16 +0000)]
Remove trailing spaces.

17 years agoAny call of tty_close() with a tty refcount of <= 1 is wrong and we will
mbr [Sat, 30 Sep 2006 08:11:51 +0000 (08:11 +0000)]
Any call of tty_close() with a tty refcount of <= 1 is wrong and we will
free the tty in this case. This is a workaround until the underlaying
devfs/tty problems are fixed.

MFC after: 1 day

17 years agoRemove trailing spaces.
pjd [Sat, 30 Sep 2006 08:01:11 +0000 (08:01 +0000)]
Remove trailing spaces.

17 years agoo Check we have a non-NULL pointer to a super block before dereference it.
maxim [Sat, 30 Sep 2006 07:34:20 +0000 (07:34 +0000)]
o Check we have a non-NULL pointer to a super block before dereference it.

PR: misc/103822
Submitted by: Dmitry Stefankov
MFC after: 2 weeks

17 years agoNuke OSSV4_EXPERIMENT ifdefs from kludgy MIXER_SIZE definition
ariff [Sat, 30 Sep 2006 01:24:22 +0000 (01:24 +0000)]
Nuke OSSV4_EXPERIMENT ifdefs from kludgy MIXER_SIZE definition
since the exclusion of sizeof(oss_mixer_enuminfo) is the real
cause of overflow (worth of +3000 bytes).

Noticed by: tegge

17 years agoThe addition of few more 32bit integer into struct snd_mixer causing
ariff [Sat, 30 Sep 2006 01:01:18 +0000 (01:01 +0000)]
The addition of few more 32bit integer into struct snd_mixer causing
an accidental MIXER_SIZE overflow. Use 8bit integer instead of 32bit
to reduce the kludge size.

Noticed by: tegge

17 years agoMarkup nit.
ru [Fri, 29 Sep 2006 22:57:22 +0000 (22:57 +0000)]
Markup nit.

17 years agoMarkup nits.
ru [Fri, 29 Sep 2006 22:51:29 +0000 (22:51 +0000)]
Markup nits.

17 years agoSpelling.
ru [Fri, 29 Sep 2006 22:51:04 +0000 (22:51 +0000)]
Spelling.

17 years agoBack out rev. 1.152 as it was breaking vlan tag insertion when vlan tag
andre [Fri, 29 Sep 2006 21:38:12 +0000 (21:38 +0000)]
Back out rev. 1.152 as it was breaking vlan tag insertion when vlan tag
stripping was disabled due to being in promisc mode.  This is a hardware
bug.  Update comment to explicitly state the reason the manual vlan tag
insertion in this case.  See rev. 1.53 for further information as well.

Noticed by: jhb

17 years agoMarkup nit.
ru [Fri, 29 Sep 2006 21:17:10 +0000 (21:17 +0000)]
Markup nit.

17 years agoFix WARNS=2 warnings.
ru [Fri, 29 Sep 2006 20:57:38 +0000 (20:57 +0000)]
Fix WARNS=2 warnings.

17 years agoFix most of the WARNS=2 warnings.
ru [Fri, 29 Sep 2006 20:27:41 +0000 (20:27 +0000)]
Fix most of the WARNS=2 warnings.

17 years agoOops, add return values for the smap command function. We must have the
jhb [Fri, 29 Sep 2006 20:07:16 +0000 (20:07 +0000)]
Oops, add return values for the smap command function.  We must have the
warnings set weird or something because gcc didn't warn about this at all.

Submitted by: ru

17 years agoMarkup fixes.
ru [Fri, 29 Sep 2006 17:57:04 +0000 (17:57 +0000)]
Markup fixes.

17 years agoSync usage() with manpage's SYNOPSIS.
ru [Fri, 29 Sep 2006 17:36:38 +0000 (17:36 +0000)]
Sync usage() with manpage's SYNOPSIS.

17 years agoLine up usage output.
ru [Fri, 29 Sep 2006 17:28:01 +0000 (17:28 +0000)]
Line up usage output.

17 years agoFix usage().
ru [Fri, 29 Sep 2006 17:23:14 +0000 (17:23 +0000)]
Fix usage().

17 years agoSync usage() with manpage's SYNOPSIS.
ru [Fri, 29 Sep 2006 17:17:53 +0000 (17:17 +0000)]
Sync usage() with manpage's SYNOPSIS.

17 years agoSync usage() with manpage's SYNOPSIS.
ru [Fri, 29 Sep 2006 17:04:03 +0000 (17:04 +0000)]
Sync usage() with manpage's SYNOPSIS.

17 years agoLanguage tweak.
ru [Fri, 29 Sep 2006 16:51:29 +0000 (16:51 +0000)]
Language tweak.

17 years agoSync usage() and SYNOPSIS.
ru [Fri, 29 Sep 2006 16:46:01 +0000 (16:46 +0000)]
Sync usage() and SYNOPSIS.

17 years agoRemove stone-aged and irrelevant "#ifndef notdef".
andre [Fri, 29 Sep 2006 16:44:45 +0000 (16:44 +0000)]
Remove stone-aged and irrelevant "#ifndef notdef".

17 years agoNits.
bms [Fri, 29 Sep 2006 16:16:41 +0000 (16:16 +0000)]
Nits.

Submitted by: ru

17 years agoWhitespace nit.
ru [Fri, 29 Sep 2006 16:10:28 +0000 (16:10 +0000)]
Whitespace nit.

17 years agoSync utility's usage() with manpage's SYNOPSIS.
ru [Fri, 29 Sep 2006 16:07:44 +0000 (16:07 +0000)]
Sync utility's usage() with manpage's SYNOPSIS.

17 years agoPush removal of mrouted down to the rest of the tree.
bms [Fri, 29 Sep 2006 15:45:11 +0000 (15:45 +0000)]
Push removal of mrouted down to the rest of the tree.

17 years agoDon't run install-info under lockf if not installing in parallel.
ru [Fri, 29 Sep 2006 15:36:19 +0000 (15:36 +0000)]
Don't run install-info under lockf if not installing in parallel.

Requested by: rwatson

17 years agoMarkup fixes.
ru [Fri, 29 Sep 2006 15:20:48 +0000 (15:20 +0000)]
Markup fixes.

17 years agoFix pointer dereference before NULL pointer checking.
ariff [Fri, 29 Sep 2006 14:08:53 +0000 (14:08 +0000)]
Fix pointer dereference before NULL pointer checking.

Noticed by: netchild
CID: 243889
Found by: Coverity Prevent (TM)

17 years agoSmall style and comment adjustments.
andre [Fri, 29 Sep 2006 13:54:04 +0000 (13:54 +0000)]
Small style and comment adjustments.

Reviewed by: jfv

17 years agoRemove manual vlan header insertion in em_encap(). It is unnecessary as the
andre [Fri, 29 Sep 2006 13:47:38 +0000 (13:47 +0000)]
Remove manual vlan header insertion in em_encap().  It is unnecessary as the
generic vlan_start() takes care of it when vlan hardware insertion is disabled.

In em_set_promisc() add a note that BPF may also be enabled without going into
promisc mode.

Reviewed by: jfv

17 years agoChange em_transmit_checksum_setup() to deal with already inserted vlan headers,
andre [Fri, 29 Sep 2006 13:37:26 +0000 (13:37 +0000)]
Change em_transmit_checksum_setup() to deal with already inserted vlan headers,
IP options and add skeleton IPv6 support.  The new code structure can also be
easily enhanced to support new/more protocols (SCTP) in the future.

Reviewed by: jfv

17 years agoChange em_tso_setup() to deal with already inserted vlan headers, IP options
andre [Fri, 29 Sep 2006 13:33:30 +0000 (13:33 +0000)]
Change em_tso_setup() to deal with already inserted vlan headers, IP options
and add skeleton IPv6 support.  The new code structure can also be easily
enhanced to support new/more protocols (SCTP) and IP fragmentation in the
future.

In em_encap() only try to do TSO if 'dotso' is true.

Reviewed by: jfv

17 years agoOnly advertize IFCAP_TSO4 capabilities. IPv6 is not yet supported.
andre [Fri, 29 Sep 2006 13:17:16 +0000 (13:17 +0000)]
Only advertize IFCAP_TSO4 capabilities.  IPv6 is not yet supported.

Reviewed by: jfv

17 years agoHandle all error cases from bus_dmamap_load_mbuf_sg(). Those are:
andre [Fri, 29 Sep 2006 13:12:38 +0000 (13:12 +0000)]
Handle all error cases from bus_dmamap_load_mbuf_sg().  Those are:

 - EFBIG means the mbuf chain was too long and bus_dma ran out of segments.
   Defragment the mbuf chain and try again. (Already existed, not changed.)
 - ENOMEM means bus_dma could not obtain enough bounce buffers at this point
   in time.  Defer sending and try again later.
 - All other errors, in particular EINVAL, are fatal and prevent the mbuf
   chain from ever going through.  Drop it and report error.
 - Checking (nsegs == 0) is unnecessary as bus_dmamap_load_mbuf_sg() always
   reports an error if it is < 1.

This prevents broken packets from clogging the interface queue indefinately.

Discussed with: scottl
Reviewed by: jfv

17 years agoRemove mrouted from -CURRENT.
bms [Fri, 29 Sep 2006 10:40:53 +0000 (10:40 +0000)]
Remove mrouted from -CURRENT.

Discussed with: fenner, net@

17 years agoRemove mrouted and its utilities from the base system.
bms [Fri, 29 Sep 2006 10:39:23 +0000 (10:39 +0000)]
Remove mrouted and its utilities from the base system.
They may now be obtained from ports.

Discussed with: fenner, net@

17 years agoBelatedly document the size change of "struct x?tcpcb".
ru [Fri, 29 Sep 2006 10:14:37 +0000 (10:14 +0000)]
Belatedly document the size change of "struct x?tcpcb".

17 years agoFree tty struct after last close. This should fix the pty-leak by numbers.
mbr [Fri, 29 Sep 2006 09:53:19 +0000 (09:53 +0000)]
Free tty struct after last close. This should fix the pty-leak by numbers.
Remove workarounds for tty_refcount beeing 0, this will be fixed differently
later.

17 years agoFree tty struct after last close. This should fix the pty-leak by numbers.
mbr [Fri, 29 Sep 2006 09:52:57 +0000 (09:52 +0000)]
Free tty struct after last close. This should fix the pty-leak by numbers.
Remove workarounds for tty_refcount beeing 0, this will be fixed differently
later.

Back out rev 1.145 since we initialize the tty struct from scratch and bad
things can't happen anymore.

17 years agoSNDCTL_TMR_{START,STOP,CONTINUE} don't take an argument.
ru [Fri, 29 Sep 2006 09:28:22 +0000 (09:28 +0000)]
SNDCTL_TMR_{START,STOP,CONTINUE} don't take an argument.

17 years agoThe SNDCTL_DSP_NONBLOCK ioctl doesn't take an argument, from
ru [Fri, 29 Sep 2006 09:10:54 +0000 (09:10 +0000)]
The SNDCTL_DSP_NONBLOCK ioctl doesn't take an argument, from
what I can tell by browsing the Internet (Linux, OSS, etc.).

17 years agoo Check for a required "pathname" argument presence.
maxim [Fri, 29 Sep 2006 08:00:40 +0000 (08:00 +0000)]
o Check for a required "pathname" argument presence.

PR: bin/95146
Submitted by: candy-sendpr@kgc.co.jp
MFC after: 3 weeks

17 years agoo Convert w/spaces to tabs in the previous commit.
maxim [Fri, 29 Sep 2006 06:46:31 +0000 (06:46 +0000)]
o Convert w/spaces to tabs in the previous commit.

17 years agoRather than autoscaling the number of TIME_WAIT sockets to maxsockets / 5,
silby [Fri, 29 Sep 2006 06:24:26 +0000 (06:24 +0000)]
Rather than autoscaling the number of TIME_WAIT sockets to maxsockets / 5,
scale it to min(ephemeral port range / 2, maxsockets / 5) so that people
with large gobs of memory and/or large maxsockets settings will not
exhaust their entire ephemeral port range with sockets in the TIME_WAIT
state during periods of heavy load.

Those who wish to tweak the size of the TIME_WAIT zone can still do so with
net.inet.tcp.maxtcptw.

Reviewed by: glebius, ru

17 years agoMove the -l option processing to where it belongs.
ru [Fri, 29 Sep 2006 06:06:39 +0000 (06:06 +0000)]
Move the -l option processing to where it belongs.
Overall still not kosher but better matches style(9).

17 years agoDo not chdir(2) until after setuid(2), otherwise "su - username" would fail
luoqi [Fri, 29 Sep 2006 04:41:37 +0000 (04:41 +0000)]
Do not chdir(2) until after setuid(2), otherwise "su - username" would fail
when root doesn't have the permission to enter target user's home directory.
If set, PAM environment variable HOME will be used in chdir(2) instead of
pwd->pw_dir, this allows pam_chroot module to continue to function.

17 years agoFix two minor style(9) nits in v1.313 which were noticed during an
kensmith [Fri, 29 Sep 2006 00:20:56 +0000 (00:20 +0000)]
Fix two minor style(9) nits in v1.313 which were noticed during an
MFC review.  alc@ will be MFCing V1.313 plus style fix to RELENG_6.

17 years agoSet txrx_error to 1 when we reach abort. This makes the program correctly set the...
matteo [Thu, 28 Sep 2006 21:22:21 +0000 (21:22 +0000)]
Set txrx_error to 1 when we reach abort. This makes the program correctly set the exit code.
The PR has further details on this.

PR: bin/103206
Submitted by: John Hickey <jjh-freebsd@daedalian.us>
MFC after: 3 days

17 years agoTweak the code to handle intercepting BIOS calls to int 0x15 to shave
jhb [Thu, 28 Sep 2006 19:42:10 +0000 (19:42 +0000)]
Tweak the code to handle intercepting BIOS calls to int 0x15 to shave
another 16 bytes off of BTX (and thus boot2):
- Compare against the value of %eax that is saved on the stack instead of
  loading it into %eax (which requires saving the current %eax on the
  stack).
- Use %ch to examine the keyboard flag state in the BIOS to see if
  Ctrl-Alt-Del is pressed instead of %al so we don't have to save %eax on
  the stack anymore.

MFC after: 1 week

17 years agoOptimize the int 15/87 handler for space to shave another 16 bytes off of
jhb [Thu, 28 Sep 2006 19:38:02 +0000 (19:38 +0000)]
Optimize the int 15/87 handler for space to shave another 16 bytes off of
BTX (and thus boot2):
- Don't bother saving %eax, %ebx, or %ecx as it is not necessary.
- Use a more compact sequence to load the base value out of a GDT entry
  by loading the contiguous low 24 bits into the upper 24 bits of %eax,
  loading the high 8 bits into %al, and using a ror to rotate the bits
  (2 mov's and a ror) rather than loading the pieces in smaller chunks
  (3 mov's and a shl).
- Use movzwl + leal instead of movl + movw + shll + addl.
- Use 'xchgl %eax,%foo' rather than 'movl %eax,%foo' for cases where
  it's ok to trash %eax.  xchgl %eax, foo is a 1-byte opcode whereas the
  mov is a 2-byte opcode.
- Use movzwl rather than xorl + movw.

MFC after: 1 week

17 years agoAdd an 'smap' command that dumps out the BIOS SMAP.
jhb [Thu, 28 Sep 2006 19:07:13 +0000 (19:07 +0000)]
Add an 'smap' command that dumps out the BIOS SMAP.

MFC after: 1 week

17 years agoIgnore a sub-topic match if it is inside the command description.
jhb [Thu, 28 Sep 2006 19:06:20 +0000 (19:06 +0000)]
Ignore a sub-topic match if it is inside the command description.
Otherwise, merge-help can get confused by a command description that
includes a word that starts with a capital S.

MFC after: 1 week

17 years agoWhen tcp_output() receives an error upon sending a packet it reverts parts
andre [Thu, 28 Sep 2006 18:02:46 +0000 (18:02 +0000)]
When tcp_output() receives an error upon sending a packet it reverts parts
of its internal state to ignore the failed send and try again a bit later.
If the error is EPERM the packet got blocked by the local firewall and the
revert may cause the session to get stuck and retry indefinitely.  This way
we treat it like a packet loss and let the retransmit timer and timeouts
do their work over time.

The correct behavior is to drop a connection that gets an EPERM error.
However this _may_ introduce some POLA problems and a two commit approach
was chosen.

Discussed with: glebius
PR: kern/25986
PR: kern/102653

17 years agoVarious fixups, especially for the upcomming High Definition Audio
ariff [Thu, 28 Sep 2006 17:29:00 +0000 (17:29 +0000)]
Various fixups, especially for the upcomming High Definition Audio
commit.

1) sys/dev/sound/pcm/sound.h
   sys/dev/sound/pcm/channel.c
   * Be more specific: SD_F_SOFTVOL -> SD_F_SOFTPCMVOL
2) sys/dev/sound/pcm/mixer.[ch]
   * Implement
       mix_setparentchild()
       mix_setrealdev()
       mix_getparent()
       mix_getchild()
     The purpose of these functions is implement relative volume
     adjustment, such as to tie two or more mixer device into a
     single logical device. Usefull for the upcoming HDA driver
     and few AC97 codec (such as AD1981B) where the master volume
     "vol" need to be implemented using this logical manner.
3) sys/dev/sound/pcm/ac97_patch.[ch]
   * Patch for AD1981B codec to enable (automuting) headphone jack sense.
4) sys/dev/sound/pcm/ac97.c
   * Implement proper logical master volume for AD9181B codec
     through various mix_set{parentchild,realdev}(). Tie both
     "ogain" (headphone volume) and "phone" (speaker/lineout) to
     a logical "vol".
5) sys/dev/sound/pcm/usb/uaudio_pcm.c
   * ditto, for "vol" -> { "pcm" }.

MFC after: 1 month

17 years agoA couple of simple tweaks that trim BTX by 6 bytes. Since BTX is
jhb [Thu, 28 Sep 2006 16:30:36 +0000 (16:30 +0000)]
A couple of simple tweaks that trim BTX by 6 bytes.  Since BTX is
16-byte aligned within boot2 however, this actually trims boot2 by 16
bytes.

17 years agoThis commit was generated by cvs2svn to compensate for changes in r162735,
roberto [Thu, 28 Sep 2006 16:02:34 +0000 (16:02 +0000)]
This commit was generated by cvs2svn to compensate for changes in r162735,
which included commits to RCS files with non-trunk default branches.

17 years agoFix compilation with gcc 4.1. This is imported on the vendor branch as it
roberto [Thu, 28 Sep 2006 16:02:34 +0000 (16:02 +0000)]
Fix compilation with gcc 4.1.  This is imported on the vendor branch as it
was applied in the mainstream source and a later complete import of
4.2.2p3 will complete the fix.

Submitted by: kan

17 years agoNew release notes: SA-06:21.gzip, SA-06:23.openssl.
bmah [Thu, 28 Sep 2006 15:36:59 +0000 (15:36 +0000)]
New release notes:  SA-06:21.gzip, SA-06:23.openssl.

17 years agoNew release notes: id(1) -a (+MFC), tcpslice removed, ARM binary
bmah [Thu, 28 Sep 2006 14:44:16 +0000 (14:44 +0000)]
New release notes:  id(1) -a (+MFC), tcpslice removed, ARM binary
generation.

Updated release notes:  KDE 3.5.4.

17 years agoWhen doing TSO correctly do the check to prevent a maximum sized IP packet
andre [Thu, 28 Sep 2006 13:59:26 +0000 (13:59 +0000)]
When doing TSO correctly do the check to prevent a maximum sized IP packet
from overflowing.

17 years agoNote the removal of tcpslice
bms [Thu, 28 Sep 2006 13:00:50 +0000 (13:00 +0000)]
Note the removal of tcpslice

17 years agoInitializate "offset" variable to zero; otherwise, if not using
ru [Thu, 28 Sep 2006 12:33:36 +0000 (12:33 +0000)]
Initializate "offset" variable to zero; otherwise, if not using
the -o option, it might contain garbage.

MFC after: 1 day

17 years agoFix the IPv4 multicast routing detach path. On interface detach whilst
bms [Thu, 28 Sep 2006 12:21:08 +0000 (12:21 +0000)]
Fix the IPv4 multicast routing detach path. On interface detach whilst
the MROUTER is running, the system would panic as described in the PR.

The fix in the PR is a good start, however, the other state associated
with the multicast forwarding cache has to be freed in order to avoid
leaking memory and other possible panics.

More care and attention is needed in this area.

PR: kern/82882
MFC after: 1 week

17 years agoThe IPv4 code should clean up multicast group state when an interface
bms [Thu, 28 Sep 2006 10:04:07 +0000 (10:04 +0000)]
The IPv4 code should clean up multicast group state when an interface
goes away. Without this change, it leaks in_multi (and often ether_multi
state) if many clonable interfaces are created and destroyed in quick
succession.

The concept of this fix is borrowed from KAME. Detailed information about
this behaviour, as well as test cases, are available in the PR.

PR: kern/78227
MFC after: 1 week

17 years agoAdd -march=i386 to fix amd64 build by generating the same code
ru [Thu, 28 Sep 2006 10:02:04 +0000 (10:02 +0000)]
Add -march=i386 to fix amd64 build by generating the same code
as i386 would do.

17 years agoRemove 120.clean-kvmdb.
delphij [Thu, 28 Sep 2006 09:32:22 +0000 (09:32 +0000)]
Remove 120.clean-kvmdb.

MFC After: 1 day

17 years agoRetire macros for the old kernel memory allocator.
ru [Thu, 28 Sep 2006 08:36:08 +0000 (08:36 +0000)]
Retire macros for the old kernel memory allocator.

Submitted by: bde

17 years agoExtend comment explaining why code is conditional at !defined(SCHED_ULE).
sobomax [Wed, 27 Sep 2006 22:09:35 +0000 (22:09 +0000)]
Extend comment explaining why code is conditional at !defined(SCHED_ULE).

Suggested by: ru

17 years agoRevert my previous change as it does not seem to be entirely correct and
danger [Wed, 27 Sep 2006 21:28:44 +0000 (21:28 +0000)]
Revert my previous change as it does not seem to be entirely correct and
popular.

17 years agoFix our ioctl(2) implementation when the argument is "int". New
ru [Wed, 27 Sep 2006 19:57:02 +0000 (19:57 +0000)]
Fix our ioctl(2) implementation when the argument is "int".  New
ioctls passing integer arguments should use the _IOWINT() macro.
This fixes a lot of ioctl's not working on sparc64, most notable
being keyboard/syscons ioctls.

Full ABI compatibility is provided, with the bonus of fixing the
handling of old ioctls on sparc64.

Reviewed by: bde (with contributions)
Tested by: emax, marius
MFC after: 1 week

17 years agoEmulate moving cr0, cr2, cr3, or cr4 into any i386 general register
jhb [Wed, 27 Sep 2006 19:32:26 +0000 (19:32 +0000)]
Emulate moving cr0, cr2, cr3, or cr4 into any i386 general register
rather than just emulating mov cr0, eax.  This fixes some Compaq/HP BIOS
with DMA (as the BIOS tried to read cr3 so it could translate addresses
if paging was enabled).

MFC after: 1 week

17 years agoCorrect typo.
schweikh [Wed, 27 Sep 2006 19:20:43 +0000 (19:20 +0000)]
Correct typo.

17 years agoSince ULE doesn't honor hlt_cpus_mask don't compile code that prevents
sobomax [Wed, 27 Sep 2006 18:51:19 +0000 (18:51 +0000)]
Since ULE doesn't honor hlt_cpus_mask don't compile code that prevents
timer interrupt servicing for disabled HTT cores in ULE case. Should be
probably fixed in ULE code instead, but we have no real maintainer for
ULE to do it.

PR: 103697

17 years agoMove Giant up even further since P_CONTROLT isn't really fully locked
mbr [Wed, 27 Sep 2006 16:42:10 +0000 (16:42 +0000)]
Move Giant up even further since P_CONTROLT isn't really fully locked
yet (p_flag is, but P_CONTROLT isn't really).

Submitted by: jhb

17 years agoUse ctty instead of just returning. ctty just has a simple open that
mbr [Wed, 27 Sep 2006 16:41:15 +0000 (16:41 +0000)]
Use ctty instead of just returning. ctty just has a simple open that
returns ENXIO.

Submitted by: jhb

17 years agoBump MAX_INITIATORS to 1024- the LSI-Logic can go even higher than
mjacob [Wed, 27 Sep 2006 15:38:13 +0000 (15:38 +0000)]
Bump MAX_INITIATORS to 1024- the LSI-Logic can go even higher than
this for 'initiator id'- this is a stopgap until a sparse map is
added.

Make compat defines for offset format (FreeBSD 5 or less).

Add no-asyncio flag. There's some breakage with ASYNC I/O that every
now and then drops us into an infinite loop. This also then does
a fallback to no-asyncio if the AIO option isn't loaded/compiled into
the kernel.

A number of other chanes to try and track some breakage.

17 years ago- Removed a copyright from makefile.
ru [Wed, 27 Sep 2006 12:30:27 +0000 (12:30 +0000)]
- Removed a copyright from makefile.
- Added ${.CURDIR} to .include "...".
- Whitespace fixes.

OK'ed by: piso