Commit Graph

209477 Commits

Author SHA1 Message Date
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
christos
b232d20930 fix off-by-one in frame handling, and add a missing db_read 2012-02-17 16:26:51 +00:00
christos
e0ed41467d expose more to kmemuser 2012-02-17 16:01:41 +00:00
martin
da57bcbaec Fix build for sparc64 2012-02-17 12:24:13 +00:00
mbalmer
ae11fa979c I fee responsible for lua/luac. 2012-02-17 12:16:17 +00:00
mbalmer
b2d484f7cb Fix typos (in comments). 2012-02-17 12:08:12 +00:00
wiz
86986a6435 Fix typo. Bump date for previous. 2012-02-17 11:43:24 +00:00
apb
f9135d4e36 The "-N" command line option means "include the terminating NUL byte",
so rename the corresponding flag from F_NO_NUL to F_INCLUDE_NUL to match
the behaviour.

This is the second half of the fix for PR 46035.
2012-02-17 11:37:33 +00:00
apb
5efc9deabf db(1) "-N" flag means "Include the NUL byte at the end of the key
or value".  (Previously, the description was reversed.)  Also expand
the description.

This is the first half of a fix for PR 46035.
2012-02-17 11:18:55 +00:00
tron
ae076f0326 Postfix was updated to version 2.8.8. 2012-02-17 11:15:59 +00:00
plunky
555be44f20 document config_detach_children(9) 2012-02-17 09:44:12 +00:00
tron
a30206eafe Include "defer.h" to get the prototype for defer_append(). 2012-02-17 09:17:22 +00:00
yamt
31e27eaca4 BUFQ_PRIOCSCAN:
- to reduce cpu consumption for a long queue, maintain the sorted lists of
  buffers with rbtree instead of TAILQ.  i vaguely remember that the problem
  pointed out by someone on a public mailing list while ago.  sorry, i can't
  remember who and where.

- add some #ifdef'ed out experimental code.

- bump kernel version for struct buf change.
2012-02-17 08:45:11 +00:00
tron
b8a7952854 Import Postfix 2.8.8. Changes since Postfix 2.8.7:
- The Postfix sqlite client, introduced with Postfix 2.8, had an
  embarassing bug in its quoting routine. As the result of a
  last-minute code cleanup before release, this routine returned the
  unquoted text instead of the quoted text. The opportunities for
  mis-use are limited: Postfix sqlite database files are usually owned
  by root, and Postfix daemons usually run with non-root privileges so
  they can't corrupt the database. This problem was reported by Rob
  McGee (rob0).
- The Postfix 2.8.4 fix for local delivery agent database lookup
  errors was incomplete. The fix correctly added new code to detect
  database lookup errors with mailbox_transport_maps,
  mailbox_command_maps or fallback_transport_maps, but it failed to
  log the problem, and to produce a defer logfile record which is
  needed for "delayed mail" and "mail too old" delivery status
  notifications.
- The trace(8) service, used for DSN SUCCESS notifications, did not
  distinguish between notifications for a non-bounce or a bounce
  message, causing it to "reply" to mail with the null sender
  address. Problem reported by Sabahattin Gucukoglu.
- Support for Dovecot auth over TCP sockets, using code that already
  existed for testing purposes. Patrick Koetter kindly provided an
  update for the SASL_README file.
- Workaround in the LDAP client for changes in the under-documented
  OpenLDAP API, by Victor Duchovni.
2012-02-17 08:35:39 +00:00
matt
3dcb0b124a Avoid signed/unsigned comparision. 2012-02-17 08:28:36 +00:00
yamt
45ed245203 yamt-pagecache: update 2012-02-17 08:24:30 +00:00
yamt
b8736f67c5 sync with code
(remove const quals)
2012-02-17 08:22:47 +00:00
yamt
c944cfe9d1 remove bogus const quals 2012-02-17 08:20:55 +00:00
matt
02a2e7c81a MIPS uses a variable page size now.
(pulled up from matt-nb5-mips64)
2012-02-17 08:13:18 +00:00
matt
dfc6b54984 Let address/entry be 64bit if they are just sign-extended 32-bit values.
(change pulled up from matt-nb5-mips64).
2012-02-17 08:11:28 +00:00
apb
384ee33f76 document postinstall pwd_mkdb item 2012-02-17 07:51:51 +00:00
apb
44652a5537 Add "pwd_mkdb" item, which checks whether /etc/pwd.db is in the
new format, and runs "pwd_mkdb -V 1 /etc/master.passwd" to fix it.
2012-02-17 07:51:20 +00:00
apb
427b892cca s/tmux/tmux(1)/ in the entry about removal of window(1) 2012-02-17 07:46:54 +00:00
jruoho
88969970b7 ACPICA 20120215 is out, including support for ACPI 5.0. 2012-02-17 06:11:29 +00:00
riz
d77699356b Use a new variable, MODULEVER, for kernel modules, tracking what's been
done elsewhere.
2012-02-17 00:33:24 +00:00
christos
ca7f79a7ea use osrelease.sh -k instead of hand-rolled logic. 2012-02-17 00:00:39 +00:00
joerg
23782b5c2b Derive MANINSTALL from MKCATPAGES and MKHTML. 2012-02-17 00:00:02 +00:00
christos
110af54a7b use osrelease -k to avoid that the path is 6.0_BETA 2012-02-16 23:58:15 +00:00
christos
f347d465be Add new -k (for kernel modules) flag to return MM.99.pp for current and MM.mm
for the release branch.
2012-02-16 23:56:57 +00:00
joerg
52a4c27e3e Add _dlauxinfo helper function to provide access to the ELF auxilary
vector. This can normally be found via __ps_strings, but libc is
initialised too early when linked dynamically and doesn't have access to
it yet, so provide an alternative mechanism via ld.elf_so.
Bump libc minor.
2012-02-16 23:00:38 +00:00
joerg
0b4daf6018 Add entries for bzip2 and xz. 2012-02-16 22:57:19 +00:00