Age | Commit message (Collapse) | Author |
|
MIN() and MAX() are macros that can evaluate their arguments twice
but it is safe in this context.
following a post from miod@ about the harmfulness of min() and max()
in the kernel.
|
|
|
|
ok deraadt@
|
|
|
|
|
|
rx_abs_int_delay to be non-zero when rx_int_delay is zero appears
to trigger a bug elsewhere in the kernel for certain em revisions.
Based on a diff from beck@. OK beck@ marco@ henning@ brad@
|
|
|
|
operating points from ACPI. In support of this add evaluation of the _PDC
object and give it the capability flags asserting OSPM management of CPU
power states.
ok marco@, canacar@
|
|
because it does not support isochronous transfers yet. we hope that
we can remove this as soon as possible. discussed with deraadt@
|
|
RAW_PART will always be 0 -> disksize, so the bounds check will always
pass for i/o's to valid addresses. Now the i/o will be properly truncated
if it goes past the end of the device. This prevents various adverse
impacts of issuing i/o's for data past the end of the device.
Repeatedly requested by todd@.
ok weingart@ deraadt@
|
|
ok @marco
|
|
able to distinguish cleanly an failing ioctl (ie. return value -1) from
trying to retrieve a KDF hint from a not yet initialized volume.
ok marco djm
|
|
structs and sprinkle some aml_freevalue() (diff initially from deanna@).
ok marco@
|
|
|
|
conversions that should shave a few bytes off the kernel.
ok henning, krw, jsing, oga, miod, and thib (``even though i usually prefer
FOO|BAR''; thanks for looking.
|
|
ok jsg@
|
|
most 0.5TB of disk. This is well below P1619-2007's recommendation
for AES-XTS of 1TB/key, but small enough so we can test that we
actually use multiple keys with inexpensive hardware.
We allocate 32 keys, so this will do for volumes up to 16TB.
Fix a crypto session leak in sr_crypto_free_resources()
much debugging help mshoexer@; ok hshoexer@ marco@
|
|
- the wskbd/wsmouse is not phantom, but actually is pre-paired keyboard/mice
talking wskbd/wsmouse to the os
this permits the bluetooth device to attach as wskbd/wsmouse using bluetooth
keyboards for ddb> and in general if you have paired them in an os that
supports flipping the funny bluetooth device into full bluetooth mode
ok drahn@
|
|
complete/cleanup the attachment cleanup code.
ok reyk@ jsg@
|
|
|
|
crypto. It's still considered experimental!
ok djm marco
|
|
been correctly decrypted using the masking key.
The check code is a HMAC-SHA1 over the disk keys using a hash of
the masking key. It should be slow enough to provide no useful
brute force success oracle and should not leak significant data about
the masking key or disk keys.
ok hshoexer@ marco@
|
|
bnx(4) (BCM5706/BCM5708) adapters.
Thanks to Balázs Nagy <bnagy at thenewpush dot com> for
providing remote access to a Inventec IB4220 blade with
fiber BCM5780 interfaces and David Christensen at Broadcom
for providing BCM5708 2.5Gbps adapters.
Tested with various existing copper adapters and the above
mentioned adapters.
Some inspiration from similar changes to FreeBSD's brgphy(4)
driver.
|
|
reserved space in case we ever want to support a different scheme
ok hshoexer@ marco@
|
|
|
|
ok marco djm
|
|
parts in #ifdef _KERNEL; makes softraidvar.h usable from userland
ok hshoexer@
|
|
mask key from userland. Thus, modify sr_crypto_get_kdf() do correclty handle
copying kdf hint and/or mask key.
While there, remove superflous sr_read_meta().
ok marco djm
|
|
other drivers.
|
|
On socppc it has the subclass PCI_SUBCLASS_MASS_STORAGE_MISC
so without the quirk socppc will not find its disk.
-moj
|
|
ok @marco
|
|
|
|
not randomly skip probing for devices after a missing device.
ok kettenis
|
|
From davidch @ FreeBSD
|
|
sure to #include "foo.h" in all code that uses the softc,
otherwise some object files will have a different idea of how
big the softc struct is.
This will result in things like part of the softc, say the interrupt
handler being overridden by other data. Putting printfs in the
main object file will look fine as it has the right idea as to
what the size is. It is only after several hours debugging
that you start to figure out what the hell is going on.
jsing started trying to figure out the problem and got hints
from kettenis that it likely wasn't an interrupt problem,
after quite a bit of head scratching with joel I eventually spotted
the problem.
ok reyk@ jsing@
|
|
|
|
ok @marco
|
|
|
|
OK robert@
|
|
|
|
|
|
debug output shows the xs/command before it's issued rather than
displaying it on command completion. Some commands don't come back
and it would be nice to see their details.
While here nuke invocations of scsi_show* in umass. If you want SCSI
debug output use SCSI debug options.
Only affects SCSI debug output.
ok marco@
|
|
|
|
ok @canacar
|
|
ok @canacaR
|
|
retrieving the kdf blobb. Pointed out by marco.
while there, use %lld instead of %d when printing b_blkno, which daddr64_t.
ok marco
|
|
|
|
|
|
|
|
default for now.
|