Age | Commit message (Collapse) | Author |
|
an SCM_RIGHTS message may sleep. Bits and pieces from NetBSD with some
simplifications by yours truly.
Fixes the "receive 1" panic seen by many.
ok guenther@, claudio@
|
|
|
|
ok tedu@
|
|
|
|
the main thread exiting. c.f. regress/sys/kern/main-thread-exited/
|
|
no oks (it is really a pain to review properly)
extensively tested, I'm confident it'll be stable
'now is the time' from several icb inhabitants
Diff provides:
- ability to specify different allocators for different regions/maps
- a simpler implementation of the current allocator
- currently in compatibility mode: it will generate similar addresses
as the old allocator
|
|
in previous rev.
|
|
- move the P_TRACED and P_INEXEC flags, and p_oppid, p_ptmask, and
p_ptstat member from struct proc to struct process
- sort the PT_* requests into those that take a PID vs those that
can also take a TID
- stub in PT_GET_THREAD_FIRST and PT_GET_THREAD_NEXT
ok kettenis@
|
|
ok deraadt@
|
|
or fd_{lo,hi}maps members, or when doing a read for a write. Fixes hangs
when an rthreaded processes sleeps while copying the fd table for fork()
and catches another thread with the lock.
ok jsing@ tedu@
|
|
actually doing so before using them
OK deraadt@, krw@
|
|
Found and diagnosed by Alexis Fouilhe hyjial at gmail dot com
input miod@ guenther@
ok guenther@
|
|
for the thread handling it. Otherwise (i.e., no sig divert), prefer
to deliver a process-aimed signal to some thread which doesn't have
the signal blocked.
ok tedu@
|
|
the message less scary and print out the failing devices to improve
troubleshooting.
ok jsing@
|
|
ok millert@
|
|
callback for this disk.
Fixes an issue found by krw on macppc.
ok krw@
|
|
particularly the "consume the signal you just sent" hang, and putting
the wait queues in userspace.
Do cancellation handling in pthread_cond_*wait(), pthread_join(),
and sem_wait().
Add __ prefix to thr{sleep,wakeup,exit,sigdivert}() syscalls; add
'abort" argument to thrsleep to close cancellation race; make
thr{sleep,wakeup} return errno values via *retval to avoid touching
userspace errno.
|
|
to locate the root via DUID.
ok krw@
|
|
|
|
select root.
|
|
via the boot device. This allows root on softraid to work on most
architectures. For architectures that cannot clearly identify their boot
device, the DUID of the boot disk can still be passed from the boot loader,
as is already done for amd64 and i386.
Based on a suggestion from kettenis@
ok krw@
|
|
us to play some tricks in setroot().
|
|
No binary change.
ok mikeb@ deraadt@ guenther@
|
|
and add an 'rtableid' keyword to ps.
Add rtable id, thread id, and socket splice info to struct kinfo_file2
and make fstat display socket splice information.
Remove old KVM_PROC2 and kinfo_proc2 interfaces; bump libkvm major
Socket splice info and corrections from bluhm@ "Lovely" deraadt@
|
|
fix is to manipulate the name cache structures before
potentially sleeping on a vn_lock(). This avoids the race of
the ncp entry being recycled while we are asleep.
run in snaps and on ftp.openbsd.org for months
ok thib@
|
|
|
|
if we correctly read and validated the disklabel. Always check that this
flag is set before using the DUID from the disklabel.
Discussed with deraadt@
ok krw@
|
|
generate one.
ok krw@
|
|
struct process; KTRFAC_ACTIVE becomes P_INKTR. Also, save the credentials
used to open the file in sys_ktrace() and use them for all writes to the
vnode.
much feedback and ok jsing@
|
|
when exec succeeds.
ok jsing@
|
|
ok guenther deraadt
|
|
linux bits compiled on i386 by sebastia@, mikeb@ ok
|
|
when the macro can change without automatically fixing the comment.
instead add a diagnostic that checks that the biggest cluster size is
always MAXMCLBYTES.
requested by and ok kettenis@
|
|
cluster the generic network stack will be able to give you.
it also recognises that external storage on an mbuf may be bigger than
MCLBYTES. its only when m_pullup or m_pulldown need to allocate
another cluster that they now check the len argument, and now they
do it against MAXMCLBYTES.
this is required for me to do pfsync on jumbo frames as the m_pulldown
for the subregions fail beyond MCLBYTES into the packet.
ok deraadt@ mikeb@ henning@ blambert@
manpage changes ok jmc@
|
|
ok deraadt@ claudio@ blambert@ mikeb@
|
|
|
|
ok mlarkin
|
|
|
|
LLONG_MAX instead of SSIZE_MAX
ok deraadt@
|
|
ok mlarkin
|
|
internals. this fixes a panic i got where a network interrupt tried to use
the mbuf pools mutex while pool_reclaim_all already held it which lead
to the same cpu trying to lock that mutex twice.
ok deraadt@
|
|
copied area, and initialize it properly in the FORK_THREAD case.
This restores the behavior of a forked process inheriting its parent's
signal stack.
ok guenther@
|
|
RLE pages in hibernate.
ok deraadt@
|
|
not zero retval when returning an error, so don't copy it back to a
ktracer in this case.
dropped by R00T-DUDE in his "Unusual and Hilarious Vulnerabilities" talk
at Ruxcon 2011; ok guenther@ miod@
|
|
rle.
noticed by jasper
|
|
- panic strings already get printed with a '\n', so remove the extra ones
ok mlarkin@
|
|
being written to an output buffer
|
|
pages that are free
|
|
discussed with deraadt@
|
|
past, pull that code out seperately.
ok guenther miod
|