Displaying 1 50 of 185,453 commits (0.039s)

OpenBSD — sys/dev/pci envy.c

Make set_params() return the rate the device is using. Fixes
a wrong rate being reported when a unsupported rate was requested.
Delta File
+3 -1 sys/dev/pci/envy.c
+3 -1 1 file

OpenBSD — sys/dev audio.c

Simplify rate/channels/bits bounds checking code. From
Michael W. Bombardieri <mb at ii.net>. Thanks.
Delta File
+8 -8 sys/dev/audio.c
+8 -8 1 file

OpenBSD — usr.sbin/bgpd kroute.c

For IPv6 pass prefix not nexthop as network for connected nexthops back to
the RDE so that the code actually works.
Problem found and reported by Pier Carlo Chiodi (pierky at pierky com)
OK deraadt@
Delta File
+5 -4 usr.sbin/bgpd/kroute.c
+5 -4 1 file

OpenBSD — sys/dev/pci azalia_codec.c

Add quirk for MacBook Pro 5,5. From Manav Rathi <mnvrth at gmail.com>.
Thanks!
Delta File
+3 -2 sys/dev/pci/azalia_codec.c
+3 -2 1 file

OpenBSD — usr.sbin/makefs/msdos mkfs_msdos.c

add missing braces around a multi line if statement
ok patrick@ deraadt@

OpenBSD — usr.sbin/syslogd syslogd.c

fix semicolon after if statement in currently uncalled code
ok bluhm@ deraadt@
Delta File
+2 -2 usr.sbin/syslogd/syslogd.c
+2 -2 1 file

OpenBSD — usr.sbin/ocspcheck ocspcheck.c

repair knf & whitespace that jumped out of the screen during review
ok beck
Delta File
+18 -23 usr.sbin/ocspcheck/ocspcheck.c
+18 -23 1 file

OpenBSD — sys/net if_etherip.c

Don't reject etherip packets if they are protected with IPsec.

This aligns code with documentation & matches what was available before
etherip(4) was split from gif(4).  sysctl net.inet.etherip.allow=1 is
still needed to accept etherip packets not protected with IPsec.

Reported by at least Jason Tubnor, ok mikeb@
Delta File
+3 -3 sys/net/if_etherip.c
+3 -3 1 file

OpenBSD — sys/dev/acpi acpi.c

Now that hibernate_alloc() only has clean success/failure, don't
need to call hibernate_free() to clean up a partial mess.
ok mlarkin kettenis
Delta File
+2 -2 sys/dev/acpi/acpi.c
+2 -2 1 file

OpenBSD — sys/kern subr_hibernate.c

If hibernate_alloc() encounters a problem it should undo the partial
work.
ok mlarkin kettenis
Delta File
+11 -6 sys/kern/subr_hibernate.c
+11 -6 1 file

OpenBSD — share/man/man7 packages.7

Fix broken PKG_PATH example link, ftp://ftp.openbsd.org is no more.

OK sthen@
Delta File
+3 -3 share/man/man7/packages.7
+3 -3 1 file

OpenBSD — sys/arch/amd64/amd64 vmm.c

typo in debug build
Delta File
+2 -2 sys/arch/amd64/amd64/vmm.c
+2 -2 1 file

OpenBSD — usr.bin/mandoc main.c man.1

simplify the SYNOPSIS as well, just like the option lists;
suggested by and OK jmc@

OpenBSD — sys/arch/amd64/amd64 acpi_machdep.c, sys/arch/i386/i386 acpi_machdep.c

add a newline to an error printf

OpenBSD — usr.sbin/ocspcheck ocspcheck.c

use a path of "/" if the URL does not include a trailing / - since
the web server probably doesn't like it, even though you published
the url without the trailing / in the certificate. (hello digicert!)
ok claudio@
Delta File
+5 -2 usr.sbin/ocspcheck/ocspcheck.c
+5 -2 1 file

OpenBSD — sys/arch/amd64/amd64 acpi_machdep.c, sys/arch/i386/i386 acpi_machdep.c

hibernate_free() should not be called from MD code, acpi_sleep_state()
unwinds that.  Upon hibernate fail, this was a collection of double-frees..
ok claudio mlarkin

OpenBSD — usr.sbin/ocspcheck ocspcheck.c

Fail early if an ocep server returns a non-200 http response, there is no
point in trying to parse error pages as an ocsp response.
Delta File
+4 -1 usr.sbin/ocspcheck/ocspcheck.c
+4 -1 1 file

OpenBSD — sys/dev softraid.c

If the sub-device of a softraid lacks a side-effect io function, return
failure as early as possible.
ok mlarkin claudio
Delta File
+3 -1 sys/dev/softraid.c
+3 -1 1 file

OpenBSD — sbin/pfctl pfctl.c

rather than printing the wrong function name, dont print it at all.
found by Klemens Nanni
Delta File
+2 -2 sbin/pfctl/pfctl.c
+2 -2 1 file

OpenBSD — sbin/iked dh.c ikev2.c

Don't cache the DH group in the policy

When tearing IKE SA down, the DH group referred by it is destroyed,
however it remains cached in the policy.  With the introduction of
IKE SA rekeying we have extended the life of this dangling pointer
by reusing it on new SAs.  So instead of caching the pointer in the
policy we can store the DH group ID and create a DH group on demand
using this parameter if it's specified.

With and OK reyk

OpenBSD — share/man/man4 inet6.4

various fixes to bring this page up to date a little;
help/ok bluhm
Delta File
+33 -67 share/man/man4/inet6.4
+33 -67 1 file

OpenBSD — lib/libcrypto/man X509_cmp_time.3

reinstate the capitalisation from previous, as advised by schwarze;
Delta File
+3 -3 lib/libcrypto/man/X509_cmp_time.3
+3 -3 1 file

OpenBSD — sbin/iked iked.conf.5

correct verb pattern;
Delta File
+2 -2 sbin/iked/iked.conf.5
+2 -2 1 file

OpenBSD — gnu/usr.bin/clang/clang Makefile, gnu/usr.bin/clang/lld Makefile

Do not clobber the default compiler/linker links unless COMPILER_VERSION is
set to clang.

ok jsg@

OpenBSD — usr.bin/mandoc mandoc.1

For some options that are rarely needed in mandoc(1),
delete the descriptions and point to man(1) instead.
Inspired by apropos.1 rev. 1.35.
Delta File
+5 -15 usr.bin/mandoc/mandoc.1
+5 -15 1 file

OpenBSD — usr.bin/mandoc man.1 mandoc.1

Simplify: mention at one place that -fkl override each other,
rather than stating it separately for each option.
Suggested, OKed, and tweaked by jmc@.

OpenBSD — sys/dev/fdt sxirtc.c

Reject times in the first year that can be represented by the clock to catch
RTC clocks that aren't battery powered.

ok deraadt@, millert@, visa@, tom@
Delta File
+9 -1 sys/dev/fdt/sxirtc.c
+9 -1 1 file

OpenBSD — sys/kern subr_log.c uipc_syscalls.c

Reorder FREF() and FRELE() in a way that the the global variable
syslogf always points to a file object with increased reference
count.  This makes the implementation independent from the fact
whether changing the reference counter may sleep.
pointed out by Mateusz Guzik; OK deraadt@
Delta File
+9 -7 sys/kern/subr_log.c
+2 -2 sys/kern/uipc_syscalls.c
+11 -9 2 files

OpenBSD — sbin/iked config.c iked.h

Factor out flows into separate configuration messages

We reach an imsg payload limit with just a few traffic selectors
so in order to load more we need to split them up and send separately.

Suggested and OK reyk

OpenBSD — share/man/man7 pkgpath.7

Fix a typo: /usr/port => /usr/ports

OK sthen@
Delta File
+3 -3 share/man/man7/pkgpath.7
+3 -3 1 file

OpenBSD — sbin/iked crypto.c ikev2.c

spacing

OpenBSD — sbin/iked pfkey.c ikev2.c

Fix another iked leak of SAs in pfkey_sa(), copy tags correctly.

Diff from markus@
OK mikeb@ patrick@
Delta File
+8 -2 sbin/iked/pfkey.c
+6 -1 sbin/iked/ikev2.c
+3 -1 sbin/iked/config.c
+17 -4 3 files

OpenBSD — sbin/iked ikev2.c ikev2_pld.c

Add support to reflect the responder IKEv2 COOKIE.

This fixes connecting to Azure VPN and other implementations that
implement the IKEv2 COOKIE mechanism on the responder side.  Azure
decides to send you a responder COOKIE after too many connection
attempts - we have to keep it and reflect it to establish a
connection.  This implementation is only for the initiator (client)
side, we do not support sending COOKIEs on the responder (server) side
yet.

OK patrick@ mikeb@

OpenBSD — sbin/iked crypto.c parse.y

Add support for RFC4754 (ECDSA) and RFC7427 authentication.

These modes provide stronger and more flexible ways for
authentication: while RSA public key auth relies on SHA-1 hashes, the
news modes use SHA2-256 and up to SHA2-512 hashes.

Original diff from markus@ with patches from mikeb@ and me.

OK mikeb@ patrick@
Delta File
+217 -46 sbin/iked/crypto.c
+191 -32 sbin/iked/parse.y
+140 -10 sbin/iked/ca.c
+41 -8 sbin/iked/ikev2.c
+22 -7 sbin/iked/iked.conf.5
+11 -4 sbin/iked/ikev2_msg.c
+19 -5 3 files not shown
+641 -112 9 files

OpenBSD — sys/netinet in.c

Fix the prefixlen sent by RTM_NEWADDR on new addresses without masks:
calculate the prefixlen using the address before sending the RTM_NEWADDR
message.

ok claudio@
Delta File
+11 -10 sys/netinet/in.c
+11 -10 1 file

OpenBSD — usr.sbin/ypldap aldap.c

simplify parseval() by allocating a buffer the size of the input string,
which will always be big enough to hold the output string.

ok dlg@
Delta File
+8 -19 usr.sbin/ypldap/aldap.c
+8 -19 1 file

OpenBSD — sys/dev/pci pcidevs_data.h pcidevs.h

regen
Delta File
+12 -12 sys/dev/pci/pcidevs_data.h
+8 -8 sys/dev/pci/pcidevs.h
+20 -20 2 files

OpenBSD — sys/dev/pci pcidevs

shorten vmm strings

ok kettenis@ reyk@
Delta File
+8 -8 sys/dev/pci/pcidevs
+8 -8 1 file

OpenBSD — sys/kern kern_pledge.c

wrap bpf pledge code in #if BPFFILTER
Delta File
+4 -1 sys/kern/kern_pledge.c
+4 -1 1 file

OpenBSD — usr.sbin/vmd pci.c proc.h

die whitespace die die die
Delta File
+4 -5 usr.sbin/vmd/pci.c
+3 -3 usr.sbin/vmd/proc.h
+3 -3 usr.sbin/vmd/virtio.h
+3 -3 usr.sbin/vmd/loadfile_elf.c
+3 -3 usr.sbin/vmd/parse.y
+2 -2 usr.sbin/vmd/vm.c
+3 -4 2 files not shown
+21 -23 8 files

OpenBSD — sys/arch/amd64/amd64 codepatch.c, sys/arch/i386/i386 codepatch.c

KNF

OpenBSD — sys/kern kern_pledge.c

Inside pledge_ioctl, wrap #if's around the complete sub-blocks.
Delta File
+9 -9 sys/kern/kern_pledge.c
+9 -9 1 file

OpenBSD — sys/kern kern_pledge.c

For the tape ioctls, recognize that block devices don't exist anymore.
Also fail if the descriptor is actually a tty.
ok guenther
Delta File
+3 -2 sys/kern/kern_pledge.c
+3 -2 1 file

OpenBSD — usr.sbin/vmd virtio.c virtio.h

Implement a missing command in vioblk and allow > MAXPHYS transfers.

This diff (with the others previously committed) allows ubuntu 14.04
amd64 guests to work.
Delta File
+105 -15 usr.sbin/vmd/virtio.c
+2 -1 usr.sbin/vmd/virtio.h
+107 -16 2 files

OpenBSD — sys/arch/amd64/amd64 vmm.c

discard MSR reads from unknown MSRs instead of passing them through. That
behaviour was needed during early development but not anymore. Suppress
the printf that accompanied these exits since linux guests go probing
wildly into msr-land on each boot.

ok deraadt
Delta File
+27 -17 sys/arch/amd64/amd64/vmm.c
+27 -17 1 file

OpenBSD — sys/dev/pv vioblkreg.h

Add a #define needed for an upcoming vmd commit (to reflect a failure
when an operation was requested from vioblk host devices that is
not supported except on qemu).
Delta File
+2 -1 sys/dev/pv/vioblkreg.h
+2 -1 1 file

OpenBSD — sbin/dhclient options.c

Fix dhclient vis/unvis of strings stored in the leases file.

Replaces incorrect manual emulation of vis() for single, double and
back quotes, dollar signs and back slashes. Just use vis() with
VIS_ALL for these characters.

Should fix problem reported by robert@ with ssid's containing back
slash.
Delta File
+4 -5 sbin/dhclient/options.c
+4 -5 1 file

OpenBSD — usr.bin/tail read.c

Change a reallocarray+bzero into recallocarray.

OK tb@ and deraadt@
Delta File
+3 -5 usr.bin/tail/read.c
+3 -5 1 file

OpenBSD — lib/libc/sys Makefile.inc

Use .file to convince 'as' to generate proper FILE symbols in the syscall
stubs that aren't actually in files, so that syspatch can figure out what
order the syscall stub objects are in the .so.  Use -P to suppress to #line
directives that would override that.  Tested with both gcc/gas and clang.

ok deraadt@
Delta File
+8 -7 lib/libc/sys/Makefile.inc
+8 -7 1 file

OpenBSD — share/mk bsd.lib.mk

The support in 'ar' for 'D'eterministic builds has been in for weeks,
so start using it to make archives (mostly) detereministic for syspatch

ok millert@ deraadt@ kettenis@
Delta File
+6 -6 share/mk/bsd.lib.mk
+6 -6 1 file