CVS: cvs.openbsd.org: src

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

Modified files:
usr.bin/su : su.c 

Log message:
Redo 1.69, but correctly, so that this really works for yp setups.



CVS: cvs.openbsd.org: src

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

Modified files:
sys/arch/amd64/include: pci_machdep.h 

Log message:
Remove duplicated prototype.



CVS: cvs.openbsd.org: src

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

Modified files:
regress/lib/libcrypto/asn1: asn1time.c 

Log message:
Missing initializer; spotted by coverity.



CVS: cvs.openbsd.org: src

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

Modified files:
usr.bin/su : su.c 

Log message:
Move removal of "getpw" pledge after all setusercontext() calls, for yp sake.
Noticed by matthieu@



CVS: cvs.openbsd.org: src

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

Modified files:
usr.bin/doas   : doas.c 

Log message:
setusercontext() may still need "getpw" pledge rights; unbreaks doas on yp
accounts after 1.43; found the hard way by matthieu@



CVS: cvs.openbsd.org: src

2015-10-22 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/10/22 12:54:41

Modified files:
sys/arch/alpha/stand/boot: Makefile 
sys/arch/alpha/stand/bootxx: Makefile 

Log message:
Build boot blocks with -msmall-data -msmall-text.



CVS: cvs.openbsd.org: src

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

Modified files:
lib/libssl/src/crypto/bn: bn.h bn_err.c bn_prime.c 

Log message:
Reject too small bits value in BN_generate_prime_ex(), so that it does not risk
becoming negative in probable_prime_dh_safe(). Reported by Franck Denis who
noticed `openssl gendh 0' would segfault.
Fix adapted from OpenSSL RT#2701.

ok beck@ jsing@



CVS: cvs.openbsd.org: src

2015-10-20 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/10/20 10:22:47

Modified files:
distrib/ramdisk: Makefile 

Log message:
... but keep the previous logic for sparc, which is the other user of this
Makefile, until it switches to MI installboot, too.



CVS: cvs.openbsd.org: src

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

Modified files:
distrib/ramdisk: Makefile 

Log message:
Missing commit of vax switch to MI installboot(8), forgotten when it went in.



CVS: cvs.openbsd.org: src

2015-10-18 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/10/18 11:20:49

Modified files:
usr.bin/ypcat  : ypcat.c 

Log message:
pledge+=flock, for /var/run/ypbind.lock. ok semarie@



CVS: cvs.openbsd.org: src

2015-10-18 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/10/18 11:53:51

Modified files:
usr.bin/ypcat  : ypcat.c 

Log message:
Use "getpw" rather than "flock", per deraadt@'s suggestion.



CVS: cvs.openbsd.org: src

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

Modified files:
sbin/disklabel : disklabel.8 

Log message:
Remove -B from EXAMPLES; reminded by jmc@



CVS: cvs.openbsd.org: src

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

Modified files:
sys/arch/vax/stand/xxboot: Makefile 

Log message:
No need to create links for xxboot now that MI installboot is the preferred
way to install boot blocks.



CVS: cvs.openbsd.org: src

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

Modified files:
usr.sbin/installboot: bootstrap.c hppa64_installboot.c 
  hppa_installboot.c installboot.h 
  landisk_installboot.c vax_installboot.c 

Log message:
Add an extra argument to bootstrap() to allow for a limited overlap between an
existing partition and the boot blocks span, and update all callers to require
an overlap limit of zero sectors (thus not changing their behaviour).

Then, add proper support for vax: copy the 2nd-stage boot block to /boot and
install the 1st-stage boot block at the beginning of the disk, retaining the
disklabel; allow for an overlap of up to 16 sectors, which is perfectly fine
as long as your `a' partition is FFS.

Note that regular installs will not even have such an overlap, because the
default OpenBSD span on a disk on vax starts at sector 16, but installation
media use sperific layout which require this.

ok krw@



CVS: cvs.openbsd.org: src

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

Modified files:
distrib/vax: install.md 
distrib/vax/common: Makefile.inc list 
distrib/vax/iso: Makefile 
distrib/vax/ramdisk: Makefile.inc list.local 

Log message:
Use MI installboot instead of disklabel -B to install boot blocks.
ok krw@ deraadt@



CVS: cvs.openbsd.org: src

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

Modified files:
sbin/disklabel : Makefile disklabel.8 disklabel.c editor.c 

Log message:
Remove disklabel -B (NUMBOOT) support. All the platforms which used to need
it are now using MI installboot for that purpose.

ok krw@ deraadt@



CVS: cvs.openbsd.org: src

2015-10-04 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/10/04 22:30:35

Modified files:
usr.sbin/installboot: landisk_installboot.c 

Log message:
Copy the stage2 file to / in md_installboot().



CVS: cvs.openbsd.org: src

2015-10-04 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/10/04 22:31:21

Modified files:
distrib/landisk/miniroot: Makefile 
distrib/landisk/ramdisk: install.md list 

Log message:
Use MI installboot instead of disklabel -B to put boot blocks on installation
media.



CVS: cvs.openbsd.org: src

2015-10-04 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/10/04 22:38:27

Modified files:
sys/arch/landisk/stand/xxboot: Makefile 

Log message:
No need to create {sd,wd}boot links to xxboot anymore.



CVS: cvs.openbsd.org: src

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

Modified files:
sbin/disklabel : Makefile 

Log message:
Remove disklabel -B support on landisk - superseded by MI installboot.



CVS: cvs.openbsd.org: src

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

Modified files:
sys/arch/mips64/mips64: context.S 

Log message:
Use the DMTC0 macro and MTC0_HAZARD in the UPAGES > 1 case. Now R8000 kernel
have all their m[ft]c0 instructions correctly wrapped.



CVS: cvs.openbsd.org: src

2015-09-27 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/09/27 12:17:08

Modified files:
sys/arch/mips64/include: cpustate.h 

Log message:
Don't forget to put the necessary MFC0_HAZARD in SAVE_CPU. For some reason I
had put the MTC0_HAZARD in RESTORE_CPU years ago but forgot their counterparts.



CVS: cvs.openbsd.org: src

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

Modified files:
lib/libssl/src/crypto/bn: bn_print.c 

Log message:
Redo 1.25, without the NULL deref.
ok sthen@ bcook@



CVS: cvs.openbsd.org: www

2015-09-27 Thread Miod Vallat
CVSROOT:/cvs
Module name:www
Changes by: m...@cvs.openbsd.org2015/09/27 13:45:01

Modified files:
.  : sgi.html 

Log message:
Prefer `only found in snapshots' to `available after 5.8' since 5.8 has not been
released yet.



CVS: cvs.openbsd.org: src

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

Modified files:
distrib/sgi/cdfs: Makefile 
distrib/sgi/iso: Makefile 
etc/etc.sgi: disktab 
sys/arch/sgi/stand/boot64: Makefile 

Log message:
Add IP26 kernels and boot blocks to the installation media.



CVS: cvs.openbsd.org: src

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

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

Log message:
On R8000, make trap() behave closer to interrupt() when servicing a real
interrupt by not invoking refreshcreds(), but closer to itsa() when servicing
a trap-reported-as-interrupt by invoking userret() in that case.
No change on !defined(CPU_R8000) kernels.



CVS: cvs.openbsd.org: src

2015-09-25 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/09/25 11:50:39

Modified files:
share/man/man8 : crash.8 

Log message:
Since bin/ps/keyword.c 1.30 five years ago, ps -O paddr prints the complete
address; do not mention a KERNBASE adjustment anymore.



CVS: cvs.openbsd.org: src

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

Modified files:
sys/arch/mips64/include: mips_cpu.h 

Log message:
It is no longer necessary to include CR_BERR in CR_INT_MASK if CPU_R8000.



CVS: cvs.openbsd.org: src

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

Modified files:
sys/arch/sgi/localbus: imc.c tcc.c 

Log message:
IP26 streaming cache controller bus error interrupts are reported as hardware
level 4 interrupts, just like memory controller bus errors; register the
tcc(4) handler with the right cause register bitmask, and teach imc(4) not
to claim the interrupt if it did not trigger it.



CVS: cvs.openbsd.org: src

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

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

Log message:
Output operands of movn and movz in the correct order.



CVS: cvs.openbsd.org: src

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

Modified files:
sys/arch/mips64/mips64: tlb_tfp.S 

Log message:
In tlb_update(), when inserting an entry for a KV1 address, reuse the
current ASID value rather than using zero, so that we can avoid writing
back the ASID on exit (and waste cycles because of expensive coprocessor 0
hazards).

While there, use conditional instructions when picking a random TLB set number,
in order to waste one branch prediction cache entry.



CVS: cvs.openbsd.org: src

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

Modified files:
sys/arch/mips64/mips64: cache_tfp_subr.S 

Log message:
Reorder subtractions and branches to shave one cycle per call to
tfp_inval_icache().



CVS: cvs.openbsd.org: src

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

Modified files:
sys/arch/mips64/include: cpu.h 

Log message:
That PICA reference ought to have been removed 20 years ago!



CVS: cvs.openbsd.org: src

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

Modified files:
sys/arch/sgi/sgi: ip22.h 
sys/arch/sgi/stand/boot: version 

Log message:
typos



CVS: cvs.openbsd.org: src

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

Modified files:
sys/arch/sgi/conf: ld.script 
sys/arch/loongson/conf: ld.script 
sys/arch/octeon/conf: ld.script 

Log message:
Make sure the openbsd.randomdata section is located before the edata symbol.



CVS: cvs.openbsd.org: src

2015-09-21 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/09/21 15:22:44

Modified files:
sys/arch/mips64/include: asm.h 

Log message:
After reading IRIX header files again, add one more SSNOP to MTC0_HAZARD (and
remove one from constructs based upon it) when building for R8000.



CVS: cvs.openbsd.org: src

2015-09-20 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/09/20 01:28:42

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

Log message:
sync



CVS: cvs.openbsd.org: www

2015-09-20 Thread Miod Vallat
CVSROOT:/cvs
Module name:www
Changes by: m...@cvs.openbsd.org2015/09/20 12:37:38

Modified files:
.  : sgi.html 

Log message:
Mention IP26 support in HEAD, update history.



CVS: cvs.openbsd.org: src

2015-09-20 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/09/20 05:52:33

Modified files:
sys/arch/mips64/mips64: exception_tfp.S 

Log message:
Correctly compute the userland pte index in a pte page in the userland tlb miss
handler; from Naruaki Etomi (nullnilaki on gmail), thanks!



CVS: cvs.openbsd.org: src

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

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

Log message:
Pack the algorithm numbers, to avoid printing a useless (null) 0 0 0 0
line in the summary.



CVS: cvs.openbsd.org: src

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

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

Log message:
Reset the `pending I$ flushes' flag in tfp_InvalidateICache() if invalidating
the whole I$.



CVS: cvs.openbsd.org: src

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

Modified files:
sys/arch/sgi/localbus: tcc.c 

Log message:
Invoke tfp_IOSyncDCache() from tcc_IOSyncDCache() as well, so that invalidate
operations are also carried on the internal write-through cache.



CVS: cvs.openbsd.org: src

2015-09-20 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/09/20 06:55:11

Modified files:
distrib/sgi/ramdisk: Makefile 
etc/etc.sgi: Makefile.inc 

Log message:
Enable IP26 builds.



CVS: cvs.openbsd.org: src

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

Modified files:
share/man/man4/man4.sgi: intro.4 
distrib/notes/sgi: contents hardware prep whatis 

Log message:
More IP26 bits.



CVS: cvs.openbsd.org: www

2015-09-20 Thread Miod Vallat
CVSROOT:/cvs
Module name:www
Changes by: m...@cvs.openbsd.org2015/09/20 13:40:51

Modified files:
.  : sgi.html 

Log message:
oops



CVS: cvs.openbsd.org: src

2015-09-19 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/09/19 04:44:01

Modified files:
distrib/alpha/common: Makefile.inc 
distrib/alpha/inst-common: Makefile.inc 

Log message:
Add the kernel in its various setup stages (bsd, bsd.gz, bsd.strip...) to
CLEANFILES and make sure the `clean' target actually removes CLEANFILES.



CVS: cvs.openbsd.org: src

2015-09-19 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/09/19 04:44:44

Modified files:
distrib/alpha/miniroot: Makefile 

Log message:
Create the filesystem image with the same size as its `c' slice from disktab.



CVS: cvs.openbsd.org: src

2015-09-19 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/09/19 04:41:05

Modified files:
sys/arch/alpha/conf: RAMDISK RAMDISKB RAMDISKBIG RAMDISKC 

Log message:
No need for wsmux on these installation media, which lack USB support.



CVS: cvs.openbsd.org: src

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

Modified files:
distrib/alpha/floppy: Makefile 
distrib/alpha/floppyB: Makefile 
distrib/alpha/floppyC: Makefile 

Log message:
Remove bogus .PATH statement.



CVS: cvs.openbsd.org: src

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

Modified files:
sys/dev/ic : i82596.c i82596var.h 

Log message:
More ifmedia64 fallout.



CVS: cvs.openbsd.org: src

2015-09-18 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/09/18 01:48:36

Modified files:
lib/libm   : Makefile 

Log message:
Move s_signgam.c to PURE_SRCS, so that it also gets built on vax.



CVS: cvs.openbsd.org: src

2015-09-18 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/09/18 14:50:02

Modified files:
sys/arch/sgi/hpc: hpc.c hpcvar.h if_sq.c if_sqvar.h 

Log message:
Go back to the previous approach when managing individual HPC DMA descriptors:
provide again an optional storage for a copy of the descriptor in the `sync'
(fetch) function, and use the returned address afterwards.

On IP22 systems (in the broader sense of the term, thus IP20/IP22/IP24),
descriptors will remain in uncached memory and no local copies need to be made.
On IP28 systems, descriptors will remain in cached memory (so as to avoid
switching to `slow mode'), but a local copy will be performed with the necessary
cache eviction work, so that speculative code execution on R1 will not
touch the real descriptor.

With this in place, all the explicit descriptor cache operations in if_sq,
some of them being redundant or operating on the wrong number of
descriptors, can be removed, with the HPC DMA wrappers taking care of doing
the right thing.

Tested on IP22 and IP28. IP26 still unhappy but no worse than before.



CVS: cvs.openbsd.org: src

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

Modified files:
sys/arch/sparc/include: vmparam.h 
sys/arch/sparc/sparc: autoconf.c machdep.c pmap.c 

Log message:
Drop the workarounds allowing SMALL_KERNEL (i.e. installation media) to be
booted from old (< 2.10) bootblocks.



CVS: cvs.openbsd.org: src

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

Modified files:
sys/arch/zaurus/stand/zboot: unixdev.c 

Log message:
Use the local unixdev.h file rather than the outdated libsa one.



CVS: cvs.openbsd.org: src

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

Modified files:
sys/lib/libsa  : Makefile 
Removed files:
sys/lib/libsa  : unixdev.c unixdev.h 

Log message:
Remove orphaned files.



CVS: cvs.openbsd.org: src

2015-09-18 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/09/18 07:30:56

Modified files:
sys/arch/amd64/stand: Makefile.inc 
sys/arch/amd64/stand/boot: conf.c 
sys/arch/amd64/stand/cdboot: conf.c 
sys/arch/amd64/stand/libsa: cmd_i386.c dev_i386.c machdep.c 
memprobe.c 
sys/arch/amd64/stand/pxeboot: conf.c 
sys/arch/i386/stand: Makefile.inc 
sys/arch/i386/stand/boot: Makefile conf.c 
sys/arch/i386/stand/cdboot: conf.c 
sys/arch/i386/stand/libsa: cmd_i386.c dev_i386.c exec_i386.c 
   machdep.c memprobe.c 
sys/arch/i386/stand/pxeboot: conf.c 
Removed files:
sys/arch/i386/stand/boot: crt0.c 
sys/arch/i386/stand/libsa: unixsys.S 

Log message:
Remove support for building the boot blocks with DEBUGFLAGS=-D_TEST, which is
supposed to create a userland binary in order to test non-boot related
functionality. This feature has been bitrotting in a non-compiling state
for years, and causes a too-many-ifdefs disease now that there are intrusive
EFI changes.

No functional change.



CVS: cvs.openbsd.org: src

2015-09-18 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/09/18 03:02:42

Modified files:
distrib/sets/lists/comp: mi 

Log message:
sync



CVS: cvs.openbsd.org: src

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

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

Log message:
Do not define QLW_DEBUG if SMALL_KERNEL, and turn qlw_dump_iocb() and
qlw_dump_iocb_segs() into empty macros if QLW_DEBUG is not defined (if only
to make this compile, then).



CVS: cvs.openbsd.org: src

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

Modified files:
lib/libssl/ssl : shlib_version 
lib/libtls : shlib_version 

Log message:
Mechanical minor bump to follow libcrypto.



CVS: cvs.openbsd.org: src

2015-09-13 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/09/13 04:02:49

Modified files:
lib/libcrypto/crypto: shlib_version 
lib/libssl/src/crypto: cryptlib.c crypto.h 

Log message:
Add a new interface, OPENSSL_cpu_caps(), to return the currently running
cpu's specific hardware capabilities users of libcrypto might be interested
in, as an integer value. This deprecates the existing OPENSSL_ia32cap()
macro and the OPENSSL_ia32cap_loc() function (which returns the pointer so
that you can mess with stuff you shouldn't mess with).

Interpreting the value returned by OPENSSL_cpu_caps() is, of course,
machine-dependent.

Minor version bump for libcrypto.
ok beck@ jsing@



CVS: cvs.openbsd.org: src

2015-09-13 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/09/13 06:31:35

Modified files:
sys/arch/vax/mbus: fwio.c 
sys/arch/vax/qbus: uba.c 
sys/arch/vax/vsa: vsbus.c 

Log message:
Locators are long now.



CVS: cvs.openbsd.org: src

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

Modified files:
lib/libc/softfloat: softfloat-specialize.h 
Added files:
lib/libc/hidden: softfloat.h 

Log message:
Make softfloat's internal float_raise also available under a hidden, internal
name, so that local references to it do not need to go through the plt.
(this routine is used by libm and thus can't be made internal to libc)

help and ok guenther@



CVS: cvs.openbsd.org: src

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

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

Log message:
Needs  before  now.



CVS: cvs.openbsd.org: src

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

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

Log message:
 must be before  now.



CVS: cvs.openbsd.org: src

2015-09-13 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/09/13 10:44:30

Modified files:
sys/dev/wsfont : wsfont.c 

Log message:
Put the 12x22 font on alpha and macppc installation kernels, the 8x16 font
is really fugly on large displays (tga, vgafb). It's only 10KB more data
before compression, which fits in our floppies.



CVS: cvs.openbsd.org: src

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

Modified files:
lib/libc/softfloat: eqdf2.c eqsf2.c fpgetmask.c fpgetround.c 
fpgetsticky.c fpsetmask.c fpsetround.c 
fpsetsticky.c gedf2.c gesf2.c gtdf2.c 
gtsf2.c ledf2.c lesf2.c ltdf2.c ltsf2.c 
nedf2.c negdf2.c negsf2.c nesf2.c 
softfloat.c timesoftfloat.c unorddf2.c 
unordsf2.c 
lib/libc/arch/arm/softfloat: Makefile.inc 
lib/libc/arch/sh/softfloat: Makefile.inc 

Log message:
Uses angle brackets to include softfloat.h, and add the proper directory to
CFLAGS.
ok guenther@



CVS: cvs.openbsd.org: src

2015-09-13 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/09/13 10:56:11

Modified files:
lib/libssl/src/crypto: crypto.h cryptlib.c 

Log message:
Since a major bump of libcrypto is coming, remove OPENSSL_ia32cap and
OPENSSL_ia32cap_loc; nothing in ports uses them besides embedded copies of
OpenSSL. This opens the `all hell gets loose' window.



CVS: cvs.openbsd.org: src

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

Modified files:
sys/arch/sparc/stand: Makefile.inc 

Log message:
Add a few -fno-builtin-foo to silence the build.



CVS: cvs.openbsd.org: src

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

Removed files:
lib/libssl/src/crypto/bf/asm: bf-686.pl readme 
lib/libssl/src/crypto/bn/asm: README 
lib/libssl/src/crypto/camellia/asm: BSD_license.txt 
lib/libssl/src/crypto/cast/asm: readme 
lib/libssl/src/crypto/des/asm: readme 

Log message:
Remove horribly old and outdated `documentation' for the assembly code.



CVS: cvs.openbsd.org: src

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

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

Log message:
Also print the error registers in the ddb callback.



CVS: cvs.openbsd.org: src

2015-09-12 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/09/12 02:42:47

Modified files:
sys/arch/sparc/dev: fb.c 

Log message:
Rework fb_setsize() logic to get rid of gotos.



CVS: cvs.openbsd.org: src

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

Modified files:
lib/libssl/src/crypto/bn/asm: x86_64-gcc.c 

Log message:
Remove workaround for old SIMICS toolchain.



CVS: cvs.openbsd.org: src

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

Modified files:
sys/dev/mii: miivar.h 

Log message:
mii_softc's view of the current mii state need to use the proper types
(ifmedia64).



CVS: cvs.openbsd.org: src

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

Modified files:
sys/dev/ic : dc.c dcreg.h 

Log message:
ifmedia64 fixes.



CVS: cvs.openbsd.org: src

2015-09-12 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/09/12 04:15:10

Modified files:
sys/dev/pci: if_nge.c if_vr.c 
sys/dev/sbus   : be.c 

Log message:
More ifmedia64 fallout; that should be the last.



CVS: cvs.openbsd.org: src

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

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

Log message:
Explicitely include  here instead of expecting previously
included files to bring it in.



CVS: cvs.openbsd.org: src

2015-09-12 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/09/12 06:42:36

Modified files:
usr.sbin/pppd  : pppd.h sys-bsd.c 

Log message:
Remove dead get_host_seed() function; Martin Natano



CVS: cvs.openbsd.org: src

2015-09-11 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/09/11 11:46:59

Modified files:
sys/arch/macppc/stand/boot.mac: Makefile 
sys/arch/macppc/stand/ofwboot: Makefile 

Log message:
Build actual boot code with -D_STANDALONE so that we do not include userland
headers by mistake.



CVS: cvs.openbsd.org: www

2015-09-11 Thread Miod Vallat
CVSROOT:/cvs
Module name:www
Changes by: m...@cvs.openbsd.org2015/09/11 01:24:33

Modified files:
faq: current.html 

Log message:
Mention config(8) update.



CVS: cvs.openbsd.org: src

2015-09-11 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/09/11 01:13:58

Modified files:
sys/kern   : subr_userconf.c 
sys/sys: device.h 
usr.sbin/config: mkioconf.c 

Log message:
Change device locators type from int to long, for the sake of 64-bit ports
without proper device trees.

Be sure to build and install config(8) and rerun it before attempting to build
a kernel.

ok kettenis@ deraadt@ jasper@ visa@



Re: CVS: cvs.openbsd.org: src

2015-09-11 Thread Miod Vallat
> > claudio missed this one cos he was drunk while he was supposed to
> > be fixing this file.
> 
> This is the only sane state of mind to hack on netinet6

Is there any other?



CVS: cvs.openbsd.org: src

2015-09-11 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/09/11 08:48:06

Modified files:
lib/libcrypto/crypto/arch/amd64: Makefile.inc 

Log message:
Pass "openbsd" instead of "openbsd-elf" as the "flavour" to the perl assembler
machinery. OpenBSD has never been not ELF on amd64, and changing this will
actually make -portable life slightly easier in the near future.



CVS: cvs.openbsd.org: src

2015-09-11 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/09/11 08:57:29

Modified files:
lib/libssl/src/crypto/perlasm: x86_64-xlate.pl 

Log message:
Bring back the expansion-into-.byte-sequences routines removed in r1.9, but
only define them if not building for the "openbsd" flavour.

This way, non-obfuscated output can still be generated for analysis, by using
the "openbsd" flavour (which OpenBSD HEAD will do), and obfuscated output,
compatible with older as(1), will be generated for other platforms.

The portable version of LibreSSL can then use "openbsd-portable" as the
flavour for OpenBSD/amd64 so that generated files can be compiled with
OpenBSD 5.7 and other older versions stuck with as(1) 2.15.



CVS: cvs.openbsd.org: src

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

Modified files:
sys/arch/sparc/dev: zx.c 
sys/dev/sbus   : zx.c 

Log message:
Fix a zx_putchar() stupid bug I introduced nine years ago by actually
initializing variables before they get used.



CVS: cvs.openbsd.org: src

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

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

Log message:
Initialize `pc' earlier so that the siginfo pc value is correct in case of
genuine FPU exception.



CVS: cvs.openbsd.org: src

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

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

Log message:
Assign the return value of getopt() to an int, not a char, so that options
actually work on unsigned char platforms.



CVS: cvs.openbsd.org: src

2015-09-10 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/09/10 11:32:19

Modified files:
sys/arch/sh/sh : trap.c 

Log message:
Fix error value in ktrace syscall records. ok deraadt@ dlg@ guenther@



CVS: cvs.openbsd.org: src

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

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

Log message:
When loading a DSA key from an raw (without DH parameters) ASN.1 serialization,
perform some consistency checks on its `p' and `q' values, and return an
error if the checks failed.

Thanks for Georgi Guninski (guninski at guninski dot com) for mentioning
the possibility of a weak (non prime) q value and providing a test case.

See https://cpunks.org/pipermail/cypherpunks/2015-September/009007.html
for a longer discussion.

ok bcook@ beck@



CVS: cvs.openbsd.org: src

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

Modified files:
libexec/ld.so/sparc: rtld_machine.c 

Log message:
Some explicit iflush instructions after the kbind() call are still needed
for now; misunderstanding between guenther@ and me.



CVS: cvs.openbsd.org: src

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

Modified files:
sys/uvm: uvm_map.c uvm_fault.c uvm_extern.h 

Log message:
All our pmap implementations provide pmap_resident_count(), so remove
#ifndef pmap_resident_count code paths.



CVS: cvs.openbsd.org: src

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

Modified files:
gnu/usr.sbin/mkhybrid/mkhybrid: Makefile 
gnu/usr.sbin/mkhybrid/src: eltorito.c joliet.c mkisofs.h multi.c 
   name.c tree.c write.c 

Log message:
Fix various buffer overflows (caused by the way struct iso_directory_record
is defined), and make this work on unsigned char platforms by using
isascii() instead of < 0.

While there, do not use the local getopt() implementation, as libc has had
getopt_long() support for years now.

With help from jca@ and guenther@. ok millert@, deraadt@ (on an earlier diff)



CVS: cvs.openbsd.org: src

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

Modified files:
distrib/notes/armv7: contents 

Log message:
Typo; Eric Lalonde



CVS: cvs.openbsd.org: src

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

Modified files:
sys/arch/sparc/conf: RAMDISK 

Log message:
qlw fits



CVS: cvs.openbsd.org: src

2015-09-05 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/09/05 02:21:27

Modified files:
sys/arch/amd64/amd64: efifb.c 

Log message:
Correct bounds checking in efifb_mmap(). ok yasuoka@



CVS: cvs.openbsd.org: src

2015-09-05 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/09/05 02:26:43

Modified files:
sys/dev/wscons : wsemul_vt100_subr.c 

Log message:
Support for xterm-compatible SGR escapes 39 and 49 (reset fg/bg colour to
default). From Matthew Martin on tech@



CVS: cvs.openbsd.org: src

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

Modified files:
sys/arch/sgi/sgi: ip22.h ip22_machdep.c 

Log message:
Do not make ip22_{slow,fast}_mode() public anymore.



CVS: cvs.openbsd.org: src

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

Modified files:
sys/arch/sgi/hpc: hpc.c hpcreg.h hpcvar.h if_sq.c if_sqvar.h 
sys/arch/sgi/sgi: bus_dma.c 

Log message:
Give up trying to map DMA descriptor in uncached memory on ECC flavours of the
IP22 motherboard (IP26, IP28). Instead, do not ask for a BUS_DMA_COHERENT
mapping, but perform explicit cache operations.

This removes the need for the memory controller to switch between `fast' and
`slow' mode every time a DMA descriptor is updated.

Tested on IP22 and IP28.



CVS: cvs.openbsd.org: src

2015-09-05 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/09/05 11:32:18

Modified files:
lib/libc/arch/mips64: SYS.h 

Log message:
This is probably what guenther@ had in mind.



Re: CVS: cvs.openbsd.org: src

2015-09-03 Thread Miod Vallat
> > Tested by ajacatoutot@.
> 
> lol, never seen that one before :-)

Must have been a use-after-fruit!



CVS: cvs.openbsd.org: src

2015-08-27 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/08/27 12:45:09

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

Log message:
Access the image of the floating point registers via p_md.md_regs, instead of
directly on the frame, or any updates will get lost. This went unnoticed for
so long because FPU emulation traps usually use the first frame of the U area,
so values kind of stick.

This fixes a rare occurrence of wrong floating-point values with MP kernels
on Octeon.

ok visa@




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