Commit Graph

221099 Commits

Author SHA1 Message Date
pooka 7efe29ddc3 There is absolutely no way that fexecve() could even theoretically work
in a rump kernel, so don't create a wrapper for that.

recv/sendmmsg(), however, can, so create wrappers for those.
2013-08-30 10:33:10 +00:00
pooka 74f1a93841 Rename RUMPTEST_BUILDSH to RUMPKERN_ONLY. Turns out not building any
POSIX implementations of hypercalls is useful beyond the build.sh test,
such as when building rump kernels for non-POSIX hosts.
2013-08-30 10:29:06 +00:00
skrll 7ce615b673 PR/48164: BEAGLEBONE_INSTALL kernel not built with preferred ABI for
platform
2013-08-30 10:13:39 +00:00
christos d407b3e25b draft-gont-6man-ipv6-atomic-fragment-00 is now RFC 6949 (Loganaden Velvindron
logan at elandsys dot com)
2013-08-30 07:42:08 +00:00
dholland 0a50969465 Use __CTASSERT instead of handrolled version. 2013-08-30 07:35:44 +00:00
dholland 13106e31df more typos in comments 2013-08-30 07:30:50 +00:00
dholland 99c51e18cd typo in comment 2013-08-30 07:25:43 +00:00
riastradh aab95335f3 Make the rpi hwrng feed data to the entropy pool in a softint.
The two-lock scheme here is excessive but will do provisionally until
rnd(9) gets disentangled.

Tested by Aymeric Vincent.
2013-08-29 21:54:11 +00:00
wiz 830908813f New sentence, new line. Bump date for previous. 2013-08-29 20:02:35 +00:00
rmind 8088e72932 Remove SS_ISCONFIRMING, it is unused and TP4 will not come back. 2013-08-29 17:49:20 +00:00
riz aded92b403 Use __BIT(), not __BITS() to define a single-bit mask.
From Dennis Ferguson in PR#48162.
2013-08-29 15:50:41 +00:00
riz 8f49c8af7c Fix typo: VERBOSE_INIT_ARM, not VERBOSE_ARM_INIT. From
Dennis Ferguson in PR#48163.
2013-08-29 15:46:17 +00:00
christos efbe1fcbf4 add stdint.h for FreeBSD compat. 2013-08-29 15:01:57 +00:00
christos e6ada316ce use sysctl to find the pathname argv[0] if available (from FreeBSD via
Ed Maste)
2013-08-29 14:58:56 +00:00
rmind 1962fa8781 Implement BPF_COP/BPF_COPX instructions in the misc category (BPF_MISC)
which add a capability to call external functions in a predetermined way.

It can be thought as a BPF "coprocessor" -- a generic mechanism to offload
more complex packet inspection operations.  There is no default coprocessor
and this functionality is not targeted to the /dev/bpf.  This is primarily
targeted to the kernel subsystems, therefore there is no way to set a custom
coprocessor at the userlevel.

Discussed on: tech-net@
OK: core@
2013-08-29 14:25:40 +00:00
kiyohara 8bb6eda9b2 Fix build failed with ofppc.
Move 'attach mvspi at mvsoc' to arch/arm/marvell/files.marvell.
2013-08-29 09:46:04 +00:00
tls f41d33c667 Mix in boot time (wherever we may find it). Helps avoid predictable output
on young systems.
2013-08-29 01:05:29 +00:00
tls b460f1f7d9 Fix rnd_add_* to conform to manual page: allow addition of entropy
with NULL source.
2013-08-29 01:04:49 +00:00
tls cee9eabe74 Schedule the softint to run once when it's first registered. 2013-08-28 23:40:43 +00:00
sjg ec98624792 Fix parsing of SUNSHCMD style :sh = assigments.
Submitted by: Will Andrews at freebsd.org
2013-08-28 21:56:49 +00:00
riastradh 3db7caeeb3 Comment on possible data-dependent branch in `!res'. 2013-08-28 19:31:14 +00:00
riastradh c462ebccdd Update set lists after libc minor bump. 2013-08-28 19:04:12 +00:00
riastradh 361f5037ee Get some entropy early on bcm2835_rng attach. 2013-08-28 18:32:45 +00:00
riastradh 719254e9b5 Bump libc minor for consttime_memequal and explicit_memset. 2013-08-28 18:01:22 +00:00
riastradh 1239c2bb08 Publish explicit_memset and consttime_memequal in userland libc.
Remove the double-underscore from the userland versions, and do the
weak alias dance instead, now that these are public parts of libc.

As discussed on tech-userlevel:

https://mail-index.netbsd.org/tech-userlevel/2013/06/24/msg007843.html
(option 3)
2013-08-28 17:47:07 +00:00
riastradh 04e877f3a1 Fix libkern's prototype for explicit_memset. 2013-08-28 16:20:38 +00:00
riastradh 495fdb7e9a Make explicit_memset match memset's return value. 2013-08-28 15:46:23 +00:00
slp 1abe162f6c Added slp@ to NetBSD Developers list. 2013-08-28 15:39:30 +00:00
riastradh cc79193075 Fix sense of consttime_memequal and update all callers.
Now it returns true (nonzero) to mean equal and false (zero) to mean
inequal, as the name suggests.

As promised on tech-userlevel back in June:

https://mail-index.netbsd.org/tech-userlevel/2013/06/24/msg007843.html
2013-08-28 15:24:41 +00:00
riastradh 5287a42d7a Tighten initialization of rnd softints.
- Do rnd_init_softint as early as possible in main, after configure2,
  and before networking is initialized.

- Initialize the rnd_wakeup softint in rnd_init_softint, not lazily in
  rnd_schedule_wakeup.

ok tls
2013-08-28 12:50:18 +00:00
christos efab425d4c get rid of PATH_MAX. 2013-08-28 08:05:21 +00:00
wiz 378f5c9530 sqlite-3.8.0 out 2013-08-28 07:34:13 +00:00
riastradh b1574872b8 Back out the recent rnd stop-gap/stop-gap/stop-gap measures.
This reverts

sys/dev/rnd_private.h -> r1.1
sys/kern/init_main.c -> r1.450
sys/kern/kern_rndq.c -> r1.14
sys/kern/kern_rndsink.c -> r1.2

Parts of these changes will be added back, and the rndsource
callbacks will be fixed to avoid the lock recursion bug that
motivated the stop-gaps in the first place.

ok tls
2013-08-27 19:30:10 +00:00
joerg cc1cb97e40 Remove outdated comment. 2013-08-27 18:29:28 +00:00
riastradh 9726b00ff6 Schedule wakeups asynchronously in rnd_extract_data.
Otherwise, rndsink_request takes rndsinks_lock and calls
rnd_extract_data, which synchronously calls rndsinks_distribute,
which takes rndsinks_lock -> boom.

This is a stop-gap on a stop-gap on a stop-gap; we really ought to
back out all of these stop-gaps, make bcm2835_rng call rnd_add_data
asynchronously to work around the original symptom, and design a real
solution when we have time to sort this mess out properly.
2013-08-27 14:01:35 +00:00
macallan 6cf29c2f93 sprinkle #if NPSYCHO > 0
now this builds again on kernels without psycho
2013-08-27 13:12:29 +00:00
macallan dbc46cd7fa psycho needs-flag now
while there, ffb doesn't need rasops8
2013-08-27 13:11:12 +00:00
christos 4d322dedff move the host file getbyname and getbyaddr functions to sethostent.c so
that they are in a separate file from the dns ones in order for libhack
to use them.
2013-08-27 09:56:12 +00:00
christos 27af00aa70 avoid copying most of libc (except gethostent_r, which unfortunately
adds a resolver dependency) by callling the internal nsswitch functions.
2013-08-27 09:53:33 +00:00
skrll b3d7b0b6fa Minor tidyup 2013-08-27 06:41:05 +00:00
skrll 33baa40d6e Support R_ARM_REL32 and R_ARM_PREL31.
ok matt.
2013-08-27 06:39:43 +00:00
matt f8945ff921 Bump STMRAB_SPACE 2013-08-27 03:41:59 +00:00
tls a92176cb34 Temporary fix for previous: avoid recursion through rnd_wakeup_readers()
when entropy first becomes available.
2013-08-26 23:41:24 +00:00
matt f60758a410 Change the default for MKLINT to no 2013-08-26 22:15:51 +00:00
matt 88d398120c Don't include <arm/arm32/pte.h> and <arm/pmap.h>
Use the values from getassym.h
2013-08-26 15:31:44 +00:00
matt 49c834f870 Include <arm/locore.h> 2013-08-26 15:31:06 +00:00
matt ae05909c70 Even though both gas and ld support .cfi_personality, gcc fails to emit
them so we get DT_TEXTREL problems.
So if pic && SHARED, we force EH_FRAME to be writeable (which is what would
happen if .cfi_personality was not supported).
2013-08-26 14:24:22 +00:00
matt 704e1f2829 MIPS wants a read/write eh_frame. 2013-08-26 14:20:53 +00:00
martin 03ee7892c9 Fix a comment and a few minor optimizations:
* elf_check_header() already ensures eh.e_phnum > MAXPHNUM, so do not
   test it again at the call site
 * is_dyn == true implies a successfull call to elf_check_header(eh, ET_DYN),
   so no need to call elf_check_header(eh, ET_EXEC)

From Maxime Villard.
2013-08-26 12:24:10 +00:00
he 8d81ddd3bf Bump the ramdisk image size so that the contents fits again. 2013-08-26 07:14:59 +00:00