]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
15 years agoCommit missed file in r189587, update directory name for libusb.
thompsa [Mon, 9 Mar 2009 17:38:14 +0000 (17:38 +0000)]
Commit missed file in r189587, update directory name for libusb.

Spotted by: rdivacky

15 years ago- Make it possible to disable GPT support by setting LOADER_NO_GPT_SUPPORT
jhb [Mon, 9 Mar 2009 17:16:29 +0000 (17:16 +0000)]
- Make it possible to disable GPT support by setting LOADER_NO_GPT_SUPPORT
  in make.conf or src.conf.
- When GPT is enabled (which it is by default), use memory above 1 MB and
  leave the memory from the end of the bss to the end of the 640k window
  purely for the stack.  The loader has grown and now it is much more
  common for the heap and stack to grow into each other when both are
  located in the 640k window.

PR: kern/129526
MFC after: 1 week

15 years agolibusb20 is now installed as libusb, remove the version number from the
thompsa [Mon, 9 Mar 2009 17:09:46 +0000 (17:09 +0000)]
libusb20 is now installed as libusb, remove the version number from the
directory name.

15 years agoInstall libusb20.so.1 as libusb.so.1, there will be a followup commit to the
thompsa [Mon, 9 Mar 2009 17:05:31 +0000 (17:05 +0000)]
Install libusb20.so.1 as libusb.so.1, there will be a followup commit to the
ports tree so that programs use libusb from the base by default. Thanks to
Stanislav Sedov for sorting out the ports build.

Bump __FreeBSD_version to 800069

Help and testing by: stas

15 years agoAdd igmp(4) man page, do not connect to build yet.
bms [Mon, 9 Mar 2009 16:51:40 +0000 (16:51 +0000)]
Add igmp(4) man page, do not connect to build yet.

15 years agoMFp4 //depot/projects/usb@158916
thompsa [Mon, 9 Mar 2009 15:25:46 +0000 (15:25 +0000)]
MFp4 //depot/projects/usb@158916

USB mouse patch to address complicated data reporting descriptors.

Reported by: Boris Kotzev
Submitted by: Hans Petter Selasky

15 years agoPrefer prototypes to k&r definitions.
imp [Mon, 9 Mar 2009 13:32:19 +0000 (13:32 +0000)]
Prefer prototypes to k&r definitions.

15 years agoMake generic_intr routines match prototype.
imp [Mon, 9 Mar 2009 13:30:00 +0000 (13:30 +0000)]
Make generic_intr routines match prototype.

15 years ago__LP64__ is what's defined, not _LP64_, according to the manual (and
imp [Mon, 9 Mar 2009 13:29:13 +0000 (13:29 +0000)]
__LP64__ is what's defined, not _LP64_, according to the manual (and
also experience).

15 years agoFix prototypes to be consistent.
imp [Mon, 9 Mar 2009 13:27:33 +0000 (13:27 +0000)]
Fix prototypes to be consistent.

15 years agoo Add declarations for a few more nodes widely used.
imp [Mon, 9 Mar 2009 13:26:55 +0000 (13:26 +0000)]
o Add declarations for a few more nodes widely used.
o Minor formatting nit.

15 years agoremove now-redunant cardbus attachment lines.
imp [Mon, 9 Mar 2009 13:25:34 +0000 (13:25 +0000)]
remove now-redunant cardbus attachment lines.

15 years agoremove now-redunant cardbus attachment.
imp [Mon, 9 Mar 2009 13:23:54 +0000 (13:23 +0000)]
remove now-redunant cardbus attachment.

15 years agoFix a long-standing bug in newbus. It was introduced when subclassing
imp [Mon, 9 Mar 2009 13:20:23 +0000 (13:20 +0000)]
Fix a long-standing bug in newbus.  It was introduced when subclassing
was introduced.  If you have a bus, say cardbus, that is derived from
a base-bus (say PCI), then ordinarily all PCI drivers would attach to
cardbus devices.  However, there had been one exception: kldload
wouldn't work.

The problem is in devclass_add_driver.  In this routine, all we did
was call to the pci device's BUS_DRIVER_ADDED routine.  However, since
cardbus bus instances had a different devclass, none of them were
called.

The solution is to call all subclass devclasses, recursively down the
tree, of the class that was loaded.  Since we don't have a 'children
class' pointer, we search the whole list of devclasses for a class
whose parent matches.  Since just done a kldload time, this isn't as
bad as it sounds.  In addition, we short-circuit the whole process by
marking those classes with subclasses with a flag.  We'll likely have
to reevaluate this method the number of devclasses with subclasses
gets large.

This means we can remove the "cardbus" lines from all the PCI drivers
since we have no cardbus specific attach device attachments in the
tree.

# Also: minor tweak to an error message

15 years agoUse a u_int for p_lock instead of a char: this avoids a (somewhat
rwatson [Mon, 9 Mar 2009 13:12:48 +0000 (13:12 +0000)]
Use a u_int for p_lock instead of a char: this avoids a (somewhat
unlikely but not impossible given modern thread counts) wrap-around,
and the compiler was padding it out to an int (at least) anyway.

MFC after: 3 days (but confirm ABI impact)

15 years agoTrim comments about the MP-safety of various bits of the amd64/i386
rwatson [Mon, 9 Mar 2009 13:11:16 +0000 (13:11 +0000)]
Trim comments about the MP-safety of various bits of the amd64/i386
system call entry path and i386 IP checksum generation: we now assume
all code is MPSAFE unless explicitly marked otherwise.  Remove XXX
Giant comments along similar lines: the code by the comments either
doesn't need or doesn't want Giant (especially the NMI handler).

MFC after: 3 days

15 years agoRemove two now-defunct KSE fields from struct thread: td_uuticks and
rwatson [Mon, 9 Mar 2009 11:18:41 +0000 (11:18 +0000)]
Remove two now-defunct KSE fields from struct thread: td_uuticks and
td_usticks.

15 years agoAdd a new thread-private flag, TDP_AUDITREC, to indicate whether or
rwatson [Mon, 9 Mar 2009 10:45:58 +0000 (10:45 +0000)]
Add a new thread-private flag, TDP_AUDITREC, to indicate whether or
not there is an audit record hung off of td_ar on the current thread.
Test this flag instead of td_ar when auditing syscall arguments or
checking for an audit record to commit on syscall return.  Under
these circumstances, td_pflags is much more likely to be in the cache
(especially if there is no auditing of the current system call), so
this should help reduce cache misses in the system call return path.

MFC after:      1 week
Reported by:    kris
Obtained from:  TrustedBSD Project

15 years agoFor IP1001 PHYs, read auto-negotiation advertisement register to
yongari [Mon, 9 Mar 2009 08:17:46 +0000 (08:17 +0000)]
For IP1001 PHYs, read auto-negotiation advertisement register to
get default next page configuration. While I'm here explicitly set
IP1000PHY_ANAR_CSMA bit. This bit is read-only and always set
by hardware so setting it has no effect but it would clear the
intention. With this change controllers that couldn't establish
1000baseT link should work.

PR: kern/130846

15 years agoUse mii_phy_add_media() and remove setting each media type.
yongari [Mon, 9 Mar 2009 08:09:06 +0000 (08:09 +0000)]
Use mii_phy_add_media() and remove setting each media type.
While I'm here, don't set mii_anegticks as it's set by
mii_phy_add_media().

15 years agoFor unknown speed, explicitly set IFM_NONE.
yongari [Mon, 9 Mar 2009 08:01:40 +0000 (08:01 +0000)]
For unknown speed, explicitly set IFM_NONE.

15 years agoReport current link state while auto-negotiation is in progress.
yongari [Mon, 9 Mar 2009 07:56:40 +0000 (07:56 +0000)]
Report current link state while auto-negotiation is in progress.

15 years agoConsistently use kdev for the kernel device.
rnoland [Mon, 9 Mar 2009 07:55:18 +0000 (07:55 +0000)]
Consistently use kdev for the kernel device.

Submitted by: vehemens <vehemens@verizon.net>
MFC after: 3 days

15 years agoClean up the printing on amd64. Should also be consistent on i386.
rnoland [Mon, 9 Mar 2009 07:50:27 +0000 (07:50 +0000)]
Clean up the printing on amd64.  Should also be consistent on i386.

MFC after: 3 days

15 years agoThere is no need to sync these buffers to swap.
rnoland [Mon, 9 Mar 2009 07:49:13 +0000 (07:49 +0000)]
There is no need to sync these buffers to swap.

MFC after: 3 days

15 years agoChange the flags to bus_dmamem around to allow it to sleep waiting for
rnoland [Mon, 9 Mar 2009 07:47:03 +0000 (07:47 +0000)]
Change the flags to bus_dmamem around to allow it to sleep waiting for
resources during allocation, but not during map load.  Also, zero the
buffers here.

MFC after: 3 days

15 years agoFix the flags to bus_dmamem_* to allow the allocation to sleep while
rnoland [Mon, 9 Mar 2009 07:38:22 +0000 (07:38 +0000)]
Fix the flags to bus_dmamem_* to allow the allocation to sleep while
waiting for resources.  It is really the load that we can't defer.
BUS_DMA_NOCACHE belongs on bus_dmamap_load() as well.

MFC after: 3 days

15 years ago -Make the PCI(E)/AGP calculations consistent
rnoland [Mon, 9 Mar 2009 07:33:35 +0000 (07:33 +0000)]
-Make the PCI(E)/AGP calculations consistent
-Calculate the scratch address correctly

MFC after: 10 days

15 years agoCall the right function for the right chipset.
rnoland [Mon, 9 Mar 2009 07:24:32 +0000 (07:24 +0000)]
Call the right function for the right chipset.

MFC after: 10 days

15 years agoAdd a new tunable hw.re.prefer_iomap which disables memory register
yongari [Mon, 9 Mar 2009 06:02:55 +0000 (06:02 +0000)]
Add a new tunable hw.re.prefer_iomap which disables memory register
mapping. The tunable is OFF for all controllers except RTL8169SC
family. RTL8169SC seems to require more magic to use memory
register mapping. r187483 added a fix for RTL8169SCe controller but
it does not looke like fix other variants of RTL8169SC.

Tested by: Gavin Stone-Tolcher g.stone-tolcher <> its dot uq dot edu dot au

15 years agoDon't ignore other fcntl functions, directly call __sys_fcntl if
davidxu [Mon, 9 Mar 2009 05:54:43 +0000 (05:54 +0000)]
Don't ignore other fcntl functions, directly call __sys_fcntl if
WITHOUT_SYSCALL_COMPAT is not defined.

Reviewed by: deischen

15 years agoA system with plenty of memory would not require so much swap for generic
delphij [Mon, 9 Mar 2009 05:41:04 +0000 (05:41 +0000)]
A system with plenty of memory would not require so much swap for generic
usage.

Discussed with: dillon

15 years agoChange pmap_enter_quick_locked() so that it uses the kernel's direct map
alc [Mon, 9 Mar 2009 03:35:25 +0000 (03:35 +0000)]
Change pmap_enter_quick_locked() so that it uses the kernel's direct map
instead of the pmap's recursive mapping to access the lowest level of the
page table when it maps a user-space virtual address.

15 years agoFix TXPMGT handling:
sam [Mon, 9 Mar 2009 02:37:52 +0000 (02:37 +0000)]
Fix TXPMGT handling:
o correct dBm<->mW conversion logic
o set net80211 TXPMGT capability only if driver reports it is capable

PR: kern/132342
Submitted by: "Paul B. Mahol" <onemda@gmail.com>

15 years agoDon't reference non-existent __fcntl_compat if WITHOUT_SYSCALL_COMPAT is defined.
davidxu [Mon, 9 Mar 2009 02:34:02 +0000 (02:34 +0000)]
Don't reference non-existent __fcntl_compat if WITHOUT_SYSCALL_COMPAT is defined.

Submitted by: Pawel Worach "pawel dot worach at gmail dot com"

15 years agoo mark unexpected callbacks more clearly
sam [Sun, 8 Mar 2009 23:45:56 +0000 (23:45 +0000)]
o mark unexpected callbacks more clearly
o unwrap some lines

15 years agoMFp4 //depot/projects/usb@158868
thompsa [Sun, 8 Mar 2009 22:58:19 +0000 (22:58 +0000)]
MFp4 //depot/projects/usb@158868

Fix bugs and improve HID parsing.
- fix possible memory leak found
- fix possible NULL pointer access
- fix possible invalid memory read
- parsing improvements
- reset item data position when a new report ID is detected.

Submitted by: Hans Petter Selasky

15 years agoMFp4 //depot/projects/usb@158869
thompsa [Sun, 8 Mar 2009 22:55:17 +0000 (22:55 +0000)]
MFp4 //depot/projects/usb@158869

Fix sael init code.

Reported by: Alberto Mijares
Submitted by: Hans Petter Selasky

15 years agoBy default, don't compile in counters of calls to various time
rwatson [Sun, 8 Mar 2009 22:19:28 +0000 (22:19 +0000)]
By default, don't compile in counters of calls to various time
query functions in the kernel, as these effectively serialize
parallel calls to the gettimeofday(2) system call, as well as
other kernel services that use timestamps.

Use the NetBSD version of the fix (kern_tc.c:1.32 by ad@) as
they have picked up our timecounter code and also ran into the
same problem.

Reported by: kris
Obtained from: NetBSD
MFC after: 3 days

15 years agoDecompose the global UNIX domain sockets rwlock into two different
rwatson [Sun, 8 Mar 2009 21:48:29 +0000 (21:48 +0000)]
Decompose the global UNIX domain sockets rwlock into two different
locks: a global list/counter/generation counter protected by a new
mutex unp_list_lock, and a global linkage rwlock, unp_global_rwlock,
which protects the connections between UNIX domain sockets.

This eliminates conditional lock acquisition that was previously a
property of the global lock being held over sonewconn() leading to a
call to uipc_attach(), which also required the global lock, but
couldn't rely on it as other paths existed to uipc_attach() that
didn't hold it: now uipc_attach() uses only the list lock, which
follows the linkage lock in the lock order.  It may also reduce
contention on the global lock for some workloads.

Add global UNIX domain socket locks to hard-coded witness lock
order.

MFC after: 1 week
Discussed with: kris

15 years agoIn UNIX domain socket GC regression test, after setting a socket
rwatson [Sun, 8 Mar 2009 21:06:02 +0000 (21:06 +0000)]
In UNIX domain socket GC regression test, after setting a socket
non-blocking, EINPROGRESS is an acceptable result from connect().

15 years agoDon't disable CR-to-NL translation when waiting for data to arrive.
ed [Sun, 8 Mar 2009 19:09:55 +0000 (19:09 +0000)]
Don't disable CR-to-NL translation when waiting for data to arrive.

A difference between the old and the new TTY layer is that the new
implementation does not perform any post-processing before returning
data back to userspace when calling read().

sh(1)'s read turns the TTY into a raw mode before calling select(). This
means that the first character will not receive any ICRNL processing.
Inherit this flag from the original terminal attributes.

Even though this issue is not present on RELENG_*, I'm MFCing it to make
sh(1) in jails behave better.

PR: bin/129566
MFC after: 2 weeks

15 years agoDocument the new default implementation of VOP_VPTOCNP(9).
marcus [Sun, 8 Mar 2009 19:07:44 +0000 (19:07 +0000)]
Document the new default implementation of VOP_VPTOCNP(9).

Approved by: kib

15 years agoAdd a prototype for the new vop_stdvptocnp function.
marcus [Sun, 8 Mar 2009 19:06:26 +0000 (19:06 +0000)]
Add a prototype for the new vop_stdvptocnp function.

Reviewed by: kib
Approved by: kib
Tested by: pho

15 years agoAdd a default implementation for VOP_VPTOCNP(9) which scans the parent
marcus [Sun, 8 Mar 2009 19:05:53 +0000 (19:05 +0000)]
Add a default implementation for VOP_VPTOCNP(9) which scans the parent
directory of a vnode to find a dirent with a matching file number.  The
name from that dirent is then used to provide the component name.

Note: if the initial vnode argument is not a directory itself, then
the default VOP_VPTOCNP(9) implementation still returns ENOENT.

Reviewed by: kib
Approved by: kib
Tested by: pho

15 years agoo Spell. Sort .Xrs.
maxim [Sun, 8 Mar 2009 18:02:30 +0000 (18:02 +0000)]
o Spell.  Sort .Xrs.

15 years agoDocument several notifications, among them are DEVFS, update to ifneti,
kib [Sun, 8 Mar 2009 14:28:40 +0000 (14:28 +0000)]
Document several notifications, among them are DEVFS, update to ifneti,
coretemp and kern.

The asmc(4) and zfs(5) are still not documented.

Based on the patch by Roland Smith <rsmith xs4all nl>.
MFC after: 1 week

15 years agoRemove 'uio' argument from MAC Framework and MAC policy entry points for
rwatson [Sun, 8 Mar 2009 12:32:06 +0000 (12:32 +0000)]
Remove 'uio' argument from MAC Framework and MAC policy entry points for
extended attribute get/set; in the case of get an uninitialized user
buffer was passed before the EA was retrieved, making it of relatively
little use; the latter was simply unused by any policies.

Obtained from: TrustedBSD Project
Sponsored by: Google, Inc.

15 years agoRename 'ucred' argument to mac_socket_check_bind() to 'cred' to match
rwatson [Sun, 8 Mar 2009 12:22:00 +0000 (12:22 +0000)]
Rename 'ucred' argument to mac_socket_check_bind() to 'cred' to match
other use of the same variable type.

Obtained from: TrustedBSD Project
Sponsored by: Google, Inc.

15 years agoImprove the consistency of MAC Framework and MAC policy entry point
rwatson [Sun, 8 Mar 2009 10:58:37 +0000 (10:58 +0000)]
Improve the consistency of MAC Framework and MAC policy entry point
naming by renaming certain "proc" entry points to "cred" entry points,
reflecting their manipulation of credentials.  For some entry points,
the process was passed into the framework but not into policies; in
these cases, stop passing in the process since we don't need it.

  mac_proc_check_setaudit -> mac_cred_check_setaudit
  mac_proc_check_setaudit_addr -> mac_cred_check_setaudit_addr
  mac_proc_check_setauid -> mac_cred_check_setauid
  mac_proc_check_setegid -> mac_cred_check_setegid
  mac_proc_check_seteuid -> mac_cred_check_seteuid
  mac_proc_check_setgid -> mac_cred_check_setgid
  mac_proc_check_setgroups -> mac_cred_ceck_setgroups
  mac_proc_check_setregid -> mac_cred_check_setregid
  mac_proc_check_setresgid -> mac_cred_check_setresgid
  mac_proc_check_setresuid -> mac_cred_check_setresuid
  mac_proc_check_setreuid -> mac_cred_check_setreuid
  mac_proc_check_setuid -> mac_cred_check_setuid

Obtained from: TrustedBSD Project
Sponsored by: Google, Inc.

15 years agoMove m_getcl() into its own function. This also fixes a bug where the m_adj for
thompsa [Sun, 8 Mar 2009 06:56:13 +0000 (06:56 +0000)]
Move m_getcl() into its own function. This also fixes a bug where the m_adj for
ETHER_ALIGN was having no effect since m_len had not been set.

15 years agoUpdate version to 2.6.901a to indicate this is synced up with r745 of
kientzle [Sun, 8 Mar 2009 06:20:35 +0000 (06:20 +0000)]
Update version to 2.6.901a to indicate this is synced up with r745 of
libarchive.googlecode.com (except for the lzma/xz support).

15 years agoMerge r492 from libarchive.googlecode.com: First cut at exposing the
kientzle [Sun, 8 Mar 2009 06:19:28 +0000 (06:19 +0000)]
Merge r492 from libarchive.googlecode.com:  First cut at exposing the
new options mechanism to userland.  Documentation pending...

15 years agoDon't declare bin_search() as an inline function, since there's no
das [Sun, 8 Mar 2009 06:14:33 +0000 (06:14 +0000)]
Don't declare bin_search() as an inline function, since there's no
inline definition of it.

15 years agoMatch a comment to reduce differences with libarchive.googlecode.com.
kientzle [Sun, 8 Mar 2009 06:09:20 +0000 (06:09 +0000)]
Match a comment to reduce differences with libarchive.googlecode.com.

15 years agoMerge r709,r710 from libarchive.googlecode.com: More work on
kientzle [Sun, 8 Mar 2009 06:07:35 +0000 (06:07 +0000)]
Merge r709,r710 from libarchive.googlecode.com:  More work on
Windows support.

15 years agoFix endian conversion from htole16 to htole32.
thompsa [Sun, 8 Mar 2009 06:03:28 +0000 (06:03 +0000)]
Fix endian conversion from htole16 to htole32.

Tested with: ARM xscale

15 years agoMerge r687-689,691,693-701,720 from libarchive.googlecode.com:
kientzle [Sun, 8 Mar 2009 06:03:15 +0000 (06:03 +0000)]
Merge r687-689,691,693-701,720 from libarchive.googlecode.com:
Translate getdate.y into C for portability.  Make the get_date()
function easier to test as well:
 * Have it accept a time_t "now" to use as a reference so that test
   code can verify relative time specifications against known starting
   points.
 * Set up default date after parsing the string so that we
   can use the specified timezone (if any) instead of the local
   default.  Otherwise, local DST makes it almost impossible to
   reliably test time specifications such as "sunday UTC"

15 years agoMerger r629-631,633-646,648,654,678,681,682 from libarchive.googlecode.com:
kientzle [Sun, 8 Mar 2009 05:47:21 +0000 (05:47 +0000)]
Merger r629-631,633-646,648,654,678,681,682 from libarchive.googlecode.com:
Many changes for Windows compatibility.  bsdtar_test now runs successfully
on both POSIX platforms and Windows.

15 years agoMerge r368,496,625,626 from libarchive.googlecode.com: A number of
kientzle [Sun, 8 Mar 2009 05:38:45 +0000 (05:38 +0000)]
Merge r368,496,625,626 from libarchive.googlecode.com: A number of
style and portability tweaks to the test harness.  Most significantly,
don't use getopt().

15 years agoMerge r622 from libarchive.googlecode.com: Avoid warning on platforms
kientzle [Sun, 8 Mar 2009 05:35:59 +0000 (05:35 +0000)]
Merge r622 from libarchive.googlecode.com:  Avoid warning on platforms
that lack regex.h.

15 years agoMerge r552,r559 from libarchive.googlecode.com: High-resolution time
kientzle [Sun, 8 Mar 2009 05:34:20 +0000 (05:34 +0000)]
Merge r552,r559 from libarchive.googlecode.com:  High-resolution time
support on Tru64, AIX, and GNU Hurd, thanks to Björn Jacke.

15 years agoMerge r529 from libarchive.googlecode.com: Fix how we read ext2fs_fs.h
kientzle [Sun, 8 Mar 2009 05:28:52 +0000 (05:28 +0000)]
Merge r529 from libarchive.googlecode.com:  Fix how we read ext2fs_fs.h
headers on Linux.

15 years agoMerge r435,r443 from libarchive.googlecode.com: Let the compiler options
kientzle [Sun, 8 Mar 2009 05:24:37 +0000 (05:24 +0000)]
Merge r435,r443 from libarchive.googlecode.com:  Let the compiler options
determine how to read config.h.

15 years agoMerge r283,r423 from libarchive.googlecode.com: Use libarchive's new
kientzle [Sun, 8 Mar 2009 05:22:50 +0000 (05:22 +0000)]
Merge r283,r423 from libarchive.googlecode.com:  Use libarchive's new
archive_read_disk API to pull metadata off of disk.  This
removes a lot of platform-specific knowledge of things like
ACLs, file flags, and extended attributes from bsdtar.

15 years agoMerge r374 from libarchive.googlecode.com: Stupid typo in open() call. <sigh>
kientzle [Sun, 8 Mar 2009 05:19:36 +0000 (05:19 +0000)]
Merge r374 from libarchive.googlecode.com: Stupid typo in open() call. <sigh>

15 years agoMerge r369 from libarchive.googlecode.com: Test -s option.
kientzle [Sun, 8 Mar 2009 05:17:58 +0000 (05:17 +0000)]
Merge r369 from libarchive.googlecode.com: Test -s option.

15 years agoMerge r278 from libarchive.googlecode.com: Reduce the number of
kientzle [Sun, 8 Mar 2009 05:14:16 +0000 (05:14 +0000)]
Merge r278 from libarchive.googlecode.com:  Reduce the number of
patterns tested here from 200 to 170, which seems to be the
most that Cygwin can handle.

15 years agoMerge r273 from libarchive.googlecode.com: Use open() correctly.
kientzle [Sun, 8 Mar 2009 05:10:51 +0000 (05:10 +0000)]
Merge r273 from libarchive.googlecode.com:  Use open() correctly.

15 years agoSmall comment nit: "run time" -> "run-time".
sobomax [Sun, 8 Mar 2009 05:01:39 +0000 (05:01 +0000)]
Small comment nit: "run time" -> "run-time".

Submitted by: rwatson

15 years agoSet version to 2.6.901a to indicate this now matches
kientzle [Sun, 8 Mar 2009 04:32:38 +0000 (04:32 +0000)]
Set version to 2.6.901a to indicate this now matches
libarchive.googlecode.com r745.  (Except for the lzma/xz support,
which needs a little more attention before it can be merged.)

15 years agoMerge a bunch of changes through r722 from libarchive.googlecode.com:
kientzle [Sun, 8 Mar 2009 04:20:19 +0000 (04:20 +0000)]
Merge a bunch of changes through r722 from libarchive.googlecode.com:
mtree writer now supports a variety of checksum keys; it also provides
option hooks to set what keys get written.

15 years agoAdd static DTrace probes for MAC Framework access control checks and
rwatson [Sun, 8 Mar 2009 00:50:37 +0000 (00:50 +0000)]
Add static DTrace probes for MAC Framework access control checks and
privilege grants so that dtrace can be more easily used to monitor
the security decisions being generated by the MAC Framework following
policy invocation.

Successful access control checks will be reported by:

  mac_framework:kernel:<entrypoint>:mac_check_ok

Failed access control checks will be reported by:

  mac_framework:kernel:<entrypoint>:mac_check_err

Successful privilege grants will be reported by:

  mac_framework:kernel:priv_grant:mac_grant_ok

Failed privilege grants will be reported by:

  mac_framework:kernel:priv_grant:mac_grant_err

In all cases, the return value (always 0 for _ok, otherwise an errno
for _err) will be reported via arg0 on the probe, and subsequent
arguments will hold entrypoint-specific data, in a style similar to
privilege tracing.

Obtained from: TrustedBSD Project
Sponsored by: Google, Inc.

15 years agoWhen resetting a BPF descriptor, properly check that zero-copy buffers
rwatson [Sat, 7 Mar 2009 22:17:44 +0000 (22:17 +0000)]
When resetting a BPF descriptor, properly check that zero-copy buffers
are not currently owned by userspace before clearing or rotating them.

Otherwise we may not play by the rules of the shared memory protocol,
potentially corrupting packet data or causing userspace applications
that are playing by the rules to spin due to being notified that a
buffer is complete but the shared memory header not reflecting that.

This behavior was seen with pflogd by a number of reporters; note that
this fix is not sufficient to get pflogd properly working with
zero-copy BPF, due to pflogd opening the BPF device before forking,
leading to the shared memory buffer not being propery inherited in the
privilege-separated child.  We're still deciding how to fix that
problem.

This change exposes buffer-model specific strategy information in
reset_d(), which will be fixed at a later date once we've decided how
best to improve the BPF buffer abstraction.

Reviewed by: csjp
Reported by: keramida

15 years agoRevert the part of change 107879 that employs the unused bytes after
marcel [Sat, 7 Mar 2009 22:05:58 +0000 (22:05 +0000)]
Revert the part of change 107879 that employs the unused bytes after
the disklabel in the 2nd sector for boot code. Even with both UFS1
and UFS2 supported, there's enough bytes left that we don't have to
nibble from the disklabel.
Thus, the entire 2nd sector is now reserved for the disklabel, which
makes the bootcode compatible again with disklabels that have more
than 8 partitions -- such as those created and supported by gpart.

i386: 135 bytes available
amd64: 151 bytes available

Ok'd by: jhb

15 years agoImport support for ATI Radeon R600 and R700 series chips.
rnoland [Sat, 7 Mar 2009 21:36:57 +0000 (21:36 +0000)]
Import support for ATI Radeon R600 and R700 series chips.

Tested on an HD3850 (RV670) on loan from Warren Block.

Currently, you need one of the following for this to be useful:

x11-drivers/xf86-video-radeonhd-devel (not tested)
xf86-video-ati from git (EXA works, xv is too fast)
xf86-video-radeonhd from git (EXA works, xv works)

There is no 3d support available from dri just yet.

MFC after: 2 weeks

15 years agoReenable ndis in the LINT build now that it has been updated for USB. Thanks to
thompsa [Sat, 7 Mar 2009 19:54:30 +0000 (19:54 +0000)]
Reenable ndis in the LINT build now that it has been updated for USB. Thanks to
HPS and Weongyo.

15 years ago(re)merge r186415,186416 from the old usb stack;
thompsa [Sat, 7 Mar 2009 19:49:47 +0000 (19:49 +0000)]
(re)merge r186415,186416 from the old usb stack;

o add Transaction Translator support (still missing ISOC xfers)
o add EHCI_SCFLG_BIGEMMIO flag to force big-endian byte-select to be
  set in USBMODE
o split reset work into new public routine ehci_reset so bus shim drivers
  can force big-endian byte-select before ehci_init
o enable TT and big-endian MMIO
o force a reset before ehci_init to get byte-select setup

Also go back to using USB_EHCI_BIG_ENDIAN_DESC at compile time to enable the
byteswapping and reduce diffs to the original commits.

This fixes the new USB stack on the Cambria board.

15 years agoOn architectures with strict alignment requirements compensate
marius [Sat, 7 Mar 2009 19:08:58 +0000 (19:08 +0000)]
On architectures with strict alignment requirements compensate
the misalignment of the IP header that prepending the EtherIP
header might have caused.

PR: 131921
MFC after: 1 week

15 years agoFix some missed htole32 conversions to htoehci32.
thompsa [Sat, 7 Mar 2009 18:08:59 +0000 (18:08 +0000)]
Fix some missed htole32 conversions to htoehci32.

Reviewed by: hps

15 years agoMark the bpf stats sysctl as being mpsafe. We do not require
csjp [Sat, 7 Mar 2009 17:07:29 +0000 (17:07 +0000)]
Mark the bpf stats sysctl as being mpsafe. We do not require
Giant here.

15 years agoClarify some comments, fix some types, and rename ZBUF_FLAG_IMMUTABLE to
rwatson [Sat, 7 Mar 2009 10:21:37 +0000 (10:21 +0000)]
Clarify some comments, fix some types, and rename ZBUF_FLAG_IMMUTABLE to
ZBUF_FLAG_ASSIGNED to make it clear why the buffer can't be written to:
it is assigned to userspace.

15 years agoo port NDIS USB support from USB1 to the new usb(USB2).
weongyo [Sat, 7 Mar 2009 07:26:22 +0000 (07:26 +0000)]
o port NDIS USB support from USB1 to the new usb(USB2).
o implement URB_FUNCTION_ABORT_PIPE handling.
o remove unused code related with canceling the timer list for USB
  drivers.
o whitespace cleanup and style(9)

Obtained from: hps's original patch

15 years agoMerge r718 from libarchive.googlecode.com: Some additional
kientzle [Sat, 7 Mar 2009 07:23:04 +0000 (07:23 +0000)]
Merge r718 from libarchive.googlecode.com:  Some additional
tests of restoring files to disk with unusual characters, specifically
to exercise Windows issues.

15 years agoFix spelling.
kientzle [Sat, 7 Mar 2009 07:19:25 +0000 (07:19 +0000)]
Fix spelling.

15 years agoMerge r348 from libarchive.googlecode.com: Suppress testing invalid
kientzle [Sat, 7 Mar 2009 03:41:29 +0000 (03:41 +0000)]
Merge r348 from libarchive.googlecode.com:  Suppress testing invalid
conversions if there aren't any.  In particular, Cygwin's "C" locale
has no invalid inputs for wctomb().

15 years agoMerge r596,r690 from libarchive.googlecode.com: Minor style and compile
kientzle [Sat, 7 Mar 2009 03:34:34 +0000 (03:34 +0000)]
Merge r596,r690 from libarchive.googlecode.com:  Minor style and compile
warning fixes for test_read_pax_truncated.c.

15 years agoMerge r335,653,676 from libarchive.googlecode.com: Instead of
kientzle [Sat, 7 Mar 2009 03:30:35 +0000 (03:30 +0000)]
Merge r335,653,676 from libarchive.googlecode.com: Instead of
conditioning tests on HAVE_ZLIB, etc, just ask libarchive for the
service and handle the failure coming back from libarchive.  This
gives us better test coverage of common client usage where clients
simply try to use libarchive services and handle the errors coming
back instead of trying to second-guess which libarchive services are
compiled in.

15 years agoMerge r280,281,496,595,675,712 from libarchive.googlecode.com: Various
kientzle [Sat, 7 Mar 2009 03:16:16 +0000 (03:16 +0000)]
Merge r280,281,496,595,675,712 from libarchive.googlecode.com: Various
test improvements, including some work on Windows compatibility and an
extra check to verify that no test leaves open file descriptors
around.

15 years agoMerge r540 from libarchive.googlecode.com: Interix doesn't have inttypes.h
kientzle [Sat, 7 Mar 2009 03:04:06 +0000 (03:04 +0000)]
Merge r540 from libarchive.googlecode.com:  Interix doesn't have inttypes.h
either.  <sigh>

15 years agoMerge r723 from libarchive.googlecode.com: Don't try to restore
kientzle [Sat, 7 Mar 2009 03:00:44 +0000 (03:00 +0000)]
Merge r723 from libarchive.googlecode.com:  Don't try to restore
owner or SUID bits on Windows; just ignore them.

15 years agoMerge r511,r513,r607 from libarchive.googlecode.com: Mtree reader
kientzle [Sat, 7 Mar 2009 02:58:15 +0000 (02:58 +0000)]
Merge r511,r513,r607 from libarchive.googlecode.com:  Mtree reader
tweaks:  Support nanosecond timestamps, handle attributes broken
across multiple lines.

15 years agoMerge r585,r669 from libarchive.googlecode.com: If zlib is unavailable,
kientzle [Sat, 7 Mar 2009 02:51:18 +0000 (02:51 +0000)]
Merge r585,r669 from libarchive.googlecode.com:  If zlib is unavailable,
use external "gunzip" instead.  With this in place, we can unconditionally
enable gzip read support.

15 years agoMerge r550,584,587,609,647,674 from libarchive.googlecode.com:
kientzle [Sat, 7 Mar 2009 02:47:04 +0000 (02:47 +0000)]
Merge r550,584,587,609,647,674 from libarchive.googlecode.com:
Refactor the read_compression_program to add two new abilities:
 * Public API:  You can now include a signature string when you
   register a program; the program will run only on input that
   matches the signature string.
 * Internal API: You can use the init() function to instantiate
   an external program as part of a filter pipeline.  This
   can be used for graceful fallback (if zlib is unavailable, use
   external gzip instead) and to use external programs with
   bidders that are more sophisticated than a static signature check.

15 years agoMerge r591 from libarchive.googlecode.com: signed/unsigned fixes.
kientzle [Sat, 7 Mar 2009 02:29:43 +0000 (02:29 +0000)]
Merge r591 from libarchive.googlecode.com: signed/unsigned fixes.

15 years agoMerge r558,567,569,571,581,582,583,598 from libarchive.googlecode.com:
kientzle [Sat, 7 Mar 2009 02:24:32 +0000 (02:24 +0000)]
Merge r558,567,569,571,581,582,583,598 from libarchive.googlecode.com:
Support Joliet extensions.  This currently ignores Rockridge extensions
if both exist on the same disk unless the '!joliet' option is provided.
e.g.: tar -xvf example.iso --options '!joliet'
Thanks to: Andreas Henriksson

15 years agoMerge r658 from libarchive.googlecode.com: Only flush and close the
kientzle [Sat, 7 Mar 2009 02:09:21 +0000 (02:09 +0000)]
Merge r658 from libarchive.googlecode.com: Only flush and close the
file if it was actually opened.  Test for this case.

15 years agoMerge r714,r715 from libarchive.googlecode.com: Fix Debian bug #516577.
kientzle [Sat, 7 Mar 2009 01:21:46 +0000 (01:21 +0000)]
Merge r714,r715 from libarchive.googlecode.com: Fix Debian bug #516577.
Don't crash if client does not provide a skip function.  Extend one
of the test cases to use archive_read_open2() with only a read callback.

15 years agoMerge r608 from libarchive.googlecode.com: Clear a newly-allocated
kientzle [Sat, 7 Mar 2009 01:18:30 +0000 (01:18 +0000)]
Merge r608 from libarchive.googlecode.com: Clear a newly-allocated
bidder object.

15 years agoMerge r564,r566 from libarchive.googlecode.com: Fix segfault when
kientzle [Sat, 7 Mar 2009 01:17:13 +0000 (01:17 +0000)]
Merge r564,r566 from libarchive.googlecode.com:  Fix segfault when
specifying an option and the current format doesn't have an
options handler.