]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
13 years agoPartially implement the mysterious cons25 \e[x escape sequence.
ed [Fri, 5 Nov 2010 00:56:21 +0000 (00:56 +0000)]
Partially implement the mysterious cons25 \e[x escape sequence.

It seems the terminfo library on some systems (OS X, Linux) may emit the
sequence \e[x to reset to default attributes. Apart from using the
zero-command, this escape sequence allows many more operations, such as
setting ANSI colors. I don't see this used anywhere, so this should be
sufficient for now.

This deficiency was spotted by the Debian GNU/kFreeBSD. They have their
own patch, which is slightly flawed in my opinion. I don't know why they
never reported this issue to us.

MFC after: 1 week

13 years agoDon't terminate the notification with \n. This is done in
n_hibma [Thu, 4 Nov 2010 21:06:36 +0000 (21:06 +0000)]
Don't terminate the notification with \n. This is done in
usb_device.c:devctl_notify_f().

13 years agoIn man section 4, ERRORS is spelled DIAGNOSTICS
uqs [Thu, 4 Nov 2010 21:03:50 +0000 (21:03 +0000)]
In man section 4, ERRORS is spelled DIAGNOSTICS

13 years agor214781 caused the timer value to be rounded down, so that if the user asked
brucec [Thu, 4 Nov 2010 20:31:12 +0000 (20:31 +0000)]
r214781 caused the timer value to be rounded down, so that if the user asked
for 59 minutes 30 was sent to the drive. The timer value is now always
rounded up.

Reported by: mav

13 years agoAdd code to warm reset a USB 3.0 port.
hselasky [Thu, 4 Nov 2010 19:24:21 +0000 (19:24 +0000)]
Add code to warm reset a USB 3.0 port.

Approved by: thompsa (mentor)

13 years agoAdd new USB quirk.
hselasky [Thu, 4 Nov 2010 19:05:35 +0000 (19:05 +0000)]
Add new USB quirk.

Submitted by: Dmitry Luhtionov
Approved by: thompsa (mentor)

13 years agoRemove 4.x, 5.x and 6.x compatibility bits.
bschmidt [Thu, 4 Nov 2010 18:43:57 +0000 (18:43 +0000)]
Remove 4.x, 5.x and 6.x compatibility bits.

Submitted by: Paul B Mahol <onemda at gmail.com>

13 years agoUpdate startup_alloc() to support multi-page allocations and allow internal
jhb [Thu, 4 Nov 2010 15:33:50 +0000 (15:33 +0000)]
Update startup_alloc() to support multi-page allocations and allow internal
zones whose objects are larger than a page to use startup_alloc().  This
allows allocation of zone objects during early boot on machines with a large
number of CPUs since the resulting zone objects are larger than a page.

Submitted by: trema
Reviewed by: attilio
MFC after: 1 week

13 years agoFix standby timer calculation: the timer was being set 30 minutes later
brucec [Thu, 4 Nov 2010 15:24:32 +0000 (15:24 +0000)]
Fix standby timer calculation: the timer was being set 30 minutes later
than the user requested.
Also, 21 minutes is encoded as 252 and 22-29 minutes cannot be encoded
so must be rounded up to 30.

PR: bin/151871

13 years agoFix typo.
bcr [Thu, 4 Nov 2010 10:47:19 +0000 (10:47 +0000)]
Fix typo.

13 years agoIn r214728, if dlopen() is called for the object that has been already
kib [Thu, 4 Nov 2010 09:29:00 +0000 (09:29 +0000)]
In r214728, if dlopen() is called for the object that has been already
loaded as a dependency and marked -z nodlopen, object' DAG is already
initialized by load_needed_objects(). Due to this, the init_dag() call
from dlopen() does not increment refcount for the object [1].

Change init_dag() to not increment DAG refcount. Require explicit calls
to ref_dag() to increment, and assert that ref_dag() and unref_dag()
are called for root that has dag initialized. To fix the noted issue,
unconditionally call both init_dag() and ref_dag() in dlopen() for the
case when the object was already loaded, making it similar to the case
of newly loaded object.

Noted by: jh [1]
Reviewed by: jh, kan
MFC after: 6 days

13 years agoFix style.
kib [Thu, 4 Nov 2010 09:19:14 +0000 (09:19 +0000)]
Fix style.

MFC after: 6 days

13 years agox86 topo_probe: do not probe smp topology if only one cpu is visible
avg [Thu, 4 Nov 2010 08:51:45 +0000 (08:51 +0000)]
x86 topo_probe: do not probe smp topology if only one cpu is visible

This could lead to a division by zero if hardware is multi-core and/or
multi-threaded, but for some (quite unusual) reason FreeBSD sees only
one logical processor.  This could happen, for example, if neither MADT
nor MP Table are presented by BIOS.

Also:
- assert in topo_probe_0x4 that BSP is accounted for
- neither cpu_cores nor cpu_logical should be zero after successful
  probing, so either being zero is an indication of failed probing

Reported by: vwe, Dan Allen <danallen46@airwired.net>
Tested by: Dan Allen <danallen46@airwired.net>
MFC after: 3 days

13 years agoDon't attach the PCI bus driver if the board we're being run on has PCIe. The
jmallett [Wed, 3 Nov 2010 23:29:52 +0000 (23:29 +0000)]
Don't attach the PCI bus driver if the board we're being run on has PCIe.  The
two are mutually-exclusive on Octeon.

13 years agoAdjust a comment to clarify why \_SB_ and \_TZ_ are defined as device type
jkim [Wed, 3 Nov 2010 23:16:35 +0000 (23:16 +0000)]
Adjust a comment to clarify why \_SB_ and \_TZ_ are defined as device type
in ACPICA.  Reshuffle the code a bit to make sure this kludge only applies
to these two specical cases and to make it cleaner.

13 years ago- Simplify the way unit/subunit allocation is done in ucom.
n_hibma [Wed, 3 Nov 2010 21:50:49 +0000 (21:50 +0000)]
- Simplify the way unit/subunit allocation is done in ucom.
- hw.usb.ucom.cons_unit is now split into
  hw.usb.ucom.cons_unit/...cons_subunit.

Note: The tunable/sysctl hw.usb.ucom.cons_unit needs to be reviewed if

a) a console was defined a USB serial devices, and a USB device with
more than 1 subunit is present, and this device is attached before the
device functioning as a console

or

b) a console was defined on a USB device with more than 1 subunit

Reviewed by: hps
MFC after: 2 weeks

13 years agoDon't spam the console with loaded modules during boot and/or during
n_hibma [Wed, 3 Nov 2010 21:10:12 +0000 (21:10 +0000)]
Don't spam the console with loaded modules during boot and/or during
startup of ppp.

Note: This cannot be hidden behind bootverbose as this file is included
from lib/libalias as well.

13 years agoXref BUS_SETUP_INTR(9) and locking(9).
trasz [Wed, 3 Nov 2010 18:49:50 +0000 (18:49 +0000)]
Xref BUS_SETUP_INTR(9) and locking(9).

13 years agoFix two mistakes on 32-bit systems. The slbmte code in syscall() is 64-bit
nwhitehorn [Wed, 3 Nov 2010 16:21:47 +0000 (16:21 +0000)]
Fix two mistakes on 32-bit systems. The slbmte code in syscall() is 64-bit
only, and should be protected with an ifdef, and the no-execute bit in
32-bit set_user_sr() should be set before the comparison, not after, or
it will never match.

13 years agoExtend the g_eventlock mutex coverage in one_event() to include setting
jh [Wed, 3 Nov 2010 16:19:35 +0000 (16:19 +0000)]
Extend the g_eventlock mutex coverage in one_event() to include setting
of the EV_DONE flag and use the mutex to protect against losing wakeups
in g_waitfor_event().

Reported by: davidxu
Tested by: davidxu
Discussed on: freebsd-current

13 years agoRemove 'softclock_ih' as it is no longer used.
jhb [Wed, 3 Nov 2010 15:38:52 +0000 (15:38 +0000)]
Remove 'softclock_ih' as it is no longer used.

13 years agoClean up the user segment handling code a little more. Now that
nwhitehorn [Wed, 3 Nov 2010 15:15:48 +0000 (15:15 +0000)]
Clean up the user segment handling code a little more. Now that
set_user_sr() itself caches the user segment VSID, there is no need for
cpu_switch() to do it again. This change also unifies the 32 and 64-bit
code paths for kernel faults on user pages and remaps the user SLB slot
on 64-bit systems when taking a syscall to avoid some unnecessary segment
exception traps.

13 years agoDelete machine/foo.h headers moved to x86/. I forgot to commit this
jhb [Wed, 3 Nov 2010 13:42:59 +0000 (13:42 +0000)]
Delete machine/foo.h headers moved to x86/.  I forgot to commit this
earlier.

13 years agoRemove unused files.
rpaulo [Wed, 3 Nov 2010 10:46:39 +0000 (10:46 +0000)]
Remove unused files.

13 years agoAdapt for wpa_supplicant / hostapd 0.7.3.
rpaulo [Wed, 3 Nov 2010 10:44:25 +0000 (10:44 +0000)]
Adapt for wpa_supplicant / hostapd 0.7.3.

13 years agoMerge wpa_supplicant and hostapd 0.7.3.
rpaulo [Wed, 3 Nov 2010 10:43:38 +0000 (10:43 +0000)]
Merge wpa_supplicant and hostapd 0.7.3.

13 years agoIf dlopen() is called for the dso that has been already loaded as a
kib [Wed, 3 Nov 2010 09:23:08 +0000 (09:23 +0000)]
If dlopen() is called for the dso that has been already loaded as a
dependency, then the dso never has its DAG initialized. Empty DAG
makes ref_dag() call in dlopen() a nop, and the dso refcount is off
by one.

Initialize the DAG on the first dlopen() call, using a boolean flag
to prevent double initialization.

From the PR (edited):
Assume we have a library liba.so, containing a function a(), and a
library libb.so, containing function b(). liba.so needs functionality
from libb.so, so liba.so links in libb.so.

An application doesn't know about the relation between these libraries,
but needs to call a() and b(). It dlopen()s liba.so and obtains a
pointer to a(), then it dlopen()s libb.so and obtains a pointer to b().

As soon as the application doesn't need a() anymore, it dlclose()s liba.so.

Expected result: the pointer to b() is still valid and can be called
Actual result: the pointer to b() has become invalid, even though the
application did not dlclose() the handle to libb.so. On calling b(), the
application crashes with a segmentation fault.

PR: misc/151861
Based on patch by: jh
Reviewed by: kan
Tested by: Arjan van Leeuwen <freebsd-maintainer opera com>
MFC after: 1 week

13 years agoClean up leftover USB device ID after r213856. This fixes:
hselasky [Wed, 3 Nov 2010 07:51:33 +0000 (07:51 +0000)]
Clean up leftover USB device ID after r213856. This fixes:
options USB_VERBOSE

Submitted by: Lucius Windschuh
Approved by: thompsa (mentor)

13 years agoMFV of tzdata2010o, r214716
edwin [Wed, 3 Nov 2010 01:30:56 +0000 (01:30 +0000)]
MFV of tzdata2010o, r214716

- Fiji moves to DST three weeks earlier in 2010.

13 years agosh: Fix some issues with aliases and case, by importing dash checkkwd code.
jilles [Tue, 2 Nov 2010 23:44:29 +0000 (23:44 +0000)]
sh: Fix some issues with aliases and case, by importing dash checkkwd code.

This moves the function of the noaliases variable into the checkkwd
variable. This way it is properly reset on errors and aliases can be used
normally in the commands for each case (the case labels recognize the
keyword esac but no aliases).

The new code is clearer as well.

Obtained from: dash

13 years agoDeclare the CF GEOM class so that g_modevent will get called, the class will
jmallett [Tue, 2 Nov 2010 23:43:44 +0000 (23:43 +0000)]
Declare the CF GEOM class so that g_modevent will get called, the class will
be recorded, etc.  This fixes libgeom on Octeon.

13 years agoSend packets to remote node only via the send thread to avoid possible
pjd [Tue, 2 Nov 2010 22:13:08 +0000 (22:13 +0000)]
Send packets to remote node only via the send thread to avoid possible
races - in this case a keepalive packet was send from wrong thread which
lead to connection dropping, because of corrupted packet.

Fix it by sending keepalive packets directly from the send thread.
As a bonus we now send keepalive packets only when connection is idle.

Submitted by: Mikolaj Golub <to.my.trociny@gmail.com>
MFC after: 3 days

13 years agoCosmetic change to revert one of my earlier ones.
jhb [Tue, 2 Nov 2010 20:16:41 +0000 (20:16 +0000)]
Cosmetic change to revert one of my earlier ones.
#if __i386__ && PAE is identical to just #if PAE since PAE is only a valid
option for i386.

Submitted by: attilio

13 years agoTweak the waitchannel messages for the dead lock detection kthread. Use
jhb [Tue, 2 Nov 2010 18:34:31 +0000 (18:34 +0000)]
Tweak the waitchannel messages for the dead lock detection kthread.  Use
a shorter message (userland generally only sees the first 6 to 8
characters) when waiting for the allproc lock.  Use "-" when idle to math
the behavior of other kthreads.

Reviewed by: attilio
MFC after: 1 week

13 years agoFurther tweaks to the ram_attach() routine:
jhb [Tue, 2 Nov 2010 17:56:16 +0000 (17:56 +0000)]
Further tweaks to the ram_attach() routine:
- Use > 2^32 - 1 instead of >= when checking for memory regions above 4G.
- Skip SMAP entries > 4G on i386 rather than breaking out of the loop
  since SMAP entries are not guaranteed to be in order.
- Remove 'i' and loop over 'rid' directly in the dump_avail[] case.
- Only check for 4G regions in the dump_avail[] case on i386 if PAE is
  enabled since vm_paddr_t is 32-bit in the !PAE case.

Submitted by: alc

13 years agoAdd a new libc function: cfmakesane(3).
ed [Tue, 2 Nov 2010 17:00:56 +0000 (17:00 +0000)]
Add a new libc function: cfmakesane(3).

I've noticed various terminal emulators that need to obtain a sane
default termios structure use very complex `hacks'. Even though POSIX
doesn't provide any functionality for this, extend our termios API with
cfmakesane(3), which is similar to the commonly supported cfmakeraw(3),
except that it fills the termios structure with sane defaults.

Change all code in our base system to use this function, instead of
depending on <sys/ttydefaults.h> to provide TTYDEF_*.

13 years agoSkip SMAP regions above 4GB on i386 since they will not fit into a long.
jhb [Tue, 2 Nov 2010 13:04:25 +0000 (13:04 +0000)]
Skip SMAP regions above 4GB on i386 since they will not fit into a long.
While here, update some comments to better explain the new code flow.

Tested by: dhw

13 years agoDon't leak the LLE lock if the arptimer callout is pending or inactive.
jhb [Tue, 2 Nov 2010 13:00:56 +0000 (13:00 +0000)]
Don't leak the LLE lock if the arptimer callout is pending or inactive.

Reported by: David Rhodus
MFC after: 1 month

13 years agoFix a few typos and style nits in the example code.
jhb [Tue, 2 Nov 2010 12:40:13 +0000 (12:40 +0000)]
Fix a few typos and style nits in the example code.

Submitted by: Arnaud Lacombe  lacombar of gmail
MFC after: 3 days

13 years agoRemove stale line, accidentally slipped into r214016.
mav [Tue, 2 Nov 2010 09:31:24 +0000 (09:31 +0000)]
Remove stale line, accidentally slipped into r214016.

MFC after: 3 days

13 years agoShorten long lines.
obrien [Tue, 2 Nov 2010 05:39:57 +0000 (05:39 +0000)]
Shorten long lines.

13 years agoGive the user a hint as to what config(8) is unhappy with.
obrien [Tue, 2 Nov 2010 05:27:05 +0000 (05:27 +0000)]
Give the user a hint as to what config(8) is unhappy with.

13 years agoUse sysctl kern.sched.cpusetsize to retrieve size of kernel cpuset.
davidxu [Tue, 2 Nov 2010 02:13:13 +0000 (02:13 +0000)]
Use sysctl kern.sched.cpusetsize to retrieve size of kernel cpuset.

13 years ago- Add ELF core for FreeBSD/mips
gonzo [Tue, 2 Nov 2010 01:26:21 +0000 (01:26 +0000)]
- Add ELF core for FreeBSD/mips
- Register all known cores in init function

13 years agoFix reading of .debug_line on MIPS64, big-endian:
gonzo [Tue, 2 Nov 2010 01:24:49 +0000 (01:24 +0000)]
Fix reading of .debug_line  on MIPS64, big-endian:
    read_initial_length detects pointer size by checking first
    4 bytes of .debug_line and stores it in struct comp_unit_head *
    passed to it as second argument. By passing NULL to a
    read_initial_length we ignore actual pointer size (8 bytes) and
    use default (4 bytes) which results in wrong offsets of header fields.

13 years agoTry to be a little smart at guessing where _start is located in flash, instead
cognet [Mon, 1 Nov 2010 21:04:23 +0000 (21:04 +0000)]
Try to be a little smart at guessing where _start is located in flash, instead
of relying on a binutils bug.

Reported by: dim

13 years agoSync the lem code up with the vlan and other fixes in em.
jfv [Mon, 1 Nov 2010 20:19:25 +0000 (20:19 +0000)]
Sync the lem code up with the vlan and other fixes in em.
Delete a unneeded test from the beginning of em_xmit.
CRITICAL: shared code fix for 82574, a mutex might not be
          released, this can cause hangs.

13 years agoMove <machine/apicreg.h> to <x86/apicreg.h>.
jhb [Mon, 1 Nov 2010 18:18:46 +0000 (18:18 +0000)]
Move <machine/apicreg.h> to <x86/apicreg.h>.

13 years agoMove the <machine/mca.h> header to <x86/mca.h>.
jhb [Mon, 1 Nov 2010 17:40:35 +0000 (17:40 +0000)]
Move the <machine/mca.h> header to <x86/mca.h>.

13 years agoAdd an x86/include directory to the kernel to hold headers that are common
jhb [Mon, 1 Nov 2010 17:34:04 +0000 (17:34 +0000)]
Add an x86/include directory to the kernel to hold headers that are common
to amd64, i386, and pc98.  The headers are installed to /usr/include/x86
during an installworld, and an 'x86' symlink is created for kernel builds
similar to 'machine' so that the headers can be included as <x86/foo.h>.

Reviewed by: imp

13 years agoAdd DragonflyBSD 2.8 and OpenBSD 4.8 releases
uqs [Mon, 1 Nov 2010 17:27:09 +0000 (17:27 +0000)]
Add DragonflyBSD 2.8 and OpenBSD 4.8 releases

Also expand a stray tab in the family tree

MFC after: 1 week

13 years agoCorrect the abbreviations for general I/O and signal traces.
jhb [Mon, 1 Nov 2010 15:18:57 +0000 (15:18 +0000)]
Correct the abbreviations for general I/O and signal traces.

PR: docs/151854
Submitted by: Stephen Veiss  stephen of brokenbottle net
MFC after: 3 days

13 years agoFix ztest when it is executed by just 'ztest' and not by full path
pjd [Mon, 1 Nov 2010 10:42:14 +0000 (10:42 +0000)]
Fix ztest when it is executed by just 'ztest' and not by full path
'/usr/bin/ztest'.

13 years ago1. Remove invalid assertion.
pjd [Mon, 1 Nov 2010 10:41:05 +0000 (10:41 +0000)]
1. Remove invalid assertion.
2. Properly recalculate delta in case pthread_cond_timedwait() is interrupted.
3. Style fix.

Reported by: [1] App Deb <appdebgr@gmail.com>

13 years agoImplement pmap_is_prefaultable().
alc [Mon, 1 Nov 2010 02:22:48 +0000 (02:22 +0000)]
Implement pmap_is_prefaultable().

Reviewed by: nwhitehorn

13 years agoStyle cleanup: make this look more like a 21st-century shell script
wollman [Mon, 1 Nov 2010 02:20:18 +0000 (02:20 +0000)]
Style cleanup: make this look more like a 21st-century shell script
and not something out of the early 1980s.  Make sure all error
messages go to stderr, not stdout.  Since there's error-handling code
to handle empty SEARCHPATHS and FILESYSTEMS, use the initialization
form that allows this error to be diagnosed.  (hat tip: jilles@)

13 years agojilles@ pointed out that using ${PRUNEDIRS:=".zfs"} in updatedb.sh
wollman [Mon, 1 Nov 2010 01:51:47 +0000 (01:51 +0000)]
jilles@ pointed out that using ${PRUNEDIRS:=".zfs"} in updatedb.sh
made it impossible to override PRUNEDIRS to make it empty.  Use the
non-colon form to only set PRUNEDIRS if it is completely unset.  (For
parallelism, the other configuration defaults here could be done the
same way, but that could be more obviously accomplished by disabling
updatedb in periodic.conf, so leave them alone for now.)

13 years agoUse integer for size of cpuset, as it won't be bigger than INT_MAX,
davidxu [Mon, 1 Nov 2010 00:42:25 +0000 (00:42 +0000)]
Use integer for size of cpuset, as it won't be bigger than INT_MAX,
This is requested by bge.
Also move the sysctl into file kern_cpuset.c, because it should
always be there, it is independent of thread scheduler.

13 years agoAdd a security nit to recent copyin/out changes: map the user segment
nwhitehorn [Sun, 31 Oct 2010 23:04:15 +0000 (23:04 +0000)]
Add a security nit to recent copyin/out changes: map the user segment
no-execute in case of exploitable kernel bugs.

MFC after: 1 week

13 years agosh(1): Correct synopsis and make precise how $0 is set.
jilles [Sun, 31 Oct 2010 23:03:11 +0000 (23:03 +0000)]
sh(1): Correct synopsis and make precise how $0 is set.

In particular, the extra argument to set $0 with -c was not documented.

MFC after: 1 week

13 years agoTurn a panic into a printf so IFM_ETH_MASTER on !IFM_1000_T is complained
marius [Sun, 31 Oct 2010 22:59:49 +0000 (22:59 +0000)]
Turn a panic into a printf so IFM_ETH_MASTER on !IFM_1000_T is complained
about but otherwise ignored. When allowing the master to be set manually via
ifconfig(8) by adding the former to IFM_SUBTYPE_ETHERNET_OPTION_DESCRIPTIONS
(as it should be) it seems to be unfavorable that a machine can be made to
panic with a simple ifconfig(8) invocation.

13 years agoNext-to-leading-order perturbation of synchronization operations for
nwhitehorn [Sun, 31 Oct 2010 22:55:51 +0000 (22:55 +0000)]
Next-to-leading-order perturbation of synchronization operations for
switching the user segment register. All races should now be closed and
a minimum of pipelines flushes be required to close them.

13 years agoTry to make the style consistent (including regarding NetBSD bits not yet
marius [Sun, 31 Oct 2010 22:46:39 +0000 (22:46 +0000)]
Try to make the style consistent (including regarding NetBSD bits not yet
merged) and adhere style(9).

13 years agoMake a comment reflect reality.
marius [Sun, 31 Oct 2010 22:41:53 +0000 (22:41 +0000)]
Make a comment reflect reality.

13 years agoFix typo and grammar nit
uqs [Sun, 31 Oct 2010 19:16:54 +0000 (19:16 +0000)]
Fix typo and grammar nit

Submitted by: arundel
MFC after: 7 days (or when the bikeshed has abated)

13 years agoAdd a driver for the Apple Uninorth AGP host bridge found in all PowerPC
nwhitehorn [Sun, 31 Oct 2010 18:27:05 +0000 (18:27 +0000)]
Add a driver for the Apple Uninorth AGP host bridge found in all PowerPC
Macintoshes with an AGP bus.

13 years agoAdd some missing parentheses so that moea_bat_mapped() actually works.
nwhitehorn [Sun, 31 Oct 2010 15:07:09 +0000 (15:07 +0000)]
Add some missing parentheses so that moea_bat_mapped() actually works.

Submitted by: alc
MFC after: 3 days

13 years agosh: Reindent evaltree().
jilles [Sun, 31 Oct 2010 12:08:16 +0000 (12:08 +0000)]
sh: Reindent evaltree().

13 years agosh: Use iteration instead of recursion to evaluate semicolon lists.
jilles [Sun, 31 Oct 2010 12:06:02 +0000 (12:06 +0000)]
sh: Use iteration instead of recursion to evaluate semicolon lists.
This reduces CPU and memory usage when executing long lists (such
as long functions).

13 years agoFix callout_tickstofirst() behavior after signed integer ticks overflow.
mav [Sun, 31 Oct 2010 11:44:41 +0000 (11:44 +0000)]
Fix callout_tickstofirst() behavior after signed integer ticks overflow.
This should fix callout precision drop to 1/4s after 25 days of uptime
with HZ = 1000.

Submitted by: Taku YAMAMOTO <taku@tackymt.homeip.net>

13 years agoElaborate some more on the non-security implications of using -P
uqs [Sun, 31 Oct 2010 09:21:27 +0000 (09:21 +0000)]
Elaborate some more on the non-security implications of using -P

Submitted by: delphij
Discussion at: svn-src-all

13 years agoUpdate to 9.6-ESV-R2, the latest from ISC.
dougb [Sun, 31 Oct 2010 04:45:53 +0000 (04:45 +0000)]
Update to 9.6-ESV-R2, the latest from ISC.

This version contains bug fixes that are relevant to any
caching/resolving name server; as well as DNSSEC-related
fixes.

13 years agoPrep for the 9.6-ESV-R2 update
dougb [Sun, 31 Oct 2010 04:45:25 +0000 (04:45 +0000)]
Prep for the 9.6-ESV-R2 update

13 years agoRename BUS_SPACE_IO and BUS_SPACE_MEM defines to BUS_SPACE_TAG_IO and
nyan [Sun, 31 Oct 2010 03:03:20 +0000 (03:03 +0000)]
Rename BUS_SPACE_IO and BUS_SPACE_MEM defines to BUS_SPACE_TAG_IO and
BUS_SPACE_TAG_MEM respectively to avoid conflict with nexus.c.

13 years agoMake it possible to exclude directories by name no matter where they
wollman [Sun, 31 Oct 2010 02:36:05 +0000 (02:36 +0000)]
Make it possible to exclude directories by name no matter where they
are in the filesystem from the locate database.  By default, exclude
".zfs" directories, as users who who have set snapdir=visible and are
taking frequent snapshots most likely do not want the snapshots
included in the locate database.

13 years agoAdd another safety belt to pmap_demote_DMAP().
alc [Sat, 30 Oct 2010 23:49:37 +0000 (23:49 +0000)]
Add another safety belt to pmap_demote_DMAP().

13 years agoAllow access to the HT I/O port space on the IBM CPC9X5 northbridge chips.
nwhitehorn [Sat, 30 Oct 2010 23:09:56 +0000 (23:09 +0000)]
Allow access to the HT I/O port space on the IBM CPC9X5 northbridge chips.

MFC after: 2 weeks

13 years agoRestructure the way the copyin/copyout segment is stored to prevent a
nwhitehorn [Sat, 30 Oct 2010 23:07:30 +0000 (23:07 +0000)]
Restructure the way the copyin/copyout segment is stored to prevent a
concurrency bug. Since all SLB/SR entries were invalidated during an
exception, a decrementer exception could cause the user segment to be
invalidated during a copyin()/copyout() without a thread switch that
would cause it to be restored from the PCB, potentially causing the
operation to continue on invalid memory. This is now handled by explicit
restoration of segment 12 from the PCB on 32-bit systems and a check in
the Data Segment Exception handler on 64-bit.

While here, cause copyin()/copyout() to check whether the requested
user segment is already installed, saving some pipeline flushes, and
fix the synchronization primitives around the mtsr and slbmte
instructions to prevent accessing stale segments.

MFC after: 2 weeks

13 years agoCorrect a bug in r213893; within a PHY driver MIIF_PHYPRIVn should be used
marius [Sat, 30 Oct 2010 20:51:25 +0000 (20:51 +0000)]
Correct a bug in r213893; within a PHY driver MIIF_PHYPRIVn should be used
instead of MIIF_MACPRIVn. This didn't make a functional difference though.

13 years agoAnnounce both IPsec and UDP Encap (NAT-T) if available for
bz [Sat, 30 Oct 2010 18:52:44 +0000 (18:52 +0000)]
Announce both IPsec and UDP Encap (NAT-T) if available for
feature_present(3) checks.

This will help to run-time detect and conditionally handle specific
optionas of either feature in user space (i.e. in libipsec).

Descriptions read by: rwatson
MFC after: 2 weeks

13 years agoCorrect some format strings used by sysctls.
alc [Sat, 30 Oct 2010 18:00:53 +0000 (18:00 +0000)]
Correct some format strings used by sysctls.

MFC after: 1 week

13 years agoDon't demote in pmap_demote_DMAP() if the specified length is zero.
alc [Sat, 30 Oct 2010 17:21:32 +0000 (17:21 +0000)]
Don't demote in pmap_demote_DMAP() if the specified length is zero.

13 years agoWhen the make target is 'install', don't descend into the clang
rpaulo [Sat, 30 Oct 2010 16:53:42 +0000 (16:53 +0000)]
When the make target is 'install', don't descend into the clang
libraries subdirectories since there's nothing to do there. This saves
us quite a few seconds off installworld, esp. if the disk I/O is slow.

13 years agoActually remove the HAVE_CAST_H define this time.
dim [Sat, 30 Oct 2010 16:30:50 +0000 (16:30 +0000)]
Actually remove the HAVE_CAST_H define this time.

13 years agoRegenerate our usr.sbin/tcpdump/tcpdump/config.h for tcpdump 4.1.1, and
dim [Sat, 30 Oct 2010 16:25:08 +0000 (16:25 +0000)]
Regenerate our usr.sbin/tcpdump/tcpdump/config.h for tcpdump 4.1.1, and
remove unused HAVE_RC5_H and HAVE_CAST_H defines from CFLAGS.

13 years agoRemove sysctl debug.ncnegfactor, it is renamed to vfs.ncnegfactor.
kib [Sat, 30 Oct 2010 14:08:26 +0000 (14:08 +0000)]
Remove sysctl debug.ncnegfactor, it is renamed to vfs.ncnegfactor.

MFC: do not

13 years agoDon't bother to enable ASPM L1 to save more power. Even though I am
yongari [Sat, 30 Oct 2010 01:12:54 +0000 (01:12 +0000)]
Don't bother to enable ASPM L1 to save more power. Even though I am
not able to trigger the issue with sample boards, some users seems
to suffer from freeze/lockup when system is booted without UTP cable
plugged in. I'm not sure whether this is BIOS issue or controller
bug. This change fixes AR8132 lockup issue seen on EEE PC.

Reported by: kmoore
Tested by: kmoore

13 years agoRegenerate our lib/libpcap/config.h for libpcap 1.1.1.
dim [Fri, 29 Oct 2010 22:57:14 +0000 (22:57 +0000)]
Regenerate our lib/libpcap/config.h for libpcap 1.1.1.

13 years agosh: Tweak some string constants to reduce code size.
jilles [Fri, 29 Oct 2010 21:44:43 +0000 (21:44 +0000)]
sh: Tweak some string constants to reduce code size.

* Reduce some needless differences.
* Shorten some error messages that should not happen.

13 years agoAdd a ${.CURDIR} reference to the previous commit.
rpaulo [Fri, 29 Oct 2010 21:24:56 +0000 (21:24 +0000)]
Add a ${.CURDIR} reference to the previous commit.

Submitted by: dim

13 years agoUse pcap's bpf header, not our own copy of it.
rpaulo [Fri, 29 Oct 2010 21:23:34 +0000 (21:23 +0000)]
Use pcap's bpf header, not our own copy of it.

13 years agosh: Reject function names ending in one of !%*+-=?@}~
jilles [Fri, 29 Oct 2010 21:20:56 +0000 (21:20 +0000)]
sh: Reject function names ending in one of !%*+-=?@}~

These do something else in ksh: name=(...) is an array or compound variable
assignment and the others are extended patterns.

This is the last patch of the ones tested in the exp run.

Exp-run done by: pav (with some other sh(1) changes)

13 years agoForce include ../../libpcap/config.h since privsep.c groks pcap's
rpaulo [Fri, 29 Oct 2010 21:20:14 +0000 (21:20 +0000)]
Force include ../../libpcap/config.h since privsep.c groks pcap's
internals.

13 years agosh: Detect various additional errors in the parser.
jilles [Fri, 29 Oct 2010 21:06:57 +0000 (21:06 +0000)]
sh: Detect various additional errors in the parser.

Apart from detecting breakage earlier or at all, this also fixes a segfault
in the testsuite. The "handling" of the breakage left an invalid internal
representation in some cases.

Examples:
  echo a; do echo b
  echo `) echo a`
  echo `date; do do do`

Exp-run done by: pav (with some other sh(1) changes)

13 years agoAdd print-ipnet.c
rpaulo [Fri, 29 Oct 2010 21:03:59 +0000 (21:03 +0000)]
Add print-ipnet.c

Submitted by: dim

13 years agoadd pcap-common.c.
rpaulo [Fri, 29 Oct 2010 20:54:04 +0000 (20:54 +0000)]
add pcap-common.c.

Submitted by: dim

13 years ago- When resetting pm_active and pm_context of a pmap in pmap_pinit() we
marius [Fri, 29 Oct 2010 20:51:30 +0000 (20:51 +0000)]
- When resetting pm_active and pm_context of a pmap in pmap_pinit() we
  need locking as otherwise we may race against the other parts of the
  MD code which expects a consistent state of these. While at it move
  the resetting of the pmap before entering it in the TSB.
- Spell a 0 as TLB_CTX_KERNEL.

13 years agoPartially revert r203829; as it turns out what the PowerPC OFW loader did
marius [Fri, 29 Oct 2010 20:42:02 +0000 (20:42 +0000)]
Partially revert r203829; as it turns out what the PowerPC OFW loader did
was incorrect as further down the road cons_probe() calls malloc() so the
former can't be called before init_heap() has succeed. Instead just exit
to the firmware in case init_heap() fails like OF_init() does when hitting
a problem as we're then likely running in a very broken environment where
hardly anything can be trusted to work.

13 years agosh: Error out on various specials/keywords in the wrong place in backticks.
jilles [Fri, 29 Oct 2010 20:23:41 +0000 (20:23 +0000)]
sh: Error out on various specials/keywords in the wrong place in backticks.

Example:
  echo `date)`

Exp-run done by: pav (with some other sh(1) changes)
Obtained from: NetBSD (Christos Zoulas, NetBSD PR 11317)

13 years agosh: Fix some issues with CTL* bytes and ${var#pat}.
jilles [Fri, 29 Oct 2010 19:34:57 +0000 (19:34 +0000)]
sh: Fix some issues with CTL* bytes and ${var#pat}.

subevalvar() incorrectly assumed that CTLESC bytes were present iff the
expansion was quoted. However, they are present iff various processing such
as word splitting is to be done later on.

Example:
  v=@$e@$e@$e@
  y="${v##*"$e"}"
  echo "$y"
failed if $e contained the magic CTLESC byte.

Exp-run done by: pav (with some other sh(1) changes)