Commit Graph

229463 Commits

Author SHA1 Message Date
riastradh a580220047 done is not guaranteed to be aligned; don't *(uint32_t *) it. 2014-08-11 14:07:55 +00:00
maxv 83fce8c371 1) 'error' is returned while it does not even hold an error code. Which
means that zero is returned, and the kernel keeps mounting (and it
   probably ends up in a deadlock/memory corruption somewhere).
2) 'nentries' and 'gnentries' are int and user-controlled, and there's no
   check to ensure they are greater than zero. Since they are used to
   compute the size of two copyin's, a user can control the copied size
   by giving a negative value (like 128-2^29), and thus overwrite kernel
   memory.

Both triggerable from root only.
2014-08-11 14:02:14 +00:00
riastradh 2270989b17 buf is not guaranteed to be aligned; don't *(uint32_t *) it. 2014-08-11 13:59:24 +00:00
joerg 7a5aaa5671 Mark compat directories as compat, not arch64. 2014-08-11 13:40:34 +00:00
riastradh 47d7f02ac0 Tweak cprng_fast_buf to use 32-bit unaligned writes if possible. 2014-08-11 13:22:16 +00:00
riastradh 0c0361fcdd Move initial entropy bookkeeping out of the fast path. 2014-08-11 13:12:53 +00:00
riastradh 7e518a1255 Use percpu_foreach instead of manual iteration. 2014-08-11 13:06:31 +00:00
riastradh 215d8661dd Access to struct cprng_fast must be consistently at IPL_VM. 2014-08-11 13:01:58 +00:00
roy f356508f3e FONTCONFIG_DIR not existing does not need to be fixed. 2014-08-11 12:49:01 +00:00
martin 07aafbff43 Match firmware paths for the boot device in Mac style, as used by
QEMU/OpenBIOS.
2014-08-11 11:51:45 +00:00
skrll 078b8e6c04 PR/49091: xhci: wrong wMaxPacketSize value
While this is correct according to the specification only fixed sizes
are allowed, i.e. 512 for SS, etc. Maybe these should be used?
2014-08-11 10:37:59 +00:00
apb cb6b43c72f Formatting fixes, following the guidelines in the comments
at the top of CHANGES:

* Start with <tab><heading><colon><one space><capital letter>...
* Indent with exactly two tabs.
* End with <full stop><one or two spaces, or newline and two tabs>
  <left square bracket><initials><space><date><right square bracket>

I edited only in the "Changes from NetBSD 6.0 to NetBSD 7.0" section,
and I left one entry starting with a lowercase letter because it was a
literal variable name.
2014-08-11 10:28:38 +00:00
riz 8764a7f896 Add NetBSD 8.0, and make 7.0 the default. 2014-08-11 09:12:59 +00:00
riz f285cb1fbe Note the new netbsd-7 branch, and move CHANGES to CHANGES.prev . 2014-08-11 09:12:34 +00:00
riz c5659de14f Welcome to 7.99.1. 2014-08-11 09:10:52 +00:00
mrg b7bc265a64 put KMS support under our X11DRI definition. 2014-08-11 08:25:58 +00:00
mrg 6cdb313ef0 revert parts of 1.163 that affect the x86 build.
possibly, we want to build the i386 fenv.c for compat build, but they
seem largely compatible and for now, just go back to what we had before
that wasn't breaking the build or generating bug reports.
2014-08-11 08:20:57 +00:00
ozaki-r 8dc81a2b8c Add missing curly braces
It unbreaks the i386 build of ALL.
2014-08-11 06:02:38 +00:00
jnemeth b6c78a9d3b remove debug cruft, the example module is not normally built 2014-08-11 05:19:16 +00:00
matt 72b4106e92 Fix else if botch 2014-08-11 04:33:30 +00:00
ozaki-r f7f536e570 Do cprng_fast_init in rump_init
It fixes rump bootup failure:
  panic: kernel diagnostic assertion "off < percpu_nextoff" failed:
  file "/usr/src/lib/librump/../../sys/rump/../kern/subr_percpu.c", line 76
2014-08-11 04:27:24 +00:00
riastradh bd9701def7 Back out tls-earlyentropy's rnd_add_data.
This caused recursion on rndpool_mtx when called from an rndsource's
callback.

XXX The old and new code here is a minefield demanding another
rototill.

XXX rnd_source_anonymous was not actually used before, and still is
not used now, to be cleaned up later.
2014-08-11 04:26:53 +00:00
matt 7ae11555b5 Use %x/%w as appropriate. 2014-08-11 04:03:59 +00:00
riastradh bf5402594e No need for cprng_fast_seed to be inline. 2014-08-11 03:50:29 +00:00
riastradh a7da2729e7 Include <sys/rnd.h>, don't copypasta declare rnd_initial_entropy. 2014-08-11 03:47:49 +00:00
riastradh 8756d4c167 Sort #includes. 2014-08-11 03:46:54 +00:00
jnemeth 3481529578 Add the infrastructure for MODULAR support for Xen kernels. At
the moment, this can only load very simple modules due to missing
symbols.  It is being add at this time to make pullups to the
netbsd-7 branch easier.  It is not enabled by default in any kernels.
2014-08-11 03:43:25 +00:00
rmind 4f21ab8829 NPF: finish up the rework of npfctl_save() mechanism. 2014-08-11 01:54:12 +00:00
riz db9fae484c Use installboot to install bootblocks for i386/amd64, now that
they are included on all boot media.

Some of the previous method of setting the console (and conspeed, when
using serial console) is retained, but it should probably be reworked.

Also, adapt to the fact that we may be installing to a disk wedge.

With this change, it is now possible (but still ugly) for sysinst to
create a bootable GPT-labeled disk.
2014-08-11 00:31:22 +00:00
chs 216ce82326 add some std stuff for igepv2. 2014-08-10 23:46:09 +00:00
matt 04ea670ded Add compat dirs for aarch64 2014-08-10 23:40:33 +00:00
matt 810b61bb1a MKCOMPAT fixes for when compat MACHINE_CPU != normal MACHINE_CPU 2014-08-10 23:39:08 +00:00
matt 243b0ccea7 Don't provide __gnu_Unwind_Find_exidx if __ARM_DWARF_EH__ is defined 2014-08-10 23:35:26 +00:00
matt 1ab7f387c3 Add eabihf directories 2014-08-10 23:31:41 +00:00
matt 91161928e4 MKCOMPAT set fixes 2014-08-10 23:26:48 +00:00
matt 7b20bc5be5 MKCOMPAT fixes for aarch64 2014-08-10 23:26:25 +00:00
matt 11614bb2b2 MKCOMPAT fixes for when compat MACHINE_CPU != normal MACHINE_CPU 2014-08-10 23:25:49 +00:00
chs 5d708bdeab add tmpfs. 2014-08-10 22:55:49 +00:00
chs 07e86c9226 add missing omapdma. 2014-08-10 22:55:29 +00:00
justin cd946d79cd define function consistently as inline 2014-08-10 22:35:32 +00:00
spz 5ff459c09e merge lossage (this file is an ASM generator not used in a normal build) 2014-08-10 21:00:48 +00:00
wiz 8a2c3b2aab mdocml-1.13.1 out. 2014-08-10 20:52:33 +00:00
joerg b32c7c5ab8 Add -mfpu=vfp for fenv.c, since it gets those instructions from
machdep/armreg.h
2014-08-10 20:48:34 +00:00
riz d09c62a0bc Include installboot on amd64/i386 install ramdisks in prep for a change
to sysinst which will use it instead of a handrolled replacement.
2014-08-10 20:07:41 +00:00
riz 48ed1e8202 Bump the ramdisk size; the longer paths on the build cluster are
likely enough to put this over the edge.
2014-08-10 20:04:30 +00:00
tsutsui 8659cbbc7e Put several tweaks for changes page on www.
- add man page suffix where appropriate
- use "OpenSSH" case consistency
- avoid regular expression for human readability
- make specific ARM boards support belong to evbarm, not generic arm
- fix format of recent cprng_fast(9) entry as mentioned at the top
2014-08-10 19:44:52 +00:00
tsutsui 8168542d20 Fix openssl vs OpenSSL inconsistency. 2014-08-10 19:21:08 +00:00
tsutsui 287b7290f9 Fix date of openssl 1.0.1i update. 2014-08-10 19:15:55 +00:00
tsutsui 6a91f25925 Note misc user-visible changes committed by me and isaki recently. 2014-08-10 19:14:36 +00:00
joerg e62b1a83b7 Add pixman. 2014-08-10 19:12:08 +00:00