Commit Graph

239224 Commits

Author SHA1 Message Date
christos
7ddef8633d PR/50092: Fix memory leak. 2015-11-25 18:38:21 +00:00
macallan
ec89d49df5 build EXA support 2015-11-25 18:02:08 +00:00
wiz
516ffc06d2 Sort options in usage to match man page order. 2015-11-25 16:32:20 +00:00
wiz
9c188db61b "file system" as two words. 2015-11-25 16:32:00 +00:00
maxv
386a6446d1 Cosmetic changes. 2015-11-25 16:00:09 +00:00
skrll
24c4f56c61 G/C TEGRAK1_PMAP_WORKAROUND.
Using XN (eXecute Never) properly means speculative reads from devices
aren't done.  Pretty sure this was the cause of the wedges.
2015-11-25 08:39:45 +00:00
skrll
58ba3c2d62 In the ARM_MMU_EXTENDED case make sure the kernel mappings are marked with
XN (eXecute Never) appropriately.

The XN logic is inconsistent and could do with changing to XN always set
and cleared for VM_PROT_EXECUTE (or the inverse) everywhere.
2015-11-25 08:36:50 +00:00
skrll
ebd4a8ed79 Trailing whitespace. 2015-11-25 08:32:33 +00:00
pgoyette
dd025ffd3b Be a bit more paranoid about hijacking (and restoring) syscall function
pointers.  Ensure that we have the correct "old" values before setting
new values, for both "intall" and "deinstall".

XXX This is NOT intended to encourage additional cases of hijacking!  If
XXX some other hijack feature ever gets committed, this code should be
XXX moved to (most likely) kern/kern_syscall.c.
2015-11-25 07:34:49 +00:00
ozaki-r
ff97010dea Declare __debugused for no DIAGNOSTIC kernels
This unbreaks hpcsh GENERIC kernel build.
2015-11-25 07:06:19 +00:00
ozaki-r
ecd5b23eef Use lltable/llentry for NDP
lltable and llentry were introduced to replace ARP cache data structure
for further restructuring of the routing table: L2 nexthop cache
separation. This change replaces the NDP cache data structure
(llinfo_nd6) with them as well as ARP.

One noticeable change is for neighbor cache GC mechanism that was
introduced to prevent IPv6 DoS attacks. net.inet6.ip6.neighborgcthresh
was the max number of caches that we store in the system. After
introducing lltable/llentry, the value is changed to be per-interface
basis because lltable/llentry stores neighbor caches in each interface
separately. And the change brings one degradation; the old GC mechanism
dropped exceeded packets based on LRU while the new implementation drops
packets in order from the beginning of lltable (a hash table + linked
lists). It would be improved in the future.

Added functions in in6.c come from FreeBSD (as of r286629) and are
tweaked for NetBSD.

Proposed on tech-kern and tech-net.
2015-11-25 06:21:26 +00:00
marty
cfcf2b60eb snapshot: Does NOT boot 2015-11-25 04:04:13 +00:00
marty
aed5bf48c5 something temporary that will go away once odroid xu4 works 2015-11-25 04:03:34 +00:00
christos
27a26957d4 PR/50360: Thomas Klausner: Fix MKREPRO builds 2015-11-25 01:20:11 +00:00
christos
1ef9a127cf PR/50360: Thomas Klausner: Fix MKREPRO issue 2015-11-25 01:12:03 +00:00
christos
ec8137f3d4 PR/50360: Thomas Klausner: MKREPRO fix 2015-11-25 01:08:34 +00:00
christos
f7d3cc6004 PR/50360: Thomas Klausner: if MKREPRO is set, provide a consistent timestamp
for the files in the cdroms to be built. For now we copy the timestamp of
<sys/param.h>. We could set an absolute timestamp too like -T 0 for the epoch.
2015-11-25 00:50:57 +00:00
christos
799916c021 Provide a -T option to set timestamps to a consistent value for MKREPRO 2015-11-25 00:48:49 +00:00
christos
62320ab8fc fix sets 2015-11-24 23:33:46 +00:00
leot
da9851d4a9 Add NetBSD RCS Id. 2015-11-24 23:30:04 +00:00
plunky
6741d295e4 newer versions of the Bluetooth Core specification state that
service record number values of 0x00000001->0x0000FFFF are
reserved, so comply with that here.
2015-11-24 21:11:39 +00:00
christos
f184794dc1 kern/50456: Freddy DISSAUX: Fix packets lost with tcpdump. 2015-11-24 20:13:12 +00:00
jakllsch
aabeaec83d Revert previous. At least AR9280 and AR9285 apparently do not have
working-by-default MSI functionality, despite advertising such.

Fixes PR kern/50465.
2015-11-24 18:17:37 +00:00
christos
2e0dfabb5f fix crash(8) printing of callouts. 2015-11-24 15:48:23 +00:00
christos
35da36c439 CID 1340063: fix TOCTOU 2015-11-24 14:07:18 +00:00
jklos
2f385a84d2 One too many parenthesis removed. 2015-11-24 08:48:25 +00:00
ozaki-r
bb7b9eed2e Add fastforward6 test 2015-11-24 02:37:33 +00:00
christos
7099a15c75 PR/50092: don't leak screen on multiple setterms. 2015-11-24 01:59:32 +00:00
pgoyette
5a91b3ef3b Add missing /* $NetBSD$ */ keyword 2015-11-24 01:05:50 +00:00
pgoyette
d511d03d04 finish previous - remove no-longer-used variables 2015-11-24 01:01:42 +00:00
joerg
6d8db05630 Replace left shifts of negative values with appropiate unsigned values. 2015-11-23 23:46:33 +00:00
joerg
b735893a87 Cast argument to uint64_t first before shifting to avoid UB for
left-shifting negative values.
2015-11-23 23:45:44 +00:00
pgoyette
94e1cb8831 It is no longer required that the target process be a descendant of the
tracking process.
2015-11-23 23:28:33 +00:00
pgoyette
8ed3d37d0b Remove the requirement that the target (tracked) process be a descendant
of the tracking process.  The call to kauth() should be sufficient to
address any security concerns.
2015-11-23 23:27:38 +00:00
pgoyette
f4bbc3f78c Minor rephrasing for English grammar police. 2015-11-23 23:23:25 +00:00
pgoyette
52b76a516b Include additional info, including potential security consideration. 2015-11-23 23:00:29 +00:00
christos
e804370940 fix ti_puts prototype 2015-11-23 22:35:28 +00:00
christos
62025e09ce PR/50344: Stephen Fisher: apropos shows formatting on console with vt100 term
type. Can't print terminfo sequences directly; need to process them with
ti_puts() to handle padding. This removes the padding delays, and stricly
could break on slow terminal hardware, but they way the code is structured
makes it impossible to fix properly (since the formatting strings are
passed in the query).
XXX: pullup-7
2015-11-23 22:34:00 +00:00
pgoyette
6cf6af127d Clean up the error paths in filemon_ioctl(), making sure to release the
rw_lock before returning.  Avoids a "locking against myself" error
reported by Brad Harder.
2015-11-23 22:20:57 +00:00
jdc
19c1caef81 Set the target JPID for all interrupts on Tomatillo.
If the "ino-bitmap" property is available, use it to route error interrupts.
Minor cosmetic changes.
Add register printing when DEBUG is defined.
2015-11-23 21:40:14 +00:00
christos
0e5ab369bd PR/49380: KAMADA Ken'ichi: ntpd_chrootdir does not work on NetBSD 7.0_BETA
Provide /etc/resolv.conf so that it can resolve names. This is needed because
of deferred name resolution.
XXX: pullup -7
2015-11-23 19:56:47 +00:00
mlelstv
20725a9902 fix assertion checking that bufrd function is used only for large symlinks
that aren't embedded in the inode.
2015-11-23 08:00:45 +00:00
pgoyette
76f6833566 Retrieve the pathname of the exec'd file before we call sys_execve().
We cannot rely on using copyinstr() to retrieve the pathname from
user mode after a successful exec, since the user mode address space
is no longer valid (and may not even be accessible).  This worked in
earlier code but was broken by rev 1.7.
2015-11-23 00:47:43 +00:00
christos
e2f72a0028 Fix logic bug where __cpuid gets called when __get_cpuid_max() returns 0.
This happens when __level == 0, from libgcc/config/i386/cpuinfo.c#285.
This breaks early i486 CPUs which don't have cpuid
2015-11-22 20:47:42 +00:00
christos
4fe0054f39 Fix logic bug where __cpuid gets called when __get_cpuid_max() returns 0.
This happens when __level == 0, from libgcc/config/i386/cpuinfo.c#285.
This breaks early i486 CPUs which don't have cpuid
XXX: pullup-7
2015-11-22 20:47:05 +00:00
christos
fc8a4870ed Don't chdir to the config directory; just form the parameters file with a
path if needed.
2015-11-22 20:24:19 +00:00
tsutsui
2af5fde181 Remove \n from set_cpumodel(), and explicitly print \n during boot instead.
Fixes dmesg on NetBSD/dreamcast 7.0 (and probably NetBSD/hpcsh 7.0):
---
NetBSD 7.0 (GENERIC.201509250726Z)
SEGA Dreamcasttotal memory = 16384 KB
avail memory = 13668 KB
---
which was mangled when cpu_getmode() and cpu_setmodel() were introduced:
 http://mail-index.netbsd.org/source-changes/2014/03/24/msg053273.html

Should be pulled up to netbsd-7 and netbsd-7-0.
2015-11-22 18:44:25 +00:00
aymeric
c480fc766d do not fail if no awintcon is present so that ALLWINNER_A80 compiles again 2015-11-22 17:50:48 +00:00
christos
cd40e75014 explain how to clear an entry (without reading the source) 2015-11-22 15:53:10 +00:00
maxv
165df8bad6 Remove cpu_vendorname (unused). It is retrieved later in identcpu.c. 2015-11-22 14:06:08 +00:00