| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
Pointy hat to: peter
Notes:
svn path=/stable/6/; revision=260438
|
| |
|
|
|
|
|
| |
PR: kern/99188
Notes:
svn path=/stable/6/; revision=260422
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
When rebooting (exiting) from the BTX loader, make sure to restore the
GDT from the correct segment, otherwise a triple fault would be caused.
In some virtual environments (VMware, VirtualBox, etc) this could lead
to a unhandled error or hang in the guest emulation software.
Thanks to avg and jhb for a few hints in the right direction.
Noticed by: Jeremy Chadwick <jdc@koitsu.org> (and many others)
Notes:
svn path=/stable/6/; revision=250151
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Correct a typo introduced in r153575, which gives inverted logic when
handling blocking semantics when seeding.
PR: kern/143298
Submitted by: James Juran <james juran baesystems com>
Reviewed by: markm
Notes:
svn path=/stable/6/; revision=247511
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This small change takes care of a race condition
that can occur when both sides close at the same time.
If that occurs, without this fix the connection enters
FIN1 on both sides and they will forever send FIN|ACK at
each other until the connection times out. This is because
we stopped processing the FIN|ACK and thus did not advance
the sequence and so never ACK'd each others FIN. This
fix adjusts it so we *do* process the FIN properly and
the race goes away ;-)
Approved by: emaste (co-mentor)
Notes:
svn path=/stable/6/; revision=247136
|
| |
|
|
|
|
|
| |
(and we're still making commits to 6.x!)
Notes:
svn path=/stable/6/; revision=244917
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Workaround for PCIe 4GB boundary issue
Enforce a boundary of no more than 4GB - transfers crossing a 4GB
boundary can lead to data corruption due to PCIe limitations. This
change is a less-intrusive workaround that can be quickly merged back
to older branches; a cleaner implementation will arrive in HEAD later
but may require KPI changes.
This change is based on a suggestion by jhb@.
Notes:
svn path=/stable/6/; revision=232398
|
| |
|
|
|
|
|
|
|
|
| |
This commit is a merge of 197465, 197464, 197463, 197461, 177937 and 170389.
Submitted by: Andreas Longwitz <longwitz@incore.de>
Reviewed by: jhb
Notes:
svn path=/stable/6/; revision=225767
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Do not allow directly recursive RFC3173 IPComp payload.
While IPv6 does count iterations over next headers in ip6_input,
we still disallow directly recursive IPComp payload in the KAME code.
Security: CVE-2011-1547
Notes:
svn path=/stable/6/; revision=220485
|
| |
|
|
|
|
|
|
| |
for non-SATA controllers. Specifically, limit the non-AHCI ICH7, 63XXESB2,
and ICHM8 controllers to a single channel.
Notes:
svn path=/stable/6/; revision=214674
|
| |
|
|
|
|
|
|
|
| |
The improved IDE HDD geometry adjustment is merged but default
algorithm is not changed in this branch. This commit allows 6-stable
user to test new algorithm before complete upgrading to 7 or later.
Notes:
svn path=/stable/6/; revision=213393
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
passed address argument, while we are only interested in whether it is a
valid address of the jail.
This can modify an address in the live interface address list with an
address of the jail. Make a copy of the address for the call to
prison_ip() to avoid this.
Reported by: Andreas Longwitz (longwitz incore.de)
Tested by: Andreas Longwitz (longwitz incore.de)
PR: kern/114325
Notes:
svn path=/stable/6/; revision=213249
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Remove warning about static LDT segment allocation. Applications
continue using it after ~7 years since warning was introduced, and there
is no reason to discourage them.
PR: kern/124111
Approved by: kib (mentor)
Notes:
svn path=/stable/6/; revision=211995
|
| |
|
|
|
|
|
|
| |
Change the messages of the ICMP bad port bandwidth limiter from
a kernel printf to a log output with the priority of LOG_NOTICE.
Notes:
svn path=/stable/6/; revision=211544
|
| |
|
|
|
|
|
| |
Disable TCP inflight limiter by default.
Notes:
svn path=/stable/6/; revision=211541
|
| |
|
|
|
|
|
|
|
|
|
| |
Increase boot-time DigiBIOS initialization timeout to allow
for a larger number of chained port modules.
PR: kern/55018
Submitted by: Cyrill Shevchuk <cyrill at cyrills.net>
Notes:
svn path=/stable/6/; revision=211321
|
| |
|
|
|
|
|
|
|
|
|
| |
MFp4 @181628:
Free the rtentry after we diconnected it from the FIB and are counting
it as rttrash. There might still be a chance we leak it from a different
code path but there is nothing we can do about this here.
Notes:
svn path=/stable/6/; revision=211298
|
| |
|
|
|
|
|
|
|
| |
If busdma is being used to realign dynamic buffers and the alignment is set to
PAGE_SIZE or less, the bounce page counting logic was flawed and wouldn't
reserve any pages. Adjust to be correct.
Notes:
svn path=/stable/6/; revision=210932
|
| |
|
|
|
|
|
|
| |
Fix test for double-nul characters that terminate the string table at
the end of each SMBIOS/DMI structure.
Notes:
svn path=/stable/6/; revision=210897
|
| |
|
|
|
|
|
|
|
|
| |
Remove a bogus KASSERT which will prevent rwlock to be acquired
recursively in exclusive mode with debugging kernels.
Reported by: rwatson
Notes:
svn path=/stable/6/; revision=210844
|
| |
|
|
|
|
|
|
| |
Rework the SMBIOS table walker to make it operate like other table walkers
and remove a buffer overflow.
Notes:
svn path=/stable/6/; revision=210414
|
| |
|
|
|
|
|
|
|
|
|
| |
When OOM searches for a process to kill, ignore the processes already
killed by OOM. When killed process waits for a page allocation, try to
satisfy the request as fast as possible.
Sponsored by: Sandvine Incorporated
Notes:
svn path=/stable/6/; revision=208319
|
| |
|
|
|
|
|
| |
Pointy hat to: delphij
Notes:
svn path=/stable/6/; revision=207597
|
| |
|
|
|
|
|
|
|
|
| |
Limit IOCATAREQUEST ioctl data size to controller's maximum I/O size.
It fixes kernel panic when requested size is too large (0xffffffff),
PR: kern/136726
Notes:
svn path=/stable/6/; revision=207591
|
| |
|
|
|
|
|
| |
post-install for arm too.
Notes:
svn path=/stable/6/; revision=207204
|
| |
|
|
|
|
|
|
|
|
| |
Fix a long standing regression of readdir(3) in fdescfs(5) introduced
in r1.48. We were stopping at the first null pointer when multiple file
descriptors were opened and one in the middle was closed. This restores
traditional behaviour of fdescfs.
Notes:
svn path=/stable/6/; revision=205470
|
| |
|
|
|
|
|
|
|
|
|
| |
Return partially filled buffer for non-blocking read(2)
in non-immediate mode.
PR: kern/143855
Submitted by: Guy Harris (guy at alum dot mit dot edu)
Notes:
svn path=/stable/6/; revision=205467
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Tidy up callout for select(2) and read timeout.
- Add a missing callout_drain(9) before the descriptor deallocation.[1]
- Prefer callout_init_mtx(9) over callout_init(9) and let the callout
subsystem handle the mutex for callout function.
PR: kern/144453
Submitted by: Alexander Sack (asack at niksun dot com)[1]
Notes:
svn path=/stable/6/; revision=205465
|
| |
|
|
| |
Notes:
svn path=/stable/6/; revision=205446
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Move the code for doing out-of-memory grass from vm_pageout_scan()
into the separate function vm_pageout_oom(). Supply a parameter for
vm_pageout_oom() describing a reason for the call.
- Call vm_pageout_oom() from the swp_pager_meta_build() when swap zone
is exhausted.
- In both pageout oom handler and vm_daemon, acquire the reference to
the vmspace of the examined process instead of directly accessing its
vmspace, that may change. Also, as an optimization, check for P_INEXEC
flag before examining the process.
Sponsored by: Sandvine Incorporated
Reviewed by: emaste
Notes:
svn path=/stable/6/; revision=205349
|
| |
|
|
|
|
|
|
|
|
|
|
| |
According to the Linux sungem driver, in case of Apple (K2) GMACs
GEM_MIF_CONFIG_MDI0 cannot be trusted when the firmware has powered
down the chip so the internal transceiver has to be hardcoded. This
is also in line with the AppleGMACEthernet driver, which just doesn't
distinguish between internal/external transceiver and MDIO/MDI1
respectively in the first place. Tested by: Andreas Tobler
Notes:
svn path=/stable/6/; revision=205191
|
| |
|
|
|
|
|
|
|
|
| |
Add support for BCM54K2 found in combination with Apple K2 GMAC.
Submitted by: Andreas Tobler
Obtained from: OpenBSD
Notes:
svn path=/stable/6/; revision=205188
|
| |
|
|
|
|
|
|
|
|
| |
than the APIC ID of the boot CPU prior to SI_SUB_SMP. This resulted in
some storage controllers not being able to enumerate attached devices when
using MSI/MSI-X interrupts. This only affects <= 7.x, so it is a direct
commit to 7 rather than an MFC.
Notes:
svn path=/stable/6/; revision=204014
|
| |
|
|
|
|
|
|
|
| |
Use __builtin_offsetof for GCC 4.1.
Submitted by: Ryan Stone
Notes:
svn path=/stable/6/; revision=203674
|
| |
|
|
|
|
|
| |
Garbage collect references to the no longer implemented tcp_fasttimo().
Notes:
svn path=/stable/6/; revision=202946
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Add comments trying to explain what bad things happen here, i.e.
how hashed MD5/SHA are implemented, abusing Final() for padding and
sw_octx to transport the key from the beginning to the end.
Enlightened about what was going on here by: cperciva
Reviewed by: cperciva
Notes:
svn path=/stable/6/; revision=202479
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
While OpenBSD's crypto/ framework has sha1 and md5 implementations that
can cope with a result buffer of NULL in the "Final" function, we cannot.
Thus pass in a temporary buffer long enough for either md5 or sha1 results
so that we do not panic.
PR: bin/126468
Reviewed by: cperciva
Notes:
svn path=/stable/6/; revision=202476
|
| |
|
|
|
|
|
|
|
| |
Correct a typo.
Submitted by: sn_ (sn_ gmx.net) on hackers@
Notes:
svn path=/stable/6/; revision=202472
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Cleanups the boot2 for pc98. There is no functional change.
- Make setting machine type and getting geom conditional for future.
- Remove unused RAWBOOT and CDBOOT supports.
- Remove unneeded include.
- Fix warnings.
This change is directly merged into stable/6 because stable/[78] have
new boot2.
Notes:
svn path=/stable/6/; revision=202356
|
| |
|
|
|
|
|
|
| |
- Add setting machine type support to the loader.
- Don't use 15M-16M area on pc98. It's reserved for some devices.
Notes:
svn path=/stable/6/; revision=202345
|
| |
|
|
|
|
|
| |
Provide and consume missing module dependency information.
Notes:
svn path=/stable/6/; revision=202240
|
| |
|
|
|
|
|
|
|
|
| |
Don't use an out register to hold the vector number across the call
of the interrupt handler in intr_fast() as the handler might clobber
it (no in-tree handler currently does but an upcoming one will).
While at it, tidy the register usage in the interrupt counting code.
Notes:
svn path=/stable/6/; revision=202239
|
| |
|
|
|
|
|
|
|
| |
- Correct an off-by-one error when calculating the end of a child
range.
- Spell the PCI TLA in uppercase.
Notes:
svn path=/stable/6/; revision=202236
|
| |
|
|
|
|
|
|
|
|
| |
r193250: Set an rx jumbo cluster to the correct size for bus_dmamap_load_mbuf_sg()
r194836: Initial mtu
r195818: Rename hw.mxge.rss_hash_type -> hw.mxge.rss_hashtype
r197391: Add support for TX throttling.
Notes:
svn path=/stable/6/; revision=202118
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Make SIOCGIFADDR and related,
jail-aware. Up to now we returned the first address of the interface
for SIOCGIFADDR w/o an ifr_addr in the query. This caused problems for
programs querying for an address but running inside a jail, as the
address returned usually did not belong to the jail.
If there was an ifr_addr given on v4, you could probe
for more addresses on the interfaces that you were not allowed to see
from inside a jail. Return an error (EADDRNOTAVAIL) in that case
now unless the address is on the given interface and valid for the
jail.
PR: kern/114325
Thanks to: Axel Scheepers (axel.scheepers nl.clara.net)
Notes:
svn path=/stable/6/; revision=201663
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix a credential reference leak. [1]
Close subtle but relatively unlikely race conditions when
propagating the vnode write error to other active sessions
tracing to the same vnode, without holding a reference on
the vnode anymore. [2]
PR: kern/126368 [1]
Submitted by: rwatson [2]
Reviewed by: kib, rwatson (head)
Notes:
svn path=/stable/6/; revision=201625
|
| |
|
|
|
|
|
|
| |
Don't take the driver mutex in mxge_tick(), as it
is run with the mutex held.
Notes:
svn path=/stable/6/; revision=201511
|
| |
|
|
|
|
|
|
|
|
|
| |
Enable IPcomp by default.
(Note that fast_ipsec.4 was changed, rather than ipsec.4.)
PR: kern/123587
Notes:
svn path=/stable/6/; revision=201510
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
In case the compression result is the same size as the orignal version,
the compression was useless as well. Make sure to not update the data
and return, else we would waste resources when decompressing.
This also avoids the copyback() changing data other consumers like
xform_ipcomp.c would have ignored because of no win and sent out without
noting that compression was used, resulting in invalid packets at the
receiver.
Notes:
svn path=/stable/6/; revision=201508
|
| |
|
|
|
|
|
|
| |
Assimilate very similar input and output code paths
(no real functional change).
Notes:
svn path=/stable/6/; revision=201506
|