CVS: cvs.openbsd.org: src

2015-08-26 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/08/26 13:33:17

Modified files:
lib/libexpat/lib: xmlparse.c 

Log message:
Put back local changes (revisions 1.2 to 1.4), which unfortunately got lost in
the last upgrade.
ok deraadt@



CVS: cvs.openbsd.org: src

2015-08-26 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/08/26 13:36:23

Modified files:
lib/libexpat/lib: xmlparse.c 

Log message:
More overflow checks in XML_GetBuffer(), adapted from FreeBSD security
advisory FreeBSD-SA-15:20. Most of them were already fixed by niallo@'s work,
which unfortunately got removed in r1.10 /-:

With help from doug@



CVS: cvs.openbsd.org: src

2015-08-25 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/08/25 10:10:02

Added files:
lib/libc/arch/m88k: Symbols.list 

Log message:
catch up



CVS: cvs.openbsd.org: src

2015-08-18 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/08/18 14:19:32

Modified files:
lib/libssl/src/crypto/bn/asm: ia64.S 
lib/libssl/src/crypto/sha/asm: sha512-parisc.pl 
lib/libssl/src/doc/crypto: EVP_BytesToKey.pod 
   PKCS5_PBKDF2_HMAC.pod 
   X509_VERIFY_PARAM_set_flags.pod 
sys/sys: memrange.h 

Log message:
typos



CVS: cvs.openbsd.org: src

2015-08-18 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/08/18 14:25:28

Modified files:
sys/arch/arm/arm: pmap.c 
usr.sbin/rtadvd: rtadvd.c 

Log message:
Fix inconsistent spelling of `inconsistent'



CVS: cvs.openbsd.org: src

2015-08-15 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/08/15 16:31:38

Modified files:
sys/arch/loongson/include: cpu.h 
sys/arch/loongson/loongson: bus_dma.c 
sys/arch/loongson/conf: files.loongson 
sys/arch/mips64/conf: files.mips64 
sys/arch/mips64/include: cache.h 
Added files:
sys/arch/loongson/loongson: loongson3_machdep.c 
sys/arch/mips64/mips64: cache_loongson3.c cache_mips64r2.c 

Log message:
Some bits for Loongson 3A support.



CVS: cvs.openbsd.org: src

2015-08-15 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/08/15 16:25:22

Modified files:
sys/arch/loongson/dev: glx.c 

Log message:
typo



CVS: cvs.openbsd.org: src

2015-08-15 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/08/15 16:20:20

Modified files:
sys/arch/arm/arm: pmap.c vm_machdep.c 
sys/arch/arm/include: pmap.h 

Log message:
Remove orphaned debug code.



CVS: cvs.openbsd.org: src

2015-08-15 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/08/15 13:04:31

Modified files:
sys/arch/alpha/alpha: cpu.c 

Log message:
When resetting the hwrpb after a succesfull secondary processor spinup,
make its start routine point to cpu_halt, just in case.



CVS: cvs.openbsd.org: src

2015-08-15 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/08/15 13:07:10

Modified files:
sys/arch/alpha/conf: RAMDISKBIG 

Log message:
Enable AlphaBook 1 support in bsd.rd too



CVS: cvs.openbsd.org: src

2015-08-15 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/08/15 13:15:18

Modified files:
sys/arch/alpha/isa: isa_machdep.h 
sys/arch/alpha/pci: sio.c 

Log message:
Fix isa_chipset_t ic_intr_{alloc,check} prototype: these take an
isa_chipset_tag_t, not an isa_chipset_tag_t *, as isa_chipset_tag_t is already
a pointer.



CVS: cvs.openbsd.org: src

2015-08-15 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/08/15 13:18:27

Modified files:
sys/arch/alpha/pci: pci_alphabook1.c pci_up1000.c 

Log message:
No need to cargo-cult include alpha/pci/sioreg.h here.



CVS: cvs.openbsd.org: src

2015-08-15 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/08/15 13:26:00

Modified files:
sys/arch/alpha/pci: sio.c 

Log message:
Store the {e,}isa_chipset_t in the softc, rather than on sio_bridge_callback()'s
stack, for {e,}isa drivers might have a need for them way after autoconf - at
least pcic@isa does.



CVS: cvs.openbsd.org: src

2015-08-15 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/08/15 13:29:00

Modified files:
sys/dev/ic : i82365.c 

Log message:
Do not perform timeout maintainance on sc-poll_timeout if it has not been
initialized yet.



CVS: cvs.openbsd.org: src

2015-08-15 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/08/15 13:40:59

Modified files:
sys/lib/libsa  : nfs.c 

Log message:
Use signed variables to store the result of rpc_call().



CVS: cvs.openbsd.org: src

2015-08-15 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/08/15 13:42:56

Modified files:
sys/lib/libsa  : rpc.c 

Log message:
When sendrecv() returns -1, have rpc_call() return -1 as well. Otherwise, due
to the cast to unsigned, it fails the error test and returns a bogus partial
read to the caller, which is painful to debug.



CVS: cvs.openbsd.org: src

2015-08-15 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/08/15 14:06:21

Modified files:
sys/arch/alpha/pci: sio_pic.c 

Log message:
If the SRM has explicitely set up some ISA interrupts level-triggered,
honour this setting and consider them level-triggered instead of `polarity
decided by the first driver to use it'.

Add explicit code to turn registration of edge-triggered interrupts 3 and 4
into level-triggered, if they were set up a level-triggered by the SRM.

Based upon a NetBSD diff which eventually got reverted in NetBSD. However,
it turns out this is necessary for the kernel to correctly run with serial
console on my Multia.



CVS: cvs.openbsd.org: src

2015-08-13 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/08/13 13:13:28

Modified files:
usr.bin/nm : elf.c elfuncs.h nm.1 nm.c util.h 

Log message:
Grow -P (POSIX output) and -t (POSIX output radix) support. Several 3rd-party
software depend upon this.

Requested by feinerer@, ok millert@; manpage bits ok jmc@



CVS: cvs.openbsd.org: www

2015-08-09 Thread Miod Vallat
CVSROOT:/cvs
Module name:www
Changes by: m...@cvs.openbsd.org2015/08/09 22:26:08

Modified files:
.  : 58.html 

Log message:
neither aviion release nor m88k packages



CVS: cvs.openbsd.org: src

2015-07-29 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/29 13:16:09

Modified files:
lib/libssl/src/ssl: s3_clnt.c s3_meth.c s3_srvr.c 

Log message:
Add linker warnings in case SSLv3_{,client,server}_method are referenced.

Use of this symbols proves the existence of a code path willingly using SSLv3,
even with OPENSSL_NO_SSL3 being defined, which hints that it needs fixing.

Discussed with the LibreSSL cabal during c2k15; ok deraadt@



CVS: cvs.openbsd.org: src

2015-07-29 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/29 11:54:35

Modified files:
sys/arch/m88k/m88k: pmap.c 

Log message:
Acquire the kernel lock in pmap_remove(). The reasons for this can't be
stated here as I have been asked to be polite in this commit message.
ok deraadt@



CVS: cvs.openbsd.org: src

2015-07-29 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/29 12:52:44

Modified files:
sys/arch/macppc/macppc: locore.S 
sys/arch/powerpc/include: pcb.h 
sys/arch/powerpc/powerpc: trap.c 
sys/arch/socppc/socppc: locore.S 

Log message:
17 years ago, setfault() was modified to save the status register in the
faultbuf. But 1/ sr was only restored for machine check exceptions, and 2/ the
way it was saved was unsafe if interrupts were enabled, and could cause %r2
to be lost.

Discussing this with deraadt@ at the end of c2k15, this was probably needed
for the old VI boards which were the target of the original powerpc port,
came with a worse-than-Genesi openfirmware. Since then, machine check
exceptions have been unheard of; or, if they happen, they do not need the
status register to be restored.

ok mpi@ deraadt@



CVS: cvs.openbsd.org: src

2015-07-25 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/25 14:45:05

Modified files:
sys/arch/m88k/include: pmap.h 
sys/arch/m88k/m88k: pmap.c 

Log message:
Only store mod/ref flags in the vm_page_md struct, not in every pv_entry.



CVS: cvs.openbsd.org: src

2015-07-25 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/25 21:17:07

Modified files:
sys/dev/ic : vga.c vgavar.h 

Log message:
When attaching on an alpha system, get the current textmode resolution by
querying the 6845 registers, and preserve it if it is larger than 80x25 yet
plausible.

This is necessary to properly operate on the Alphabook 1 where the vga display
is running in a 100x37 textmode.

Other platforms are not affected.



CVS: cvs.openbsd.org: src

2015-07-25 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/25 20:14:09

Modified files:
sys/dev/ic : i82365.c 

Log message:
Make pcic_ident_ok() completely silent in case of failure.



Re: CVS: cvs.openbsd.org: src

2015-07-20 Thread Miod Vallat
 Grr.  Is there a way to fix this in an MD fashion?  Just asking.

Yes, by adding this include to machine/cpu.h on the platforms which
would need it, and I'm not sure this is something we want to do, given
the few places PROC_PC() is used.



CVS: cvs.openbsd.org: src

2015-07-20 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/20 12:05:04

Modified files:
sys/dev/pci: pci_quirks.c 

Log message:
Add a quirk for Cirrus Logic PD6729, for earlier silicon versions of this
chip would advertize themselves as multi-function devices, while they are
not.



CVS: cvs.openbsd.org: src

2015-07-20 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/20 09:27:00

Modified files:
lib/libssl/src/crypto/asn1: x_pkey.c 

Log message:
In X509_PKEY_new(), make sure all allocation failures push an error to the
error stack, not only the first one.
ok guenther@ doug@



CVS: cvs.openbsd.org: src

2015-07-20 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/20 09:29:13

Modified files:
lib/libssl/src/crypto/asn1: x_crl.c 

Log message:
When freeing an X509_CRL, if freeing the user-maintained meth_data fails,
do not forgot to nevertheless keep freeing the other fields.
ok doug@ guenther@



CVS: cvs.openbsd.org: src

2015-07-20 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/20 09:45:29

Modified files:
lib/libssl/src/crypto/hmac: hm_ameth.c 

Log message:
Various memory leaks upon error or unchecked allocations.
ok doug@



CVS: cvs.openbsd.org: src

2015-07-20 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/20 09:41:48

Modified files:
lib/libssl/src/crypto/asn1: tasn_dec.c 

Log message:
Check the return value of asn1_enc_save(). ok bcook@ doug@



CVS: cvs.openbsd.org: src

2015-07-20 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/20 09:43:23

Modified files:
lib/libssl/src/crypto/asn1: tasn_new.c 

Log message:
Use V_ASN1_UNDEF instead of -1.
Make sure ASN1_primitive_new() will return NULL in *pval in all error
situations.

ok bcook@ doug@



CVS: cvs.openbsd.org: src

2015-07-20 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/20 16:41:41

Modified files:
sys/uvm: uvm_mmap.c 

Log message:
Actually return a value from sys_kbind() in the non-ld.so case, or the
compiler will warn.



CVS: cvs.openbsd.org: src

2015-07-19 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/19 00:42:19

Modified files:
distrib/sets/lists/base: md.alpha md.amd64 md.armish md.armv7 
 md.aviion md.hppa md.hppa64 md.i386 
 md.landisk md.loongson md.luna88k 
 md.macppc md.octeon md.sgi md.socppc 
 md.sparc md.sparc64 md.zaurus 

Log message:
sync



CVS: cvs.openbsd.org: src

2015-07-19 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/19 00:50:58

Modified files:
distrib/sets/lists/base: md.alpha md.amd64 md.armish md.armv7 
 md.aviion md.hppa md.hppa64 md.i386 
 md.landisk md.loongson md.luna88k 
 md.macppc md.octeon md.sgi md.socppc 
 md.sparc md.sparc64 md.zaurus 

Log message:
sync



CVS: cvs.openbsd.org: src

2015-07-19 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/19 10:56:48

Modified files:
gnu/gcc/gcc/doc: gcc.info 

Log message:
Add the documentation of -Wbounded and attribute(bounded) from gcc-local(1)
to the gcc info documentation as well.



CVS: cvs.openbsd.org: src

2015-07-19 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/19 12:25:59

Modified files:
lib/libssl/src/crypto/pkcs7: pk7_doit.c 
lib/libssl/src/crypto/ts: ts_rsp_verify.c 

Log message:
Verify ASN1 objects types before attempting to access them as a particular
type.
ok guenther@ doug@



CVS: cvs.openbsd.org: src

2015-07-19 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/19 12:29:31

Modified files:
lib/libssl/src/crypto/asn1: a_bitstr.c a_int.c a_sign.c 
lib/libssl/src/crypto/bio: bf_buff.c bf_lbuf.c 
lib/libssl/src/crypto/ocsp: ocsp_ext.c 
lib/libssl/src/crypto/pem: pem_lib.c 
lib/libssl/src/crypto/rsa: rsa_saos.c rsa_sign.c 

Log message:
Drop stupid (int) casts for the arguments of malloc() and friends. This is
not 16-bit MS-DOS anymore.
ok bcook@ tedu@



CVS: cvs.openbsd.org: src

2015-07-19 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/19 12:27:26

Modified files:
lib/libssl/src/crypto/modes: cts128.c 

Log message:
unifdef -UCBC_HANDLES_TRUNCATED_IO
ok bcook@ doug@



CVS: cvs.openbsd.org: src

2015-07-18 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/18 08:40:59

Modified files:
lib/libssl/src/crypto/asn1: asn1_gen.c 
lib/libssl/src/crypto/pkcs7: pk7_doit.c 

Log message:
Check the return value of ASN1_STRING_set(), for it may fail to allocate
memory. Coverity CID 24810, 24846.
ok bcook@ doug@



CVS: cvs.openbsd.org: src

2015-07-18 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/18 23:42:55

Modified files:
lib/libssl/src/crypto/ts: ts_rsp_verify.c 
lib/libssl/src/crypto/x509: x509_vfy.c 

Log message:
Now that it is safe to invoke X509_STORE_CTX_cleanup() if X509_STORE_CTX_init()
fails, check its return value and correctly mop up after ourselves.
ok beck@ doug@



CVS: cvs.openbsd.org: src

2015-07-18 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/18 20:21:41

Modified files:
lib/libssl/src/crypto/aes/asm: aesni-x86_64.pl 

Log message:
Replace `.byte 0x48,0x83,0xEC,0x08' with `sub \$8,%rsp' which is exactly the
same four bytes, unobfuscated.



CVS: cvs.openbsd.org: src

2015-07-18 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/18 20:43:24

Modified files:
lib/libssl/src/crypto/ts: ts_rsp_verify.c 

Log message:
Put explicit braces around assignment used in a conditional.
ok bcook@ doug@



CVS: cvs.openbsd.org: src

2015-07-18 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/18 20:26:32

Modified files:
lib/libssl/src/crypto/aes/asm: aesni-sha1-x86_64.pl 
   aesni-x86_64.pl 
lib/libssl/src/crypto/perlasm: x86_64-xlate.pl 

Log message:
Remove the logic responsible for outputting most AES-NI instructions as
raw byte sequences. The toolchains have had some time to update and assemble
the instructions correctly (except for p{ins,ext}rd which are not supported
yet by as(1) under OpenBSD, but will be fixed shortly).

Inspired by a discussion between tedu@ and John-Mark Gurney.
Verified to still work on Mac OS X and average Linux distros by bcook@



CVS: cvs.openbsd.org: src

2015-07-17 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/17 10:13:26

Modified files:
sys/arch/alpha/stand/boot: disk.c 
sys/arch/alpha/stand/netboot: if_prom.c 

Log message:
Proper prototypes and return values.



CVS: cvs.openbsd.org: src

2015-07-17 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/17 14:44:39

Modified files:
sys/arch/alpha/include: loadfile_machdep.h 
sys/arch/amd64/include: loadfile_machdep.h 
sys/arch/armish/include: loadfile_machdep.h 
sys/arch/armv7/include: loadfile_machdep.h 
sys/arch/i386/include: loadfile_machdep.h 
sys/arch/landisk/include: loadfile_machdep.h 
sys/arch/loongson/include: loadfile_machdep.h 
sys/arch/macppc/include: loadfile_machdep.h 
sys/arch/octeon/include: loadfile_machdep.h 
sys/arch/sgi/include: loadfile_machdep.h 
sys/arch/socppc/include: loadfile_machdep.h 
sys/arch/zaurus/include: loadfile_machdep.h 
sys/lib/libsa  : loadfile.h 

Log message:
Remove {LOAD,COUNT}_TEXTA from libsa loadfile, it only made sense for a.out
kernels and we no longer have any.



CVS: cvs.openbsd.org: src

2015-07-17 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/17 18:21:14

Modified files:
sys/arch/alpha/pci: lca_pci.c 

Log message:
Check for errors in the status register after performing a PCI configuration
space read, for errors may not cause a machine check.
This makes phantom PCI devices disappear on alphabook.



CVS: cvs.openbsd.org: src

2015-07-17 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/17 18:27:44

Modified files:
sys/arch/alpha/pci: pci_alphabook1.c 

Log message:
Correctly set up interrupts; now the kernel no longer get stuck with an SCSI
interrupt storm at the end of autoconf.



CVS: cvs.openbsd.org: src

2015-07-17 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/17 18:48:05

Modified files:
sys/dev/ic : vga.c vga_subr.c 
sys/dev/isa: vga_isa.c 
sys/dev/pci: vga_pci.c vga_pci_common.c 

Log message:
Shuffle include file ordering in preparation for future changes in vgavar.h,
which will have it depend upon wsdisplayvar.h.



CVS: cvs.openbsd.org: src

2015-07-17 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/17 14:27:36

Modified files:
lib/libssl/src/crypto/aes/asm: aesni-x86.pl 

Log message:
extenstion - extension



CVS: cvs.openbsd.org: src

2015-07-17 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/17 14:25:42

Modified files:
gnu/usr.bin/binutils-2.17/opcodes: i386-dis.c 

Log message:
Correctly consume mandatory 0x66 prefix when disassembling
aes{dec{,last},enc{,last},imc} instructions (regression in 2.17).

Correctly disassemble aeskeygenassist.

Before (binutils 2.15):
0:   66 0f 38 db c8  aesimc %xmm0,%xmm1
5:   66 0f 3a 44 da 04   pclmulqdq $0x4,%xmm2,%xmm3
b:   66 0f 3a 44 ec 10   pclmullqhqdq %xmm4,%xmm5
11:   66  data16
12:   0f  .byte 0xf
13:   3a df   cmp%bh,%bl
15:   fe 08   decb   (%rax)

Currently (binutils 2.17):
0:   66  data16
1:   0f 38 dbaesimc %xmm1,%xmm1
4:   c8 66 0f 3a enterq $0xf66,$0x3a
8:   44 da 04 66 rexX fiaddl (%rsi,2)
c:   0f 3a 44 ec 10  pclmullqhqdq %xmm4,%xmm5
11:   66  data16
12:   0f  .byte 0xf
13:   3a df   cmp%bh,%bl
15:   fe 08   decb   (%rax)

With these changes:
0:   66 0f 38 db c8  aesimc %xmm0,%xmm1
5:   66 0f 3a 44 da 04   pclmulqdq $0x4,%xmm2,%xmm3
b:   66 0f 3a 44 ec 10   pclmullqhqdq %xmm4,%xmm5
11:   66 0f 3a df fe 08   aeskeygenassist  $0x8,%xmm6,%xmm7



CVS: cvs.openbsd.org: src

2015-07-16 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/16 11:51:22

Modified files:
usr.sbin/rarpd : rarpd.c 

Log message:
typo



CVS: cvs.openbsd.org: src

2015-07-16 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/16 12:21:57

Modified files:
lib/libssl/src/crypto/asn1: p8_pkey.c 

Log message:
Enforce V_ASN1_OCTET_STRING type before accessing the object as octet string;
from OpenSSL (RT #3683)
ok doug@ jsing@



CVS: cvs.openbsd.org: src

2015-07-15 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/15 20:14:48

Modified files:
lib/libssl/src/crypto/pem: pem_lib.c 

Log message:
Make sure the `reject negative sizes' logic introduced in 1.34 is actually
applied to all code paths.
ok beck@ bcook@ doug@ guenther@



CVS: cvs.openbsd.org: src

2015-07-15 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/15 20:16:19

Modified files:
lib/libssl/src/crypto/ocsp: ocsp_prn.c 

Log message:
Check return value of all used functions in OCSP_REQUEST_print(); covers
Coverity CID 78796; ok beck@



CVS: cvs.openbsd.org: src

2015-07-15 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/15 20:18:58

Modified files:
lib/libssl/src/crypto/asn1: a_mbstr.c 

Log message:
Explicitely cast a char into unsigned long before shifting it left by 24, for
this would promote it to int for the shift, and then cast to unsigned long,
sign-extending it if sizeof(long)  sizeof(int).

This was not a problem because the computed value was explicitely range
checked afterwards, with an upper bound way smaller than 1U31, but it's
better practice to cast correctly.

ok beck@



CVS: cvs.openbsd.org: src

2015-07-15 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/15 22:32:23

Modified files:
distrib/sets/lists/base: md.loongson md.octeon md.sgi 
distrib/sets/lists/comp: md.loongson md.octeon md.sgi 

Log message:
sync



CVS: cvs.openbsd.org: src

2015-07-15 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/15 10:45:24

Modified files:
lib/libssl/src/crypto/ts: ts_rsp_verify.c 

Log message:
Do not allow TS_check_signer_name() with signer == NULL from
int_TS_RESP_verify_token(). Coverity CID 21710.

Looking further, int_TS_RESP_verify_token() will only initialize signer to
something non-NULL if TS_VFY_SIGNATURE is set in ctx-flags. But guess what?
TS_REQ_to_TS_VERIFY_CTX() in ts/ts_verify_ctx.c, which is the TS_VERIFY_CTX
constructor, explicitely clears this bit, with:
ret-flags = TS_VFY_ALL_IMPRINT  ~(TS_VFY_TSA_NAME | TS_VFY_SIGNATURE);
followed by more conditional flag clears.

Of course, nothing prevents the user to fiddle with ctx-flags afterwards. This
is exactly what ts.c in usr.bin/openssl does. This is gross, mistakes will
happen.

ok beck@



CVS: cvs.openbsd.org: src

2015-07-15 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/15 12:34:37

Modified files:
lib/libssl/src/crypto/dsa: dsa_gen.c 

Log message:
Fix inverted test in previous. Commit message told what we intended, but
we did not notice my fingers slipping. Noticed by bcook@



CVS: cvs.openbsd.org: src

2015-07-15 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/15 11:02:03

Modified files:
lib/libssl/src/crypto/x509v3: pcy_tree.c 

Log message:
Memory leak; Coverity CID 78836
ok beck@



CVS: cvs.openbsd.org: src

2015-07-15 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/15 11:00:35

Modified files:
lib/libssl/src/crypto/x509v3: v3_cpols.c 

Log message:
Unchecked allocations, and make sure we do not leak upon error. Fixes
Coverity CID 21739 and more.
ok bcook@



CVS: cvs.openbsd.org: src

2015-07-15 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/15 10:53:42

Modified files:
lib/libssl/src/crypto/x509v3: pcy_data.c 

Log message:
Avoid leaking objects upon error; tweaks  ok doug@



CVS: cvs.openbsd.org: src

2015-07-15 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/15 11:41:56

Modified files:
lib/libssl/src/crypto/asn1: x_name.c 

Log message:
Fix two theoretical NULL pointer dereferences which can only happen if you
have seriously corrupted your memory; Coverity CID 21708 and 21721.

While there, plug a memory leak upon error in x509_name_canon().

ok bcook@ beck@



CVS: cvs.openbsd.org: src

2015-07-15 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/15 11:44:20

Modified files:
lib/libssl/src/crypto/pkcs7: pk7_doit.c 

Log message:
Remove dead code. Coverity CID 21688
ok beck@



CVS: cvs.openbsd.org: src

2015-07-15 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/15 08:15:47

Modified files:
sys/dev/usb: hidkbd.c 

Log message:
Use mallocarray() and unsigned integers.



CVS: cvs.openbsd.org: src

2015-07-15 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/15 07:14:17

Modified files:
sys/dev/usb: hidkbd.c 

Log message:
Fix two bugs in the variable keys handling:
- do not overrun the array if there are more than MAXVARS, by using the
proper variable in the check.
- correctly allow up to MAXVARS (128), not strictly less than.

This makes mlarkin's new shiny Corsair K70 RGB gaming keyboard work.
Tested by and ok mlarkin@



CVS: cvs.openbsd.org: src

2015-07-15 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/15 10:32:29

Modified files:
lib/libssl/src/crypto/dsa: dsa_gen.c 

Log message:
Previous fix for Coverity CID 21785 did not cope correctly with seed_len != 0,
seed_in == NULL case. Since this situation is an error anyway, bail out
early.
with and ok beck@



CVS: cvs.openbsd.org: src

2015-07-13 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/13 13:05:23

Modified files:
sys/arch/octeon/conf: GENERIC files.octeon 
sys/arch/octeon/dev: octeon_iobus.c 

Log message:
Do not attempt to configure octhci, superseded by dwc2



CVS: cvs.openbsd.org: www

2015-07-09 Thread Miod Vallat
CVSROOT:/cvs
Module name:www
Changes by: m...@cvs.openbsd.org2015/07/09 13:33:54

Modified files:
.  : aviion.html plat.html 

Log message:
typos



CVS: cvs.openbsd.org: src

2015-07-09 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/09 13:45:37

Modified files:
sys/kern   : init_main.c 

Log message:
Disable pool_gc on m88k if MULTIPROCESSOR; we don't have enough volunteers
for human sacrifices to get this fixed in a reasonably near future, and the
tree must build.



CVS: cvs.openbsd.org: src

2015-07-04 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/04 11:32:20

Modified files:
sys/arch/vax/if: if_de.c 

Log message:
Fix misleading indent



CVS: cvs.openbsd.org: src

2015-07-03 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/03 06:47:30

Modified files:
sys/arch/m88k/include: atomic.h 

Log message:
Fix cast in atomic_swap_ptr()



CVS: cvs.openbsd.org: src

2015-07-03 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/03 09:12:50

Modified files:
sys/arch/m88k/include: mutex.h 
sys/arch/m88k/m88k: genassym.cf mutex.S 

Log message:
Rename mtx_cpu to mtx_owner for consistency with the other platforms.



CVS: cvs.openbsd.org: src

2015-07-03 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/03 10:33:07

Modified files:
sys/arch/octeon/dev: octdwctwo.c 

Log message:
Put the newline at the right place.



CVS: cvs.openbsd.org: src

2015-07-03 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/03 15:45:10

Modified files:
usr.bin/openssl: speed.c 

Log message:
Repair algorithm name array after 1.6.



CVS: cvs.openbsd.org: src

2015-07-03 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/03 05:18:23

Modified files:
share/mk   : bsd.own.mk 

Log message:
Enable static pie on sparc; be sure to upgrade your compiler before your
next build (or wait for the snapshot to reach the mirrors)



CVS: cvs.openbsd.org: src

2015-07-03 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/03 05:17:25

Modified files:
lib/csu: boot.h 
lib/csu/sparc  : md_init.h 

Log message:
static pie support for sparc.



CVS: cvs.openbsd.org: src

2015-07-03 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/03 05:15:55

Modified files:
libexec/ld.so/sparc: archdep.h 

Log message:
Correctly handle relative-type relocations; very old ld.so bug which got
fixed everywhere but on sparc for some unknown reason (and did not cause
any havoc in real life).



CVS: cvs.openbsd.org: src

2015-07-03 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/03 05:16:43

Modified files:
gnu/gcc/gcc/config/sparc: openbsd.h 

Log message:
Link static pie binaries against rcrt0.o



CVS: cvs.openbsd.org: src

2015-07-03 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/07/03 05:36:19

Modified files:
sys/arch/alpha/alpha: machdep.c 

Log message:
Correctly restore ipl in fpusave_proc() when we have to busy loop.



CVS: cvs.openbsd.org: src

2015-06-29 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/06/29 13:56:58

Modified files:
regress/sys/kern/extent: Makefile 

Log message:
Make this pass again on 32-bit platforms.



CVS: cvs.openbsd.org: src

2015-06-27 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/06/27 09:39:03

Modified files:
sys/arch/vax/if: if_qe.c 

Log message:
Memory leak in attach if uballoc() fails; Brainy/Maxime Villard



CVS: cvs.openbsd.org: src

2015-06-27 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/06/27 09:40:53

Modified files:
sys/arch/vax/if: if_qe.c 

Log message:
Pass bus_space tag and handles to the QE_{WR,RD}CR macros, instead of assuming
there's an `sc' local variable. This allows us to no longer have to fake a
softc at match time.



CVS: cvs.openbsd.org: src

2015-06-27 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/06/27 15:25:55

Modified files:
sys/uvm: uvm_pmemrange.c 

Log message:
uvm_pmr_get1page() should return psize_t, not int; dhill@



CVS: cvs.openbsd.org: xenocara

2015-06-27 Thread Miod Vallat
CVSROOT:/cvs
Module name:xenocara
Changes by: m...@cvs.openbsd.org2015/06/27 15:50:55

Modified files:
xserver: Makefile.bsd-wrapper 
kdrive : Makefile.bsd-wrapper 

Log message:
Build the Xserver with large got (-xgot as(1) option) on mips; needed to
accomodate the growth of recent changes. Tested on loongson.



CVS: cvs.openbsd.org: src

2015-06-26 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/06/26 16:28:55

Modified files:
distrib/sets/lists/comp: md.aviion md.luna88k 

Log message:
sync



CVS: cvs.openbsd.org: src

2015-06-25 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/06/25 12:08:53

Modified files:
sys/arch/macppc/pci: ht.c 

Log message:
OF_getprop() returns an int, so comparing its return value against sizeof casts
it to unsigned, and we need to also check for negative values.
All users of OF_getprop() did this but that one.

ok mpi@



CVS: cvs.openbsd.org: src

2015-06-25 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/06/25 22:25:18

Modified files:
sys/dev/ic : arcofi.c 

Log message:
Adapt to the removal of the symbolic input and output port names from
sys/audioio.h



CVS: cvs.openbsd.org: src

2015-06-25 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/06/25 22:28:53

Modified files:
gnu/usr.bin/binutils-2.17/bfd: elf32-arm.c 

Log message:
Avoid an assertion failure in elf32_arm_size_dynamic_sections() when
building a static binary out of PIE objects; similar to the logic
found on other platforms, for some reason arm was lacking this fix.



CVS: cvs.openbsd.org: src

2015-06-24 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/06/24 15:26:04

Modified files:
sys/arch/arm/include: pmap.h 

Log message:
Remove unused KERNEL_PD_SIZE macro which performs unsafe signed shift of
KERNEL_BASE.



CVS: cvs.openbsd.org: src

2015-06-24 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/06/24 15:35:01

Modified files:
sys/arch/armish/include: vmparam.h 
sys/arch/armv7/include: vmparam.h 
sys/arch/zaurus/include: vmparam.h 

Log message:
Make ARM_KERNEL_BASE explicitely unsigned



CVS: cvs.openbsd.org: src

2015-06-24 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/06/24 14:50:39

Modified files:
sys/arch/amd64/amd64: db_disasm.c 
sys/arch/i386/i386: db_disasm.c 

Log message:
Uninitialized variables; pedro@



CVS: cvs.openbsd.org: src

2015-06-24 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/06/24 10:52:52

Modified files:
sys/arch/sgi/xbow: xbridge.c 

Log message:
Attempt to explain how this device works. Based upon a private mail I wrote
6 years ago when asked about this.



CVS: cvs.openbsd.org: src

2015-06-24 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/06/24 12:41:58

Modified files:
sys/arch/sparc64/sparc64: locore.s 

Log message:
fauls - faults



CVS: cvs.openbsd.org: src

2015-06-24 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/06/24 14:17:28

Modified files:
sys/dev/usb: uvideo.c 

Log message:
Allow uvideo_mmap_queue() to fail gracefully when the mmap queue is full;
found the hard way by sebastia@ four years ago, and I'd been sitting on that
diff since.

The initial diff was more aggressive and would free the mmap queue upon error,
but jakemsr@ had objections against this behaviour; this diff only fails
gracefully instead of panic'ing.



CVS: cvs.openbsd.org: src

2015-06-23 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/06/23 13:49:41

Modified files:
sys/arch/alpha/alpha: locore.s 

Log message:
In the copy(9) function, make sure to remember curproc accross the bcopy()
call, instead of curproc. The copy routine may sleep and we may resume on
a different processor. This has been plaguing the alpha MULTIPROCESSOR kernels
since the very beginning; it's amazing this did not cause more havoc.

Joint debugging and hair pulling with dlg@ and deraadt@; ok dlg@



CVS: cvs.openbsd.org: src

2015-06-23 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/06/23 13:50:48

Modified files:
sys/arch/alpha/alpha: pmap.c 

Log message:
Disable some of the pmap_emulate_reference() DEBUG checks if option
MULTIPROCESSOR, and quote the alpha ARM to explain why; while there, make the
failure messages a bit more detailed.



CVS: cvs.openbsd.org: src

2015-06-18 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/06/18 15:45:00

Modified files:
etc/root   : root.mail 

Log message:
I'm afraid it will be a sunday.



CVS: cvs.openbsd.org: src

2015-06-17 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/06/17 11:15:07

Modified files:
sys/arch/vax/vax: pmap.c 

Log message:
Make kernel text read-only and unreadable from userland, and remove the bogus
comment about the emulation code requiring kernel text to be readable from
userland.

Add a few DIAGNOSTIC checks for rogue ptes passed to rmpage().

Make sure the pte extent operations and update_pcbs() run at = IPL_SCHED.



CVS: cvs.openbsd.org: src

2015-06-16 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/06/16 12:28:51

Modified files:
sys/arch/mips64/mips64: cpu.c 

Log message:
alloc_contiguous_pages() is supposed to round the allocation size to a page
boundary, not to an u area boundary. Oops.



<    1   2   3   4   5   6   7   8   9   10   >