Commit Graph

256863 Commits

Author SHA1 Message Date
christos
8083c34295 make this link again:
- we don't want to define the reference impl flag because there is no
  complete c reference impl for nistz256
- we want to define an empty OPENSSL_cpuid_setup() because we don't want
  to use the v9 one... this function is called from 2 places:
  1. in the sparccpuid.S assembly, which we need for the CRYPTO_mem*
     functions -- but we could get rid of the v9 stuff with
     #ifdef __sparc_v9__ for size and we don't bother
  2. crypto/init.c
2018-02-26 01:33:05 +00:00
pgoyette
c7df3d77e8 Finally, remove extraneous entries for macppc's "iic at cuda". We
don't need three entries that differ only in wildcarding.
2018-02-26 00:17:40 +00:00
pgoyette
231161f28f Ooopppsss! Put the .Sh DESCRIPTION where it belongs, _after_ the
list of config attachments.
2018-02-26 00:14:56 +00:00
pgoyette
c3f1906fc2 Hmmm, for some reason the first entry in the generated list is not
in collating-sequence order.  Move it to the proper place in the
list.
2018-02-26 00:10:44 +00:00
htodd
dab912008b Fix typo in comment. 2018-02-26 00:05:05 +00:00
pgoyette
6cb2d317fe Bump date for previous two changes. 2018-02-25 23:55:55 +00:00
pgoyette
5e98bd308f Fix the commands-to-generate-the-attachment list to use tab's instead
of multiple spaces in the regex bracket expressions, and alert the
reader to this.  Otherwise, a cut-and-paste might simply expand the
tab characters to some number of spaces, and the result won't find
what you're looking for!

XXX Despite the indication that these commands should be run in csh
(or derivative), they seem to run just fine under /bin/sh as well.
2018-02-25 23:55:21 +00:00
christos
b351345a6c new mdns-responder. 2018-02-25 23:53:57 +00:00
pgoyette
15b57152f3 Regen attachment list, since we just added "iic* at imcsmb?"
This regen also caught a few other missing entries.
2018-02-25 23:51:25 +00:00
htodd
0fc0030f2f Fix typo in error message. 2018-02-25 23:48:16 +00:00
pgoyette
2eab6dfed7 As requested by chuq@, add the new imc devices to the i386 and amd64
ALL kernels.
2018-02-25 22:00:22 +00:00
jdolecek
f0e5de0264 fix the DIAGNOSTIC function pmap_tlb_asid_count() to not expect
that TLBINFO_ASID_INUSE_P() returns just 0 or 1; the underlying
__BITMAP_ISSET() actually returns the matching bit nowadays, which
caused miscounting

fixes PR kern/53054 by Sevan Janiyan
2018-02-25 21:43:03 +00:00
christos
4824f3b241 update upstream code changes in signal handling. 2018-02-25 21:06:40 +00:00
christos
e68081c947 merge conflicts; also:
- Do the reuse-port first like MacOS/X otherwise we can't bind
- Disable SO_RECV_ANYIF hack
2018-02-25 20:04:55 +00:00
christos
200e8a27b2 import latest 2018-02-25 19:25:33 +00:00
christos
58300083f7 zero out socket structures before bind. 2018-02-25 19:22:41 +00:00
chs
64900a4c4b add definitions of FIOSEEKDATA and FIOSEEKHOLE for ZFS.
from FreeBSD.
2018-02-25 18:55:23 +00:00
chs
e5440b91e0 add defines to control whether or not mutex operations are skipped
after we have panic'd.  no functional change.
2018-02-25 18:54:29 +00:00
chs
3084abc1e1 add DTRACE_OPTS and HOST_DTRACE_OPTS to allow disabling various optimizations
that interfere with using dtrace.  use them when MKDTRACE=yes.
2018-02-25 18:53:23 +00:00
chs
9f52f2295e remove hard-coded -fomit-frame-pointer for pthread stuff,
let these use the same setting as the rest of the tree.
the performance difference is marginal and this allows
dtrace ustack() to work better.
2018-02-25 18:51:18 +00:00
chs
eec15c920c add some flag definitions from a newer version of FreeBSD's libproc
that are needed by the new dtrace.  these don't do anything yet,
but dtrace doesn't mind.  I'll do a full resync to the latest FreeBSD
libproc / librtld_db later.
2018-02-25 18:48:39 +00:00
uwe
5ff411e65c Use tagged list. 2018-02-25 17:45:40 +00:00
uwe
a2bbeaadcd Flags are .Fl not .Ar 2018-02-25 17:37:05 +00:00
kamil
b5d237a157 Document _UC_MACHINE_*() in ucontext(2)
Document:
 - _UC_MACHINE_SP()
 - _UC_MACHINE_FP()
 - _UC_MACHINE_PC()
 - _UC_MACHINE_INTRV()
 - _UC_MACHINE_SET_PC()

Document fragileness of the frame-pointer accessor.

Sponsored by <The NetBSD Foundation>
2018-02-25 16:53:51 +00:00
jdolecek
51cdc2d5b6 adjust KASSERT() triggered in PR port-cobalt/53054 to provide more info 2018-02-25 16:44:31 +00:00
christos
6f17b07f09 fix spello 2018-02-25 15:31:07 +00:00
kamil
16ed291475 Add new tests in lib/libc/sys/t_ucontext
New tests:
 - ucontext_sp
 - ucontext_fp
 - ucontext_pc
 - ucontext_intrv

They test respectively:
 - _UC_MACHINE_SP
 - _UC_MACHINE_FP
 - _UC_MACHINE_PC
 - _UC_MACHINE_INTRV

These tests attempt to access and print the values from ucontext, without
interpreting the values.

This is a follow up of the _UC_MACHINE_FP() introduction.

These tests use PRIxREGISTER, and require to be built with -D_KERNTYPES.

Sponsored by <The NetBSD Foundation>
2018-02-25 14:27:07 +00:00
maxv
3c99c64a1d Remove the first entry from the todo list, it's handled properly now. 2018-02-25 13:15:35 +00:00
maxv
ccc038a88e Remove INTRENTRY_L, it's not used anymore. 2018-02-25 13:14:27 +00:00
maxv
f6bdf0e58c Mmh. We shouldn't read %cr2 here. %cr2 is initialized by the CPU only
during page faults (T_PAGEFLT), so here we're reading a value that comes
from a previous page fault.

That's a real problem; if you launch an unprivileged process, set up a
signal handler, make it sleep 10 seconds, and trigger a T_ALIGNFLT fault,
you get in si_addr the address of another LWP's page - and perhaps this
can be used to defeat userland ASLR.

This bug has been there since 2003.
2018-02-25 13:09:33 +00:00
uwe
d9a4227719 Use .Dl instead of .Bd -literal, fix vertical spacing. 2018-02-25 12:57:39 +00:00
kamil
bc6d305e96 Register the x86/imcsmb man/cat/html page 2018-02-25 12:53:22 +00:00
uwe
f8b4672497 .Po/.Pc are not appropriate for enclosing sentences. 2018-02-25 12:51:33 +00:00
uwe
5a14c3e55e Add FreeBSD 11.0 and 12.0 2018-02-25 12:46:49 +00:00
uwe
172e2d8237 Fix a typo. 2018-02-25 12:39:44 +00:00
maxv
5871e8d651 Fix handling of segment register faults when running with SVS. The behavior
is changed also in the non-SVS case.

I've put a documentation in amd64_trap.S. Basically, the problem with SVS
is that if iret faults, we already have a full trapframe pushed on the
stack and the CPU will push another frame on this stack (nested), but it
hits the redzone below the stack since it is still running with the user
page table loaded.

To fix that, we pop a good part of the trapframe earlier in intrfastexit.
If iret faults, the current %rsp has enough room for an iret frame, and
the CPU can push that without problem. We then switch back to the outer
iret frame (the frame the CPU was trying to pop by executing iret, but that
it didn't pop for real because iret faulted), call INTRENTRY, and handle
the trap as if it had been received from userland directly.
2018-02-25 12:37:16 +00:00
kamil
fc4bdd88b3 Correct OpenSSL 1.1 entries in plist
Fix references to:
./usr/share/man/cat3/BIO_get_data.0
./usr/share/man/cat3/SSL_CONF_cmd.0

This is obserbable with the MKCATPAGES=yes build option.
2018-02-25 12:28:18 +00:00
maxv
a26f6f08b3 Ah. Don't use NENTRY() to declare check_swapgs, use LABEL() instead. NENTRY
puts the code in the .text section, so the effect of TEXT_USER_BEGIN was
overwritten, and check_swapgs was not put in the .text.user section.

As a result kernels running SVS would crash when jumping here - because we
execute this place with the user page table loaded, and in this page table
only .text.user is mapped.

While here, rename check_swapgs -> kernuser_reenter, because we do more
things than just SWAPGS.
2018-02-25 11:57:44 +00:00
kamil
b9c59384fe Remove ksem module reference
This does not exist in HEAD.

It looks like accidentally committed in:

Add new modules (for i386 and amd64 only) for the imcsmb SMBus driver.
src/sys/modules/Makefile r1.200
2018-02-25 10:17:12 +00:00
wiz
2eec357965 Fix xrefs, remove empty lines, fix RCS Id. 2018-02-25 10:04:04 +00:00
maxv
bbd4780fe3 Replace %rax -> %rdi, so that check_swapgs clobbers only one register. 2018-02-25 08:28:55 +00:00
pgoyette
385290482f Ooops - forgot to add NetBSD License 2018-02-25 08:27:15 +00:00
skrll
41a65159c9 KNF 2018-02-25 08:24:36 +00:00
skrll
945e7fe4c5 Use correct MID_ value 2018-02-25 08:23:09 +00:00
pgoyette
41f0512382 Add the man page for new imcsmb driver 2018-02-25 08:22:53 +00:00
pgoyette
2d5aed5404 Update for newly added imcsmb driver modules. 2018-02-25 08:21:57 +00:00
pgoyette
e51164ac34 Add new modules (for i386 and amd64 only) for the imcsmb SMBus driver. 2018-02-25 08:20:28 +00:00
pgoyette
cbf9e83cc4 Import imcsmb driver from FreeBSD. This driver allows access to the
SMBus controllers which are part of the integrated memory controllers
on certain modern Intel CPUs.  These SMBus are attached only to the
memory DIMMs, so we provide only a minimum amount of functionality.

Deliberately not included in GENERIC, as on some motherboards there
can be conflicting access between the driver and the motherboard.  The
motherboards generally will provide a mechanism to synchronize access,
but the methods are likely proprietary;  the driver provides a place
for inserting user-provided synchronization.
2018-02-25 08:19:34 +00:00
maxv
2de8e9c17a There are two places where we reload %gs:
* In setusergs. Here we can't fault. So we don't need to handle this
   case.

 * In intrfastexit for 32bit processes. This case needs to be handled,
   and we already have a label.

So use the label instead of disassembling %rip.
2018-02-25 08:09:07 +00:00
mrg
924dadf563 fix some types of netbsd arm builds. 2018-02-25 01:05:09 +00:00