summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-03-14Change a bunch of (<blah> *)0 to NULL.Kenneth R Westerback
ok beck@ deraadt@
2016-03-14some Xr; from michal mazurekJason McIntyre
2016-03-14fix word issue, as reported by hansJason McIntyre
2016-03-14Expose snprintf() and vsnprintf() for XPG 5. It predates C99 butTodd C. Miller
still specified snprintf() and vsnprintf() based on earlier drafts. Allows snprintf() and vsnprintf() to be used when _XOPEN_SOURCE is defined as 500. OK guenther@
2016-03-14Replace an ad-hoc implementation of opendev(), with said function andnatano
open the device only once with the correct flags, instead of twice (one file handle for reading and one for writing). Committing this at once because the changes are interrelated. ok stefan
2016-03-14Add a missing "cpath" promise; newfs_ext2fs can create files when usednatano
with the -F and -s flags. ok stefan
2016-03-14Convert sparc drivers bpp and magma to uiomoveStefan Kempf
Compile test and ok tobiasu@
2016-03-14small step towards multiple pools: move two globls into the struct dir_infoOtto Moerbeek
ok @stefan armani@
2016-03-14unbreak authentication using lone certificate keys in ssh-agent:Damien Miller
when attempting pubkey auth with a certificate, if no separate private key is found among the keys then try with the certificate key itself. bz#2550 reported by Peter Moody
2016-03-14zdump(8) needs to read files so it needs pledge(2) rpath promisemestre
After discussion with tb@, deraadt@ and millert@, this was also OK'ed by them
2016-03-14Remove doaccess variable and access(2) call since this interfers withmestre
applications like zdump(8) because pledge(2) doesn't allow access(2) to /usr/share/zoneinfo. millert@ better described why this call can go away: "This looks like an attempt to do access checks based on the real uid instead of the effective uid. Basically for setuid programs we don't want to allow a user to set TZ to a path they should not be able to otherwise access. However, we already have a check for issetugid() above so I think the doaccess bits can just be removed and we can rely on open()." After discussion with tb@, deraadt@ and millert@, this was also OK'ed by them
2016-03-14(char *)0 -> NULLmmcc
2016-03-14replace __progname with getprogname(3)mmcc
from Michal Mazurek, ok tb@
2016-03-14Correct the value of SRT_ENDTAG: it was documented incorrectly in earlyPhilip Guenther
ACPI specs. With the correct value, it can now be used in a few places instead of hardcoding 0x79. ok kettenis@
2016-03-14move the vlan protocol definitions to the same places as the ethernet onesDavid Gwynne
ok mpi@
2016-03-14Remove a reference to lint(1) in the description of the -CC option. Themmcc
option itself may go away sometime soon. ok guenther@, deraadt@
2016-03-14Allocate statistics command from the heap, pointed out by deraadt@Mike Belopuhov
2016-03-13keep disabled wl_paths for now. the expensiveness impact need to be betterSebastien Marie
considered. ok deraadt@
2016-03-13crt0.c is already setting environ, so don't set it in MD_START_SETUPPhilip Guenther
ok kettenis@ mpi@
2016-03-13environ and __progname are not declared in a public header; declare themPhilip Guenther
in libc's hidden/stdlib.h instead of in each .c file that needs one ok deraadt@ gsoares@ mpi@
2016-03-13remove an extra space before ^\ help message.martijn
Fixes allignment in viusage By Raf Czlonka
2016-03-13check return value for BN_hex2bn in regression testsBrent Cook
2016-03-13Fix examples for EVP_PKEY_CTX_set_rsa_padding.Brent Cook
Noted here, https://github.com/libressl-portable/portable/issues/161, we document a non-existent constant in the examples for EVP_PKEY_CTX_set_rsa_padding. ok deraadt@
2016-03-13reenable wl_paths (whitelisted-paths) in pledge(2)Sebastien Marie
2016-03-13pledge: replace #if 0 printf with DNPRINTF macroSebastien Marie
2016-03-13pledge: let wl_paths works well with chrootSebastien Marie
it factorizes path resolution in resolvpath() function, and use it in sys_pledge() and pledge_namei(). please note that wl_paths is still disabled.
2016-03-13Introduce memory ranges to support VMs with >= 4G RAMStefan Kempf
Kernel bits: - When creating a VM, a list of memory ranges has to be specified, similar to the BIOS memory map. This is necessary for VMs with RAM sizes approaching 4G because we'll need PCI MMIO space in the higher parts of the 32 bit address space. vmctl and vmd bits: - Construct appropriate memory ranges to create a VM with a given RAM size - Construct a corresponding BIOS memory map from the memory ranges and update the boot params page accordingly. - Make sure that all variables that represent guest physical addresses match the address width of the target CPU instead of using uint32_t. - Fix some integer promotion glitches that actually restricted VM RAM size to 2G. This changes the VM create ioctl interface, so update your kernel, vmd, and vmctl. ok mlarkin@
2016-03-13In ichiic(4), ignore the SMBALERT# interrupt. This interrupt has beenStefan Sperling
observed to fire for spurious reasons with buggy hardware/bios. It is being ignored by both FreeBSD and Linux as well. Fixes GENERIC kernel boot on ADI RCC-VE with buggy bios versions, where ichiic(4) ended up stealing interrupts from ehci(4), rendering the internal eMMC flash unusable. Also, always ackknowledge all interrupts by writing status bits back to avoid a potential SMBALERT# interrupt storm. with and ok deraadt@ kettenis@ mpi@
2016-03-13i forgot to rename p to ifp0 in vlan_configDavid Gwynne
still no binary change.
2016-03-13Recognize ipmi, vscsi, pvbus, udl, fuse, trunk, pipex and memrangenatano
ioctl requests.
2016-03-13one more un-vax, which i fixed but somehow didn;t commit;Jason McIntyre
Xr fix while here...
2016-03-13corrects on off-by-one error in pledge_namei()Sebastien Marie
- rewrite canonpath() to not require extra byte before shrinking - make canonpath() error not fatal for the caller (proposition from tedu@) ok millert@ tedu@ deraadt@
2016-03-13consistencly name ifnet pointers like we did in carpDavid Gwynne
the vlan interface is ifp, the vlans parent interface is ifp0, the new interface parent is newifp0. requested by mpi@ no binary change
2016-03-13Rework an erroneous warning message about 16 bit i8253 PIT counter I/O.Mike Larkin
The unimplemented mode is MSB/LSB (8 bit), not 16 bit mode.
2016-03-12Call mprotect() via its hidden _lib_mprotect alias to avoid accidentalPhilip Guenther
overriding ok deraadt@ kettenis@
2016-03-12Add error handling to the remaining calls to bn_wexpand().Brent Cook
Noticed by pascal-cuoq from Github: https://github.com/libressl-portable/openbsd/issues/56 ok beck@
2016-03-12Remove sentences in RETURN VALUES sections saying that functions withmmcc
void return types 'return no value'. This is obvious and therefore unneccessary to mention. We spare rewind(3)'s sentence because espie@ pointed out that it's a warning - the function masks a potential error. This commit also adds a sentence to X509_free clarifying that it's NULL-safe. This bit was discussed with doug@. ok martijn@, sentiment supported by schwarze@
2016-03-12Bump for LibreSSL 2.4.0Brent Cook
2016-03-12Fix markup problem introduced in the previous commit. Solution andtb
explanations provided by schwarze@.
2016-03-12regen generated files after MAKEDEVs commitsMarc Espie
2016-03-12reflect reality (MAKEDEV can take no parms and still work)Marc Espie
2016-03-12tweak MAKEDEV.mi to use new makedev(8) capabilities and speed it up.Marc Espie
2016-03-12Standardize on calling local scsi_link variables 'link' instead ofKenneth R Westerback
'sc_link'. 'sc_link' is a field in the various device *_softc structures, where the sc_ prefix was for 'softc'. Reduces potential mental confusion. Newer code from down under was already using 'link'. No functional change. Prompted by bluhm@'s adventures in scsi. ok dlg@ jmatthew@
2003-05-11import 0.9.7b (without idea and rc5)Markus Friedl
2016-03-12Use 12 chars for pool name in "systat pool" to match vmstat -m. ok stefan@Stuart Henderson
2016-03-12Add checks on overlapping IPv6 sockets ownershipVincent Gross
ok mpi@ bluhm@
2016-03-12When unplugging an USB umass stick, the kernel could panic becauseAlexander Bluhm
of a use after free. In sdopen() the scsi link pointer is taken from the scsi disk struct. While the scsi disk memory is refcounted by autoconf, the scsi link may be detached and freed during sleep. The solution is to check wether the disk is dying after every sleep. The SDF_DYING flag is set before scsi bus and scsi disk are detached, so without this flag the link must be valid. input and OK krw@
2016-03-12When vfs_busy() is sleeping, it uses RW_SLEEPFAIL and will fail.Alexander Bluhm
So if vop_generic_revoke() does not unmount because the mount point is busy, this could result in a mount point without a valid device. It is better to check and sleep in a loop to avoid a corrupt mount point. OK natano@ krw@
2016-03-11Document perl Module::Build::Tiny support in CONFIGURE_STYLEStuart Henderson
2016-03-11un-un-vax;Jason McIntyre
this file has not been touched in nearly two years - putting this out as a test of whether to propose its removal;