1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-28 11:57:28 +00:00
freebsd/sys/sys
Konstantin Belousov 206f09eb46 Do not qualify the mcontext_t *mcp argument for set_mcontext(9) as
const.  On x86, even after the machine context is supposedly read into
the struct ucontext, lazy FPU state save code might only mark the FPU
data as hardware-owned.  Later, set_fpcontext() needs to fetch the
state from hardware, modifying the *mcp.

The set_mcontext(9) is called from sigreturn(2) and setcontext(2)
implementations and old create_thread(2) interface, which throw the
*mcp out after the set_mcontext() call.

Reported by:	dim
Discussed with:	jhb
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
2015-01-31 21:43:46 +00:00
..
_bitset.h
_bus_dma.h
_callout.h Revert for r277213: 2015-01-22 11:12:42 +00:00
_cpuset.h Bump the default size of cpuset_t masks in userland from 128 bits to 256. 2014-08-20 16:05:15 +00:00
_ffcounter.h
_iovec.h
_kstack_cache.h
_lock.h
_lockmgr.h
_mutex.h
_null.h
_pctrie.h
_pthreadtypes.h
_rmlock.h
_rwlock.h
_semaphore.h
_sigset.h
_sockaddr_storage.h
_stack.h
_stdint.h
_sx.h
_task.h
_termios.h
_timespec.h
_timeval.h
_types.h Change the type of blksize_t from uint32_t to a POSIX compliant int32_t 2015-01-04 15:26:02 +00:00
_umtx.h The current POSIX semaphore implementation stores the _has_waiters flag 2014-10-24 20:02:44 +00:00
_unrhdr.h
aac_ioctl.h
acct.h
acl.h
agpio.h
aio.h
alq.h
apm.h
assym.h
ata.h Add defines for various FIRST PARTY DMA SEND subcommands. 2014-10-22 01:35:30 +00:00
bio.h
bitset.h Merge from projects/bhyve_svm all the changes outside vmm.ko or bhyve utilities: 2014-10-20 18:09:33 +00:00
bitstring.h
blist.h
boot.h howto_names: unify declaration 2014-03-11 10:13:06 +00:00
buf_ring.h Plug memory ordering holes in buf_ring_enqueue. For at least some 2014-10-30 16:26:17 +00:00
buf.h Merge from projects/sendfile: 2014-11-23 12:01:52 +00:00
bufobj.h The vinactive() call in vgonel() may start writes for the dirty pages, 2014-12-13 16:02:37 +00:00
bus_dma.h Update NetBSD Foundation copyrights to 2-clause BSD 2014-03-18 01:40:25 +00:00
bus.h Revert device_getenv_int() for now as it duplicates resource_int_value(). 2014-12-03 15:29:53 +00:00
busdma_bufalloc.h
callout.h Revert for r277213: 2015-01-22 11:12:42 +00:00
capability.h Fix a comment in capability.h: it got renamed to capsicum.h, not 2014-03-16 21:05:00 +00:00
caprights.h
capsicum.h Add futimens and utimensat system calls. 2015-01-23 21:07:08 +00:00
cdefs.h Ensure that lint does not pick up C11 keywords (e.g. _Noreturn), even 2015-01-29 18:44:21 +00:00
cdio.h
cdrio.h
cfictl.h
chio.h
clock.h
condvar.h
conf.h Remove the d_thread_t compatibility shim provided in 5.0 to handle the 2015-01-29 19:55:33 +00:00
cons.h Prefer vt(4) for UEFI boot 2014-07-02 13:24:21 +00:00
consio.h vt(4): Add PIO_VFONT_DEFAULT ioctl to restore the default builtin font 2014-10-23 12:38:05 +00:00
copyright.h Bump copyright year. 2014-12-31 10:00:43 +00:00
counter.h
cpu.h
cpuctl.h Restore the ABI of the cpuctl(4) ioctl request CPUCTL_CPUID, use 2014-06-20 13:13:38 +00:00
cpuset.h Create a cpuset mask for each NUMA domain that is available in the 2015-01-08 15:53:13 +00:00
ctype.h
dataacq.h
devicestat.h
digiio.h
dir.h
dirent.h
disk.h Add include missed in r274154, breaking the buildworld. 2014-11-06 04:13:28 +00:00
disklabel.h Remove old ioctl use and support, once and for all. 2015-01-06 05:28:37 +00:00
diskmbr.h Add MBR EFI partition type definition 2015-01-09 19:37:12 +00:00
diskpc98.h
dkstat.h
domain.h Finish r274118: remove useless fields from struct domain. 2014-11-06 14:39:04 +00:00
dtrace_bsd.h Restore the trap type argument to the DTrace trap hook, removed in r268600. 2014-12-23 15:38:19 +00:00
dvdio.h
efi.h Remove ia64. 2014-07-07 00:27:09 +00:00
elf32.h Update ELF headers to include additional defines 2015-01-02 15:36:29 +00:00
elf64.h Update ELF headers to include additional defines 2015-01-02 15:36:29 +00:00
elf_common.h Add missing R_X86_64_ constants to elf_common.h 2015-01-21 01:12:21 +00:00
elf_generic.h
elf.h
endian.h
errno.h
eui64.h
event.h prevent doing filter ops locking for staticly compiled filter ops... 2014-11-16 01:18:41 +00:00
eventhandler.h hook userland threads suspend + resume into acpi suspend code 2015-01-27 17:33:18 +00:00
eventvar.h
exec.h Update the comments in exec.h with help from jilles. 2014-08-08 22:30:41 +00:00
extattr.h
fail.h
fbio.h Make PS3 work with the userspace kboot loader. loader.ps3 will disappear 2015-01-05 00:50:16 +00:00
fcntl.h fcntl.h: Make visible various POSIX.1-2008 features. 2014-04-17 21:29:22 +00:00
fdcio.h - Cleanups pc98 code. 2014-09-28 11:32:46 +00:00
file.h Remove SF_KQUEUE code. This code was developed at Netflix, but was not 2014-11-11 20:32:46 +00:00
filedesc.h filedesc: oops.. commit missing change to filedesc.h 2014-11-13 21:47:43 +00:00
filio.h
firmware.h
fnv_hash.h Remove ia64. 2014-07-07 00:27:09 +00:00
gmon.h
gpio.h
gpt.h After EFI support was added to the installer, it needed to allow boot 2014-07-04 15:55:32 +00:00
hash.h Add a complete implementation of MurmurHash3. Tweak both implementations 2014-10-18 22:15:11 +00:00
hhook.h For vendors like Juniper, extensibility for sockets is important. A 2014-08-18 23:45:40 +00:00
iconv.h
imgact_aout.h
imgact_binmisc.h sys/kern/imgact_binmisc.c -- free the right pointer mask vs magic 2014-04-08 22:12:01 +00:00
imgact_elf.h Improve support for XSAVE with debuggers. 2014-11-21 20:53:17 +00:00
imgact.h Allow multiple image activators to run on the same execution by changing 2014-09-04 21:31:25 +00:00
inflate.h
interrupt.h Migrate ie->ie_assign_cpu and associated code to use an int for CPU rather 2014-09-17 17:33:22 +00:00
ioccom.h
ioctl_compat.h
ioctl.h
ipc.h
ipmi.h
jail.h Add allow.mount.fdescfs jail flag. 2015-01-28 21:08:09 +00:00
joystick.h
kbio.h
kdb.h
kenv.h
kernel.h Spell raccdt in a more conventional way in a comment. 2014-05-06 10:53:51 +00:00
kerneldump.h Factor out duplicated code from dumpsys() on each architecture into generic 2015-01-07 01:01:39 +00:00
khelp.h For vendors like Juniper, extensibility for sockets is important. A 2014-08-18 23:45:40 +00:00
kobj.h
ksem.h Add a new fo_fill_kinfo fileops method to add type-specific information to 2014-09-22 16:20:47 +00:00
ksyms.h
kthread.h
ktr_class.h
ktr.h
ktrace.h
libkern.h Add some new modes to OpenCrypto. These modes are AES-ICM (can be used 2014-12-12 19:56:36 +00:00
limits.h
link_aout.h
link_elf.h Add rtld private interface for dso to detect dynamic loading 2015-01-03 18:09:53 +00:00
linker_set.h Add support for empty data sets. Data set begin and end pointers 2014-07-02 08:49:06 +00:00
linker.h The current limit of 100k for the linker hints file is getting a bit 2014-11-29 17:29:30 +00:00
lock_profile.h
lock.h Add _NEW flag to mtx(9), sx(9), rmlock(9) and rwlock(9). 2014-12-13 21:00:10 +00:00
lockf.h
lockmgr.h Fix two issues with lockmgr(9) LK_CAN_SHARE() test, which determines 2014-11-02 13:10:31 +00:00
lockstat.h
loginclass.h
mac.h
malloc.h Pull in r267961 and r267973 again. Fix for issues reported will follow. 2014-06-28 03:56:17 +00:00
mbpool.h All mbuf external free functions never fail, so let them be void. 2014-07-11 13:58:48 +00:00
mbuf.h In order to support ongoing work to implement variable-size mbufs, and 2015-01-14 23:44:00 +00:00
mchain.h
md4.h
md5.h
mdioctl.h
memdesc.h
memrange.h
mman.h Retire the unimplemented MAP_RENAME and MAP_NORESERVE flags to mmap(2). 2014-10-18 12:28:51 +00:00
module_khelp.h
module.h Reserve and ignore the a new module metadata type MDT_PNP_INFO for 2015-01-15 00:46:30 +00:00
mount.h Add functions syncer_suspend() and syncer_resume(), which are supposed 2014-12-08 16:48:57 +00:00
mouse.h
mpt_ioctl.h
mqueue.h
msg.h
msgbuf.h
mtio.h
mutex.h Add _NEW flag to mtx(9), sx(9), rmlock(9) and rwlock(9). 2014-12-13 21:00:10 +00:00
namei.h
nlist_aout.h
osd.h
param.h Remove the d_thread_t compatibility shim provided in 5.0 to handle the 2015-01-29 19:55:33 +00:00
pciio.h
pcpu.h
pctrie.h
pioctl.h
pipe.h Ignore the error from pipespace_new when creating a pipe. 2014-05-02 00:52:13 +00:00
pmc.h Add ARMv7 performance monitoring counters. 2015-01-28 16:08:07 +00:00
pmckern.h
pmclog.h
poll.h Add the ppoll() system call. 2014-11-13 05:26:14 +00:00
posix4.h
power.h
priority.h
priv.h Add procctl(2) PROC_TRACE_CTL command to enable or disable debugger 2015-01-18 15:13:11 +00:00
proc.h Add a WITNESS_WARN check to STOPEVENT() to match the one in _STOPEVENT(). 2015-01-31 02:15:16 +00:00
procctl.h Add procctl(2) PROC_TRACE_CTL command to enable or disable debugger 2015-01-18 15:13:11 +00:00
procdesc.h Correct typo in comment 2014-07-30 00:28:29 +00:00
procfs.h
protosw.h Merge from projects/sendfile: extend protocols API to support 2014-11-30 13:24:21 +00:00
ptio.h
ptrace.h
queue.h
racct.h ifdef RACCT ui_racct_foreach and struct uidinfo's ui_racct 2014-11-23 08:25:44 +00:00
random.h This is the much-discussed major upgrade to the random(4) device, known to you all as /dev/random. 2014-10-30 21:21:53 +00:00
rangelock.h
rctl.h
reboot.h
refcount.h
regression.h
resource.h
resourcevar.h The process spin lock currently has the following distinct uses: 2014-11-26 14:10:00 +00:00
rman.h Nuke the never-used RF_TIMESHARE feature, reducing the complexity of the 2014-07-16 22:18:19 +00:00
rmlock.h Add _NEW flag to mtx(9), sx(9), rmlock(9) and rwlock(9). 2014-12-13 21:00:10 +00:00
rtprio.h
runq.h
rwlock.h Add _NEW flag to mtx(9), sx(9), rmlock(9) and rwlock(9). 2014-12-13 21:00:10 +00:00
sbuf.h Unbreak the ABI by reverting r268494 until the compat shims are provided 2014-07-28 07:20:22 +00:00
sched.h
sdt.h Define _DTRACE_VERSION in sdt.h rather than setting it manually. This is 2014-09-02 23:43:06 +00:00
select.h Drop explicit unsigned from FD_SETSIZE constant 2014-04-28 13:42:41 +00:00
selinfo.h
sem.h Where appropriate, use the modern terms for the one true time base 2014-12-21 05:07:11 +00:00
sema.h
seq.h Fix misplaced read memory barrier in seq. 2014-11-03 13:14:34 +00:00
serial.h
sf_buf.h Add arch-specific macro SFBUF_PHYS_DMAP(), which should translate the 2014-08-20 08:02:38 +00:00
sglist.h
shm.h
sigio.h
signal.h
signalvar.h Make SIGSTOP working for sleeps done while waiting for fifo readers or 2015-01-18 15:03:26 +00:00
sleepqueue.h Reflect the chanages in sleepqueue.h and subr_sleepqueue.c 2014-09-22 19:14:27 +00:00
slicer.h
smp.h Create a cpuset mask for each NUMA domain that is available in the 2015-01-08 15:53:13 +00:00
snoop.h
sockbuf.h Merge from projects/sendfile: extend protocols API to support 2014-11-30 13:24:21 +00:00
socket.h Remove SF_KQUEUE code. This code was developed at Netflix, but was not 2014-11-11 20:32:46 +00:00
socketvar.h In preparation of merging projects/sendfile, transform bare access to 2014-11-12 09:57:15 +00:00
sockio.h * Add SIOCGI2C driver ioctl used to retrieve i2c info. 2014-08-29 18:02:58 +00:00
sockopt.h
sockstate.h
soundcard.h
stack.h
stat.h Add futimens and utimensat system calls. 2015-01-23 21:07:08 +00:00
statvfs.h
stdatomic.h Rename __wchar_t so it no longer conflicts with __wchar_t from clang 3.4 2014-04-01 14:46:11 +00:00
stddef.h
stdint.h
sun_disklabel.h
sx.h Add _NEW flag to mtx(9), sx(9), rmlock(9) and rwlock(9). 2014-12-13 21:00:10 +00:00
syscall.h Run make sysent. 2015-01-23 21:08:24 +00:00
syscall.mk Run make sysent. 2015-01-23 21:08:24 +00:00
syscallsubr.h Add futimens and utimensat system calls. 2015-01-23 21:07:08 +00:00
sysctl.h Add sysctl kern.proc.cwd 2014-11-06 08:12:34 +00:00
sysent.h Fix up module unload for syscall_module_handler consumers. 2014-11-01 22:36:40 +00:00
syslimits.h
syslog.h
sysproto.h Run make sysent. 2015-01-23 21:08:24 +00:00
systm.h On some Intel CPUs with a P-state but not C-state invariant TSC the TSC 2015-01-05 20:44:44 +00:00
taskqueue.h Add a new taskqueue setup method that takes a cpuid to pin the 2014-05-24 20:37:15 +00:00
terminal.h vt(4): Adjust the cursor position after changing the window size 2014-11-01 17:05:15 +00:00
termios.h
thr.h
tiio.h
time.h Where appropriate, use the modern terms for the one true time base 2014-12-21 05:07:11 +00:00
timeb.h
timeet.h Add support for event timers whose clock frequency can change while running. 2014-04-02 15:56:11 +00:00
timeffc.h
timepps.h
timers.h
times.h
timespec.h
timetc.h On some Intel CPUs with a P-state but not C-state invariant TSC the TSC 2015-01-05 20:44:44 +00:00
timex.h This is a white-space/comment cleanup commit as a precursor for 2014-09-19 07:44:49 +00:00
tree.h Provide individual prototype and generate macros for the red-black tree. 2015-01-24 12:43:36 +00:00
tty.h
ttycom.h
ttydefaults.h
ttydevsw.h
ttydisc.h
ttyhook.h
ttyqueue.h
turnstile.h
types.h
ucontext.h Do not qualify the mcontext_t *mcp argument for set_mcontext(9) as 2015-01-31 21:43:46 +00:00
ucred.h Extend struct ucred with group table. 2014-11-05 02:08:37 +00:00
uio.h
umtx.h The current POSIX semaphore implementation stores the _has_waiters flag 2014-10-24 20:02:44 +00:00
un.h
unistd.h
unpcb.h Replace 4.4BSD Lite's unix domain socket backpressure hack with a cleaner 2014-03-13 18:42:12 +00:00
user.h Add sysctl kern.proc.cwd 2014-11-06 08:12:34 +00:00
utsname.h
uuid.h
vdso.h Update the vdso timehands only via tc_windup(). 2015-01-20 03:54:30 +00:00
vmem.h
vmmeter.h Rename global cnt to vm_cnt to avoid shadowing. 2014-03-22 10:26:09 +00:00
vnode.h Add VN_OPEN_NAMECACHE flag for vn_open_cred(9), which requests that 2014-12-21 13:32:07 +00:00
vtoc.h
wait.h
watchdog.h