Commit Graph

232191 Commits

Author SHA1 Message Date
roy 3745a3382d Note import of dhcpcd-6.6.6 2014-12-17 20:53:08 +00:00
roy a850849c48 Sync 2014-12-17 20:50:08 +00:00
macallan 5e16b37e90 add pm2fb 2014-12-17 16:53:43 +00:00
agc 0d2bebdbf2 Fix bug report from Jared - actually print the key when exporting 2014-12-17 16:50:52 +00:00
macallan 082427dbb4 - add support for Permedia 2
- make this work on alpha
from Naruaki Etomi
2014-12-17 16:50:08 +00:00
hikaru 34a620a0e0 Regen. 2014-12-17 13:23:59 +00:00
hikaru 6354b4b837 Add QuickAssist Virtual Function Device IDs 2014-12-17 13:21:21 +00:00
roy 62cbe5902e Note that RTM_CHANGE can also change the gateway 2014-12-17 10:56:09 +00:00
jnemeth 51bdb4782e regen 2014-12-17 10:02:46 +00:00
jnemeth 5073c90a41 PR/49484 - Sprow -- some additional SMSC devices 2014-12-17 10:02:01 +00:00
ozaki-r ae4ecace09 Replace if_attach of if_tap with if_initialize and if_register 2014-12-17 09:41:30 +00:00
skrll a431b2e388 Wrap a long line. 2014-12-17 06:54:48 +00:00
msaitoh 95c5c3200c - Round off some bus clock values.
- Add 333.33MHz for Pentium 4.
2014-12-17 03:39:02 +00:00
pooka aa91aeb3c8 include correct header for "last minute just-in-case defensive addition
that's too trivial to check"
2014-12-17 01:49:08 +00:00
macallan c6ec2ef82b first draft of a driver for SMSI,mgx
More or less an Alliance Semiconductors ProMotion AT24 with some PCI-SBus
glue and 4MB framebuffer. No acceleration yet, just enough wsdisplay/vcons
setup and DAC programming to be functional.
2014-12-16 21:01:34 +00:00
pooka 082d249a16 Allow for arbitrary MI scheduler implementations.
A concrete result is enabling unpatched libpthread to run on the
rumprun stacks (e.g. Xen and bare metal) with a non-NetBSD scheduler.
Those schedulers hook into the existing _lwp_frobnitz() NetBSD syscall
interfaces (well, "syscall" interfaces in that scenario ;)

More specifically about the change itself:

1) instead of calling _lwp_makecontext() followed by _lwp_create()
   and passing the entry point in ucontext_t (MD) through the calls, roll
   the calls into pthread__makelwp() and allow alternate implementations
   for that MI interface.

2) allow compile-time overriding of __lwp_gettcb_fast() or
   __lwp_getprivate_fast, which are inline and leak MD scheduler/thread
   details into libpthread


Additionally, two small nits:

I)  define LIB=pthread before including mk.conf so that it's possible
    to test for LIB==pthread in mk.conf

II) make it possible to leave out pthread_cancelstub.c.  This is required
    by the current implementation of rumprun-posix (i.e. rumprun on
    POSIX hosts) due to symbol collisions.  It needs to be fixed properly
    some day, but for now allows an almost-correct libpthread to run.
    I am sure @justin will be happy to explain the details ;)


no change to NetBSD
tested: anita+atf
2014-12-16 20:05:54 +00:00
christos 2a8765d5a2 Fix various security related issues:
0001. Do not recognize paths, mail folders, and pipes in mail addresses
    by default.  That avoids a direct command injection with syntactically
    valid email addresses starting with |.

    Such addresses can be specified both on the command line, the mail
    headers (with -t) or in address lines copied over from previous
    while replying.

    This was assigned CVE-2014-7844 for some versions of BSD mailx.  It is
    documented behavior for Heirloom mailx, and was mentioned in an old
    technical report about BSD mailx (which does not usually make its way
    into operating system installations).  The patch switches off this
    processing and updates the documentation.

Added expandaddr option to explicitly enable this behavior.

    0002. When invoking sendmail, prevent option processing for email
    address arguments.  This prevents changing e.g. the Postfix
    configuration file in unexpected ways.  This behavior was documented for
    BSD mailx (sort of), but not for Heirloom mailx.  We did not assign a
    CVE to this because it is more of a missing feature, and code invoking
    mailx needs adjustment in the caller as well.

Fixed.

    0003. Make wordexp support mandatory.  (No functional change.)

Fixed (replaced explicit shell pipe implementation).

    0004. Prevent command execution in the expand function, which is IMHO
    unexpected.  (Not really required with patch 1, and there is still
    information disclosure/DoS potential if this expansion occurs.)  This is
    a historic vulnerability already fixed in the Debian package,
    retroactively assigned CVE-2004-2771:

Fixed (as part of the pipe replacement with wordexp).
2014-12-16 19:30:24 +00:00
pooka 68efe5aa2a With glibc on ARM kthread_exit() aborts because pthread_exit() fails
to unwind the stack.  Add a temporary workaround where we simply don't
allow the thread to exit (a kernel thread exit is a relatively uncommon
event in a rump kernel anyway).
2014-12-16 17:00:17 +00:00
pooka 401c4cd769 workaround bin/49481 2014-12-16 15:33:22 +00:00
msaitoh 5a1f437d33 Add "int showclass" argument to pci_devinfo(). The API was changed 10 years
ago.
2014-12-16 13:38:36 +00:00
nat a662d660ff Clear status of BCM2835_STIMER_M3 only as timer comparison reg 0 and 2
are used by the VideoCore on Raspberry Pi.  This fixes audio playback.

Addresses PR 48805.

This commit was approved by skrll@
2014-12-16 13:09:33 +00:00
roy 24c1397228 Report route additions/changes/deletions for cached neighbours to userland. 2014-12-16 11:42:27 +00:00
jklos 7e580c6e29 Adds VAXstation VLC and 4000/60 framebuffer support. From Blaz Antonic
and updated by BjörnJohannesson.
2014-12-16 11:34:17 +00:00
jklos 6c82a2cbc1 Fix leds.h include. 2014-12-16 11:23:11 +00:00
mrg 5b7bfa533c switch over to the separate glu sources. 2014-12-16 06:10:12 +00:00
mrg e72a1182e8 add X11SRCDIR entries for the new separated mesa components. 2014-12-16 06:04:10 +00:00
jnemeth a0380aebe4 add powerpc variants to the list of potentially obsolete modules to check 2014-12-16 05:30:40 +00:00
msaitoh d23838029a Fix a bug that an unknown command is printed as "(null)".
Reported by Fredrik Pettai.
2014-12-16 04:07:40 +00:00
christos 2ef06139f8 - Don't allow bypassing file size limits with crontabs from stdin.
- Allow signals while reading the user crontab file; doing "crontab -"
  does not let you abort otherwise, and doing ^Z, kill %1 leaves turds
  in /var/cron/tabs
2014-12-15 16:45:26 +00:00
uebayasi d8aa702d35 Revert debug code. Simplify. 2014-12-15 15:49:25 +00:00
uebayasi fc1f7728b8 config(1): Fix build of old trees (bin/49389) (take 2)
Look into sys/conf/Makefile.kern.inc to check if "build_kernel" .USE target
is defined.  If not (== old source trees), generate one on the fly.
2014-12-15 15:41:18 +00:00
christos f95c68cfed Don't hard code crap we have perfectly good constants for. 2014-12-15 13:50:10 +00:00
christos 03a0e9092a there is no ibcs2 in amd64 [yet?] 2014-12-15 13:48:51 +00:00
skrll 6948cee7e0 Allow i386 binary debugging on amd64 hosts. 2014-12-15 13:43:24 +00:00
msaitoh 1f3e38b73f Add DH89xxC[CL] LPC devices. 2014-12-15 13:29:42 +00:00
msaitoh 0d062375a8 - Rename PCI_PRODUCT_INTEL_DH89XX_SMB to PCI_PRODUCT_INTEL_DH89XXCC_SMB
- Add PCI_PRODUCT_INTEL_DH89XXCL_SMB
2014-12-15 13:16:42 +00:00
msaitoh ad977055d2 Regen. 2014-12-15 13:13:36 +00:00
msaitoh c5194f93d0 - Rename DH89xxCC's names from DH89XX_ to DH89XXCC_.
- Add some DH89xxCC's devices.
- Add DH89XXCL's devices.
2014-12-15 13:13:17 +00:00
msaitoh fd4b25d637 regen. 2014-12-15 12:51:06 +00:00
msaitoh 70ef9aa83d Change Intel 0x0434 entry:
- Rename DH89XX_QA to DH89XXCC_IQIA
- Modify the description to DH89xxCC PCIe Endpoint and QuickAssist
  (include typo fix)
2014-12-15 12:48:42 +00:00
skrll 0d925f9759 Load the right xfer address into cb[i].xferdma. Fixes disk detection on
my hp715/50.

Hi Taylor.
2014-12-15 11:02:33 +00:00
uebayasi 10b064f35c config(1): Fix build of old tree (bin/49389)
Define the default, empty "build_kernel" target, so that old source trees,
whose sys/conf/Makefile.kern.inc don't have "build_kernel" .USE target, can
be built.

(When "build_kernel" is defined, the target is overriden, as far as
sys/conf/Makefile.kern.inc is included later than the "netbsd: ..." definition
in sys/arch/*/conf/Makefile.*.)

This should address PR bin/49389.
2014-12-15 10:10:24 +00:00
mlelstv e415342202 Don't pipeline any DMA writes to eMMC.
Fixes PR/49463.
2014-12-15 08:17:15 +00:00
ozaki-r a83e862961 Add two new compat files for Xen on amd64 2014-12-15 07:35:09 +00:00
ozaki-r 1db1d86128 Introduce if_initialize and if_register as an alternative to if_attach
if_attach initializes an ifnet object and registers it to the system
(e.g., ifnet_list), however, if_attach doesn't complete the
initialization and the rest of it will be done by if_alloc_sadl
that is normally directly called by device drivers or called via
functions like ether_ifattach. So there is a race between
if_attach and if_alloc_sadl (A half-baked ifnet object may be
accessed, for example, via ioctl between them).

The aim of this fix is to register an initializing ifnet object
after completing its initializations. To this end, this fix
separates if_attach into an initialization part (if_initialize)
and a registration part (if_register) and call the latter after
if_alloc_sadl (ether_ifattach). So a typical usage of the two
new APIs is like this:

  if_initialize(ifp);  // was if_attach
  ether_ifattach(ifp, enaddr);
  if_register(ifp);

Nonetheless, changing every drivers to do so at once isn't
feasible. So we keep if_attach working as it used to be and
will change only some drivers that we need at this point.
Once we know the fix really works well, we'll change all
the others.

Some more information of the fix can be found here:
http://mail-index.netbsd.org/tech-kern/2014/12/10/msg018242.html

No objection on tech-kern and tech-net.
2014-12-15 06:52:25 +00:00
christos 647dbd6f6c fix compat paths. 2014-12-15 02:01:41 +00:00
mrg c85d70d977 delete tools/glsl, is hasn't been used for a while.
move Makefile.glsl into libGL.
2014-12-15 00:20:29 +00:00
chs aa98ccaf25 welcome to 7.99.3. 2014-12-14 23:49:45 +00:00
chs 669ef94683 remove ep_name, change the last reference to use ep_kname instead. 2014-12-14 23:49:28 +00:00
chs a60c43758e fix powerpc TLS problems by removing the hacks for PPC EABI.
the kernel no longer treats R2 specially and its use as
the TLS register is now handled entirely in userland.
2014-12-14 23:49:17 +00:00