| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
a socket from a regular socket to a listening socket able to accept new
connections. As part of this state transition, solisten() calls into the
protocol to update protocol-layer state. There were several bugs in this
implementation that could result in a race wherein a TCP SYN received
in the interval between the protocol state transition and the shortly
following socket layer transition would result in a panic in the TCP code,
as the socket would be in the TCPS_LISTEN state, but the socket would not
have the SO_ACCEPTCONN flag set.
This change does the following:
- Pushes the socket state transition from the socket layer solisten() to
to socket "library" routines called from the protocol. This permits
the socket routines to be called while holding the protocol mutexes,
preventing a race exposing the incomplete socket state transition to TCP
after the TCP state transition has completed. The check for a socket
layer state transition is performed by solisten_proto_check(), and the
actual transition is performed by solisten_proto().
- Holds the socket lock for the duration of the socket state test and set,
and over the protocol layer state transition, which is now possible as
the socket lock is acquired by the protocol layer, rather than vice
versa. This prevents additional state related races in the socket
layer.
This permits the dual transition of socket layer and protocol layer state
to occur while holding locks for both layers, making the two changes
atomic with respect to one another. Similar changes are likely require
elsewhere in the socket/protocol code.
Reported by: Peter Holm <peter@holm.cc>
Review and fixes from: emax, Antoine Brodin <antoine.brodin@laposte.net>
Philosophical head nod: gnn
|
| |
|
|
|
|
|
|
|
|
|
| |
possible that the same packet would show up multiple times. This poses some
constraints on the TBD locking for snc(4) (see comment).
Obtained from: DragonFlyBSD
Submitted by: Joerg Sonnenberger
Reviewed by: rwatson
|
|
|
|
|
|
|
|
|
| |
renamed interfaces.
PR: kern/77645
Reported by: Harald Schmalzbauer <harryNOschmalzbauerSPAMde>
Reviewed by: yongari
MFC after: 3 days
|
|
|
|
|
|
|
|
|
|
|
| |
was a bad idea, but since it is done like this in the vendor source we keep
it around for older versions. As a safe guard against future misuse we don't
even define CALLOUT_INITIALIZER anymore.
This fixes ALTQ after callout_init_mtx() and takes altq_var.h off the vendor
branch.
Submitted by: Divacky Roman <xdivac02NOstud.fit.vutbrSPAMcz> (w/ changes)
|
|
|
|
|
|
| |
make sure to call vn_finished_write(mp) before returning.
MFC after: 3 days
|
| |
|
|
|
|
|
|
| |
- Protect against negative values as array indexes.
Submitted by: Coverity Prevent analysis tool
|
|
|
|
| |
Submitted by: Coverity Prevent analysis tool
|
|
|
|
| |
Submitted by: Coverity Prevent analysis tool
|
|
|
|
| |
Submitted by: Coverity Prevent analysis tool
|
|
|
|
|
| |
Submitted by: Coverity Prevent analysis tool
MFC After: 3 days
|
|
|
|
| |
the multi-setting EST is preferable.
|
|
|
|
| |
MFC after: 3 days
|
|
|
|
|
|
|
| |
which is long gone.
Discussed with: mckusick
Reviewed by: phk
|
|
|
|
| |
workaround that does not rely on vfs_start().
|
|
|
|
|
|
|
| |
specific mappings from locore.S, re-organize iq31244_machdep.c to work with
the new locore.S
Spotted out by: jmg
|
|
|
|
|
| |
appears to fix the ath problem that had been reported. I don't see how
it can, so there's likely some other hidden bug.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
on the previous generation of Pentium-M processors (Banias). Support for
Dothan and later processors involves working with acpi_perf(4) to extract
information about supported states. This driver should work on MP systems
including HTT. It is experimental and may have a few bugs but has been
tested to not crash at least.
Thanks to Colin Percival for his initial work on this driver.
|
|
|
|
|
|
|
|
| |
explicitly using bzero().
Update copyright.
MFC after: 3 days
|
| |
|
|
|
|
|
| |
LAN side of things. It appears that all that's necessary is to relax
the check on the DLCR2 register in the probe.
|
|
|
|
| |
Fujitsu LAN SCSI card's ethernet side.
|
|
|
|
| |
is only used by the fe driver, and isn't MD.
|
|
|
|
|
|
| |
certain options aren't enabled.
Submitted by: Chiharu Shibata-san (chi at bd mbn or jp)
|
| |
|
|
|
|
| |
Submitted by: Chiharu Shibata-san (chi at bd mbn or jp)
|
|
|
|
| |
MFC after: 3 days
|
|
|
|
|
|
|
|
| |
only call the protocol's pru_rcvd() if the protocol has the flag
PR_WANTRCVD set. This brings that instance of pru_rcvd() into line with
the rest, which do check the flag.
MFC after: 3 days
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
very slow process, especially for large file systems that is just
recovered from a crash.
Since the summary is already re-sync'ed every 30 second, we will
not lag behind too much after a crash. With this consideration
in mind, it is more reasonable to transfer the responsibility to
background fsck, to reduce the delay after a crash.
Add a new sysctl variable, vfs.ffs.compute_summary_at_mount, to
control this behavior. When set to nonzero, we will get the
"old" behavior, that the summary is computed immediately at mount
time.
Add five new sysctl variables to adjust ndir, nbfree, nifree,
nffree and numclusters respectively. Teach fsck_ffs about these
API, however, intentionally not to check the existence, since
kernels without these sysctls must have recomputed the summary
and hence no adjustments are necessary.
This change has eliminated the usual tens of minutes of delay of
mounting large dirty volumes.
Reviewed by: mckusick
MFC After: 1 week
|
|
|
|
|
|
|
| |
of the global UNIX domain socket mutex: no protection is needed that
early in the setup of the UNIX domain socket and socket structures.
MFC after: 3 days
|
|
|
|
|
|
| |
making it a bit more clear why we can read four NAs from the VPD.
MFC after: 1 day
|
| |
|
|
|
|
| |
state of the control register.
|
|
|
|
| |
so their individual settings can be seen separately for debugging.
|
|
|
|
| |
protection to alpha/include/exec.h.
|
|
|
|
|
|
| |
sockbuf mutex.
Reviewed by: rwatson
|
|
|
|
|
| |
fixes in src/include/stdbool.h rev. 1.7 and src/sys/i386/include/_types.h
rev. 1.10, required by ports/lang/icc.
|
|
|
|
|
|
|
|
|
|
| |
preliminary support for using the GCC-compatibility of ICC was committed
but couldn't be tested at that time due to problems with ICC itself. Since
ICC 8.1 it's possible to use its GCC-compatibility under FreeBSD and it
turned out that a typedef for __gnuc_va_list is required in that case.
Revert the part of rev. 1.8 which #ifdef'ed out __gnuc_va_list for ICC.
MFC after: 1 week
|
|
|
|
|
|
|
|
|
| |
patch from kan@).
Pull bufobj_invalbuf() out of vinvalbuf() and make g_vfs call it on
close. This is not yet a generally safe function, but for this very
specific use it is safe. This solves the problem with buffers not
being flushed by unmount or after failed mount attempts.
|
|
|
|
|
| |
Reviewed by: mckusick
MFC After: 1 week
|
|
|
|
|
| |
specific values that other components may want to use. Add support to
acpi_perf(4) to export the control and status values via this field.
|
|
|
|
| |
to wait longer than a single integer can represent.
|
|
|
|
|
|
| |
base context as well as the socket callback.
Submitted by: Mohan Srinivasan
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
a packet has VLAN mbuf tag attached. This is faster to check than
m_tag_locate(), and allows us to use the tags in non-vlan(4) VLAN
producers.
The first argument to VLAN_OUTPUT_TAG() is now unused but retained
for backward compatibility.
While here, embellish a fix in rev. 1.174 of if_ethersubr.c -- it
now checks for packets with VLAN (mbuf) tags, and it should now
be possible to bridge(4) on vlan(4)'s whose parent interfaces
support VLAN decapsulation in hardware.
Reviewed by: sam
|
|
|
|
| |
destination.
|
|
|
|
| |
MFC after: 3 days
|
|
|
|
| |
MFC after: 3 days
|