Age | Commit message (Collapse) | Author |
|
ok stsp@
|
|
properties to make sure that the PCIe clocks are configured correctly.
While upstreaming these into Linux mainline, those have been removed.
Instead the clock driver has the responsibility of setting these up on
attach. For us we'll just hardcode the parent and enable the setting
when we turn on the PCIe clocks.
ok kettenis@
|
|
need to be enabled first. Notable users are the PCIe domains.
ok kettenis@
|
|
custom installboot to deal with ffs2. While there, fix the partition
read code to deal with offsets > 2G; ok deraadt@
|
|
|
|
kernel by using lfence in place of stac/clac on pre-SMAP CPUs.
To quote from https://software.intel.com/security-software-guidance/insights/deep-dive-load-value-injection
"If the OS makes use of Supervisor Mode Access Prevention (SMAP)
on processors with SMAP enabled, then LVI on kernel load from
user pages will be mitigated. This is because the CLAC and STAC
instructions have LFENCE semantics on processors affected by LVI,
and this serves as a speculation fence around kernel loads from
user pages."
ok deraadt@
|
|
coverity CID 1486819
pointed out by and ok tobhe@
|
|
This also prevents the access of an initialized pointer in
traphandler_fork_handler as found by jan@.
OK jan@
|
|
removal of internal queuing of scsi_xfer's. Put them out of their
misery. Nuke an obsolete comment in passing.
CID 1453357.
|
|
returning a (possibly uninitialized) value.
CID 1483466.
ok millert@
|
|
|
|
ok visa@
|
|
The IKEv2 responder does not know which policy is negotiated until
the ID payload is received in the IKE_AUTH exchange.
iked therefore chooses a default policy until the final policy is
selected. This change adds a policy relookup during the IKE_SA_INIT.
If the received proposal is not compatible with the default policy
we switch to the next highest ranked policy that is compatible
with the received proposal.
ok kn@ markus@
|
|
ok inoguchi@ tb@
|
|
|
|
Both session tickets and key updates are post-handshake handshake messages,
which were originally included in the handshake code.
ok inoguchi@ tb@
|
|
In the unlikely event that the return value from the read callback is
larger than the number of bytes we asked for, we can end up incrementing
buf->len beyond capacity. Check the return value from the read callback to
prevent this.
ok inoguchi@ tb@
|
|
The enc function pointers do not serve any purpose these days - remove
a layer of indirection and call dtls1_enc()/tls1_enc() directly.
ok inoguchi@ tb@
|
|
12. PAGE_SHIFT is 12 (a.k.a. PAGE_SIZE == 4096) or more on OpenBSD
architectures. So remove some dead code by unconditionally setting
sc_mps (memory page size) to 1 << PAGE_SHIFT.
CID 1491655.
No functional change.
|
|
Also make the outputs table const.
Based on a suggestion from claudio@, ok deraadt@ claudio@
|
|
sgl (scatter gather list) and prpl (physical region page list) are two
different things in the NVMe world. Only the latter is currently
implemented in nvme(4) so rename sc_max_sgl to sc_max_prpl to reflect
this.
No functional change.
|
|
different things in the NVMe world. Only the latter is currently
implemented in nvme(4) so rename sc_max_sgl to sc_max_prpl to reflect
this.
No functional change.
|
|
ok bcook@ tb@
|
|
- Don't remove multi line CR/LF from bt->out when NL mode
base64_encoding_test removes CR/LF from bt->out to compare with the encoding
result. This is fine with NO NL mode, but it goes wrong with NL mode if
encoding result is larger than 64 and multi line, like below.
"eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4\neHh4eHh4eHh4eHh4\n"
- Use memcpy instead of asprintf to avoid lost '\0' at the end of data
This test data loses trailing '\0' if using asprintf.
"\x61\x47\x56\x73\x62\x47\x38\x3d\x0a\x00"
- Print original data if decoding result comparison fails
This change is not for importing test data, but I just notice.
It prints bt->out if fail to memcmp bt->in with decoding result.
ok bcook@ tb@
|
|
|
|
|
|
ok markus@
|
|
ok markus@
|
|
payload. Not doing so may result in a nullptr dereference.
ok gerhard@
|
|
ok patrick@ markus@
|
|
ok markus@
|
|
ibuf_release().
ok gerhard@
|
|
Feedback from and ok dlg@
ok kn@ todd@
|
|
ok dlg@ deraadt@
|
|
ok kn@ deraadt@
|
|
detecton of a 0 value.
CID 1488899
|
|
|
|
Tested by David Demelier
|
|
Makes sure we don't feed an incomplete/garbage file to consumers.
Input and ok claudio@ deraadt@
|
|
ok claudio@ deraadt@
|
|
Prevents a panic due to a NULL dereference; Coverity CID 1452899.
Based on a diff from mpi@, OK deraadt@ kettenis@
|
|
If process_worklist_item() is unable to process locked vnodes,
num_on_worklist will still be non-zero, preventing the loop in
softdep_process_worklist() from exiting. This can result in a
kernel hang.
To fix this, process_worklist_item() now returns non-zero if it was
able to process a worklist item (regardless of whether it matched
the mountpoint) and takes a pointer to matchcnt as a function
argument. We now break out of the loop in softdep_process_worklist()
if process_worklist_item() is unable to make progress.
OK beck@ bluhm@
|
|
From Wataru <wataash at wataash dot com>
ok patrick@
|
|
some errx lines in if statements were terminated with commas, which
caused the following statement to be considered part of the error
handling. while it is bad style, ingo points out it was also a bug
which which caused some tests in the code to be skipped.
this reminds me of a haiku that Chris Pascoe (cpascoe@) had behind
his desk:
Also, that comma
Should be a semi-colon.
Cherry blossoms fall.
this was found by Robert Mustacchi when porting the tests to illumos.
ok schwarze@ stsp@
thank you robert.
|
|
back to a 4 byte add instruction.
We do not know *why* though, so if somebody likes a challenge...
Lots of help from semarie@ who has a few systems showing the issue.
ok deraadt@
|
|
"ipmi0: sendcmd fails" errors when there is a sensor which is
enumurated but reading it is failed.
ok mpi
|
|
driver. The information by the driver is supposed more reliable than
the information which was set up earlier.
ok patrick
|
|
Among the fixes are:
- Don't count a leading dot, since it's part of smtp and not the
message.
- Let qp_encoded_write handle line wrappings, since it can do a better
job at the bookkeeping than the caller
- Make sure a soft linebreak that starts with a dot is escaped for the
SMTP-layer
- Only encode a space character if it's followed by a hard linebreak,
since this is the only case mandated by RFC5321 and it gives a more
readable output and saves a few additional bytes.
- Fix that we actually limit the encoded linelength to 76 characters as
specified in RFC5321.
Feedback and OK eric@
|
|
when the port is initialized (with a tcsetattr() call) but not on every
changed of DTR (especially those caused by other tty ioctls).
Fixes firmware upload on various microcontroller boards that use DTR and
RTS as signaling lines to reset the device and enter the bootloader.
Tested by tracey@, OK deraadt@
|
|
fixes pxeboot - committing on behalf of otto@ who cant right now.
|