Commit Graph

226252 Commits

Author SHA1 Message Date
joerg
8886a873b8 Support SH3 in our unwinder. 2014-04-02 22:34:29 +00:00
joerg
8d85521c7b SH3 uses unaligned data in the .eh_frame section, so use memcpy. 2014-04-02 22:22:37 +00:00
tron
0bf30a01f8 Add fix for CVE-2014-0076 taken from OpenSSL GIT repository:
Fix for the attack described in the paper "Recovering OpenSSL
ECDSA Nonces Using the FLUSH+RELOAD Cache Side-channel Attack"
by Yuval Yarom and Naomi Benger. Details can be obtained from:
http://eprint.iacr.org/2014/140
2014-04-02 20:27:28 +00:00
wiz
b0b52b7f33 Wording improvement for previous.
From jmc@OpenBSD via Igor Sobrado.
2014-04-02 19:54:30 +00:00
pooka
271d5dd119 use if_initname() instead of homegrown sprintf 2014-04-02 19:44:15 +00:00
pooka
dc8f80f5c3 Put nanosleep() and folks in librump instead of maintaining them in
the separate rumpkern_time component.  Keeping time-related routines
elsewhere lead to some illogical behavior if you didn't think of linking
in rumpkern_time (hands up everyone who checks the return value of
nanosleep()).

Add warnings if rumpkern_time is linked or used.  I'll remove it in a
month or two instead of now since it was part of a buildrump.sh snapshot
and it's nicer if trying to use it gives a warning instead of an error
in the next snapshot.

"everything should be as modular as possible, but no more modular than that"
2014-04-02 19:37:17 +00:00
para
608fba6393 make condition for ENOMEM consistent with allocation requirement 2014-04-02 18:09:10 +00:00
skrll
f32b3d87d2 Convert cats to the new world order, i.e. arm32_{bootmem,kernel_vm}_init 2014-04-02 17:36:05 +00:00
matt
790372329e If we are writing PN_XNUM or more phdrs, include one section header and
encode the real # of sections in its sh_info.
2014-04-02 17:19:49 +00:00
justin
95e41b89b5 Add Android support for rump kernel.
Reviewed by pooka@
2014-04-02 17:09:23 +00:00
para
c28aad1c2f bt_refill is and must be called with VM_NOSLEEP set, assert this
fix error path if pool_get returns NULL
2014-04-02 16:14:50 +00:00
matt
1158851feb Mark omd as diagused for the ARM_MMU_EXTENDED case. 2014-04-02 15:45:51 +00:00
seanb
f9c6e7aeaa len argument to strlcpy() was incorrect when copying
out AF_LOCAL sockets in sysctl helper.  The entire
buffer wasn't available since sun_path member is not
at offset 0 in struct sockaddr_un.
2014-04-02 15:35:45 +00:00
skrll
d6885c8bf6 Fix non-DIAGNOSTIC build 2014-04-02 15:35:14 +00:00
pooka
e152ae2df5 fix build on NetBSD. also, prevent fd leak in error path 2014-04-02 15:04:19 +00:00
pooka
90c25cb369 On Linux, poll signalfd() when waiting for a kernel response.
This allows the same type of race-free handling of signals as kqueue()
allows on NetBSD.  One of the noticeable things is that you can now
interrupt rumprun ping mid-interval on Linux.

per suggestion from Justin Cormack
2014-04-02 14:48:03 +00:00
martin
b87a9303be The table of masks applied for each relocation type was wrong for some
relocs with 64bit targets, like GLOB_DAT.
Change some instruction patterns used for PLT slots, so -current
objdump -d shows what the comment says.
Fix encoding of %lox() in PLT slots "close" to -1.
Enhance debug output slightly.
2014-04-02 14:11:25 +00:00
matt
c58d1d6541 Init the page_lock to IPL_VM iff VIPT && arm_cache_prefer_mask != 0 otherwise
use IPL_NONE.  Don't bother with page_lock for KMPAGEs.
2014-04-02 14:05:54 +00:00
pooka
cd76e7c732 Always use sysconf() to query host processor count instead of separate
tricks for each platform.
2014-04-02 13:54:42 +00:00
matt
941a80c94b braces are your friends. use them. 2014-04-02 13:26:22 +00:00
matt
bff56ce22a Really fix locking this time. 2014-04-02 12:36:05 +00:00
matt
1935cf8899 Deal with bus_dmamem_unmap of direct mapped KVA. 2014-04-02 12:28:54 +00:00
matt
646210f0fc Because vector_page might be 0, we have to process the entry L1pt.
Make sure to map the new l2 area after we've grown the kernel.
If msgbufaddr is set, don't alloc space for msgbuf.
2014-04-02 12:04:09 +00:00
matt
48aa269482 Don't map ebsabootinfo.bt_vargp if it is the same address as the vector page 2014-04-02 11:36:50 +00:00
matt
7094c090fa Defer intr evcnt_attach to cpu_configure 2014-04-02 11:35:36 +00:00
wiz
ac632886e5 Apply diff from Igor Sobrado <isd@orion.ciencias.uniovi.es>:
We have written a diff to our ls(1) to recover the traditional behaviour
of -f implying -a.  This change does not only accommodates POSIX.1
but also matches traditional UNIX.

OpenBSD commit message:

CVSROOT:        /cvs
Module name:    src
Changes by:     sobrado@cvs.openbsd.org 2014/03/31 14:54:37

Modified files:
        bin/ls         : ls.1 ls.c

Log message:
restore the traditional behavior of -f implying -a; apparently Keith Bostic
forgot to restore it when the -f flag was put back on 2nd of September 1989,
after being removed on 16th of August as a consequence of issues getting it
working over NFS, so deviation from traditional UNIX behavior in all BSDs
looks like an historical accident; as a side effect, this change accommodates
behavior of this option to IEEE Std 1003.1-2008 (``POSIX.1'').

joint work with jmc@ (who found the inaccuracy in our implementation),
schwarze@ (who provided a detailed tracking of historical facts) and millert@

ok millert@, schwarze@
2014-04-02 10:55:47 +00:00
christos
a3979e7b1b If we are autoconfiguring root, then only change the booted_device if
we booted from one of the components of the root raid set. This allows
us to boot from other media, without forcing the found raid to always
be root. Allow the old behavior with RAIDFRAME_FORCE_ROOT.
XXX: cpu_rootconf() is called twice now, which prints the booted device
message twice. Perhaps we can remember that cpu_rootconf has been called
and avoid calling it twice to avoid that.
2014-04-02 02:17:01 +00:00
christos
563eea7895 - tidy up debugging 2014-04-02 02:14:08 +00:00
riastradh
93797f6cf7 Install compositeext.h and shmint.h from X.org. 2014-04-02 01:22:11 +00:00
ozaki-r
638f5cfbce Get rid of a wrong comma 2014-04-02 00:46:11 +00:00
buhrow
ac40c6e642 Checking in changes to improve error handling. Specifically:
- if commands timeout, clear the queues to the the card and perform a soft
reset on the LSI hardware since when these timeouts occur, the LSI firmware
is not graceful about recovering at all.

- Recover gracefully from more kinds of errors using the same recovery
mechanism listed above.

Also, implement mpt_ioctl() to handle bus reset requests from scsictl(8).
2014-04-01 23:57:54 +00:00
christos
681726d876 add kvno 2014-04-01 21:40:46 +00:00
christos
dcd0e19d19 add glue and man 2014-04-01 21:38:44 +00:00
christos
eac602f603 add kvno 2014-04-01 21:38:26 +00:00
martin
2f8231a7ba Add two missing include files 2014-04-01 19:13:31 +00:00
christos
ff9eccbdec add -g to LINTFLAGS 2014-04-01 19:12:37 +00:00
christos
6449a2097b default to something reasonable (like the interactive mode does) instead
of 0 when -1 is specified for the start or size.
2014-04-01 19:08:48 +00:00
matt
0345241f46 For ARM_MMU_EXTENDED, if the page being mapped asked for EXEC but is not EXEC,
sync it.
2014-04-01 18:01:45 +00:00
matt
f358de1c61 In prefetch_abort, call uvm_fault with VM_PROT_EXEC 2014-04-01 18:00:42 +00:00
riastradh
f8b17fdc8b Remove vestigial modules/apple_smc/apple_smc.ioconf. 2014-04-01 17:52:26 +00:00
riastradh
f58fb90d2f Fix unused variable warning in non-modular apple_smc build. 2014-04-01 17:49:40 +00:00
riastradh
46e38060ce Fix apple_smc config in conf/files. 2014-04-01 17:49:30 +00:00
riastradh
7e61e435b3 Fix copypasta error in apple_smc_write_key_4: uint32_t, not uint16_t. 2014-04-01 17:49:17 +00:00
riastradh
81f56cd2a7 Polish the Apple SMC code with commentary and little fixes. 2014-04-01 17:49:05 +00:00
riastradh
0f339fa6a5 Rework Apple SMC device attachment goo again.
Less bookkeeping at the expense of iteration over all devices when
rescanning applesmc.
2014-04-01 17:48:52 +00:00
riastradh
9456e37730 Rework Apple SMC attachment goo and split into multiple modules.
The four modules are apple_smc for the core functions, apple_smc_acpi
for attachment at acpi, and apple_smc_fan & apple_smc_temp for stuff
on the SMC.

Seems like there's a lot more bookkeeping necessary to maintain
children of an applesmc device implemented by loadable modules.
Maybe there's a better way I just haven't figured out yet.
2014-04-01 17:48:39 +00:00
riastradh
0396c57641 First draft of drivers for the Apple System Management Controller.
Device interface derived by reading the Linux driver source code and
<http:///www.parhelia.ch/blog/statics/k3_keys.html> as of 2012-12-05.

Includes support for attaching fan and temperature sensors to sysmon.
No accelerometer yet.

Compile-tested only, based on some run-testing of experiments from
userland.  Module attachment is not quite finished, so it won't work
yet.
2014-04-01 17:47:36 +00:00
kardel
b538a8f986 remove stray 'return 0;' that effectively disabled atouint().
Hi Christos!
2014-04-01 17:34:44 +00:00
jakllsch
ade3ce5326 Add NetBSD-specific adjustments to gnu-efi. 2014-04-01 16:22:45 +00:00
jakllsch
b2c829d73a Import gnu-efi-3.0u 2014-04-01 16:16:05 +00:00