summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-01-19In pfioctl() a pf unlock was missing in the error path.Alexander Bluhm
OK lteo@ sashan@
2018-01-19VMD: vioscsi - fix large ISO support in Linuxccardenas
Check if n_blocks is less than UINT32_MAX and not the image size in various places (READ_CAPACITY_* and GET_CONFIGURATION). ok mlarkin@ and dlg@
2018-01-19Use the pf state key linking functions in two more places insteadAlexander Bluhm
of doing it manually. OK sashan@ visa@
2018-01-19display the actual redirect message, as that's informative.Marc Espie
won't flood the terminal, since the first redirect changes the host discussed with sthen
2018-01-19Partial revert of rev. 1.7, fixes build with clangJeremie Courreges-Anglas
The error was: --8<-- ffs.S:57:2: error: unsupported relocation on symbol adrne r2, .L_ffs_table ^ -->8-- Minimal workaround suggested by deraadt@, ok guenther@ kettenis@
2018-01-19/etc/snmpd.conf may contain passwords or other sensitiveGleydson Soares
data. diff provided by alf <a.schlichting at lemarit.com> ok millert
2018-01-18Wow, it cannot even be in .data...Theo de Raadt
2018-01-18Zap the rotor, it was a wrong idea. Cluebat applied by kshe whoOtto Moerbeek
came also up with this diff. Simple, no bias and benchmarks show the extra random calls disappear in te measurement noise.
2018-01-18Sorry, the PIC macros cannot reach to .rodata....Theo de Raadt
2018-01-18Remove quirk matching all Yamaha devices, as this prevents non-MIDIAlexandre Ratchov
devices from attaching (ex uaudio devices). ok mpi
2018-01-18While booting it does not make sense to wait for memory, there isAlexander Bluhm
no other process which could free it. Better panic in malloc(9) or pool_get(9) instead of sleeping forever. tested by visa@ patrick@ Jan Klemkow suggested by kettenis@; OK deraadt@
2018-01-18Make URL redirection sticky in the installerjob
Ensures that when URL redirection takes place, the rest of the install/upgrade session will stick to that redirected location. This should help ensure that the fetched set of files is coherent when a load balancer emits 301/302. With feedback from rpe@ OK sthen@ rpe@
2018-01-18Discard all but the last line when reading from a #() command - theNicholas Marriott
callback is just going to be fired again straight away to go through all the lines, it is better just to use the last one straight away.
2018-01-18Make the installer use the multiprocessor kernel if there is moreVisa Hankala
than one core available. When bsd.mp is used, bsd.sp is not copied to the boot partition. Old installations might not have enough space for all bsd.mp, bsd.sp and bsd.rd. OK deraadt@, krw@, pirofti@
2018-01-18Fix the computation of `ncpusfound' on !MULTIPROCESSOR kernels so thatVisa Hankala
the value matches with the number of cores that GENERIC.MP uses. OK deraadt@, krw@, pirofti@
2018-01-18Fix an off-by-one uncovered by the recent free(9) changeMike Belopuhov
From canacar@, thanks!
2018-01-18Mark up mount(8) options with Cm.Anthony J. Bentley
2018-01-18Move to ffs(3) for bitmask scanning. I played with this earlier,Otto Moerbeek
but at that time ffs function calls were generated instead of the compiler inlining the code. Now that ffs is marked protected in libc this is handled better. Thanks to kshe who prompted me to look at this again.
2018-01-18Instead of trying to handle ffs() with the normal rename-mark-hidden-and-aliasPhilip Guenther
dance, mark it protected. This works better for both gcc and clang: gcc blocks overriding of internal calls, while clang permits inlining again. ok otto@
2018-01-18Unlike other archs, mips64 needs ld.so to know about symbol visibility andPhilip Guenther
skip symbol lookup on protected symbols. Add visibility #defines to <sys/exec_elf.h> to support that. ok kettenis@ visa@
2018-01-18Remove unused hooks_run function, from Thomas Adam.Nicholas Marriott
2018-01-17syncTheo de Raadt
2018-01-17Add sizes for free() in wscons(4).Frederic Cambus
OK deraadt@, visa@, mpi@
2018-01-17Found a .data variable that can be in .rodataTheo de Raadt
ok mibek
2018-01-17In cbus(4) drivers, make it easier to identify which driver is doingStefan Sperling
debug printfs about LDC link state changes. No functional change. ok kettenis@
2018-01-17Remove erreneous and leftover slash that was part of the regex beforePatrick Wildt
we switched to compiled regexes. Fixes fw_update(1). Noticed by deraadt@ ok sthen@
2018-01-17Process redirection messages from http.Marc Espie
This will help for round-robin sites in anchoring a pkg_add session to a single site, thus removing shearing effects. Initial idea from job@, reworked a lot by me, enthusiastic okay sthen@
2018-01-17Defend agains branch predictor target injection (Spectre "variant 2")Mark Kettenis
attacks by flushing the branch predictor cache (BTB) on context switches and page faults in kkernel address space. Note that this relies on the presence of firmware (such as Arm Trusted Firmware) that provides PSCI services that flush the BTB on entry as described in Arm Trusted Firmware Security Advisory TFV 6. ok patrick@, visa@
2018-01-17Implement support for the PSCI_VERSION call and export the function such thatMark Kettenis
we can use it to defend against branch target injection attacks. ok patrick@, visa@
2018-01-17Implement basic padding support in libsa so we can do zero-paddingPatrick Wildt
in bootloader printfs. Feedback from and ok gerhard@
2018-01-17Disable ACPI burst mode on the 2015 Chromebook Pixel, where it freezes.Anthony J. Bentley
Diff from jcs@, ok pirofti@
2018-01-16On armv7, remove symbols that are also present in our libc. Because of theMark Kettenis
EABI aliases these can lead to duplicate symbol errors, especially when mixing code compiled with gcc and clang. The intention is to revert this once we convert armv7 to hardfloat. ok patrick@, guenther@
2018-01-16Introduce internal_warningf() and mark internal_errorf() as noreturnJeremie Courreges-Anglas
This helps tools like scan-build, and follows the example of warningf() and errorf(). ok anton@
2018-01-16g/c unused defines that were only used by nacl's SHA-512 implementationChristian Weisgerber
ok tedu@
2018-01-16Stop constructing the ulimit optstring passed to ksh_getopt() at runtime sinceanton
it's rarely subject to change. While here, unifdef RLIMIT_VMEM. ok jca@
2018-01-16garbage collect an unused variableSebastian Benoit
ok dlg@
2018-01-16One minor scan-build warningJeremie Courreges-Anglas
emacs.c:1041:2: warning: Value stored to 'cp' is never read
2018-01-16Use the monotonic clock to compute the session duration.cheloha
Ensures the correct duration is logged even if the system time is changed during the session. ok jca@
2018-01-16Fix drawing of ACS characters (they need to go character-at-a-time),Nicholas Marriott
accidentally broken in last commit.
2018-01-16GETTY_SLEEP is 30 seconds, not 10cheloha
ok deraadt@
2018-01-16Fix bit.Visa Hankala
2018-01-16Fix return value.Visa Hankala
2018-01-16Enable traceroute test for incoming reply-to rule.Alexander Bluhm
2018-01-16If pf route-to is used for locally generated packets, they may haveAlexander Bluhm
an invalid source address. As pf route-to happens after IP source selection based on a different route, the address should be corrected after pf has allocated the new route. Especially loopback addresses must not appear at outgoing packets. OK sashan@ visa@
2018-01-16Recycle IFF_NOTRAILERS into IFF_STATICARP and document ownerhsipMartin Pieuchot
of IFF* flags. inputs from jmc@, ok bluhm@, visa@
2018-01-16Add -I to pipe-pane to connect pane stdin as well as stdout, suggestedNicholas Marriott
by Kristof Kovacs in GitHub issue 1186.
2018-01-16VMD: vioscsi - add support for REPORT_LUNS opcodeccardenas
ok mlarkin@
2018-01-15Add tests that unmount a file system while it is busy. On a vndAlexander Bluhm
device "cp -r" and "rm -rf" are working in the background while "umount -f" or "mount -ur" are executed. Then "fsck -f" is used to verify that the file system is clean. Currently this triggers a bug quite reliably. After the mount point has been changed to read-only, the file system check shows that not everything was flushed and synced properly.
2018-01-15Don't try to open HISTFILE if the variable is unset.Jeremie Courreges-Anglas
str_val returns null, not NULL, if the variable isn't set. The erroneous check means that we later tried to open(""). ok millert@ tb@ anton@ benno@
2018-01-15Switch the inteldrm(4) i2c code over to the Linux code base. This gives usMark Kettenis
several quirks that wre absent in the old OpenBSD-specific reimplementation. Fixes several issues with external connectors on several generations of hardware. ok deraadt@, benno@