Commit Graph

232229 Commits

Author SHA1 Message Date
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
chs
6d40f9ff57 add a new "fo_mmap" fileops method to allow use of arbitrary uvm_objects for
mappings of file objects.  move vnode-specific details of mmap()ing a vnode
from uvm_mmap() to the new vnode-specific vn_mmap().  add new uvm_mmap_dev()
and uvm_mmap_anon() convenience functions for mapping character devices
and anonymous memory, and replace all other calls to uvm_mmap() with those.
use the new fileop in drm2 so that libdrm can use mmap() to map things
like on other platforms (instead of the ioctl that we have used so far).
2014-12-14 23:48:58 +00:00
christos
d980f336d5 fix possibly uninitialized variable. 2014-12-14 23:27:14 +00:00
christos
d4b702a5f2 avoid local variable shadowing devname. 2014-12-14 23:25:07 +00:00
christos
3c4b22dc90 add the two new compat files. 2014-12-14 22:32:46 +00:00
christos
a24ecb0e5b PR/49287: Masao Uebayashi: Handle exec_script argument vector from the 32 ->
64 bit case. When execing a 64 bit shell from a 32 bit binary the argument
vector was still incorrect.

XXX: Pullup 7
2014-12-14 21:35:24 +00:00
christos
ed2723be38 Move the empty sigreturn functions to their own files to allow the compat
module to load by itself.
2014-12-14 21:27:49 +00:00
christos
cc8dba5ad2 Don't exclude amd64 from COMPAT < 15. We need it for COMPAT_NETBSD32 a.out 2014-12-14 21:14:06 +00:00
christos
0c6a515324 Allow i386 binary debugging on amd64 hosts.
XXX: This should be done in mknative but how? Matt?
2014-12-14 19:59:52 +00:00
christos
977e434ff6 When debugging 32 bit binaries on a 64 bit arch in NetBSD the dynamic
linker magically converts the dynamic linker name to ld.elf_so-<32bitarch>
like ld.elf_so-i386. We do the same magic here.
2014-12-14 19:58:06 +00:00
christos
17e441234f Leave section 0 empty. Now gdb should recognize our dumped ksyms files. 2014-12-14 18:14:15 +00:00
jmcneill
b5a75d40b2 build ALLWINNER_A80 kernel 2014-12-14 18:12:55 +00:00
jmcneill
971763960c add INSTALL kernel for Allwinner A80 2014-12-14 18:12:38 +00:00