Age | Commit message (Collapse) | Author |
|
ok guenther@
|
|
during CMSG_DATA SCM_RIGHTS fd transfers. If this is exceeded,
return EMFILE.
ok claudio guenther gilles
|
|
compatibility with FreeBSD/NetBSD.
Also rename SIMPLEQ_REMOVE_NEXT to SIMPLEQ_REMOVE_AFTER.
ok mikeb@ guenther@
|
|
to identify ktrace files. kdump(1) will now refuse to operate on
trace data without the start record and as a bonus will print only
PID, unless an -H flag is specified to print PID/TID pairs. Initial
diff, input from and ok deraadt, guenther.
|
|
count processes instead of threads. New sysctl()s KERN_NTHREADS and
KERN_MAXTHREAD count and limit threads. The nprocs and maxproc kernel
variables are replaced by nprocess, maxprocess, nthreads, and maxthread.
ok tedu@ mikeb@
|
|
for the tick that we're already in the middle of.
noted and tested by aja; ok kurt@
|
|
|
|
the 0x55aa signature. Don't try FAT detection if we have found an
OpenBSD MBR partition. Don't try to read a disklabel from 'bare'
FAT media. There can't be one.
Finally, don't allow the writing of a disklabel on 'bare' FAT media.
There is no safe spot for it, and splatting it in the middle of the
FAT structures has not proved helpful.
|
|
ok miod@
|
|
results in bogus total times, as reported by numerous ports people.
ok miod@
|
|
'fattest' to 'mbrtest'. No change to .o.
|
|
|
|
read byte count instead of the written byte count.
pointed out by paulm at tetrardus.net, ok dcoppa@
|
|
at the same time increase said function's max RLE page count return value.
Add hooks in the right places to call the hibernate suspend and resume
routines, so that we can enable hibernation with a HIBERNATE option
line in GENERIC and appropriate acpi.c goo.
discussed on and off with deraadt@ over the past few months
|
|
ok jsing guenther miod
|
|
can terminate. a new ref on the kqueue itself allows us to free it
properly in that case. wakeups were missing too (for both kevent and poll).
similar to netbsd pr46248. fixes a number of threaded ports.
this version of the fix from matthew.
ok tedu guenther matthew
|
|
of per-rthread. Handling of per-thread tick and runtime counters
inspired by how FreeBSD does it.
ok kettenis@
|
|
structs timespec, timeval, sigaction, and rlimit.
ok otto@ jsing@
|
|
no objection from mcbride@ krw@ markus@ deraadt@
|
|
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
|