]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
14 years agoMFC: r205855
jkim [Wed, 31 Mar 2010 16:01:48 +0000 (16:01 +0000)]
MFC: r205855

Print memory model of the video mode except for planar memory model.
'P', 'D', 'C', 'H', and 'V' mean packed pixel, direct color, CGA, Hercules,
and VGA X memory models respectively where they have fixed number of planes.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205985 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r197185
jkim [Wed, 31 Mar 2010 15:49:10 +0000 (15:49 +0000)]
MFC: r197185

Enable BIOS modes on amd64.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205984 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r205557, r205558, r205564, r205566, r205604, r205653
jkim [Wed, 31 Mar 2010 15:45:11 +0000 (15:45 +0000)]
MFC: r205557, r205558, r205564, r205566, r205604, r205653

Sync. pixel mode support for VESA and VGA frame buffers with HEAD.

- Map entire video memory again.  Although we do not use them all directly,
it seems VGA renderer may access unmapped memory region and cause kernel
panic.
- Fall back to VGA palette functions if VESA function failed and DAC is
still in 6-bit mode.  Although we have to check non-VGA compatibility bit
here, it seems there are too many broken VESA BIOSes out to rely on it.
- Be careful when we determine bytes per scan line information.  We compare
mode table data against minimum value.  If the mode table does not make
sense, we set the minimum in the mode info.
- Teach VGA framebuffer about 8-bit palette format for VESA.
- Add my copyright here.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205983 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r205550, r205605, r205865
jkim [Wed, 31 Mar 2010 15:39:46 +0000 (15:39 +0000)]
MFC: r205550, r205605, r205865

Sync. pixel mode support for syscons(4) with HEAD.

- Separate 24-bit pixel draw from 32-bit case.  Although it is slower, we do
not want to write a useless zero to inaccessible memory region.
- We only want the dummy palette for direct color mode.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205982 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r205297, r205347, r205452, r205455, r205649, r205650
jkim [Wed, 31 Mar 2010 15:32:36 +0000 (15:32 +0000)]
MFC: r205297, r205347, r205452, r205455, r205649, r205650

Sync. x86bios with HEAD.

- Detect illegal access to unmapped memory within real mode emulator.
- Map EBDA if available and support memory wraparound above 1MB as VM86 does.
- Set initial %ds to 0x40 as X.org int10 handler does.
- Print the initial memory map when bootverbose is set.
- Optimize real mode page table lookup.
- Add strictly aligned memory access for distant future.
- Update copyright date.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205981 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205606
gahr [Wed, 31 Mar 2010 13:51:31 +0000 (13:51 +0000)]
MFC r205606
Remove const'ness from dlerror(3) prototype, for consistency with POSIX.

Approved by: cognet

git-svn-id: svn://svn.freebsd.org/base/stable/8@205979 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r204705:
mav [Wed, 31 Mar 2010 08:17:32 +0000 (08:17 +0000)]
MFC r204705:
Add links to cam(4).

git-svn-id: svn://svn.freebsd.org/base/stable/8@205976 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r204565:
mav [Wed, 31 Mar 2010 08:15:32 +0000 (08:15 +0000)]
MFC r204565:
Some style and language improvements.

Submitted by: ru

git-svn-id: svn://svn.freebsd.org/base/stable/8@205975 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r204704:
mav [Wed, 31 Mar 2010 08:14:07 +0000 (08:14 +0000)]
MFC r204704:
Reflect added CAM ATA support.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205974 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r204655:
mav [Wed, 31 Mar 2010 08:12:22 +0000 (08:12 +0000)]
MFC r204655:
Add some more supported controllers.
Crosslink with CAM ATA man pages.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205973 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205734:
mav [Wed, 31 Mar 2010 08:03:49 +0000 (08:03 +0000)]
MFC r205734:
Fix lock leakage.

PR:             kern/145081

git-svn-id: svn://svn.freebsd.org/base/stable/8@205972 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205413:
mav [Wed, 31 Mar 2010 08:02:16 +0000 (08:02 +0000)]
MFC r205413:
Add some more codec IDs.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205971 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205422:
mav [Wed, 31 Mar 2010 07:56:32 +0000 (07:56 +0000)]
MFC r205422:
- Spec tells that CCC interrupt is edge triggered. Acknowledge it as such.
- Do not try to enable CCC if it is not supported.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205970 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205074:
mav [Wed, 31 Mar 2010 07:49:59 +0000 (07:49 +0000)]
MFC r205074:
Mask disk_idx to avoid panic because of extra bits set.

PR:             kern/102211
Submitted by:   yoichi

git-svn-id: svn://svn.freebsd.org/base/stable/8@205968 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205809:
fabient [Wed, 31 Mar 2010 07:10:40 +0000 (07:10 +0000)]
MFC r205809:
Wait for pmc name in the log before displaying data.
This will solve an abort in case of low throughput PMCs.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205965 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years ago<machine/nexusvar.h>, <machine/sapicreg.h> and <machine/sapicvar.h>
marcel [Wed, 31 Mar 2010 05:23:35 +0000 (05:23 +0000)]
<machine/nexusvar.h>, <machine/sapicreg.h> and <machine/sapicvar.h>
removed on ia64.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205961 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC rev 199727, 200888, 201031, 202904, 203054, 203106, 203572, 203884,
marcel [Wed, 31 Mar 2010 05:05:28 +0000 (05:05 +0000)]
MFC rev 199727, 200888, 201031, 202904, 203054, 203106, 203572, 203884,
204183, 204184, 204185, 204425, 204904, 204905, 205172, 205234, 205357,
205428, 205429, 205431, 205432, 205433, 205434, 205435, 205454, 205665,
205713, 205723, 205726 and 205727:

Bring ia64 machine-dependent changes from 9-current to 8-stable.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205960 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC revs 199502, 199566 and 199574:
marcel [Wed, 31 Mar 2010 03:20:14 +0000 (03:20 +0000)]
MFC revs 199502, 199566 and 199574:
Add a seatbelt to the Nested TLB Fault handler to give us a chance
to panic when we have an unexpected TLB fault while interrupt
collection is disabled.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205958 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC rev 198431:
marcel [Wed, 31 Mar 2010 03:14:40 +0000 (03:14 +0000)]
MFC rev 198431:
Have the early USB takeover only enabled for i386 and amd64
by default. This also avoids a panic on PowerPC.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205957 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC rev 198341 and 198342:
marcel [Wed, 31 Mar 2010 02:43:58 +0000 (02:43 +0000)]
MFC rev 198341 and 198342:
o   Introduce vm_sync_icache() for making the I-cache coherent with
    the memory or D-cache, depending on the semantics of the platform.
    vm_sync_icache() is basically a wrapper around pmap_sync_icache(),
    that translates the vm_map_t argumument to pmap_t.
o   Introduce pmap_sync_icache() to all PMAP implementation. For powerpc
    it replaces the pmap_page_executable() function, added to solve
    the I-cache problem in uiomove_fromphys().
o   In proc_rwmem() call vm_sync_icache() when writing to a page that
    has execute permissions. This assures that when breakpoints are
    written, the I-cache will be coherent and the process will actually
    hit the breakpoint.
o   This also fixes the Book-E PMAP implementation that was missing
    necessary locking while trying to deal with the I-cache coherency
    in pmap_enter() (read: mmu_booke_enter_locked).

git-svn-id: svn://svn.freebsd.org/base/stable/8@205956 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoA last-minute change in the previous commit broke rule deletion,
luigi [Wed, 31 Mar 2010 01:51:08 +0000 (01:51 +0000)]
A last-minute change in the previous commit broke rule deletion,
so i am fixing it, this time with a more detailed description
of what the code is supposed to do.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205953 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r204533:
delphij [Wed, 31 Mar 2010 00:41:32 +0000 (00:41 +0000)]
MFC r204533:

Add PCI ID for MCS9901.

Submitted by: gcooper
PR: kern/144397

git-svn-id: svn://svn.freebsd.org/base/stable/8@205951 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r203846
marius [Tue, 30 Mar 2010 20:46:10 +0000 (20:46 +0000)]
MFC: r203846

Predict KASSERTs to be true.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205936 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r203845
marius [Tue, 30 Mar 2010 20:44:04 +0000 (20:44 +0000)]
MFC: r203845

- Add the 'cmp' and 'core' pseudo-busses which are used to group CPU cores
  to the exclusion lists as the CPU nodes aren't handled as regular devices
  either. Also add the pseudo-devices found in Sun Fire V1280.
- Allow nexus_attach() and nexus_alloc_resource() to be used by drivers
  derived from nexus(4) for subordinate busses.
- Don't add the zero-sized memory resources of glue devices to the resource
  lists.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205933 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r203843
marius [Tue, 30 Mar 2010 20:39:47 +0000 (20:39 +0000)]
MFC: r203843

Resurrect nexusvar.h from r167307.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205930 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r203839
marius [Tue, 30 Mar 2010 20:38:18 +0000 (20:38 +0000)]
MFC: r203839

Style fixes

git-svn-id: svn://svn.freebsd.org/base/stable/8@205928 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r203838
marius [Tue, 30 Mar 2010 20:29:45 +0000 (20:29 +0000)]
MFC: r203838

- Search the whole OFW device tree instead of only the children of the
  root nexus device for the CPUs as starting with UltraSPARC IV the 'cpu'
  nodes hang off of from 'cmp' (chip multi-threading processor) or 'core'
  or combinations thereof. Also in large UltraSPARC III based machines
  the 'cpu' nodes hang off of 'ssm' (scalable shared memory) nodes which
  group snooping-coherency domains together instead of directly from the
  nexus.
  It would be great if we could use newbus to deal with the different ways
  the 'cpu' devices can hang off of pseudo ones but unfortunately both
  cpu_mp_setmaxid() and sparc64_init() have to work prior to regular device
  probing.
- Add support for UltraSPARC IV and IV+ CPUs. Due to the fact that these
  are multi-core each CPU has two Fireplane config registers and thus the
  module/target ID has to be determined differently so the one specific
  to a certain core is used. Similarly, starting with UltraSPARC IV the
  individual cores use a different property in the OFW device tree to
  indicate the CPU/core ID as it no longer is in coincidence with the
  shared slot/socket ID.
  This involves changing the MD KTR code to not directly read the UPA
  module ID either. We use the MID stored in the per-CPU data instead of
  calling cpu_get_mid() as a replacement in order prevent clobbering any
  registers as side-effect in the assembler version. This requires CATR()
  invocations from mp_startup() prior to mapping the per-CPU pages to be
  removed though.
  While at it additionally distinguish between CPUs with Fireplane and
  JBus interconnects as these also use slightly different sizes for the
  JBus/agent/module/target IDs.
- Make sparc64_shutdown_final() static as it's not used outside of
  machdep.c.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205927 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r203833
marius [Tue, 30 Mar 2010 20:12:42 +0000 (20:12 +0000)]
MFC: r203833

- At least the trap table of the Sun Fire V1280 firmware apparently has
  no cleanwindows handler so just remove trying to trigger it from _start
  and the AP trampoline code as that leads to a crash there. This should
  be okay as leaking data from the OFW via the CPU registers on start of
  the kernel should be no real concern.
- Make the comments of _start and the AP trampoline code regarding the
  initializations they perform match each other and reality.
- Make the comments of the AP trampoline code regarding iTLB accesses
  refer to the right macro.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205924 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r203830, r203831
marius [Tue, 30 Mar 2010 20:05:20 +0000 (20:05 +0000)]
MFC: r203830, r203831

Use the SUNW,{d,i}tlb-load methods for entering locked TLB entries like
OpenBSD and OpenSolaris do instead of fiddling with the MMUs ourselves.
Unlike direct access the firmware methods don't automatically use the
next free (?) TLB slot, instead the slot to be used has to be specified.
We allocate the TLB slots for the kernel top-down as OpenSolaris suggests
that the firmware will always allocate the ones for its own use bottom-up.
Besides being simpler, according to OpenBSD using the firmware methods is
required to allow booting on Sun Fire E10K with multi-systemboard domains.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205922 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r203829
marius [Tue, 30 Mar 2010 20:02:26 +0000 (20:02 +0000)]
MFC: r203829

- Assert that HEAPSZ is a multiple of PAGE_SIZE as at least the firmware
  of Sun Fire V1280 doesn't round up the size itself but instead lets
  claiming of non page-sized amounts of memory fail.
- Change parameters and variables related to the TLB slots to unsigned
  which is more appropriate.
- Search the whole OFW device tree instead of only the children of the
  root nexus device for the BSP as starting with UltraSPARC IV the 'cpu'
  nodes hang off of from 'cmp' (chip multi-threading processor) or 'core'
  or combinations thereof. Also in large UltraSPARC III based machines
  the 'cpu' nodes hang off of 'ssm' (scalable shared memory) nodes which
  group snooping-coherency domains together instead of directly from the
  nexus.
- Add support for UltraSPARC IV and IV+ BSPs. Due to the fact that these
  are multi-core each CPU has two Fireplane config registers and thus the
  module/target ID has to be determined differently so the one specific
  to a certain core is used. Similarly, starting with UltraSPARC IV the
  individual cores use a different property in the OFW device tree to
  indicate the CPU/core ID as it no longer is in coincidence with the
  shared slot/socket ID.
  While at it additionally distinguish between CPUs with Fireplane and
  JBus interconnects as these also use slightly different sizes for the
  JBus/agent/module/target IDs.
- Check the return value of init_heap(). This requires moving it after
  cons_probe() so we can panic when appropriate. This should be fine as
  the PowerPC OFW loader uses that order for quite some time now.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205920 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r203731
marius [Tue, 30 Mar 2010 19:52:45 +0000 (19:52 +0000)]
MFC: r203731

Some style(9) fixes

git-svn-id: svn://svn.freebsd.org/base/stable/8@205918 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r203341
marius [Tue, 30 Mar 2010 19:37:47 +0000 (19:37 +0000)]
MFC: r203341

- Remove the BUS_HANDLE_MIN checking in the __BUS_DEBUG_ACCESS macro;
  for UPA it should have fulfilled its purpose by now and Fireplane-
  and JBus-based machines are way to messy in organization to implement
  something equivalent.
- Fix a bunch of style(9) bugs.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205913 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r203335
marius [Tue, 30 Mar 2010 19:36:00 +0000 (19:36 +0000)]
MFC: r203335

- Const'ify the bus_stream_asi and bus_type_asi arrays.
- Replace hard-coded functions names missed in bus_machdep.c with __func__.
- Break some long lines.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205911 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r203334
marius [Tue, 30 Mar 2010 19:33:09 +0000 (19:33 +0000)]
MFC: r203334

Sync with the other archs and declare the memory location referenced by
the address argument of the bus_space_write_multi_*() familiy as const.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205910 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r205410
marius [Tue, 30 Mar 2010 19:13:37 +0000 (19:13 +0000)]
MFC: r205410

Avoid aliasing which leads to incorrect results when compiling with the
default strict aliasing rules.

PR: 144900
Submitted by: Peter Jeremy

git-svn-id: svn://svn.freebsd.org/base/stable/8@205905 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r205397
marius [Tue, 30 Mar 2010 19:08:02 +0000 (19:08 +0000)]
MFC: r205397

- While SPARC V9 allows tininess to be detected either before or after
  rounding (impl. dep. #55), the SPARC JPS1 responsible for SPARC64 and
  UltraSPARC processors defines that in all cases tinyness is detected
  before rounding, therefore rounding up to the smallest normalised
  number should set the underflow flag.
- If an infinite result is rounded down, the result should have an
  exponent 1 less than the value for infinity.

PR: 144900
Submitted by: Peter Jeremy

git-svn-id: svn://svn.freebsd.org/base/stable/8@205902 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r205396
marius [Tue, 30 Mar 2010 19:06:31 +0000 (19:06 +0000)]
MFC: r205396

Division should take both arguments' signs into account when the
the dividend is infinity or zero and the divisor is not the same.

PR: 144900
Submitted by: Peter Jeremy

git-svn-id: svn://svn.freebsd.org/base/stable/8@205896 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r205395
marius [Tue, 30 Mar 2010 19:05:08 +0000 (19:05 +0000)]
MFC: r205395

FPU_DEBUG requires <stdio.h>.

PR: 144900
Submitted by: Peter Jeremy

git-svn-id: svn://svn.freebsd.org/base/stable/8@205893 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r205394
marius [Tue, 30 Mar 2010 19:03:26 +0000 (19:03 +0000)]
MFC: r205394

Ensure that __fpu_ftox() both returns the high bits and res[1] contains
the low bits also in the default case.

PR: 144900
Obtained from: OpenBSD

git-svn-id: svn://svn.freebsd.org/base/stable/8@205890 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r205393
marius [Tue, 30 Mar 2010 18:58:07 +0000 (18:58 +0000)]
MFC: r205393

- Remove a bogus forward declaration.
- Fix whitespace.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205887 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205167:
attilio [Tue, 30 Mar 2010 12:06:18 +0000 (12:06 +0000)]
MFC r205167:
Make the code more readable and compiling on 64-bits arch different
than amd64.

Sponsored by: Sandvine Incorporated

git-svn-id: svn://svn.freebsd.org/base/stable/8@205878 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205160:
attilio [Tue, 30 Mar 2010 11:46:43 +0000 (11:46 +0000)]
MFC r205160:
Checkin a facility for specifying a passthrough FIB from userland.
arcconf tool by Adaptec already seems to use for identifying the
Serial Number of the devices.

Sponsored by: Sandvine Incorporated

git-svn-id: svn://svn.freebsd.org/base/stable/8@205876 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r204641, r204753:
attilio [Tue, 30 Mar 2010 11:19:29 +0000 (11:19 +0000)]
MFC r204641, r204753:
Improving the clocks auto-tunning by firstly checking if the atrtc may be
correctly initialized and just then assign to softclock/profclock.

Sponsored by:   Sandvine Incorporated

git-svn-id: svn://svn.freebsd.org/base/stable/8@205875 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r204383:
delphij [Mon, 29 Mar 2010 22:52:51 +0000 (22:52 +0000)]
MFC r204383:

Add several necessary .El's

git-svn-id: svn://svn.freebsd.org/base/stable/8@205866 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205702:
delphij [Mon, 29 Mar 2010 18:24:08 +0000 (18:24 +0000)]
MFC r205702:

Remove GNU cpio after fix of CVE-2010-0624.

Note that this is actually a no-op for most users, as this GNU
cpio was broken on -HEAD and 8-STABLE since last March until
the recent fix.

FreeBSD 8.0+ uses BSD cpio by default and the code is being
actively maintained.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205848 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r205647
jkim [Mon, 29 Mar 2010 15:59:37 +0000 (15:59 +0000)]
MFC: r205647

Fix stupid typos.  Some VESA BIOSes directly call BIOS interrupt handlers
within the VBE interrupt handler.  Unfortunately it was causing real mode
page faults because we were fetching instructions from bogus addresses.

PR: kern/144654

git-svn-id: svn://svn.freebsd.org/base/stable/8@205837 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199852, r202387, r202441, r202534:
attilio [Mon, 29 Mar 2010 15:39:17 +0000 (15:39 +0000)]
MFC r199852, r202387, r202441, r202534:
Handling all the three clocks with the LAPIC may lead to aliasing for
softclock and profclock.
Revert the change when the LAPIC started taking charge of all three of
them.

Sponsored by: Sandvine Incorporated

git-svn-id: svn://svn.freebsd.org/base/stable/8@205836 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agomfc 205830:
luigi [Mon, 29 Mar 2010 12:32:16 +0000 (12:32 +0000)]
mfc 205830:
fixes to rule set handling (including potential kernel panics)

git-svn-id: svn://svn.freebsd.org/base/stable/8@205833 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoremove a leftover debugging message
luigi [Mon, 29 Mar 2010 12:29:34 +0000 (12:29 +0000)]
remove a leftover debugging message

git-svn-id: svn://svn.freebsd.org/base/stable/8@205832 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205693:
fabient [Mon, 29 Mar 2010 06:57:43 +0000 (06:57 +0000)]
MFC r205693:
Do not overflow the term in the case of multi-line display.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205825 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205694:
fabient [Mon, 29 Mar 2010 06:55:38 +0000 (06:55 +0000)]
MFC r205694:
Handling SIGPIPE will cause deadlock/crash.
Return an error immediatly in case of hard shutdown.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205823 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoUpdate to 9.6.2-P1, the latest patchfix release which deals with
dougb [Mon, 29 Mar 2010 06:31:58 +0000 (06:31 +0000)]
Update to 9.6.2-P1, the latest patchfix release which deals with
the problems related to the handling of broken DNSSEC trust chains.

This fix is only relevant for those who have DNSSEC validation
enabled and configure trust anchors from third parties, either
manually, or through a system like DLV.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205820 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205290:
dougb [Mon, 29 Mar 2010 01:24:20 +0000 (01:24 +0000)]
MFC r205290:

MAKE_JUST_WORLDS

git-svn-id: svn://svn.freebsd.org/base/stable/8@205817 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC aac(4) driver changes
emaste [Mon, 29 Mar 2010 00:30:44 +0000 (00:30 +0000)]
MFC aac(4) driver changes

r204019:

  Include command type in COMMAND TIMEOUT messages to aid in debugging.

r203885:

  Diff reduction with Adaptec's vendor driver.

  Driver version 2.1.9 chosen as that Adaptec version roughly corresponds
  with the current feature set merged to the in-tree driver.

r203801:

  Garbage collect Falcon/PPC support that has not been used in released
  products, based on discussion with Adaptec.

r198617:

  Rename aac_srb32 to aac_srb, to match Adaptec's vendor driver.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205815 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r204264:
emaste [Mon, 29 Mar 2010 00:14:34 +0000 (00:14 +0000)]
MFC r204264:

  Minor diff reduction with Adaptec's driver: in aac_release_command() set
  cm_queue to AAC_ADAP_NORM_CMD_QUEUE by default.  In every place it was
  set, it was set to AAC_ADAP_NORM_CMD_QUEUE anyhow.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205813 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205411:
emaste [Mon, 29 Mar 2010 00:08:58 +0000 (00:08 +0000)]
MFC r205411:

  Avoid holding the VLAN_LOCK() over the parent interface SIOCGIFMEDIA
  ioctl call, as it may sleep.

  Reviewed by:    rwatson

git-svn-id: svn://svn.freebsd.org/base/stable/8@205810 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200818: rc.subr: Use pwait in wait_for_pids.
jilles [Sun, 28 Mar 2010 20:19:41 +0000 (20:19 +0000)]
MFC r200818: rc.subr: Use pwait in wait_for_pids.

This waits for the requested process(es) to terminate, rather than polling
with an interval of 2 seconds.

If pwait is not available, the old method is used.

PR: conf/132766

git-svn-id: svn://svn.freebsd.org/base/stable/8@205806 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r196607,r198453,r204016,r204017,r204836,r204842,r205105,r205153
jilles [Sun, 28 Mar 2010 19:34:57 +0000 (19:34 +0000)]
MFC r196607,r198453,r204016,r204017,r204836,r204842,r205105,r205153
Various testcases that work correctly with stable/8 sh.

Note: this creates some gaps in the numbering due to lower-numbered tests
for new functionality which is not or not yet MFC'ed.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205800 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r203824:
trasz [Sun, 28 Mar 2010 18:46:01 +0000 (18:46 +0000)]
MFC r203824:

Fix VBAD description.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205799 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r203721:
trasz [Sun, 28 Mar 2010 18:44:54 +0000 (18:44 +0000)]
MFC r203721:

Add references to VOP_* man pages to vnode(9).

git-svn-id: svn://svn.freebsd.org/base/stable/8@205798 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r203549:
trasz [Sun, 28 Mar 2010 18:43:04 +0000 (18:43 +0000)]
MFC r203549:

Add missing coma.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205797 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r198175:
jh [Sun, 28 Mar 2010 11:22:38 +0000 (11:22 +0000)]
MFC r198175:

- If lstat()/stat() fails with an error other than ENOENT, don't ignore
  the error and assume that the file doesn't exist. Touch could return
  success with -c option even if the file existed and time was not set.
- If the first utimes_f() call fails with -A option, give up and don't
  continue trying to set times to current time. [1]
- Set exit status to 1 when setting of timestamps fails for a directory
  or symbolic link even though lstat()/stat() would succeed.
- Don't print bogus error message when rw() succeeds.

PR: bin/112213

git-svn-id: svn://svn.freebsd.org/base/stable/8@205790 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r203122:
trasz [Sat, 27 Mar 2010 18:45:53 +0000 (18:45 +0000)]
MFC r203122:

Improve descriptions, remove turnstiles (since, from what I understand,
they are only used to implement other synchronization primitives), tweak
formatting.

MFC r203127:

Add description of bounded sleep vs unbounded sleep (aka blocking).  Move
rules into their own section.

MFC r203131:

Cosmetic fixes.

MFC r203759:

Improve description for Giant and mention blocking inside interrupt threads.

MFC r203762:

Start sentences with a new line.

Submitted by: brueffer

MFC r203825:

Remove list of locking primitives, which is kind of redundant, move
information about witness(9) to the section about interactions, and
expand 'contexts' table.

MFC r203929:

Some rewording and language fixes.

PR: docs/136918, docs/134074
Submitted by: Ben Kaduk <kaduk at mit dot edu>, Haven Hash <havenster at gmail dot com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@205775 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201432:
trasz [Sat, 27 Mar 2010 18:15:18 +0000 (18:15 +0000)]
MFC r201432:

Add manual page for gcache(8).

git-svn-id: svn://svn.freebsd.org/base/stable/8@205772 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200723:
trasz [Sat, 27 Mar 2010 18:12:00 +0000 (18:12 +0000)]
MFC r200723:

Interpret VAPPEND correctly in vaccess_acl_nfs4(9).

git-svn-id: svn://svn.freebsd.org/base/stable/8@205771 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200273:
trasz [Sat, 27 Mar 2010 18:09:40 +0000 (18:09 +0000)]
MFC r200273:

Don't add VAPPEND if the file is not being opened for writing.  Note that this
only affects cases where open(2) is being used improperly - i.e. when the user
specifies O_APPEND without O_WRONLY or O_RDWR.

Reviewed by: rwatson

git-svn-id: svn://svn.freebsd.org/base/stable/8@205770 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200058:
trasz [Sat, 27 Mar 2010 18:08:14 +0000 (18:08 +0000)]
MFC r200058:

Add change that was somehow missed in r192586.  It could manifest by
incorrectly returning EINVAL from acl_valid(3) for applications linked
against pre-8.0 libc.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205769 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199875:
trasz [Sat, 27 Mar 2010 18:04:33 +0000 (18:04 +0000)]
MFC r199875:

Provide a set of sysctls and tunables to disable device node creation
for specific "kinds" of disk labels - for example, GPT UUIDs.  Reason
for this is that sometimes, other GEOM classes attach to these device
nodes instead of the proper ones - e.g. they attach to /dev/gptid/XXX
instead of /dev/ada0p2, which is annoying.

Reviewed by: pjd (earlier version)

git-svn-id: svn://svn.freebsd.org/base/stable/8@205768 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199182:
trasz [Sat, 27 Mar 2010 18:01:38 +0000 (18:01 +0000)]
MFC r199182:

Add links to zfs(8) and zpool(8) to mount(8) manual page.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205767 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r204840:
bz [Sat, 27 Mar 2010 17:57:17 +0000 (17:57 +0000)]
MFC r204840:

  As statfs.f_flags are uint64_t the local variables should be as well.
  We'll start noticing this with the next flag introduced as the lower
  32bit are all used.

  While here compare to 0 explicitly [1].

  Suggested by: kib [1]
  Reviewed by:  kib

git-svn-id: svn://svn.freebsd.org/base/stable/8@205766 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r197945:
trasz [Sat, 27 Mar 2010 17:56:45 +0000 (17:56 +0000)]
MFC r197945:

Orphaning provider with EXDEV seems weird; perhaps the author meant
ENXIO here?

git-svn-id: svn://svn.freebsd.org/base/stable/8@205765 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205626:
bz [Sat, 27 Mar 2010 17:54:44 +0000 (17:54 +0000)]
MFC r205626:

  Print the pointer to the lock with the panic message. The previous
        panic: rw lock not unlocked
  was not really helpful for debugging. Now one can at least call
        show lock <ptr>
  form ddb to learn more about the lock.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205764 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205276:
bz [Sat, 27 Mar 2010 17:52:56 +0000 (17:52 +0000)]
MFC r205276:

  Add ddb support to the "new" link layer code ("new-arp"):
   - show all lltables [1] (optional flag to also show the llentries as well)
   - show lltable <struct lltable *>
   - show llentry <struct llentry *>

git-svn-id: svn://svn.freebsd.org/base/stable/8@205763 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205251:
bz [Sat, 27 Mar 2010 17:51:27 +0000 (17:51 +0000)]
MFC r205251:

  Add pcb reference counting to the pcblist sysctl handler functions
  to ensure type stability while caching the pcb pointers for the
  copyout.

  Reviewed by:  rwatson

git-svn-id: svn://svn.freebsd.org/base/stable/8@205762 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r204838:
bz [Sat, 27 Mar 2010 17:50:02 +0000 (17:50 +0000)]
MFC r204838:

  Destroy TCP UMA zones (empty or not) upon network stack teardown
  to not leak them, otherwise making UMA/vmstat unhappy with every
  stoped vnet.
  We will still leak pages (especially for zones marked NOFREE).

  Reshuffle cleanup order in tcp_destroy() to get rid of what we can
  easily free first.

  Reviewed by:  rwatson

git-svn-id: svn://svn.freebsd.org/base/stable/8@205761 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r204805:
bz [Sat, 27 Mar 2010 17:48:13 +0000 (17:48 +0000)]
MFC r204805:

  Rework reference counting in case we queue into the netisr,
  or overflow the netisr queue and fall back to the interface
  queue so that we can garuantee that the ifnet pointer stays
  valid.   Formerly we ended up with reference counts <= 0 in
  case the netisr had returned ENOBUFS.  The idea is to track
  any packet in the netisr queue and only change the refount
  on edge operations for the fallback interface queue. This
  also avoids problems in case the if_snd.ifq_len lies to us.

  Also rework refount assertions to make sure they trigger if
  we go below 1. Formerly a negative refence count did not
  trigger the assert as the refcount variable is u_int.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205760 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r204807:
bz [Sat, 27 Mar 2010 17:46:06 +0000 (17:46 +0000)]
MFC r204807:

  Destroy UDP UMA zones (empty or not) upon network stack teardown
  to not leak them making UMA/vmstat -z unhappy with every stoped vnet.
  We will still leak pages (especially as zones are marked NOFREE).

git-svn-id: svn://svn.freebsd.org/base/stable/8@205759 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r204147:
bz [Sat, 27 Mar 2010 17:42:04 +0000 (17:42 +0000)]
MFC r204147:

  Set curvnet earlier so that it also covers calls to sodisconnect(), which
  before were possibly panicing the system in ULP code in the VIMAGE case.

  Submitted by: Igor (igor ispsystem.com)

git-svn-id: svn://svn.freebsd.org/base/stable/8@205758 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r204279:
bz [Sat, 27 Mar 2010 17:40:28 +0000 (17:40 +0000)]
MFC r204279:

  Use the DB_SHOW_ALL_COMMAND() macro to register the formerly 'show ifnets'
  in the db_show_all_table as 'show all ifnets' and with that follow the
  convention for showing complete lists.

  Submitted by: thompsa

git-svn-id: svn://svn.freebsd.org/base/stable/8@205757 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r204145:
bz [Sat, 27 Mar 2010 17:39:02 +0000 (17:39 +0000)]
MFC r204145:

  Start to implement ifnet DDB support:
  - 'show ifnets' prints a list of ifnet *s per virtual network stack,
  - 'show ifnet <struct ifnet *>' prints fields matching the given ifp.

  We do not yet print the complete set of fields and might want to
  factor this out to an extra if_debug.c file in case this grows
  a lot[1]. We may also want to grow 'show ifnet <if_xname>' support[1].

  Suggested by: rwatson [1]
  Reviewed by:  rwatson

git-svn-id: svn://svn.freebsd.org/base/stable/8@205756 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r204143:
bz [Sat, 27 Mar 2010 17:36:52 +0000 (17:36 +0000)]
MFC r204143:

  Upon virtual network stack teardown properly release the TCP syncache
  resources.

  Reviewed by:  rwatson

git-svn-id: svn://svn.freebsd.org/base/stable/8@205755 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r204140:
bz [Sat, 27 Mar 2010 17:34:57 +0000 (17:34 +0000)]
MFC r204140:

  Split up ip_drain() into an outer lock and iterator part and
  a "locked" version that will only handle a single network stack
  instance. The latter is called directly from ip_destroy().

  Hook up an ip_destroy() function to release resources from the
  legacy IP network layer upon virtual network stack teardown.

  Reviewed by:  rwatson

git-svn-id: svn://svn.freebsd.org/base/stable/8@205754 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r204142:
bz [Sat, 27 Mar 2010 17:33:19 +0000 (17:33 +0000)]
MFC r204142:

  Enhance a panic string to contain more useful debugging information.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205753 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r203729:
bz [Sat, 27 Mar 2010 17:31:54 +0000 (17:31 +0000)]
MFC r203729:

  Add DDB support for printing vnet_sysinit and vnet_sysuninit
  ordered call lists. Try to lookup function/symbol names and print
  those in addition to the pointers, along with the constants for
  subsystem and order.
  This is useful for debugging vnet teardown ordering issues.

  Make it possible to call the actual printing frunction from normal
  code at runtime, ie. from vnet_sysuninit(), if DDB support is there.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205752 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r203727:
bz [Sat, 27 Mar 2010 17:29:50 +0000 (17:29 +0000)]
MFC r203727:

  Add an SDT provider for "vnet"s along with probes for vnet_alloc
  and vnet_destroy.
  Use the line number rather than NULL as dummy argument.

  Note: the fbt provider does not reliably provide :return probes
  (depending on optimization levels used at compile time) making
  it unusable for scripts to generate complete call-traces with
  well defined boundaries over allocations or destructions of
  virtual network stacks.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205751 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r203724:
bz [Sat, 27 Mar 2010 17:26:31 +0000 (17:26 +0000)]
MFC r203724:

  Properly free resources when destroying the TCP hostcache while
  tearing down a network stack (in the VIMAGE jail+vnet case).

  For that break out the logic from tcp_hc_purge() into an internal
  function we can call from both, the sysctl handler and the
  tcp_hc_destroy().

  Reviewed by:  silby, lstewart

git-svn-id: svn://svn.freebsd.org/base/stable/8@205750 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r197780:
trasz [Sat, 27 Mar 2010 17:25:17 +0000 (17:25 +0000)]
MFC r197780:

Make fetch(9) and store(9) manual pages closer to reality.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205749 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r197680:
trasz [Sat, 27 Mar 2010 17:22:11 +0000 (17:22 +0000)]
MFC r197680:

Provide default implementation for VOP_ACCESS(9), so that filesystems which
want to provide VOP_ACCESSX(9) don't have to implement both.  Note that
this commit makes implementation of either of these two mandatory.

Reviewed by: kib

git-svn-id: svn://svn.freebsd.org/base/stable/8@205748 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201815:
bz [Sat, 27 Mar 2010 17:22:08 +0000 (17:22 +0000)]
MFC r201815:

  To avoid hardcoding further kernel configuration names for
  make universe, split the logic into two parts:
  - 1st to build worlds and generate kernel configs like LINT.
  - 2nd to build kernels for a given TARGET architecture correctly
    finding all newly generated configs, not knowing anything about
    LINT anymore.

MFC rr201960:

  Use uname -m [1] and rename BUILD_ARCH to XMACHINE[2].

  Submitted by: nyan[1], imp[2]

MFC r202095:

  Rather than using an extra variable, only call uname if really needed and
  then directly assign the result.

  Submitted by: jmallett

git-svn-id: svn://svn.freebsd.org/base/stable/8@205747 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201814:
bz [Sat, 27 Mar 2010 17:17:11 +0000 (17:17 +0000)]
MFC r201814:

  Generate a second LINT configuration for i386 and amd64 in
  sys/conf/makeLINT.mk, which includes LINT and sets options VIMAGE
  so that we will have VIMAGE LINT builds. For now only do it for
  those two architectures to avoid massive universe times for archs,
  where people will less likely use VIMAGE or not at all.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205746 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201813:
bz [Sat, 27 Mar 2010 17:14:55 +0000 (17:14 +0000)]
MFC r201813:

  In sys/<arch>/conf/Makefile set TARGET to <arch>. That allows
  sys/conf/makeLINT.mk to only do certain things for certain
  architectures.

  Note that neither arm nor mips have the Makefile there, thus
  essentially not (yet) supporting LINT.  This would enable them
  do add special treatment to sys/conf/makeLINT.mk as well chosing
  one of the many configurations as LINT.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205745 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202123:
bz [Sat, 27 Mar 2010 17:11:06 +0000 (17:11 +0000)]
MFC r202123:

  Change DDB show prison:
  - name some columns more closely to the user space variables,
    as we do for host.* or allow.* (in the listing) already.
  - print pr_childmax (children.max).
  - prefix hex values with 0x.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205744 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r197405, missing part:
trasz [Sat, 27 Mar 2010 16:41:23 +0000 (16:41 +0000)]
MFC r197405, missing part:

Add pieces of infrastructure required for NFSv4 ACL support in UFS.

Reviewed by: rwatson

git-svn-id: svn://svn.freebsd.org/base/stable/8@205740 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r197650:
trasz [Sat, 27 Mar 2010 16:35:25 +0000 (16:35 +0000)]
MFC r197650:

Fix typo in the comment.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205739 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r197405:
trasz [Sat, 27 Mar 2010 16:31:49 +0000 (16:31 +0000)]
MFC r197405:

Add pieces of infrastructure required for NFSv4 ACL support in UFS.

Reviewed by: rwatson

git-svn-id: svn://svn.freebsd.org/base/stable/8@205737 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201438:
trasz [Sat, 27 Mar 2010 15:05:06 +0000 (15:05 +0000)]
MFC r201438:

Make mac_lomac(4) able to interpret NFSv4 access bits.

Reviewed by: rwatson

git-svn-id: svn://svn.freebsd.org/base/stable/8@205733 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201818:
trasz [Sat, 27 Mar 2010 15:02:28 +0000 (15:02 +0000)]
MFC r201818:

Fix array overflow.

Reviewed by: philip

git-svn-id: svn://svn.freebsd.org/base/stable/8@205732 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202919:
trasz [Sat, 27 Mar 2010 14:58:28 +0000 (14:58 +0000)]
MFC r202919:

Fix array overflow.  This routine is only called from procfs,
which is not mounted by default, and I've been unable to trigger
a panic without this fix applied anyway.

Reviewed by: kib, cperciva

git-svn-id: svn://svn.freebsd.org/base/stable/8@205731 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r204408:
trasz [Sat, 27 Mar 2010 14:43:40 +0000 (14:43 +0000)]
MFC r204408:

Fix panic on invalid 'mdconfig -at preload' usage.

PR: kern/80136

git-svn-id: svn://svn.freebsd.org/base/stable/8@205730 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 205332:
jhb [Fri, 26 Mar 2010 18:58:22 +0000 (18:58 +0000)]
MFC 205332:
Use the same policy for rejecting / not-reject ACPI tables with incorrect
checksums as the base acpi(4) driver.  This fixes a problem where the MADT
parser would reject the MADT table during early boot causing the MP Table
to be, but then the acpi(4) driver would attach and use non-SMP interrupt
routing.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205708 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f