| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Add no zero mapping feature, disabled by default. [EN-09:05]
MFC 178913,178914,179242,179243,180336,180340 to 6.x:
- Fix kqueue pipe race conditions. [SA-09:13]
MFC r192301 to 7.x; 6.x has slightly different fix:
- Fix devfs / VFS NULL pointer race condition. [SA-09:14]
Security: FreeBSD-SA-09:13.pipe
Security: FreeBSD-SA-09:14.devfs
Errata: FreeBSD-EN-09:05.null
Submitted by: kib [SA-09:13] [SA-09:14]
Submitted by: bz [EN-09:05]
In collaboration with: jhb, kib, alc [EN-09:05]
Approved by: so (simon)
Notes:
svn path=/releng/6.3/; revision=197715
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
virtual-to-physical page lookups. [09:09]
Add missing permissions check for SIOCSIFINFO_IN6 ioctl. [09:10]
Fix buffer overflow in "autokey" negotiation in ntpd(8). [09:11]
Approved by: so (cperciva)
Approved by: re (not really, but SVN wants this...)
Security: FreeBSD-SA-09:09.pipe
Security: FreeBSD-SA-09:10.ipv6
Security: FreeBSD-SA-09:11.ntpd
Notes:
svn path=/releng/6.3/; revision=193893
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
long commands into multiple requests. [08:12]
Avoid calling uninitialized function pointers in protocol switch
code. [08:13]
Merry Christmas everybody...
Approved by: so (cperciva)
Approved by: re (kensmith)
Security: FreeBSD-SA-08:12.ftpd, FreeBSD-SA-08:13.protosw
Notes:
svn path=/releng/6.3/; revision=186405
|
| |
|
|
|
|
|
|
| |
Security: FreeBSD-SA-08:03.sendfile
Approved by: so (simon)
Notes:
svn path=/releng/6.3/; revision=176272
|
| |
|
|
|
|
|
|
|
|
|
| |
Check for the program headers alignment of the ELF images before
dereferencing. Unaligned access could cause panic on strict alignment
architectures.
Approved by: re (kensmith)
Notes:
svn path=/releng/6.3/; revision=174408
|
| |
|
|
|
|
|
|
|
|
| |
Apply a workaround for the unkillable jail problem where some devices created
within the jail are never freed.
Approved by: re (kensmith)
Notes:
svn path=/releng/6.3/; revision=174389
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Call NET_LOCK_GIANT/NET_UNLOCK_GIANT around calls to protocol drain
methods in mb_reclaim(). This is not an MFC, as debug.mpsafenet is
not present in 7.x or 8.x. In practice, this likely resulted in
instability only on kernels with INVARIANTS, as the protocol drain
paths are generally MPSAFE.
PR: 116034
Reported by: Dan Lukes <dan@obluda.cz>
Discussed with: kmacy, alc
Approved by: re (kensmith)
Tested by: Eugene Grosbein <eugen at grosbein dot pp dot ru>
Notes:
svn path=/releng/6.3/; revision=174279
|
| |
|
|
|
|
|
| |
Approved by: re (kensmith)
Notes:
svn path=/releng/6.3/; revision=173992
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The kernel uses two ways to write data on a pipe:
o buffered write, for chunks smaller than PIPE_MINDIRECT bytes
o direct write, for everything else
A call to writev(2) may receive struct iov of various size and the
kernel may have to switch from one solution to the other. Before doing
this, it must wake reader processes and any select/poll/kqueue up.
This commit fixes a bug where select/poll/kqueue are not triggered
when switching from buffered write to direct write. It adds calls to
pipeselwakeup().
I give more details on freebsd-arch@:
http://lists.freebsd.org/pipermail/freebsd-arch/2007-September/006790.html
This should fix issues with Erlang (lang/erlang) and kqueue.
Reported by: Rickard Green (Erlang)
Approved by: re (kensmith)
Notes:
svn path=/releng/6.3/; revision=173908
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Test that p_textvp is non-NULL be dereferencing, as no executable vnode is
set for kernel processes.
Reported by: Skip Ford <skip at menantico dot com>
Approved by: re (kensmith)
Notes:
svn path=/stable/6/; revision=173885
|
| |
|
|
| |
Notes:
svn path=/stable/6/; revision=173713
|
| |
|
|
|
|
|
| |
Approved by: re (kensmith)
Notes:
svn path=/stable/6/; revision=173656
|
| |
|
|
| |
Notes:
svn path=/stable/6/; revision=173383
|
| |
|
|
|
|
|
| |
bus_alloc_resources() convenience API
Notes:
svn path=/stable/6/; revision=173363
|
| |
|
|
|
|
|
| |
audited even if it's invalid.
Notes:
svn path=/stable/6/; revision=173333
|
| |
|
|
|
|
|
| |
in the the resource list getting missorted.
Notes:
svn path=/stable/6/; revision=173288
|
| |
|
|
|
|
|
|
| |
- Don't do the interrupt storm protection stuff for software interrupt
handlers.
Notes:
svn path=/stable/6/; revision=173156
|
| |
|
|
|
|
|
| |
Spotted out by: delphij
Notes:
svn path=/stable/6/; revision=172717
|
| |
|
|
|
|
|
| |
what is expected.
Notes:
svn path=/stable/6/; revision=172714
|
| |
|
|
|
|
|
|
|
| |
shared lookups are enabled. This closes a few races including a race where
concurrent opens of a fifo could result in different v_fifoinfo structures
in different threads.
Notes:
svn path=/stable/6/; revision=172428
|
| |
|
|
|
|
|
|
|
|
|
| |
and always require the queue to be specified to reduce diffs with HEAD.
These APIs are internal APIs only used to implement higher level primitives
such as locks and condition variables.
Approved by: alfred
Notes:
svn path=/stable/6/; revision=172355
|
| |
|
|
|
|
|
|
| |
as well as a few other changes (whitespace, style, etc.) to reduce diffs
with HEAD.
Notes:
svn path=/stable/6/; revision=172352
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
where a reader blocked on a lock with no owner and just assert that it
never happens like HEAD.
- Actually set td->td_tsqueue to the sub-queue of a turnstile that a
thread is actually enqueued to. Otherwise, the kernel would always
think that threads were on the queue for exclusive (write) waiters
(queue 0). Thus, if the priority of a thread waiting on a read lock
was adjusted while it was waiting it could result in corrupting the
queue of waiting threads.
Notes:
svn path=/stable/6/; revision=172351
|
| |
|
|
|
|
|
| |
malloc(9).
Notes:
svn path=/stable/6/; revision=172350
|
| |
|
|
|
|
|
| |
alignment padding to restore the ABI of 'struct thread' in 6.x.
Notes:
svn path=/stable/6/; revision=172349
|
| |
|
|
|
|
|
| |
- Trim some extra includes.
Notes:
svn path=/stable/6/; revision=172348
|
| |
|
|
| |
Notes:
svn path=/stable/6/; revision=172347
|
| |
|
|
|
|
|
|
| |
lock_destroy() and adding a missing #include so that NO_ADAPTIVE_RWLOCKS
is honored.
Notes:
svn path=/stable/6/; revision=172346
|
| |
|
|
|
|
|
| |
(kern/init_main.c rev. 1.263)
Notes:
svn path=/stable/6/; revision=172171
|
| |
|
|
|
|
|
|
|
| |
however FreeBSD 6 needs this as a function to preserve binary compat.
Pointed out by: kmacy
Notes:
svn path=/stable/6/; revision=172140
|
| |
|
|
|
|
|
|
|
|
|
| |
turnstile_unpend_queue() drops the lock that turnstile_release()
does. This was triggering a mtx_unlock() of an already unlocked
mutex panic.
Obtained from: Juniper Networks
Notes:
svn path=/stable/6/; revision=172059
|
| |
|
|
| |
Notes:
svn path=/stable/6/; revision=172051
|
| |
|
|
|
|
|
|
| |
Reviewed by: attilio, jhb
Obtained from: Juniper Networks
Notes:
svn path=/stable/6/; revision=172047
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix a kernel panic based on receiving an ICMPv6 Packet too Big message.
(MFC was planned but has been missed)
PR: 99779
Submitted by: Jinmei Tatuya
Reviewed by: clement, rwatson
Approved by: gnn (mentor)
src/sys/kern/uipc_socket.c: 1.280
Notes:
svn path=/stable/6/; revision=171938
|
| |
|
|
| |
Notes:
svn path=/stable/6/; revision=171915
|
| |
|
|
| |
Notes:
svn path=/stable/6/; revision=171882
|
| |
|
|
|
|
|
|
| |
SEMUNDO_LOCK(). This would lead to an occasional hang with a cycle in
semu_list.
Notes:
svn path=/stable/6/; revision=171789
|
| |
|
|
|
|
|
|
|
|
|
| |
Change kn_hook value from cdev to struct tty to avoid dereferencing freed
cdev.
In ttygone(), wake up select(), sigio and kevent() users in addition
to the queue sleepers.
Return EV_EOF from kevent filters if TS_GONE is set.
Notes:
svn path=/stable/6/; revision=171708
|
| |
|
|
|
|
|
| |
PRIO_USER case, and possibly also other places that deference p_ucred.
Notes:
svn path=/stable/6/; revision=171504
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
- In preparation of further linuxulator fixes MFC kern_descrip.c rev 1.296 and
syscallsubr.h rev 1.41 by jhb:
Add a kern_close() so that the ABIs can close a file descriptor w/o having
to populate a close_args struct and change some of the places that do.
Tested by: scf (i386, as part of a mega-MFC-patch),
Arno J. Klaassen <arno@heho.snv.jussieu.fr> (amd64)
Notes:
svn path=/stable/6/; revision=171300
|
| |
|
|
|
|
|
| |
ktrace vnode during execve().
Notes:
svn path=/stable/6/; revision=171035
|
| |
|
|
|
|
|
|
|
| |
longs from 32 bit processes.
Submitted by: jhb
Notes:
svn path=/stable/6/; revision=171012
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
amd64 including:
- Add 32-bit wrappers for thr_new(), thr_suspend(), and the umtx system
calls.
- Add support to amd64 for constructing thread upcalls for 32-bit
processes.
- Leave %fs and %gs alone in the signal trampoline for 32-bit processes on
amd64.
- Add 'casuword32()' to amd64 and ia64.
Tested by: emaste
Notes:
svn path=/stable/6/; revision=170945
|
| |
|
|
|
|
|
|
|
|
| |
rev. 1.521 of src/sys/kern/vfs_bio.c
rev. 1.477 of src/sys/sys/proc.h
Disable nesting of BOP_BDFLUSH().
Notes:
svn path=/stable/6/; revision=170555
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
rev. 1.11 of src/sys/geom/geom_vfs.c
rev. 1.516 of src/sys/kern/vfs_bio.c
rev. 1.35 of src/sys/nfs4client/nfs4_vnops.c
rev. 1.272 of src/sys/nfsclient/nfs_vnops.c
rev. 1.195 of src/sys/sys/buf.h
rev. 1.18 of src/sys/sys/bufobj.h
rev. 1.73 of src/sys/ufs/ffs/ffs_extern.h
rev. 1.133 of src/sys/ufs/ffs/ffs_snapshot.c
rev. 1.324 of src/sys/ufs/ffs/ffs_vfsops.c
Avoid dealing with buffers in bdwrite() that are from other side of
snaplock divisor in the lock order then the buffer being written. Add
new BOP, bop_bdwrite(), to do dirty buffer flushing for same vnode in
the bdwrite(). Default implementation, bufbdflush(), refactors the code
from bdwrite(). For ffs device buffers, specialized implementation is
used.
This commit changes KPI/KBI, thus recompilation of out of tree kernel
modules is required.
Approved by: re (kensmith)
Notes:
svn path=/stable/6/; revision=170553
|
| |
|
|
| |
Notes:
svn path=/stable/6/; revision=170383
|
| |
|
|
| |
Notes:
svn path=/stable/6/; revision=170382
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
rev. 1.438 of sys/kern/vfs_syscalls.c,
rev. 1.77 of sys/sys/filedesc.h:
Mark the filedescriptor table entries with VOP_OPEN being performed for them
as UF_OPENING. Disable closing of that entries. This should fix the crashes
caused by devfs_open() (and fifo_open()) dereferencing struct file * by
index, while the filedescriptor is closed by parallel thread.
RELENG_6 testing by: Mark Kane <mark at mkproductions org>
Notes:
svn path=/stable/6/; revision=170092
|
| |
|
|
| |
Notes:
svn path=/stable/6/; revision=169940
|
| |
|
|
| |
Notes:
svn path=/stable/6/; revision=169917
|