| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
when IPv6 is enabled.
MFC after: 3 days
|
|
|
|
|
|
|
|
| |
watchdog might hide the succesful arming of an earlier one. Accept that on
failing to arm any watchdog (because of non-supported timeouts) EOPNOTSUPP is
returned instead of the more appropriate EINVAL.
MFC after: 3 days
|
|
|
|
| |
Reported by: Yuriy Tsibizov <Yuriy.Tsibizov gfk.ru>, bsam
|
| |
|
|
|
|
|
| |
Submitted by: Andrea Bittau ( adotbittauatcsdotucldotacdotuk)
MFC After: 1 week
|
|
|
|
|
|
|
|
|
|
| |
always 0. Previously we aligned threads on a minimum of 8-byte boundaries.
Note: This changes the uma zone to no longer cache align threads. We
really want the uma zone to do align threads to MAX(16, cache line size)
but there currently isn't a good way to express that to uma.
Submitted by: attilio
|
|
|
|
|
|
| |
announce an ll_ifma which has gone away. Add a KASSERT to catch regressions.
Bug found by: Tom Uffner
|
|
|
|
|
|
|
| |
When submitting rx buffers and not using WC fifo, always replace the
invalid DMA address with the real one, otherwise allocation failures
could lead to the invalid DMA address being given to the NIC, and
that would cause the receive side to lockup.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
causing a crash.
Suppose that we have two objects, obj and backing_obj, where
backing_obj is obj's backing object. Further, suppose that
backing_obj has a reference count of two. One being the reference
held by obj and the other by a map entry. Now, suppose that the map
entry is deallocated and its reference removed by
vm_object_deallocate(). vm_object_deallocate() recognizes that the
only remaining reference is from a shadow object, obj, and calls
vm_object_collapse() on obj. vm_object_collapse() executes
if (backing_object->ref_count == 1) {
/*
* If there is exactly one reference to the backing
* object, we can collapse it into the parent.
*/
vm_object_backing_scan(object, OBSC_COLLAPSE_WAIT);
vm_object_backing_scan(OBSC_COLLAPSE_WAIT) executes
if (op & OBSC_COLLAPSE_WAIT) {
vm_object_set_flag(backing_object, OBJ_DEAD);
}
Finally, suppose that either vm_object_backing_scan() or
vm_object_collapse() sleeps releasing its locks. At this instant,
another thread executes vm_object_split(). It crashes in
vm_object_reference_locked() on the assertion that the object is not
dead. If, however, assertions are not enabled, it crashes much later,
after the object has been recycled, in vm_object_deallocate() because
the shadow count and shadow list are inconsistent.
Reviewed by: tegge
Reported by: jhb
MFC after: 1 week
|
| |
|
|
|
|
|
| |
broken. Rudimentary tests show that PowerPC can run with
mpsafe_vfs=1. Make it so...
|
|
|
|
|
|
|
| |
- Add a missing 'else' for 'if'[2].
Requested by: njl[1]
Submitted by: njl[2]
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
bioscom is called to set up serial port parameters because COMSPEED
was treated as an address instead of an immediate value, causing
serial port parameters to never be set.
PR: i386/110828
Reviewed by: jhb
MFC after: 2 weeks
|
|
|
|
|
|
| |
drop the topology lock and acquire Giant around this call.
Reviewed by: phk
|
|
|
|
|
|
|
|
|
|
| |
code.
# There is some question about whether this code is even relevant any
# longer (it dates back to prehistoric times, i.e. present in r1.1),
# especially on amd64.
Reviewed by: jhb
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
it via pci_get_vpd_*() rather than always reading it for each device during
boot. I've left the tunable so that it can still be turned off if a device
driver causes a lockup via a query to a broken device, but devices whose
drivers do not use VPD (the vast majority) should no longer result in
lockups during boot, and most folks should not need to tweak the tunable
now.
Tested on: bge(4)
Silence from: jmg
|
|
|
|
|
|
|
|
| |
one (hardware & global lock). This should address witness complaints that
a duplicate mutex is being acquired. Be sure to free the mutex to fix a
potential memory leak.
MFC after: 3 days
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
cpufreq_pre_change is called before the change, giving each driver a chance
to revoke the change. cpufreq_post_change provides the results of the
change (success or failure). cpufreq_levels_changed gives the unit number
of the cpufreq device whose number of available levels has changed. Hook
in all the drivers I could find that needed it.
* TSC: update TSC frequency value. When the available levels change, take the
highest possible level and notify the timecounter set_cputicker() of that
freq. This gets rid of the "calcru: runtime went backwards" messages.
* identcpu: updates the sysctl hw.clockrate value
* Profiling: if profiling is active when the clock changes, let the user
know the results may be inaccurate.
Reviewed by: bde, phk
MFC after: 1 month
|
|
|
|
|
|
| |
would lead to an occasional hang with a cycle in semu_list.
X-Discussed-On: hackers@
|
|
|
|
| |
uipc_sockbuf.c, clean up and update comments.
|
|
|
|
|
|
| |
CID: 1065
Found by: Coverity Prevent (tm)
Reported by: netchild
|
|
|
|
|
|
|
|
| |
not used uninitialized in 'nfsmout' if nfsm_srvmtofh() gets an internal
error.
CID: 1766
Found by: Coverity Prevent (tm)
|
|
|
|
|
| |
- ifnet is no more embedded in softc;
- the interface name is `disc', not `ds'.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
other C files:
- Move sbcreatecontrol() and sbtoxsockbuf() to uipc_sockbuf.c. While
sbcreatecontrol() is really an mbuf allocation routine, it does its work
with awareness of the layout of socket buffer memory.
- Move pru_*() protocol switch stubs to uipc_socket.c where the non-stub
versions of several of these functions live. Likewise, move socket state
transition calls (soisconnecting(), etc) to uipc_socket.c. Moveo
sodupsockaddr() and sotoxsocket().
|
|
|
|
|
|
|
|
|
|
| |
doesn't need to be first in softc now. (It was the whole
ifnet structure itself that needed to be first in the good
old days.) Fix the respective comment accordingly.
Add xrefs to ifnet(9) in some other comments while I'm here.
Pointed out by: thompsa
|
|
|
|
|
|
|
|
|
|
| |
imitating an Ethernet device, so vlan(4) and if_bridge(4) can be
attached to it for testing and benchmarking purposes. Its source
can be an introduction to the anatomy of a network interface driver
due to its simplicity as well as to a bunch of comments in it.
(The rest of needed changes were in my previous commit, which got
interrupted in the middle. Alas, CVS commits are not atomic.)
|
|
|
|
|
|
|
| |
imitating an Ethernet device, so vlan(4) and if_bridge(4) can be
attached to it for testing and benchmarking purposes. Its source
can be an introduction to the anatomy of a network interface driver
due to its simplicity as well as to a bunch of comments in it.
|
|
|
|
|
|
|
|
| |
function may be called without any TCP SACK option blocks present. Protect
iteration over SACK option blocks by checking for SACK options present flag
first.
Bug reported by: wkoszek, keramida, Nicolas Blais
|
|
|
|
|
|
|
|
| |
explaining that some more locking is needed. The routing pieces are done,
but there is an interlocking issue between optionally compiled code and
mandatory code.
Spotted by: kris
|
|
|
|
|
|
|
| |
If/when someone does the necessary MPSAFEty locking for the NFSv4 client,
the socket code is generally MPSAFE now.
Spotted by: kris
|
|
|
|
| |
Requested by: n_hibma
|
|
|
|
|
|
|
|
|
|
| |
1) Eliminate an unnecessary check for fictitious pages. Specifically,
only device-backed objects contain fictitious pages and the object is
not device-backed.
2) Change the types of "psize" and "tmpidx" to vm_pindex_t in order to
prevent possible wrap around with extremely large maps and objects,
respectively. Observed by: tegge (last summer)
|
| |
|
|
|
|
| |
but sometimes it is.
|
| |
|
|
|
|
| |
repo-copied to fs/.
|
|
|
|
|
|
|
|
| |
Prodded by: db
o Add missed vars for TCPDEBUG in tcp_do_segment().
Prodded by: tinderbox
|
|
|
|
|
|
|
| |
Correct spelling errors.
Remove references to M_COPY_PKTHDR -- it was deprecated in 6.x and is not
used (or defined) in our tree.
|
|
|
|
|
|
| |
temporary mapping created by locore so that the lowest two to four
megabytes can become a permanent identity mapping. This implementation
avoids any use of a large page mapping.
|
|
|
|
|
|
|
|
| |
LOR/deadlock.
Tested by: Denis Shaposhnikov <dsh_AT_vlink.ru>, le@
LOR id: 205
MFC in: 3 days
|
|
|
|
|
|
| |
PR: usb/109613
Submitted by: Mayr Gerald
MFC after: 1 month
|
|
|
|
|
|
| |
PR: usb/109838
Submitted by: R.Mahmatkhanov
MFC after: 1 month
|