Age | Commit message (Collapse) | Author |
|
is no longer providing significant value. The random subsystem is in
pretty good state, and moments later userland will feed the dmesg.
ok jsing
|
|
point at which everything it does is safe, including msg buffer access.
ok kettenis jsing
|
|
|
|
ok tedu@
|
|
to splice multiple UDP packets in the m_nextpkt list. Some profiling
with TCP splicing showed that checking so_rcv.sb_mb is wrong. It
causes several useless runs through the loop. Better check for
nextrecord which contains the original m_nextpkt value of the mbuf.
OK mikeb@
|
|
bit field names into the header file below the definitions to keep
them in sync.
OK mikeb@ mpi@
|
|
|
|
spotted by kettenis
|
|
compat pointed out by miod), and place it inside the ELF .openbsd.randomdata
segment. Inside main(), only re-initialize the guard if the bootblocks
failed to initialize it for us.
|
|
and do not need microtime.
|
|
arc4random() much earlier. Leading to random pids for anything
besides 0 and 1.
|
|
conditionals you did on timeout_pending can now be done on timeout_del
now that it returns what it did.
ok and a very good fix from kettenis@
|
|
|
|
compat. This will be used to implement tcgetsid() in the future.
OK kettenis@ guenther@
|
|
|
|
formatting into a local buffer.
ok miod@
|
|
ok deraadt@
|
|
|
|
|
|
who is slacking to much.
ok dlg@
|
|
with input from and ok kettenis, deraadt
|
|
once brelse() is called and the buffer is B_INVAL.
ok jsing@ krw@
|
|
kernel resumes normal (non-cold, able to run processes, etc) operation.
Previously we were relying on specific DVACT_RESUME op's in drivers
creating callback/threads themselves, but that has become too common,
indicating the need for a built-in mechanism.
ok dlg kettenis, tested by a sufficient amount of people
|
|
use TAILQ_*_SAFE more than might be needed.
Bulk ports build by sthen@ showed nobody sticking their fingers
so deep into the kernel.
Feedback and suggestions from millert@. ok jsing@
|
|
|
|
the namecache. Changing the v_type between cache_enter() and cache_purge()
results in bad things happening.
ok beck@
|
|
ok beck@
|
|
in this call by returning 1, or a previous call by returning 0. this makes
it easy to refcount the stuff we're scheduling a timeout for, and brings
the api in line with what task_add(9) provides.
ok mpi@ matthew@ mikeb@ guenther@
|
|
no current code there to add or remove them. such code was put in
17 years ago, disabled 14 years ago, and removed 11 years ago, so
i suspect we dont really need it or the goop to support it.
very ok miod@
|
|
resurrection of the bad idiom in the tree.
sufficient review by miod, kettenis, tedu
|
|
|
|
ok guenther
|
|
|
|
making format-string vulnerabilities exploitable; inspired by similar
change made by Kees Cook to Linux; ok deraadt@
|
|
overloading of that thing.
the only hardware that seems to care about cylinders in our tree
are floppy drives, and the drivers for those calculate their own
cylinders from logical block addresses and ignore whatever the rest
of the kernel thought b_cylinders should be.
most of this diff is moving the floppy drivers to using b_resid as
a resid and using that as part of the calculation for real cylinder
values.
the rest of the diff is getting rid of the useless assignments to
b_cylinder that dont get used by anything (now that disksort is
gone).
ok miod@
|
|
safely remove disksort.
most hardware and pretty much all of the kernel has moved to logical
block addressing when dealing with disks, so the assumptions disksort
was built against arent useful these days. it also has bad edge cases
with lots of sequential writes being able to starve other io requests
in the system. these issues have been addressed by becks nscan
implementation, which disksort was previously deprecated in favour
of.
this removes the guts of disksort and the bufq wrapper around it.
ok miod@
|
|
|
|
ok matthew guenther mikeb
|
|
|
|
when malloc'ing struct klist *.
Similar diff found upstream:
http://svnweb.freebsd.org/base?view=revision&revision=197575
Found by LLVM/Clang Static Analyzer.
ok tedu@ krw@ guenther@
|
|
anyway as we move toward a streamed implmentation)
|
|
aren't being passed to them. Fix UVM_WAIT() to not pass PNORELOCK to
tsleep(), as that flag only does something with msleep().
ok beck@ dlg@
|
|
the rx ring was last allowed to grow and then assigned to it. it
is erroneous to do this because mcl_grown is a u_int and ticks is an
int.
this makes mcl_grown an int, and follows the idiom in kern_timeout.c
of going "thing - ticks < diff", which better copes with ticks
wrapping around and being used to calculate relative intervals.
ok pirofti@ guenther@
|
|
is now possible to move the chunktable right after the chunks, not at
the end of the swap.
ok mlarkin
|
|
|
|
of absolute, so that we can add range checking.
ok mlarkin
|
|
|
|
|
|
|
|
easier to read now.
ok mlarkin
|