summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-09-19remove unused GZIPEXTJasper Lievisse Adriaanse
2017-09-19Enable syscon(4).Patrick Wildt
2017-09-19Add support for being a regmap provider in syscon(4). So far the driverPatrick Wildt
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@
2017-09-19Make send_packet() usage consistent. i.e. don't exitKenneth R Westerback
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.
2017-09-19flush_unpriv_ibuf() is now used only once so noKenneth R Westerback
need to complicate things by passing it a string identifying where it was called. Tweak log verbiage.
2017-09-19Use explicit_bzero() instead of bzero() before free() to preventTodd C. Miller
the compiler from optimizing away the bzero() call. OK djm@
2017-09-19fix fd leaks in error pathsJonathan Gray
ok mpi@
2017-09-19Clarify a wrong conditional, found by jsg.Mike Larkin
ok jsg
2017-09-19fix use-after-free in ~^Z escape handler path, introduced in channels.cDamien Miller
refactor; spotted by millert@ "makes sense" deraadt@
2017-09-18drop ${GZIPCMD} and just use 'gzip'Jasper Lievisse Adriaanse
2017-09-18drop ${STRIP}, it's just 'strip'Jasper Lievisse Adriaanse
ok deraadt@
2017-09-18Mention that Generation 2 Virtual Machines are currently not supportedMike Belopuhov
2017-09-18Document readdir_r() return value and update style of the exampleTodd C. Miller
code. Adapted from a diff by Ross L Richardson.
2017-09-18Avoid race in relayd test that uses an invalid chunked header. WaitAlexander Bluhm
until server has started, then expect error message in server log.
2017-09-18document @versionMarc Espie
2017-09-18better diagnosticsMarc Espie
2017-09-18-V option for pkg_create and incorporate version into signatures.Marc Espie
2017-09-18Prevent type mismatch warning in debug on platforms where sig_atomic_tDarren Tucker
!= int. ok djm@
2017-09-18Add braces missing after channels refactor. ok markus@Darren Tucker
2017-09-18Check for failures of exchange_establish_p{1,2}() and call the givenMartin Pieuchot
`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@
2017-09-18protect i8259 state with a mutex.David Gwynne
this allows interrupts to be safely posted by multiple threads. ok mlarkin@
2017-09-18Missed a log_warnx(). Nuke an extraneous space.Kenneth R Westerback
2017-09-17If file descriptors are exhausted during initialization, we seeAlexander Bluhm
better log messages on the console now.
2017-09-17syslogd has special code to report errors before it has beenAlexander Bluhm
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@
2017-09-17vmd: send/recv pci config space instead of recreating pci devices on receivepd
ok mlarkin@
2017-09-17vmd: re add rtc.per and rtc.sec evtimers on receivepd
This was missed in receive. mc146818_start is already defined. This fixes rtc time resync on receive. ok mlarkin@
2017-09-17When writing local output, syslogd ignores EAGAIN. UnfortunatelyAlexander Bluhm
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@
2017-09-17Oops. Missed a file.Kenneth R Westerback
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.
2017-09-17Create global 'log_procname' and set it to '<ifname>' orKenneth R Westerback
'<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.
2017-09-17use strip directly. The layers if macros are not actually helpful.Theo de Raadt
2017-09-17Some further shrinking, but obviously not enough. Something unknownTheo de Raadt
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?
2017-09-17Give up on alpha floppies for nowTheo de Raadt
2017-09-17link to mtrr(4) because the mem(4) driver supports ioctl(2)Ingo Schwarze
in addition to read(2) and write(2) and because that ioctl(2) support is documented in mtrr(4); OK jmc@
2017-09-17__progname has type char *, we cannot change its type without causingOtto Moerbeek
havoc all over the place. So add some casts to silence the compiler. ok deraadt@ guenther@
2017-09-17Do not print "cpuX launched" any longer. This reduces dmesg spamVisa Hankala
on multicore systems.
2017-09-16we already have a comparison function for libobjects, so move it up toMarc Espie
the best class, and sort bad libraries in dependency solving accordingly
2017-09-16recognize @version, to be used for a system-wide version markerMarc Espie
2017-09-16Make sure to freezero() the wide-character copy of the user supplied password.anton
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@
2017-09-16Carefully add casts to silence clang sign-compare warnings. ok millert@Otto Moerbeek
2017-09-16Make sure that `fsr' is always initialized. Non-DEBUG kernelsVisa Hankala
have not been affected. From miod@
2017-09-16The copyin(9) family of functions should return EFAULT for all memoryPhilip Guenther
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@
2017-09-15Coverity complains that top == NULL was checked and further downAlexander Bluhm
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@
2017-09-15Coverity complained that the while loop at the end of m_adj() couldAlexander Bluhm
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@
2017-09-15Add dtbs the am335x_boneblack U-Boot image may use if a matching modelJonathan Gray
is found.
2017-09-15Use a poll() loop when trying read the default route fromKenneth R Westerback
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@
2017-09-15Fix bitwise operations error messages; from FreeBSDAntoine Jacoutot
ok deraadt@
2017-09-15Clean up pf rules and states on remote machine so that they do notAlexander Bluhm
interfere with later tests.
2017-09-15move the envelope handling code to its own function to clarify theEric Faurot
imsg dispatch function. ok gilles@
2017-09-15Move/add log_procinit() and setproctitle() calls so they reliably workKenneth R Westerback
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.
2017-09-15port taskqs to vmd for use in future work on virtio devicesDavid Gwynne
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@