Commit Graph

232221 Commits

Author SHA1 Message Date
christos
ccbc10b41f I will let others decide if we should grow this wart... 2014-12-19 20:48:55 +00:00
christos
79fa4578d4 No, bash is not the posix shell. Why do you need the shell anyway? 2014-12-19 20:46:47 +00:00
christos
ea66d79595 Merge conflicts 2014-12-19 20:43:14 +00:00
christos
b8ecfcfef0 Import ntp 4.2.8 2014-12-19 20:37:31 +00:00
msaitoh
99f66b5ee8 Sync gpio related lines with i386/conf/GENERIC. 2014-12-19 17:06:31 +00:00
wiz
ed97ce18aa gcc-4.8.4/4.9.2 out. 2014-12-19 15:33:11 +00:00
bouyer
241e985e54 Consistently take the interface down when the radio swicth is off. 2014-12-19 11:54:02 +00:00
manu
287664b5c4 Bump UFS1 extended attribute max name length to 256
For extended attribute name max length, kernel filesystem-independant
code use either EXTATTR_MAXNAMELEN (BSD API) or XATTR_NAME_MAX (Linux API),
which are both defined as KERNEL_NAME_MAX and fits Linux limit of 255
without training \0.

UFS1 code had a lower limit that broke Linux compatibility. We can bump
the limit without sacrifying backward compatibility, because:

1) There is no API exposing this limit outside the kernel. Upper kernel
layers have a larger limit handle the increase without a hitch

2) Each attribute has its own backing store in the fileystem, the name
of the backing store matching the attribute name. A newer kernel can
create/read/write backing store for longer attribute names and will
have no problem with existing shorter names.
2014-12-19 10:59:21 +00:00
roy
a5de07ee00 Make the building of INET optional.
As both INET and INET6 are now options, it's possible to build dhcpcd
without both. When built this way it will just report carrier events.
2014-12-19 10:59:06 +00:00
roy
5f49be2ef2 Note import of dhcpcd-6.6.7 2014-12-19 10:55:13 +00:00
roy
5de3a50c7e Sync 2014-12-19 10:54:08 +00:00
ozaki-r
80021d6d00 Add SOFTINT_INTR to ALL 2014-12-19 07:04:52 +00:00
ozaki-r
2c16e13ff3 Implement softint-based interrupt handling in if_vioif
Softint-based interrupt handling is considered as a future direction
of the (network) device driver architecture in NetBSD. pq3etsec of
ppc is already implemented based on the architecture (unlike pq3etsec,
this change doesn't include softint-based if_start). In this
architecture, a hardware interrupt handler just schedules a softint
and the softint performs actual interrupt processing. It reduces
processing in hardware interrupt context and allows Layer 2 network
stack (e.g., bridge, vlan and even bpf) run in softint context,
which makes it easy to implement fine-grain locking in the layer.

This is an experimental implementation of the architecture in if_viof.

virtio introduces a new flag VIRTIO_F_PCI_INTR_SOFTINT. If a driver
of virtio sets it to sc_flags of virtio_softc, virtio calls
softint_schedule in virtio_intr instead of directly calling the
interrupt handler of the driver.

When VIOIF_SOFTINT_INTR is on, vioif doesn't use the existing softint
(vioif_rx_softint) that is called from vioif_rx_vq_done. Because
vioif_rx_softint already runs in softint context and another softint
isn't needed. This change actually improves performance in some cases.

The feature is disabled by default and enabled when SOFTINT_INTR is
set somewhere (normally in a kernel configuration).
2014-12-19 06:54:40 +00:00
christos
2024ec5d62 we need to handle make includes 2014-12-19 05:21:51 +00:00
christos
f0977af9cd fix sets. 2014-12-19 05:06:41 +00:00
christos
9a6d622ac9 - Explain what's going on a bit better
- Fix a conditional
- Don't include bsd.lib.mk if we are not building libraries
  (otherwise we end up with an empty library name that installed
   bogus library files lib.a etc.)
2014-12-19 05:03:30 +00:00
jklos
0a59efa4ee Add audio support for VAXstation VLC, 60 and 90 machines. Originally rom
Blaz Antonic and ported from OpenBSD by Björn Johannesso. Tested on VLC
and 4000/60.
2014-12-19 04:44:13 +00:00
nonaka
729215c5f9 do page recolor. 2014-12-19 04:31:41 +00:00
nonaka
1a8ba8658c Initialize pmap->pm_active and pmap->pm_onproc.
Avoid "panic: kernel diagnostic assertion "!pmap_tlb_intersecting_onproc_p(pm, ti)" failed: file "/usr/src/sys/uvm/pmap/pmap_tlb.c", line 762".
2014-12-19 04:25:52 +00:00
nonaka
3866eeec05 Do probe cpu cache on !cpu0.
Avoid "panic: kernel diagnostic assertion "line_size > 0" failed: file "/usr/src/sys/arch/powerpc/booke/booke_cache.c", line 90".
2014-12-19 04:15:36 +00:00
nonaka
90d29f4594 Increase timeout for the hatching to complete.
> cpu1: hatch successful (24321 spins, timebase adjusted by -940718014)
2014-12-19 04:07:13 +00:00
nonaka
e1001c1600 Pass ci->ci_cpuid as irq of IST_IPI.
Avoid "panic: e500_intr_cpu_hatch: failed to establish ipi interrupt!" on cpu1.
2014-12-19 04:00:35 +00:00
nonaka
d88bc795d4 Added missing mutex_exit() at error path. 2014-12-19 03:51:38 +00:00
nonaka
5e72dd2c82 Set correct stack pointer.
Please handle %r0 with care.
2014-12-19 03:46:23 +00:00
jklos
5ebf3ef3c3 Add small fix from Björn Johannessonwhich makes framebuffer woth with X11. 2014-12-18 22:46:53 +00:00
roy
cd51d52b6d Remove redundant configuration snippet for dhclient and rtsol as dhcpcd will happily supply both needs. 2014-12-18 17:10:42 +00:00
mrg
5de6651586 fix build problem with radeon_*.c files. 2014-12-18 10:08:52 +00:00
martin
a205742e34 kms_swrast is a symlink to the gallium.so now and doesn't get a debug file
installed - maybe that is a bug in the gallium reach over makefile, but
for now remove it from sets, so the build can work.
2014-12-18 10:02:17 +00:00
mrg
9dbcad6d0b update sets and reachover makefiles for mesa 10.3.5. 2014-12-18 06:24:27 +00:00
mrg
c0fe630cea switch PPC to GCC 4.8. 2014-12-18 02:28:34 +00:00
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