| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
appropriate default values. Document it in the manpage.
Submitted by: Mark Santcroos <marks@ripe.net>
Reviewed by: imp, dfr, bde
Abstains: bde
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Without this fix it is possible to cheat policies like:
- sysctl security.bsd.see_other_[gu]ids=0,
- mac_seeotheruids(4),
- jail(2)
and get full processes list with their arguments.
This problem exists from revision 1.62 of kern_proc.c when it was
introduced.
Reviewed by: nectar, rwatson.
|
|
|
|
|
| |
Inspired by: Day spent hiking to hot springs in Taiwan
Powered by: Asia BSDCon 2004
|
|
|
|
|
|
|
|
| |
woken up in the middle of sleeping.
PR: misc/64347
Reviewed by: tjr
MFC after: 7 days
|
| |
|
|
|
|
|
|
|
|
| |
as the process that opens tun_softc can exit before the file
descriptor is closed.
Taiwan experience provided by: keichii
Crashing breakers provided by: Chia-liang Kao <clkao@clkao.org>
|
|
|
|
|
|
|
| |
(tap_pid, tap_flags). if_tap should now be entirely MPSAFE.
Committed from: Bamboo house by ocean in Taiwan
Tropical paradise provided by: Chia-liang Kao <clkao@clkao.org>
|
|
|
|
|
|
| |
Man pages fixes.
Submitted by: Stanislav A. Svirid <count@riss-telecom.ru>
|
|
|
|
|
|
|
|
|
|
| |
group block locked. If filesystem has any active snapshots, bawrite
can come back trying to allocate new snapshot data block from the same
cylinder group and cause panic due to recursive lock attempt.
PR: 64206
Reviewed by: mckusick
Tested by: pjd
|
|
|
|
|
| |
The result isn't quite knf, but it's knfer than the original, and far
more consistent.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
dependent function by the same name and a machine-independent function,
sf_buf_mext(). Aside from the virtue of making more of the code machine-
independent, this change also makes the interface more logical. Before,
sf_buf_free() did more than simply undo an sf_buf_alloc(); it also
unwired and if necessary freed the page. That is now the purpose of
sf_buf_mext(). Thus, sf_buf_alloc() and sf_buf_free() can now be used
as a general-purpose emphemeral map cache.
|
|
|
|
|
|
|
|
|
| |
might be enqueued on a sleep queue but not be asleep when the timeout fires
if it is blocked on a lock trying to check for pending signals before going
to sleep. In the case of fixing up the TDF_TIMEOUT race, however, the
thread must be marked asleep.
Reported by: kan (the bogus one)
|
| |
|
|
|
|
|
| |
'generic' OpenFirmware nexus nodes, since it uses bus_generic_probe.
Maybe the cpu device probe should be MD.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
mini-layer. I don't have time to bing it forward into the GEOM world, and
no one else has stepped forward to claim it. It'll be in the Attic for safe
keeping for now.
|
|
|
|
|
|
|
|
| |
Use kern_open() to implement creat() rather than taking the long route
through open(). Mark creat as MPSAFE.
While I'm at it, mark nosys() (syscall 0) as MPSAFE, for all the
difference it will make.
|
| |
|
|
|
|
| |
linprocfs doesn't support the old mount interface.
|
|
|
|
| |
linprocfs filesystems.
|
|
|
|
| |
and mntonname are both MNAMELEN characters long, not MFSNAMELEN.
|
|
|
|
|
|
|
|
|
|
|
|
| |
set it to avoid the need for a bunch of code that tests whether or
not the lock member is set to REQ_WIRED in order to determine which
length member should be used.
Fix another bug in the oldlen return value code.
Fix a potential wired memory leak if a sysctl handler uses
sysctl_wire_old_buffer() and returns an EAGAIN error to trigger
a retry.
|
|
|
|
|
|
|
|
|
|
|
|
| |
If vslock() returns ENOMEM, sysctl_wire_old_buffer() should set
wiredlen to zero and return zero (success) so that the handler will
operate according to sysctl(3):
The size of the buffer is given by the location specified by
oldlenp before the call, and that location gives the amount
of data copied after a successful call and after a call that
returns with the error code ENOMEM.
The handler will return an ENOMEM error because the zero length
buffer will overflow.
|
| |
|
|
|
|
|
|
| |
the kernel wait4() made these all panic() implementations otherwise.
- The i386 linux_ptrace() syscall is MP safe. Alpha was already marked
MP safe.
|
|
|
|
| |
MFC after: 2 weeks
|
|
|
|
| |
hardware with non-sucky clocks.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
ptrace_set_pc(), and cpu_ptrace() so that those functions are free to
acquire Giant, sleep, etc. We already do a PHOLD/PRELE around them so
that it is safe to sleep inside of these routines if necessary. This
allows ptrace() to be marked MP safe again as it no longer triggers lock
order reversals on Alpha.
Tested by: wilko
|
|
|
|
|
|
|
|
|
| |
snprintf() and vsnprintf() in FreeBSD kernel land).
This is needed by the Intel Centrino 2200BG driver. Unfortunately, this
driver still doesn't work right with Project Evil even with this tweak,
but I'm unable to diagnose the problem since I don't have access to a
sample card.
|
|
|
|
|
| |
Requested by: bde
Approved by: bms(mentor)
|
| |
|
|
|
|
|
|
|
| |
This functionality was a misfeature, sysctl was added and turned off by
default just to check if nobody complains.
Reviewed by: rwatson
|
|
|
|
|
|
| |
This adds support for cardbus ATA/SATA controllers. I get roughly the
same transfer speeds as on true PCI controllers. Nice to be able to add
a couble of "real" disks to a laptop :)
|
| |
|
|
|
|
| |
Remove COMPAT_OLDISA
|
| |
|
|
|
|
|
|
| |
vslock(), mlock(), and munlock().
Reviewed by: bde
|
|
|
|
| |
Pointed out by: bde
|
|
|
|
|
|
|
|
|
| |
exceptions:
Retain the recently added vslock() error return.
The type of the len argument should be size_t, not u_int.
Suggested by: bde
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
add tapmtx, which protects globale variables.
Notes:
- The EBUSY check in MOD_UNLOAD may be subject to a race. Moving the
event handler unregister inside the mutex grab may prevent that race.
- Locking of global variables safely is now possible because tapclones
is only modified when the module is loading or unloading, thanks to
phk's recent chang to clone_setup().
- softc locking to follow.
|
| |
|
|
|
|
|
|
| |
255; USB keychains exist that use 256 as the number of heads. This
check has also been removed in Darwin (along with most of the other
head/sector sanity checks).
|
|
|
|
|
|
|
| |
Only cy, bs and wd in the tree still use it. I have a replacement for
cy that I need to test on ISA and PCI cards. bs and wd are pc98 only
drivers that appear to no longer be necessary. I'll be removing them
when I hear back from the pc98 people.
|
| |
|
|
|
|
| |
I have for it works.
|