Commit Graph

209307 Commits

Author SHA1 Message Date
matt
e541fdb425 Add compat_60 2012-02-19 17:00:57 +00:00
christos
139782ccab Use the release date as suggested.
XXX: I bet this is going to be broken in the next import because nobody
will remember to fix it.
2012-02-19 16:45:03 +00:00
mbalmer
913986cb11 Add support for the QUAN DM9601.
From Loganaden Velvindron <loganaden@wolfman.devio.us>.
2012-02-19 14:56:16 +00:00
mbalmer
f5229b05a4 Re-gen for QUAN DM9601. 2012-02-19 14:55:41 +00:00
mbalmer
032f9cbe78 Add new vendor QUAN and it's DM9601 USB ethernet product.
From Loganaden Velvindron <loganaden@wolfman.devio.us>.
2012-02-19 14:54:25 +00:00
tsutsui
2cbdf3ece2 Fix boot failure on OF 2.0 machines.
Discussed with phx@ on port-macppc@:
http://mail-index.NetBSD.org/port-macppc/2012/02/18/msg001556.html

Should be pulled up to netbsd-6.
2012-02-19 12:02:55 +00:00
cherry
272762fd10 Removing remaining references to the alternate PTE space. Modify documentation appropriately 2012-02-19 10:39:06 +00:00
martin
a94c36f0b3 Adapt to constification in sys/uvm/uvm_export.h 2012-02-19 09:19:41 +00:00
he
7944412034 Expose the contents also for _KMEMUSER, fixes build of usr.sbin/crash. 2012-02-19 07:51:52 +00:00
christos
5fd581afdb Fix for MKREPRO = yes
XXX: pullup to 6
2012-02-19 05:07:10 +00:00
christos
5c46bfcb22 Fix MKREPRO = yes
XXX: pullup to 6
2012-02-19 05:06:41 +00:00
rmind
9c3c596716 G/C VM_MAP_INTRSAFE flag 2012-02-19 02:47:53 +00:00
rmind
917749f218 Replace simple_lock(9). 2012-02-19 00:42:02 +00:00
rmind
a4c86c1b45 Remove VM_MAP_INTRSAFE and related code. Not used since the "kmem changes". 2012-02-19 00:05:55 +00:00
rmind
8e6e1de99b Replace few simple_lock(9) cases. 2012-02-18 23:51:27 +00:00
rmind
91c530f0ed rt_setkey: remove invalid assert, sockaddr_dup() may fail if no memory. 2012-02-18 23:47:48 +00:00
christos
698a2b6926 moved to external/bsd 2012-02-18 19:20:43 +00:00
christos
3ac0dffdc2 fix prototypes 2012-02-18 19:17:54 +00:00
christos
d89c1403e3 m68k does not have or need db_machdep.c 2012-02-18 17:56:49 +00:00
njoly
584981b8a8 Adjust libyywrap.c location. 2012-02-18 17:51:21 +00:00
njoly
91f381dd41 Use msg for indentation. 2012-02-18 17:49:28 +00:00
christos
caff4f5723 expose more for kmemuser/fix include protection 2012-02-18 16:29:36 +00:00
christos
8fd6aec74a expose more for kmemuser; fix header protection. 2012-02-18 16:25:25 +00:00
christos
21afea55c1 expose more for kmemuser 2012-02-18 16:23:13 +00:00
christos
f25b5b6cd8 this has not been used for ages. 2012-02-18 16:05:21 +00:00
christos
0dbbdb2346 revert sparc64 hack 2012-02-18 15:57:06 +00:00
christos
2adc5739a1 Move the ddb registers and empty command table into a separate file, like
other archs do for the benefit of crash.
2012-02-18 15:56:30 +00:00
njoly
e46cff4057 Tweak MAKEDEVSPEC target to properly report MAKEDEV failures:
- No need to ignore `rm -f' failures which should not happen.
- Do not pipe MAKEDEV output, but use a temp file.
2012-02-18 14:26:27 +00:00
wiz
de33c51b97 Bump date for previous. 2012-02-18 13:51:29 +00:00
drochner
c7a7a8471f add "Location" tags which tell where the source lives in the NetBSD
tree, and fix some paths in "Notes" sections
2012-02-18 13:48:11 +00:00
drochner
f84da4194a remove stale entries: libcdk was removed 5 years ago, termcap.src between
netbsd-5 and netbsd-6
2012-02-18 13:44:46 +00:00
drochner
544002eb2d mention esp-udp 2012-02-18 13:42:45 +00:00
drochner
b8a8326811 split device_t/softc 2012-02-18 13:38:35 +00:00
matt
29f82ac3aa Fix conflicting variable definitions 2012-02-18 06:57:23 +00:00
mrg
d9a1d7a11e add an XXX comment i meant to include with the original change. 2012-02-18 06:29:10 +00:00
mrg
97a48de011 avoid bfd.info rebuilds and r/o source lossage. 2012-02-18 06:17:39 +00:00
matt
2d7141bca8 Eliminate a common in a header file (add a missing extern) and
declare it in the approriate C file.
2012-02-18 06:13:23 +00:00
matt
a621c8945e Don't export sysmon_envsys_list as a common. 2012-02-18 01:08:00 +00:00
matt
7ad9552514 Remove uneeded and unused structure. 2012-02-18 00:36:57 +00:00
christos
be2404a773 remove unused variable 2012-02-17 23:58:36 +00:00
matt
a199401390 Make sure to export uvmexp_* if MODULAR is defined.
Make the uvmexp_page* be a pointer to a const int as well as having the
pointer be const as well.
2012-02-17 23:41:02 +00:00
jmmv
1cf12d0216 Add a test to ensure that PAGE_SIZE is available in kernel modules.
This test reproduces the error condition in PR port-macppc/46041 and
therefore it is an xfail in this particular platform.
2012-02-17 22:36:50 +00:00
christos
3fa39ef91e add positional argument tests 2012-02-17 20:17:38 +00:00
christos
f325545b10 Fix: CVE-2012-0864 fprintf() positional argument abuse.
Described in: http://www.phrack.org/issues.html?issue=67&id=9#article
Reported by Stefan Cornelius / Red Hat Security Response Team

- convert internal positional arguments bookkeeping from int to size_t
- provide overflow protection in positional argument spec
- convert loops to memset
- fix memory leaks
- limit positional argument stack offset to the number of arguments required
  by the printf to avoid coredump from va_arg() exhaustion.
2012-02-17 19:57:53 +00:00
bouyer
6a41d6825d - make xen_version globally available, with macros to access major and
minor xen version.
- In xen_initclocks(), do a VCPUOP_stop_periodic_timer only for Xen 3.1
  and later
Should fix PR port-xen/45961
2012-02-17 19:00:45 +00:00
joerg
26d94a59a0 PR 46040:
If the current compiler doesn't support C99, check if it is compatible
with GCC 2.92. In that case, use the protected __restricted__ form.
In any other case, default to removing __restricted.
2012-02-17 18:58:51 +00:00
bouyer
54fb8a3972 - make xen_version globally available, with macros to access major and
minor xen version.
- In xen_initclocks(), do a VCPUOP_stop_periodic_timer only for Xen 3.1
  and later
Should fix PR port-xen/45961
2012-02-17 18:42:19 +00:00
bouyer
d3ccea851c Apply patch proposed in PR port-xen/45975 (this does not solve the exact
problem reported here but is part of the solution):
xen_kpm_sync() is not working as expected,
leading to races between CPUs.
1 the check (xpq_cpu != &x86_curcpu) is always false because we
  have different x86_curcpu symbols with different addresses in the kernel.
  Fortunably, all addresses dissaemble to the same code.
  Because of this we always use the code intended for bootstrap, which doesn't
  use cross-calls or lock.

2 once 1 above is fixed, xen_kpm_sync() will use xcalls to sync other CPUs,
  which cause it to sleep and pmap.c doesn't like that. It triggers this
  KASSERT() in pmap_unmap_ptes():
  KASSERT(pmap->pm_ncsw == curlwp->l_ncsw);
3 pmap->pm_cpus is not safe for the purpose of xen_kpm_sync(), which
  needs to know on which CPU a pmap is loaded *now*:
  pmap->pm_cpus is cleared before cpu_load_pmap() is called to switch
  to a new pmap, leaving a window where a pmap is still in a CPU's
  ci_kpm_pdir but not in pm_cpus. As a virtual CPU may be preempted
  by the hypervisor at any time, it can be large enough to let another
  CPU free the PTP and reuse it as a normal page.

To fix 2), avoid cross-calls and IPIs completely, and instead
use a mutex to update all CPU's ci_kpm_pdir from the local CPU.
It's safe because we just need to update the table page, a tlbflush IPI will
happen later. As a side effect, we don't need a different code for bootstrap,
fixing 1). The mutex added to struct cpu needs a small headers reorganisation.

to fix 3), introduce a pm_xen_ptp_cpus which is updated from
cpu_pmap_load(), whith the ci_kpm_mtx mutex held. Checking it with
ci_kpm_mtx held will avoid overwriting the wrong pmap's ci_kpm_pdir.

While there I removed the unused pmap_is_active() function;
and added some more details to DIAGNOSTIC panics.
2012-02-17 18:40:18 +00:00
skrll
ebbe15c36f Spell _KMEMUSER correctly
Spotted by riz@
2012-02-17 16:57:57 +00:00
christos
449830ab34 expose more for kmemuser 2012-02-17 16:44:34 +00:00