Age | Commit message (Collapse) | Author |
|
|
|
|
|
supports being used as a regmap client to reset or power down a machine,
so this change implements the other side where we provide the registers
to write into.
ok kettenis@
|
|
if send_packet(DISCOVER) fails.
Distinguish between writev() and sendmsg() errors in
send_packet() log messages.
Check for short writes no matter how the packet is
output. Return failure in this occurs. Check results
of all send_packet() calls.
If send_packet() fails, don't log that the DHCP message
was sent.
|
|
need to complicate things by passing it a string
identifying where it was called. Tweak log
verbiage.
|
|
the compiler from optimizing away the bzero() call. OK djm@
|
|
ok mpi@
|
|
ok jsg
|
|
refactor; spotted by millert@ "makes sense" deraadt@
|
|
|
|
ok deraadt@
|
|
|
|
code. Adapted from a diff by Ross L Richardson.
|
|
until server has started, then expect error message in server log.
|
|
|
|
|
|
|
|
!= int. ok djm@
|
|
|
|
`finalize' function with the `fail' argument when this happen.
Introduce some sanity checks in exchange_free() to be able to call if
even if the data structure isn't completely initialized.
Plug memory leaks when exchange_establish() fails. While here fix a
double free in one of the error paths.
Based on a diff from hshoexer@, ok stsp@, markus@
|
|
this allows interrupts to be safely posted by multiple threads.
ok mlarkin@
|
|
|
|
better log messages on the console now.
|
|
initialized. For every message it did reopen the console with file
descriptor passing from the privsep parent. Now preopen the console,
so writing the message out works in more cases. If the console has
been revoked, a reopen via privsep and write again is tried anyway.
OK brynet@ deraadt@ jca@
|
|
ok mlarkin@
|
|
This was missed in receive. mc146818_start is already defined. This fixes rtc
time resync on receive.
ok mlarkin@
|
|
it has closed the file descriptor before checking the errno. So
f_file contained a bad file descriptor that could be reused at the
next open. Keep the file open if errno is EAGAIN. Move the close(2)
down where the old file descriptor in f_file is overwritten in all
cases.
OK deraadt@ jca@
|
|
Create global 'log_procname' and set it to '<ifname>' or
'<ifname> [priv]' as appropriate for the process doing the
setting. Use it as the prefix in all log_*() output. Makes
tracking messages for an interface or a process much easier.
|
|
'<ifname> [priv]' as appropriate for the process doing the
setting. Use it as the prefix in all log_*() output. Makes
tracking messages for an interface or a process much easier.
|
|
|
|
caused bloat about a month ago (and it wasn't purely the ctf additions
since those are being stripped). Maybe the compiler generates
different code when stronger debugging information is requested?
|
|
|
|
in addition to read(2) and write(2) and because
that ioctl(2) support is documented in mtrr(4);
OK jmc@
|
|
havoc all over the place. So add some casts to silence the compiler.
ok deraadt@ guenther@
|
|
on multicore systems.
|
|
the best class, and sort bad libraries in dependency solving accordingly
|
|
|
|
While here, change the mbstowcs() error checking making it complaint with what's
documented in the manual and zap some stray whitespace.
ok benno@ tb@
|
|
|
|
have not been affected.
From miod@
|
|
protection issues. So make amd64 do that instead of passing through
uvm_fault()'s return value, which lead to other possible errors
(particularly EACCES) being returned to userspace. Clean up a vestige
on arm64 too.
ok bluhn@ deraadt@
|
|
top->m_pkthdr.len was accessed without check. See CID 1452933.
In fact top cannot be NULL there and the condition was always false.
m_getuio() did never reserve space for the header. The correct
check is m == top to find the first mbuf.
OK visa@
|
|
dereference m if it is NULL. See CID 501458.
- Remove the m NULL check from the final for loop, it is not
necessary. This cannot happen due to the length calculation.
The inconsistent code caused the coverity issue.
- Move the m = mp close to all the loops where the mbuf
chain is traversed.
- Use mp to access the m_pkthdr consistently.
- Move the next assignemnt from for (;;m = m->m_next) to the
end of the loop to make it consistent to the previous for (;;)
where the total length is calculated.
OK visa@ mpi@
|
|
is found.
|
|
a routing socket. Fixes at least one cause of resolv.conf
confusion and possibly hanging/looping dhclient if the
RTM_GET gets lost.
Fingered by phessler@ when doing many suspend/resumes
while switching between wifi and wired interfaces.
Testing & ok phessler@
|
|
ok deraadt@
|
|
interfere with later tests.
|
|
imsg dispatch function.
ok gilles@
|
|
both early and after forking. Makes fatal[x]() messages more
informative by always including the relevant interface name. And
"[proc]" in privileged process messages.
Simplify some logic by avoiding error message construction that is
no longer required.
|
|
these are backed by pthreads rather than kthreads and mutexes, and
only support creating a taskq serviced by a single worker thread.
task_set, task_add, and task_del all work the same though.
these are not linked into the build yet.
ok mlarkin@
|