]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
19 years agoThe isa attachment calls ep_free after it has already been called once
imp [Sun, 31 Jul 2005 03:33:22 +0000 (03:33 +0000)]
The isa attachment calls ep_free after it has already been called once
in the resource error in ep_alloc case.  This results in a panic.
Zero resources to make it safe to call twice pending resolution of
layering questions.

MFC After: 3 days

19 years agoFix all the spelling mistakes I could find in the man pages for words
keramida [Sun, 31 Jul 2005 03:30:48 +0000 (03:30 +0000)]
Fix all the spelling mistakes I could find in the man pages for words
that have at least 3 characters.

MFC after: 1 week
Thanks to: Music band ``Chingon''
for keeping me company while searching for these.

19 years agoAdd newer commands
imp [Sun, 31 Jul 2005 03:30:46 +0000 (03:30 +0000)]
Add newer commands

19 years agoRemove the instruction to "contact the maintainer" for unrecognized
cperciva [Sun, 31 Jul 2005 01:57:05 +0000 (01:57 +0000)]
Remove the instruction to "contact the maintainer" for unrecognized
CPUs.  Intel refuses to give me the information I need, and getting
more emails about this doesn't help.

19 years agofix build without option INET6.
ume [Sat, 30 Jul 2005 20:10:31 +0000 (20:10 +0000)]
fix build without option INET6.

Reported by: Philip M. Gollucci <pgollucci__at__p6m7g8.com>

19 years agoIntroduce kdevtoname, which when given the kernel address of a
csjp [Sat, 30 Jul 2005 20:00:13 +0000 (20:00 +0000)]
Introduce kdevtoname, which when given the kernel address of a
cdev structure, returns the device name associated with it through
the __si_namebuf member. This un-breaks the processing of devices.

This is a RELENG_6 candidate.

Reviewed by: phk

19 years agoAdd some more files. More (manpages) to come later...
netchild [Sat, 30 Jul 2005 18:04:17 +0000 (18:04 +0000)]
Add some more files. More (manpages) to come later...

19 years ago- Only make the delete-old related parts visible if one of the 3 targets
netchild [Sat, 30 Jul 2005 18:02:20 +0000 (18:02 +0000)]
- Only make the delete-old related parts visible if one of the 3 targets
  are called (wrapped in ".if make(...)"). This may reduce the amount of
  memory needed for all other targets (the file lists are already large
  and they will grow further).
- Be verbose in the batch case of the delete-old part too.

19 years agoAdd missing parenthesis around error handling code upon attaching
csjp [Sat, 30 Jul 2005 15:53:40 +0000 (15:53 +0000)]
Add missing parenthesis around error handling code upon attaching
mlx devices. This fixes an issue where mlx device drives fail to be
detected at system boot.

This is a RELENG_6 candidate.

Submitted by: oliver
PR: kern/84163

19 years agoMisc cleanup (spelling, grammar, mdoc, style, cut >80 char lines).
brueffer [Sat, 30 Jul 2005 13:27:15 +0000 (13:27 +0000)]
Misc cleanup (spelling, grammar, mdoc, style, cut >80 char lines).

19 years agoTemporary band-aid to fix hang when a process exec's Altivec instructions.
grehan [Sat, 30 Jul 2005 11:14:31 +0000 (11:14 +0000)]
Temporary band-aid to fix hang when a process exec's Altivec instructions.

trap_subr.S:  declare a stub for the a-unavailable trap
              that does an absolute jump to the vector-assist trap.
              This is due to the fact that the vec-unavail trap
              doesn't start at a 256-byte boundary, so the trick of
              masking the bottom 8 bits of the link register to identify
              the interrupt doesn't work, so let the vec-assist
              case handle Altivec-disabled for the time being.

              Note that this will be fixed in the future with a much
              smaller vector code-stub (< 16 bytes) that will allow
              use of strange vector offsets that are also present in
              4xx processors, and also allow smaller differences in
              vector codepaths on the G5.

trap.c:       Treat altivec-unavailable/assist process traps as SIGILL.
              Not quite correct, since altivec-assist should really be a panic,
              but it is fine for the moment due to the above measure.

machdep.c     Install the stub code for the altivec-unavailable trap, and
              the standard trap code at the altivec-assist.

Reported by: Andreas Tobler <toa at pop agri ch>
MFC after: 3 days

19 years agoDocument two new diagnostic messages in hwpmc(4).
jkoshy [Sat, 30 Jul 2005 09:03:57 +0000 (09:03 +0000)]
Document two new diagnostic messages in hwpmc(4).

19 years agoFail the module loading process if the currently executing kernel
jkoshy [Sat, 30 Jul 2005 09:02:42 +0000 (09:02 +0000)]
Fail the module loading process if the currently executing kernel
was not compiled with 'options HWPMC_HOOKS' or if the compiled-in
version numbers of the kernel and module are out of sync.

Reported by: cracauer
MFC after: 3 days

19 years agoEnforce the native environment requirement for {check,delete}-old-* at
des [Sat, 30 Jul 2005 06:14:12 +0000 (06:14 +0000)]
Enforce the native environment requirement for {check,delete}-old-* at
run time, not parse time.  This unbreaks cross-builds.

Pointy hat to: netchild

19 years agoIgnore mutex asserts when we're dumping as well. This allows me
ps [Sat, 30 Jul 2005 05:54:30 +0000 (05:54 +0000)]
Ignore mutex asserts when we're dumping as well.  This allows me
to panic a system from DDB when INVARIANTS is compiled into the
kernel on a scsi system.

19 years agooops, revert previous change
sam [Sat, 30 Jul 2005 03:30:29 +0000 (03:30 +0000)]
oops, revert previous change

19 years agoMFC: add fragthreshold parameter and accept - (or any) for rtsthreshold
sam [Sat, 30 Jul 2005 03:28:41 +0000 (03:28 +0000)]
MFC: add fragthreshold parameter and accept - (or any) for rtsthreshold

Approved by: re (kensmith)

19 years agoadd m_align, a function to align any type of mbuf (i.e. it
sam [Sat, 30 Jul 2005 01:32:16 +0000 (01:32 +0000)]
add m_align, a function to align any type of mbuf (i.e. it
is a superset of M_ALIGN and MH_ALIGN)

Reviewed by: several

19 years agodevfs is not yet fully MPSAFE - for example, multiple concurrent devfs(8)
kris [Fri, 29 Jul 2005 23:00:56 +0000 (23:00 +0000)]
devfs is not yet fully MPSAFE - for example, multiple concurrent devfs(8)
processes can cause a panic when operating on rulesets.

Approved by: phk

19 years agoAdd a new PCI id for fxp(4) cards found on ICH7-based systems.
mux [Fri, 29 Jul 2005 22:40:06 +0000 (22:40 +0000)]
Add a new PCI id for fxp(4) cards found on ICH7-based systems.

This commit is a RELENG_6 candidate.

Submitted by: Martin Nilsson <martin@gneto.com>

19 years agoForced commit [1] to add another design goal which I forgot to mention in
netchild [Fri, 29 Jul 2005 21:51:33 +0000 (21:51 +0000)]
Forced commit [1] to add another design goal which I forgot to mention in
the initial commit of the delete-old feature:

One of the design goals of the recently committed way of removing obsolete
files was to *not* remove a file which we never had in the base system (I'm
not sure I mentioned this in the commit log). So if an administrator decides
to move something to somewhere in the base system (for whatever reason), it
will stay where it is (and this is good, since this move was done with a
specific purpose).

Suggested by: Jeremie Le Hen <jeremie@le-hen.org> [1]
Approved by: mentor (joerg; implicit)

19 years agoRemove an unused variable.
deischen [Fri, 29 Jul 2005 21:49:47 +0000 (21:49 +0000)]
Remove an unused variable.

19 years ago - Move recently added dir into the correct section.
netchild [Fri, 29 Jul 2005 21:45:46 +0000 (21:45 +0000)]
 - Move recently added dir into the correct section.
 - Add a note about the organisation of the sections.
 - Expand shell globs (they worked in a previous version of the delete-old
   target, but not in this one).
 - Use the correct way of checking for a native environment. [1]
 - Add some more obsolete files.
 - Fix some bad english. [1]

Suggested by: ru [1]
Approved by: mentor (joerg)

19 years agoCatch up with the atomic_FOO_ptr() changes and silence a few warnings.
deischen [Fri, 29 Jul 2005 21:06:09 +0000 (21:06 +0000)]
Catch up with the atomic_FOO_ptr() changes and silence a few warnings.

19 years agoAdd missing dependencies on the SYSVIPC modules.
jhb [Fri, 29 Jul 2005 19:41:04 +0000 (19:41 +0000)]
Add missing dependencies on the SYSVIPC modules.

19 years agoMove MODULE_DEPEND() statements for SYSVIPC dependencies to linux_ipc.c
jhb [Fri, 29 Jul 2005 19:40:39 +0000 (19:40 +0000)]
Move MODULE_DEPEND() statements for SYSVIPC dependencies to linux_ipc.c
so that they aren't duplicated 3 times and are also in the same file as
the code that depends on the SYSVIPC modules.

19 years agoFix a bug in pmap_protect() in the PAE case where it would try to look up
jhb [Fri, 29 Jul 2005 19:03:44 +0000 (19:03 +0000)]
Fix a bug in pmap_protect() in the PAE case where it would try to look up
the vm_page_t associated with a pte using only the lower 32-bits of the pte
instead of the full 64-bits.

Submitted by: Greg Taleck greg at isilon dot com
Reviewed by: jeffr, alc
MFC after: 3 days

19 years agoAdd a tunable 'hw.apic.enable_extint' that can be set from the loader to
jhb [Fri, 29 Jul 2005 18:58:33 +0000 (18:58 +0000)]
Add a tunable 'hw.apic.enable_extint' that can be set from the loader to
not mask the ExtINT pin on the first I/O APIC as at least one PIII chipset
seems to need this even though all of the pins in the 8259A's are masked.
The default is still to mask the ExtINT pin.

Reported by: Mike Tancsa mike at sentex.net
MFC after: 3 days

19 years agoRemove stale struct ata_channel declaration.
sos [Fri, 29 Jul 2005 18:14:06 +0000 (18:14 +0000)]
Remove stale struct ata_channel declaration.

Reported by: rodrigc

19 years agoCorrect argument order of kiconv_add_xlat16_cspairs().
imura [Fri, 29 Jul 2005 14:56:16 +0000 (14:56 +0000)]
Correct argument order of kiconv_add_xlat16_cspairs().

Security:

19 years agoFix typo and check correct (rsp) pointer against the NULL value.
emax [Fri, 29 Jul 2005 14:44:17 +0000 (14:44 +0000)]
Fix typo and check correct (rsp) pointer against the NULL value.

Submitted by: Oliver < urnenfel at tiscali dot es >
MFC after: 1 day

19 years agoChange API of mb_copy_t in libmchain so that netsmb can handle
imura [Fri, 29 Jul 2005 13:22:37 +0000 (13:22 +0000)]
Change API of mb_copy_t in libmchain so that netsmb can handle
multibyte character share name correctly.

Reviewed by: bp

19 years agoFix a comparison that broke ``set console=vidconsole'' and even the
brian [Fri, 29 Jul 2005 12:47:42 +0000 (12:47 +0000)]
Fix a comparison that broke ``set console=vidconsole'' and even the
loader.conf line ``console="vidconsole"''.

Sponsored by: ActiveState/Sophos
MFC after: 1 week

19 years agoMention that console= can set multiple consoles.
brian [Fri, 29 Jul 2005 12:41:37 +0000 (12:41 +0000)]
Mention that console= can set multiple consoles.
Relate boot_ options to their kernel command line flags and make it clear
how kenv(1) is used.

Sponsored by: ActiveState/Sophos
MFC after: 1 week

19 years agoUpdate SEE ALSO section.
keramida [Fri, 29 Jul 2005 11:31:16 +0000 (11:31 +0000)]
Update SEE ALSO section.

PR: docs/84273
Submitted by: Gary W. Swearingen

19 years agoIn realpath(), make sure each path component consists only of safe
des [Fri, 29 Jul 2005 11:28:03 +0000 (11:28 +0000)]
In realpath(), make sure each path component consists only of safe
characters, and untaint it.

19 years agoDifferentiate between empty and short reports, and raise the bar for what
des [Fri, 29 Jul 2005 11:25:10 +0000 (11:25 +0000)]
Differentiate between empty and short reports, and raise the bar for what
we consider a short report to 128 characters.  Canonicalize %%HOME%%.

19 years agoUpdate manual page after ggate rewrite.
pjd [Fri, 29 Jul 2005 11:22:13 +0000 (11:22 +0000)]
Update manual page after ggate rewrite.

MFC after: 1 day

19 years agoDon't email reports that are empty or very short, as can happen if tbmaster
des [Fri, 29 Jul 2005 11:18:35 +0000 (11:18 +0000)]
Don't email reports that are empty or very short, as can happen if tbmaster
fails to exec the tinderbox script.

19 years agohw.ata.wc can cause data loss on crashes too. This brings the
keramida [Fri, 29 Jul 2005 10:47:46 +0000 (10:47 +0000)]
hw.ata.wc can cause data loss on crashes too.  This brings the
description of the hw.ata.wc in sync with tuning(7)

PR: docs/84264
Submitted by: Gary W. Swearingen

19 years agoI actually do need libmd.
pjd [Fri, 29 Jul 2005 10:06:57 +0000 (10:06 +0000)]
I actually do need libmd.

19 years agoCreate /etc/opiekeys with 0600, not 0644
ache [Fri, 29 Jul 2005 09:59:24 +0000 (09:59 +0000)]
Create /etc/opiekeys with 0600, not 0644

PR:     84221

19 years agoDocument the ECONNRESET errno value.
dds [Fri, 29 Jul 2005 07:42:10 +0000 (07:42 +0000)]
Document the ECONNRESET errno value.

19 years agoterminate when all interfaces have been removed; since we do not
sam [Fri, 29 Jul 2005 05:58:35 +0000 (05:58 +0000)]
terminate when all interfaces have been removed; since we do not
do interface discovery there's no point in sticking around

MFC after: 3 days

19 years agoCorrect problems with handling interfaces that go away (e.g. when
sam [Fri, 29 Jul 2005 05:57:28 +0000 (05:57 +0000)]
Correct problems with handling interfaces that go away (e.g. when
a card is ejected).  wpa_supplicant requires that internal events
for interfaces coming+going include a name but after an interface
is removed you cannot use if_indextoname to map the interface index
in the RTM_IFINFO (or RTM_IFANNOUNCE) msg to an interface name.
Instead record the interface index in the driver-private data area
and use that to filter msgs from the routing socket.  This insures
that when we have a message to process we know the interface name.
The end result is that we can now dispatch an "interface removed"
event that is understood when notified than an interface went away
(where previously the event dispatched was ignored because the
interface name was unrecognized).

This change also insures we only process events for our interface.

The only downside is that we can no longer wait for an interface
to arrive as we need to map the interface name to an index at
startup.  This is not important as wpa_supplicant should be launched
by devd and not include a separate mechanism for doing interface
discovery.

MFC after: 3 days

19 years agoclear eloop registration when deinit'd the l2 packet support
sam [Fri, 29 Jul 2005 05:48:00 +0000 (05:48 +0000)]
clear eloop registration when deinit'd the l2 packet support

MFC after: 3 days

19 years agoPrint the actual disk device we failed to complete i/o on.
ps [Fri, 29 Jul 2005 01:53:45 +0000 (01:53 +0000)]
Print the actual disk device we failed to complete i/o on.

19 years agoDon't allow ioctl commands to be interrupted by the user.
ps [Fri, 29 Jul 2005 01:47:36 +0000 (01:47 +0000)]
Don't allow ioctl commands to be interrupted by the user.

19 years agoMake ichsmb unloadable.
brian [Fri, 29 Jul 2005 00:20:50 +0000 (00:20 +0000)]
Make ichsmb unloadable.

It seems that the unload problems were due to a dodgy sc->smb usage and a
missing mtx_destroy().

Sponsored by: ActiveState/Sophos
MFC after: 3 weeks

19 years agoFix core dump when "smbutil lc".
imura [Thu, 28 Jul 2005 22:35:38 +0000 (22:35 +0000)]
Fix core dump when "smbutil lc".

OK'ed by: bp

19 years agoDon't compile ral and ural in the PAE kernel, because
imura [Thu, 28 Jul 2005 22:25:07 +0000 (22:25 +0000)]
Don't compile ral and ural in the PAE kernel, because
they have dependency on wlan and usb.

Reported by: make universe

19 years agoCorrect column alignment.
njl [Thu, 28 Jul 2005 19:41:52 +0000 (19:41 +0000)]
Correct column alignment.

19 years agoAdd descriptions for the sysctls.
njl [Thu, 28 Jul 2005 19:34:51 +0000 (19:34 +0000)]
Add descriptions for the sysctls.

MFC after: 1 day

19 years agoFix nits in reporting battery information and add battery status reporting.
njl [Thu, 28 Jul 2005 19:31:28 +0000 (19:31 +0000)]
Fix nits in reporting battery information and add battery status reporting.
Rate units are mA/mW, not mAh/mWh.  Get full battery status and time
remaining from ACPIIO_BATT_GET_BATTINFO instead of BST.

PR: bin/83672
MFC after: 2 days

19 years agoSpell "protections" correctly.
keramida [Thu, 28 Jul 2005 18:28:11 +0000 (18:28 +0000)]
Spell "protections" correctly.

19 years agoZero the _BST, _BIF, and battinfo allocations. This is needed since we
njl [Thu, 28 Jul 2005 18:19:50 +0000 (18:19 +0000)]
Zero the _BST, _BIF, and battinfo allocations.  This is needed since we
later sum capacities for all batteries, even those that weren't actually
present.  We only need to do this for _BST but do it for all of them.

Reported by: Eric Anderson
MFC after: 1 day

19 years agosimplied the fix to FreeBSD-SA-04:06.ipv6. The previous one worried
ume [Thu, 28 Jul 2005 18:07:07 +0000 (18:07 +0000)]
simplied the fix to FreeBSD-SA-04:06.ipv6.  The previous one worried
too much even though we actually validate the parameters.  This code
also is more compatible with other *BSDs, which do copyin within
setsockopt().

Submitted by: Keiichi SHIMA <keiichi__at__iijlab.net>
Reviewed by: security-officer (nectar)
Obtained from: KAME

19 years agoAddress minor locking issues. Use taskqueue_swi instead of taskqueue_swi_giant.
emax [Thu, 28 Jul 2005 17:43:20 +0000 (17:43 +0000)]
Address minor locking issues. Use taskqueue_swi instead of taskqueue_swi_giant.

MFC after: 1 month

19 years agoSpell "currently" correctly.
keramida [Thu, 28 Jul 2005 15:59:52 +0000 (15:59 +0000)]
Spell "currently" correctly.

19 years agoFurther fix receive_packet() by using BPF_WORDALIGN to insure the offset
brooks [Thu, 28 Jul 2005 15:30:19 +0000 (15:30 +0000)]
Further fix receive_packet() by using BPF_WORDALIGN to insure the offset
is properly aligned when we move to the next packet.

Obtained from: ISC dhclient via krw at OpenBSD

19 years agoIf a "hole" opens up in the ruleset (i.e.: remove 5), do not return
trhodes [Thu, 28 Jul 2005 13:55:12 +0000 (13:55 +0000)]
If a "hole" opens up in the ruleset (i.e.: remove 5), do not return
unknown error.  Instead, just return error.

Submitted by: avatar
Tested by: trhodes

19 years agoSpell "committing" correctly.
keramida [Thu, 28 Jul 2005 13:53:45 +0000 (13:53 +0000)]
Spell "committing" correctly.

19 years agoSpell "referred" correctly.
keramida [Thu, 28 Jul 2005 13:03:19 +0000 (13:03 +0000)]
Spell "referred" correctly.

19 years agoSpell "background" correctly.
keramida [Thu, 28 Jul 2005 12:40:23 +0000 (12:40 +0000)]
Spell "background" correctly.

19 years agoSpell "partition" correctly.
keramida [Thu, 28 Jul 2005 10:48:07 +0000 (10:48 +0000)]
Spell "partition" correctly.

PR: docs/84198
Submitted by: Gary W. Swearingen
MFC after: 3 days

19 years agoFix for PR 83885.
gnn [Thu, 28 Jul 2005 10:10:01 +0000 (10:10 +0000)]
Fix for PR 83885.

Make sure that there actually is a next packet before setting
nextrecord to that field.

PR: 83885
Submitted by: hirose@comm.yamaha.co.jp
Obtained from: Patch suggested in the PR
MFC after: 1 week

19 years agoShorten src / obj paths while capturing logs, making them both smaller and
des [Thu, 28 Jul 2005 10:09:22 +0000 (10:09 +0000)]
Shorten src / obj paths while capturing logs, making them both smaller and
easier to read.

19 years agoMinor syntax tweaks:
rwatson [Thu, 28 Jul 2005 09:45:08 +0000 (09:45 +0000)]
Minor syntax tweaks:

- Remove some extra blank lines.
- Remove comments that don't contribute to understanding.
- Remove additional blank lines in output added to maximize compatibility
  with older vmstat output, but that is actually somewhat gratuitous.

Submitted by: bde
MFC with: other vmstat libmemstat(3) changes

19 years agoAdd a couple of missing nic interfaces that have been added: iwi, ipw,
imp [Thu, 28 Jul 2005 03:51:54 +0000 (03:51 +0000)]
Add a couple of missing nic interfaces that have been added: iwi, ipw,
ral and ural.  Add a comment about this regexp being lame, which
should shock no-one.  Add a comment about why rescans are disabled on scsi
cards.

19 years agoCast to uintptr_t to avoid compiler warning, it was broken by
davidxu [Thu, 28 Jul 2005 03:34:54 +0000 (03:34 +0000)]
Cast to uintptr_t to avoid compiler warning, it was broken by
the recent atomic_ptr() change.

19 years agoForgot to add this change when commiting geli.
pjd [Thu, 28 Jul 2005 00:53:47 +0000 (00:53 +0000)]
Forgot to add this change when commiting geli.

Reported by: cperciva

19 years agoDon't reject packets with server names containing characters that are
brooks [Thu, 28 Jul 2005 00:24:39 +0000 (00:24 +0000)]
Don't reject packets with server names containing characters that are
not allowed in domain names.  RFC 2132 does not list valid or invalid
characters and the ISC client accepts anything here.

Reported by: ps

19 years agoI think I found the problem, reconnect geli to the build.
pjd [Wed, 27 Jul 2005 23:56:32 +0000 (23:56 +0000)]
I think I found the problem, reconnect geli to the build.

19 years ago- Reduce WARNS level to 3, so it will be compilabe on alpha.
pjd [Wed, 27 Jul 2005 23:56:01 +0000 (23:56 +0000)]
- Reduce WARNS level to 3, so it will be compilabe on alpha.
- Don't link libmd, it is not needed.
- Connect manual page to the build.

MFC after: 1 week

19 years agoDisconnect geli from the build for now.
pjd [Wed, 27 Jul 2005 23:30:50 +0000 (23:30 +0000)]
Disconnect geli from the build for now.
I need to find out first what is the cause of sha2.c compilation problem
on alpha.

19 years agoFix the way how "InUse" column in 'vmstat -m' output works:
pjd [Wed, 27 Jul 2005 23:17:31 +0000 (23:17 +0000)]
Fix the way how "InUse" column in 'vmstat -m' output works:
- increase number of allocations count only on successfull malloc(9),
  so it doesn't confuse people;
- because we need to check if 'size > 0', hide 'mtsp->mts_memalloced += size;'
  under the check as well, as for size=0 it is of course a no-op;
- avoid critical_enter()/critical_exit() in case of failure in
  malloc_type_allocated() as there will be nothing to do.

OK'ed by: rwatson
MFC after: 2 days

19 years agoMFp4: Export more informations about encrypted providers.
pjd [Wed, 27 Jul 2005 22:31:57 +0000 (22:31 +0000)]
MFp4: Export more informations about encrypted providers.

MFC after: 1 week

19 years agoAdd regression tests (121 in total) for GEOM_ELI class.
pjd [Wed, 27 Jul 2005 22:27:30 +0000 (22:27 +0000)]
Add regression tests (121 in total) for GEOM_ELI class.
To use them, run:

# prove /usr/src/tools/regression/geom_eli

Sponsored by: Wheel Sp. z o.o.
http://www.wheel.pl
MFC after: 1 week

19 years agoReduce default debug level to 0.
pjd [Wed, 27 Jul 2005 21:48:47 +0000 (21:48 +0000)]
Reduce default debug level to 0.

MFC after: 1 week

19 years agoConnect GEOM_ELI class to the build.
pjd [Wed, 27 Jul 2005 21:47:55 +0000 (21:47 +0000)]
Connect GEOM_ELI class to the build.

MFC after: 1 week

19 years agoAdd GEOM_ELI class which provides GEOM providers encryption.
pjd [Wed, 27 Jul 2005 21:43:37 +0000 (21:43 +0000)]
Add GEOM_ELI class which provides GEOM providers encryption.
For features list and usage see manual page: geli(8).

Sponsored by: Wheel Sp. z o.o.
http://www.wheel.pl
MFC after: 1 week

19 years agomsdosfs_conv.c references cmos_wall_clock and adjkerntz. Since these
imp [Wed, 27 Jul 2005 21:19:28 +0000 (21:19 +0000)]
msdosfs_conv.c references cmos_wall_clock and adjkerntz.  Since these
are 0 for arm, define them as such to make msdosfs_conv.c compile
again on arm.

19 years agoReorganize an_detach() a bit. Make sure ether_ifdetach() and if_free()
emax [Wed, 27 Jul 2005 21:03:35 +0000 (21:03 +0000)]
Reorganize an_detach() a bit. Make sure ether_ifdetach() and if_free()
are called outside of AN_LOCK()/AN_UNLOCK. This fixes the following
WITNESS warning (produced when an(4) PCMCIA card is detached).

taskqueue_drain with the following non-sleepable locks held:
exclusive sleep mutex an0 (network driver) r = 0 (0xc59af168) locked @ /usr/src/sys/dev/an/if_an.c:2836

MFC after: 3 days
Silence from: current@

19 years agoAdd extra constraints to tell the compiler that the memory be modified
jhb [Wed, 27 Jul 2005 20:01:45 +0000 (20:01 +0000)]
Add extra constraints to tell the compiler that the memory be modified
in the arm __swp() and sparc64 casa() and casax() functions is actually
being used as an input and output and not just the value of the register
that points to the memory location.  This was the underlying source of
the mbuf refcount problems on sparc64 a while back.  For arm this should be
a nop because __swp() has a constraint to clobber all memory which can
probably be removed now.

Reviewed by: alc, cognet
MFC after: 1 week

19 years agoUse a + constraint modifier for a register arg in __bswap16_var().
jhb [Wed, 27 Jul 2005 19:59:21 +0000 (19:59 +0000)]
Use a + constraint modifier for a register arg in __bswap16_var().

Reviewed by: cognet

19 years agoFix a bug in the handling of cases where we got a short (or zero)
brooks [Wed, 27 Jul 2005 19:25:46 +0000 (19:25 +0000)]
Fix a bug in the handling of cases where we got a short (or zero)
capture.  Zero length captures caused an infinte loop and short captures
probably caused memory corruption and a crash.

Reported by: many
MFC After: 3 days

19 years agoSimplify SMBIOS loader variables and drop `hint.smbios.0.enabled'.
jkim [Wed, 27 Jul 2005 19:11:10 +0000 (19:11 +0000)]
Simplify SMBIOS loader variables and drop `hint.smbios.0.enabled'.

They are not real hints.

Reported by: des
Pointed out by: peter
Approved by: anholt (mentor)

19 years agoCorrect the order of some if tests so that we don't complain about being
jhb [Wed, 27 Jul 2005 15:21:32 +0000 (15:21 +0000)]
Correct the order of some if tests so that we don't complain about being
unable to route an IRQ when we do route an IRQ ok but bootverbose is off.

Reported by: Ben Kaduk minimarmot at gmail dot com

19 years agoFIx for a bug in the change that made nfs_timer() MPSAFE. We need to
ps [Wed, 27 Jul 2005 15:06:26 +0000 (15:06 +0000)]
FIx for a bug in the change that made nfs_timer() MPSAFE. We need to
grab Giant before calling pru_send() (if running with mpsafenet = 0).

Found by: Jeremie Le Hen.
Fixed by: Maxime Henrion

19 years agoIn nfs_nget() if two threads race on the same filehandle, the loser should
ps [Wed, 27 Jul 2005 15:05:31 +0000 (15:05 +0000)]
In nfs_nget() if two threads race on the same filehandle, the loser should
cause the nfsnode to get freed. This fixes a potential vnode (and nfsnode)
leak in that path.

Submitted by: Mohan Srinivasan
Reviewed by: phk

19 years agodon't accept invalid form of an address like 1:2:3:4:5:6:7::8.
ume [Wed, 27 Jul 2005 14:33:36 +0000 (14:33 +0000)]
don't accept invalid form of an address like 1:2:3:4:5:6:7::8.

PR: bin/84106
Obtained from: BIND9
MFC after: 2 days

19 years ago- Use callout_*() rather than timeout() to periodically poll the media.
jhb [Wed, 27 Jul 2005 13:51:01 +0000 (13:51 +0000)]
- Use callout_*() rather than timeout() to periodically poll the media.
- Add locking to protect the softc and mark this driver as MP safe.  There
  are still some edge cases with multiport cards that need more locking
  work.

MFC after: 1 week
Tested on: alpha

19 years agoFix a typo in the name of the dmamap for a bus_dmamap_sync().
jhb [Wed, 27 Jul 2005 13:48:45 +0000 (13:48 +0000)]
Fix a typo in the name of the dmamap for a bus_dmamap_sync().

MFC after: 3 days

19 years agoUse root_mount KPI for RAID3 to delay root file system mount.
pjd [Wed, 27 Jul 2005 09:03:51 +0000 (09:03 +0000)]
Use root_mount KPI for RAID3 to delay root file system mount.
Actually, one cannot setup root file system on RAID3 device, but when
other file system exist in /etc/fstab which are placed on RAID3 device,
boot process will be interrupted when these devices are missing.

MFC after: 3 days
X-MFC-note: MFC only to RELENG_6, as RELENG_5 doesn't have root_mount KPI.

19 years agoCorrect a buffer overflow which can occur when decompressing a
cperciva [Wed, 27 Jul 2005 08:41:17 +0000 (08:41 +0000)]
Correct a buffer overflow which can occur when decompressing a
carefully crafted deflated data stream. [1]

Correct problems in the AES-XCBC-MAC IPsec authentication algorithm. [2]

Submitted by: suz [2]
Security: FreeBSD-SA-05:18.zlib [1], FreeBSD-SA-05:19.ipsec [2]

19 years agoAdd -o/-O options to pkg_version:
krion [Wed, 27 Jul 2005 07:55:12 +0000 (07:55 +0000)]
Add -o/-O options to pkg_version:

   -o  Show the origin recorded on package generation instead of the
       package name.

   -O  Only list packages whose registered origin is origin.

Based on PR: bin/78640
Submitted by: Marcus Grando <marcus at corp dot grupos.com.br>, flz

19 years agoThe 575A doesn't have funcregs in memio. So don't claim that it does.
imp [Wed, 27 Jul 2005 06:38:55 +0000 (06:38 +0000)]
The 575A doesn't have funcregs in memio.  So don't claim that it does.
This gets my 575A card probing.

Card provided by: James Flemer
MFC After: 3 days

19 years agowhen bridging internally bypass the bss node as traffic to it
sam [Wed, 27 Jul 2005 04:41:25 +0000 (04:41 +0000)]
when bridging internally bypass the bss node as traffic to it
must follow the normal input path

Submitted by: Michal Mertl
MFC after: 5 days

19 years agobandaid ni_fails handling so ap's with association failures are
sam [Wed, 27 Jul 2005 02:53:09 +0000 (02:53 +0000)]
bandaid ni_fails handling so ap's with association failures are
reconsidered after a bit; a proper fix involves more changes to
the scanning infrastructure

Reviewed by: avatar, David Young
MFC after: 5 days

19 years agoDon't cross-reference VFS_START.9
scottl [Wed, 27 Jul 2005 02:08:59 +0000 (02:08 +0000)]
Don't cross-reference VFS_START.9