svn commit: r310013 - head/sys/dev/xen/blkfront

2016-12-12 Thread Colin Percival
Author: cperciva Date: Tue Dec 13 06:54:13 2016 New Revision: 310013 URL: https://svnweb.freebsd.org/changeset/base/310013 Log: Check that blkfront devices have a non-zero number of sectors and a non-zero sector size. Such a device would be a virtual disk of zero bytes; clearly not useful,

svn commit: r308708 - head/sys/fs/nfs

2016-11-15 Thread Colin Percival
Author: cperciva Date: Wed Nov 16 01:11:49 2016 New Revision: 308708 URL: https://svnweb.freebsd.org/changeset/base/308708 Log: Reduce NFS "NFSv4( mounted on)? fileid > 32bits" log spam. Rather than printing a warning for every time we receive a fileid > 2^32 from the NFS server, count

svn commit: r308329 - head/usr.bin/ministat

2016-11-05 Thread Colin Percival
Author: cperciva Date: Sat Nov 5 06:33:39 2016 New Revision: 308329 URL: https://svnweb.freebsd.org/changeset/base/308329 Log: Reduce the bogosity of ministat's % difference calculations. The previous calculation used an approximation which was only valid in cases where the means being

svn commit: r307156 - head/usr.sbin/freebsd-update

2016-10-12 Thread Colin Percival
Author: cperciva Date: Wed Oct 12 20:24:33 2016 New Revision: 307156 URL: https://svnweb.freebsd.org/changeset/base/307156 Log: MFportsnap r264740: Use case insensitive match when parsing host(1) output. Some DNS caches turn "FreeBSD.org" into "freebsd.org", which was causing the printed

Re: svn commit: r306319 - head/sys/i386/i386

2016-09-26 Thread Colin Percival
On 09/25/16 23:53, Bruce Evans wrote: > On Sun, 25 Sep 2016, Colin Percival wrote: >> On 09/25/16 11:39, Bruce Evans wrote: >>> Author: bde >>> Date: Sun Sep 25 18:39:24 2016 >>> New Revision: 306319 >>> URL: https://svnweb.freebsd.org/changeset/base/

Re: svn commit: r306319 - head/sys/i386/i386

2016-09-25 Thread Colin Percival
On 09/25/16 11:39, Bruce Evans wrote: > Author: bde > Date: Sun Sep 25 18:39:24 2016 > New Revision: 306319 > URL: https://svnweb.freebsd.org/changeset/base/306319 > > Log: > Minor fixes for 160-bit disassembly: I thought the x86 architecture was limited to 120-bit ins

svn commit: r302929 - head/release/tools

2016-07-16 Thread Colin Percival
Author: cperciva Date: Sat Jul 16 08:04:00 2016 New Revision: 302929 URL: https://svnweb.freebsd.org/changeset/base/302929 Log: Now that potentially buggy versions of Xen are automatically detected (see r302635), there is no need to force msix interrupt migration off via loader.conf.

svn commit: r302393 - head/sys/vm

2016-07-07 Thread Colin Percival
Author: cperciva Date: Thu Jul 7 18:37:12 2016 New Revision: 302393 URL: https://svnweb.freebsd.org/changeset/base/302393 Log: Autotune the number of pages set aside for UMA startup based on the number of CPUs present. On amd64 this unbreaks the boot for systems with 92 or more CPUs; the

Re: svn commit: r302288 - head/release/tools

2016-06-29 Thread Colin Percival
On 06/29/16 17:01, Bryan Drewery wrote: > On 6/29/2016 4:56 PM, Colin Percival wrote: >> Author: cperciva >> Date: Wed Jun 29 23:56:24 2016 >> New Revision: 302288 >> URL: https://svnweb.freebsd.org/changeset/base/302288 >> >> Log: >> Enable indirec

svn commit: r302288 - head/release/tools

2016-06-29 Thread Colin Percival
Author: cperciva Date: Wed Jun 29 23:56:24 2016 New Revision: 302288 URL: https://svnweb.freebsd.org/changeset/base/302288 Log: Enable indirect segment I/Os by default in the Xen blkfront driver when running on EC2. Due to improvements in EC2, the performance penalty which was present on

svn commit: r302184 - head/release/tools

2016-06-24 Thread Colin Percival
Author: cperciva Date: Fri Jun 24 23:39:44 2016 New Revision: 302184 URL: https://svnweb.freebsd.org/changeset/base/302184 Log: Turn off MSI-X interrupt migration by default in EC2 instances; this works around a bug in older versions of Xen and unbreaks SR-IOV (aka. "EC2 Enhanced

svn commit: r301732 - head/release/tools

2016-06-09 Thread Colin Percival
Author: cperciva Date: Thu Jun 9 13:58:31 2016 New Revision: 301732 URL: https://svnweb.freebsd.org/changeset/base/301732 Log: Switch from console="comconsole" to boot_multicons="YES" in EC2. Amazon recently introduced an API for capturing screenshots of an emulated VGA device; this

svn commit: r301716 - head/release

2016-06-08 Thread Colin Percival
Author: cperciva Date: Thu Jun 9 03:54:25 2016 New Revision: 301716 URL: https://svnweb.freebsd.org/changeset/base/301716 Log: Add 'env - PATH=$$PATH' to bsdec2-image-upload make command, in order to avoid environment pollution problems. That port uses but is not compatible with the

Re: svn commit: r294773 - in head/etc: . defaults periodic/daily rc.d

2016-05-31 Thread Colin Percival
nefetch'? If someone turns on this periodic script, I think it's safe to assume that they want it to run, even if they don't have ntpd running. (In my case, I have some systems where `ntpd -q` runs from cron but I don't want to leave the daemon running continuously.) -- Colin Percival Security O

svn commit: r300966 - head/sys/crypto/sha2

2016-05-29 Thread Colin Percival
Author: cperciva Date: Sun May 29 17:26:40 2016 New Revision: 300966 URL: https://svnweb.freebsd.org/changeset/base/300966 Log: Retune SHA2 code for improved performance on CPUs with more ILP and a preference for memory load instructions over large code footprints with embedded immediate

svn commit: r295609 - head/sys/dev/xen/blkfront

2016-02-14 Thread Colin Percival
Author: cperciva Date: Sun Feb 14 13:42:16 2016 New Revision: 295609 URL: https://svnweb.freebsd.org/changeset/base/295609 Log: Don't dereference a pointer immediately after determining that it is equal to NULL. [1] While I'm here, s/xb/xbd/ (the name changed a long time ago but this

Re: svn commit: r294909 - head/crypto/openssh

2016-01-28 Thread Colin Percival
is is MFCed. > > Why? At a guess, because NGie thinks that this is something which is important enough to be worth mentioning in the FreeBSD release notes, and "Relnotes: yes" flags the commit to the release engineering team for that purpose? -- Colin Percival Security Officer Emeritus, F

svn commit: r293739 - head/release

2016-01-12 Thread Colin Percival
Author: cperciva Date: Tue Jan 12 09:42:21 2016 New Revision: 293739 URL: https://svnweb.freebsd.org/changeset/base/293739 Log: Enable "EC2 Enhanced Networking" (aka. SR-IOV networking) when creating EC2 images. X-MFC after: if/when the driver fixes get MFCed Relnotes: FreeBSD now

Re: svn commit: r293739 - head/release

2016-01-12 Thread Colin Percival
On 01/12/16 02:31, Kubilay Kocak wrote: > On 12/01/2016 8:42 PM, Colin Percival wrote: >> Author: cperciva >> Date: Tue Jan 12 09:42:21 2016 >> New Revision: 293739 >> URL: https://svnweb.freebsd.org/changeset/base/293739 >> >> Log: >> Enable &quo

svn commit: r293698 - head/sys/kern

2016-01-11 Thread Colin Percival
Author: cperciva Date: Mon Jan 11 20:38:39 2016 New Revision: 293698 URL: https://svnweb.freebsd.org/changeset/base/293698 Log: Fix a bug introduced in r291716: "The problem with the approach taken both in _bus_dmamap_load_pages and bus_dmamap_load_ma_triv is that they split the request

Re: svn commit: r291716 - in head: share/man/man4 sys/cam sys/cam/ata sys/cam/scsi sys/dev/md sys/geom sys/kern sys/pc98/include sys/sys usr.sbin usr.sbin/camdd

2016-01-11 Thread Colin Percival
ur in Roger's part of the world (and the fact that this was obstructing other work I want to do today) I committed this fix as r293698 after experimental confirmation that it fixes what I was seeing. Thank you both for the quick investigation! -- Colin Percival Security Officer Emeritus, FreeB

svn commit: r293700 - head/sys/dev/xen/blkfront

2016-01-11 Thread Colin Percival
Author: cperciva Date: Mon Jan 11 21:02:30 2016 New Revision: 293700 URL: https://svnweb.freebsd.org/changeset/base/293700 Log: Add two more assertions to catch busdma problems. Each segment provided by busdma to the blkfront driver must be an integer number of sectors, and must be aligned

Re: svn commit: r293115 - head/etc

2016-01-04 Thread Colin Percival
of mounting rw removing the files, then > mounting ro. The solution I intended when I introduced this (and used elsewhere) was to set $firstboot_sentinel in /etc(/defaults)?/rc.conf. This case is precisely why it's a shell variable, in fact. Colin Percival >

Re: svn commit: r293115 - head/etc

2016-01-04 Thread Colin Percival
On 01/04/16 09:09, Warner Losh wrote: > On Mon, Jan 4, 2016 at 10:00 AM, Colin Percival <cperc...@tarsnap.com > <mailto:cperc...@tarsnap.com>> wrote: > On 01/03/16 11:18, Warner Losh wrote: > > Fix the read-only > > root case with horrible kludge

Re: svn commit: r293115 - head/etc

2016-01-03 Thread Colin Percival
of mounting rw removing the files, then > mounting ro. The solution I intended when I introduced this (and used elsewhere) was to set $firstboot_sentinel in /etc(/defaults)?/rc.conf. This case is precisely why it's a shell variable, in fact. Colin Percival >

Re: svn commit: r289421 - in head/etc: . mtree ntp

2015-12-30 Thread Colin Percival
s, props changed) So... is someone going to be keeping this file up to date? We seem to have the same information in contrib/tzdata/leapseconds (which is being kept up to date -- thank you edwin and delphij!) but having this file in /etc/ntp/ being out of date is making ntpd refuse to start. -- Colin Perc

svn commit: r292718 - head/share/mk

2015-12-25 Thread Colin Percival
Author: cperciva Date: Fri Dec 25 10:08:42 2015 New Revision: 292718 URL: https://svnweb.freebsd.org/changeset/base/292718 Log: Document that make's .POSIX: handling is broken. In fact, it has been broken ever since it was added in November 1996. Modified: head/share/mk/sys.mk Modified:

svn commit: r292723 - in head: lib/libc share/mk

2015-12-25 Thread Colin Percival
Author: cperciva Date: Fri Dec 25 11:29:18 2015 New Revision: 292723 URL: https://svnweb.freebsd.org/changeset/base/292723 Log: Make libxnet.so a symlink to libc.so. This makes `-lxnet` a no-op, as POSIX requires for the c99 compiler. (In fact, our c99(1) already ignores -lxnet; but our

Re: svn commit: r292723 - in head: lib/libc share/mk

2015-12-25 Thread Colin Percival
On 12/25/15 13:03, Daniel Eischen wrote: > On Fri, 25 Dec 2015, Ed Schouten wrote: >> 2015-12-25 12:29 GMT+01:00 Colin Percival <cperc...@freebsd.org>: >>> Make libxnet.so a symlink to libc.so. This makes `-lxnet` a no-op, as >>> POSIX requires for the c99 com

svn commit: r289065 - head/usr.sbin/freebsd-update

2015-10-09 Thread Colin Percival
Author: cperciva Date: Fri Oct 9 12:34:33 2015 New Revision: 289065 URL: https://svnweb.freebsd.org/changeset/base/289065 Log: Add --currently-running option to freebsd-update. This option tells freebsd-update to act as if it is running a specific release instead of querying the

svn commit: r289031 - head/sys/boot/i386/gptboot

2015-10-08 Thread Colin Percival
Author: cperciva Date: Thu Oct 8 15:38:34 2015 New Revision: 289031 URL: https://svnweb.freebsd.org/changeset/base/289031 Log: Change gptldr from relocating 0xfff1 bytes of boot2 to relocating 0x2 bytes of boot2. Since we're in 16-bit mode, we can't copy all 128kB at once; instead we

svn commit: r288485 - in head: . games usr.bin usr.bin/caesar usr.bin/factor usr.bin/fortune usr.bin/grdc usr.bin/morse usr.bin/number usr.bin/pom usr.bin/primes usr.bin/random

2015-10-02 Thread Colin Percival
Author: cperciva Date: Fri Oct 2 10:08:11 2015 New Revision: 288485 URL: https://svnweb.freebsd.org/changeset/base/288485 Log: Final step of eliminating the "games" distribution: Merge src/games (or what's left of it, at least) into src/usr.bin. This change will not be MFCed.

svn commit: r288446 - in head: sbin/init sys/dev/acpica sys/kern sys/sys

2015-10-01 Thread Colin Percival
Author: cperciva Date: Thu Oct 1 10:52:26 2015 New Revision: 288446 URL: https://svnweb.freebsd.org/changeset/base/288446 Log: Disable suspend when we're shutting down. This solves the "tell FreeBSD to shut down; close laptop lid" scenario which otherwise tended to end with a laptop

svn commit: r286062 - in head/sys: dev/xen/blkfront xen/interface/io

2015-07-29 Thread Colin Percival
Author: cperciva Date: Thu Jul 30 03:50:01 2015 New Revision: 286062 URL: https://svnweb.freebsd.org/changeset/base/286062 Log: Add support for Xen blkif indirect segment I/Os. This makes it possible for the blkfront driver to perform I/Os of up to 2 MB, subject to support from the blkback

svn commit: r286063 - head/release/tools

2015-07-29 Thread Colin Percival
Author: cperciva Date: Thu Jul 30 04:01:00 2015 New Revision: 286063 URL: https://svnweb.freebsd.org/changeset/base/286063 Log: Disable blkif indirect segment I/Os in EC2 by default due to performance issues on some EC2 instance types. Users may want to experiment with removing this from

svn commit: r284723 - head/sys/dev/xen/blkfront

2015-06-23 Thread Colin Percival
Author: cperciva Date: Tue Jun 23 06:50:03 2015 New Revision: 284723 URL: https://svnweb.freebsd.org/changeset/base/284723 Log: Rename mksegarray to xbd_mksegarray for consistency with other function names in this file. Submitted by: royger Modified:

svn commit: r284664 - head/sys/xen/interface/io

2015-06-21 Thread Colin Percival
Author: cperciva Date: Sun Jun 21 06:05:33 2015 New Revision: 284664 URL: https://svnweb.freebsd.org/changeset/base/284664 Log: Garbage collect comments which related to the pre-r284296 support for a segment block extension in FreeBSD's Xen blkfront/blkback drivers. Since this commit

svn commit: r284670 - head/sys/dev/xen/blkfront

2015-06-21 Thread Colin Percival
Author: cperciva Date: Sun Jun 21 06:52:03 2015 New Revision: 284670 URL: https://svnweb.freebsd.org/changeset/base/284670 Log: Garbage collect comments and a macro which related to the pre-r284296 support for a segment block extension in FreeBSD's Xen blkfront/blkback drivers. This

svn commit: r284662 - head/sys/dev/xen/blkfront

2015-06-20 Thread Colin Percival
Author: cperciva Date: Sun Jun 21 05:32:56 2015 New Revision: 284662 URL: https://svnweb.freebsd.org/changeset/base/284662 Log: If we fail to allocate memory, pass ENOMEM as the error code, not the error variable (which is always zero at this point). Modified:

svn commit: r284663 - head/sys/dev/xen/blkfront

2015-06-20 Thread Colin Percival
Author: cperciva Date: Sun Jun 21 05:36:58 2015 New Revision: 284663 URL: https://svnweb.freebsd.org/changeset/base/284663 Log: Move the bus_dma_tag creation and per-transaction data allocation from xbd_initialize to xbd_connect. Both of these initialization steps need to know what the

svn commit: r284615 - head/sys/dev/xen/blkfront

2015-06-19 Thread Colin Percival
Author: cperciva Date: Fri Jun 19 22:40:58 2015 New Revision: 284615 URL: https://svnweb.freebsd.org/changeset/base/284615 Log: Minor clean up to xbd_queue_cb: * nsegs must be at most BLKIF_MAX_SEGMENTS_PER_REQUEST (since we specify that limit to bus_dma_tag_create), so KASSERT that

svn commit: r284618 - head/sys/dev/xen/blkfront

2015-06-19 Thread Colin Percival
Author: cperciva Date: Sat Jun 20 00:02:03 2015 New Revision: 284618 URL: https://svnweb.freebsd.org/changeset/base/284618 Log: Refactor xbd_queue_cb, extracting the code which converts bus_dma segments into blkif segments, and moving it into a new function. This will be used by upcoming

Re: svn commit: r282672 - head/etc/rc.d

2015-05-11 Thread Colin Percival
? -- Colin Percival Security Officer Emeritus, FreeBSD | The power to serve Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head

svn commit: r280928 - head/release

2015-03-31 Thread Colin Percival
Author: cperciva Date: Wed Apr 1 00:00:17 2015 New Revision: 280928 URL: https://svnweb.freebsd.org/changeset/base/280928 Log: Add code for creating an EC2 AMI. Added: head/release/Makefile.ec2 (contents, props changed) Modified: head/release/Makefile.vm Added:

Re: svn commit: r280840 - head/release/tools

2015-03-30 Thread Colin Percival
On 03/30/15 02:04, NGie Cooper wrote: On Mon, Mar 30, 2015 at 2:03 AM, NGie Cooper yaneurab...@gmail.com wrote: On Mon, Mar 30, 2015 at 1:33 AM, Colin Percival cperc...@freebsd.org wrote: cleanup() { + if mount | grep -qE devfs on ${DESTDIR}/dev; then + umount_loop

svn commit: r280840 - head/release/tools

2015-03-30 Thread Colin Percival
Author: cperciva Date: Mon Mar 30 08:33:19 2015 New Revision: 280840 URL: https://svnweb.freebsd.org/changeset/base/280840 Log: Clean up filesystem unmounting in vmimage builds: * Remove vm_umount_base function which is currently unused. * Add umount_loop function which loops attempting to

svn commit: r280846 - head/release/tools

2015-03-30 Thread Colin Percival
Author: cperciva Date: Mon Mar 30 09:08:24 2015 New Revision: 280846 URL: https://svnweb.freebsd.org/changeset/base/280846 Log: Improve check for whether ${DESTDIR}/dev is mounted. Submitted by: gcooper Modified: head/release/tools/vmimage.subr Modified: head/release/tools/vmimage.subr

svn commit: r280881 - head/release/tools

2015-03-30 Thread Colin Percival
Author: cperciva Date: Tue Mar 31 01:44:29 2015 New Revision: 280881 URL: https://svnweb.freebsd.org/changeset/base/280881 Log: Partially revert r278118 now that the required logic for deciding whether freebsd-update can be useful has moved into the firstboot_freebsd_update script.

svn commit: r280879 - in head/release: . tools

2015-03-30 Thread Colin Percival
Author: cperciva Date: Tue Mar 31 01:28:33 2015 New Revision: 280879 URL: https://svnweb.freebsd.org/changeset/base/280879 Log: Add bits for building EC2 disk images. Make logic for uploading these to create EC2 AMIs will come in a later commit. Added: head/release/tools/ec2.conf

svn commit: r280884 - head/release/tools

2015-03-30 Thread Colin Percival
Author: cperciva Date: Tue Mar 31 04:35:35 2015 New Revision: 280884 URL: https://svnweb.freebsd.org/changeset/base/280884 Log: It would help if I committed the right patch... Modified: head/release/tools/ec2.conf Modified: head/release/tools/ec2.conf

svn commit: r280299 - in head/release: scripts tools

2015-03-20 Thread Colin Percival
Author: cperciva Date: Fri Mar 20 19:40:19 2015 New Revision: 280299 URL: https://svnweb.freebsd.org/changeset/base/280299 Log: When creating VM images, copy the contents of the created filesystem into a new filesystem before packaging it into a disk image. This prevents remnants of

svn commit: r279269 - head/lib/libc/stdlib

2015-02-24 Thread Colin Percival
Author: cperciva Date: Wed Feb 25 07:49:15 2015 New Revision: 279269 URL: https://svnweb.freebsd.org/changeset/base/279269 Log: Adjust wording slightly to emphasize that random(3) should not be used for any applications which need unpredictable random numbers, not merely those which are

svn commit: r279150 - in head: . games games/bcd games/ppt tools/build/mk

2015-02-22 Thread Colin Percival
Author: cperciva Date: Sun Feb 22 08:50:05 2015 New Revision: 279150 URL: https://svnweb.freebsd.org/changeset/base/279150 Log: Step 2 of eliminating the games distribution: Remove punch card utilities. I was originally planning on removing the phase-of-moon (pom), clock (grdc), and

svn commit: r278616 - in head: . contrib/netbsd-tests/games etc etc/mtree etc/root games games/caesar games/fortune/datfiles release/scripts share/man/man4 share/man/man6 share/man/man7 share/mk sh...

2015-02-11 Thread Colin Percival
Author: cperciva Date: Thu Feb 12 05:35:00 2015 New Revision: 278616 URL: https://svnweb.freebsd.org/changeset/base/278616 Log: Step 1 of eliminating the games distribution: Move binaries to /usr/bin; update paths; and include everything in the base distribution. The games distribution

Re: svn commit: r278616 - in head: . contrib/netbsd-tests/games etc etc/mtree etc/root games games/caesar games/fortune/datfiles release/scripts share/man/man4 share/man/man6 share/man/man7 share/mk s

2015-02-11 Thread Colin Percival
On 02/11/15 21:35, Colin Percival wrote: 2. Removing punch card (bcd, ppt), phase-of-moon (pom), clock (grdc), and caesar cipher (caesar, rot13) utilities. I intend to keep fortune, factor, morse, number, primes, and random, since there is evidence that those are still being used

svn commit: r277954 - head/games/fortune/fortune

2015-01-30 Thread Colin Percival
Author: cperciva Date: Fri Jan 30 23:26:03 2015 New Revision: 277954 URL: https://svnweb.freebsd.org/changeset/base/277954 Log: Fix 7-year-old typo: The default directory searched for fortunes is /usr/share/games/fortune, not /usr/games/fortune (which is the path to the fortune binary

svn commit: r277606 - head/release

2015-01-23 Thread Colin Percival
Author: cperciva Date: Fri Jan 23 20:24:13 2015 New Revision: 277606 URL: https://svnweb.freebsd.org/changeset/base/277606 Log: Provide a recipe of true for building the release target once its prerequisites are satisfied, in order to avoid having an implicit rule triggered by the presence

Re: svn commit: r277606 - head/release

2015-01-23 Thread Colin Percival
On 01/23/15 12:28, Ian Lepore wrote: On Fri, 2015-01-23 at 20:24 +, Colin Percival wrote: release:real-release vm-release cloudware-release +@true real-release: ${MAKE} -C ${.CURDIR} ${.MAKEFLAGS} obj Wouldn't '.PHONY: release' be a better/more-correct fix? Could

svn commit: r277318 - head/sys/dev/acpica

2015-01-18 Thread Colin Percival
Author: cperciva Date: Sun Jan 18 12:45:26 2015 New Revision: 277318 URL: https://svnweb.freebsd.org/changeset/base/277318 Log: When disabling C3+ CPU states due to the CPU_QUIRK_NO_C3 quirk, don't accidentally enable non-existent states. This bug was triggered if ACPI advertises the

Re: svn commit: r276530 - head/sys/x86/xen

2015-01-02 Thread Colin Percival
that xen_initial_domain() always returns the same value -- without having a bogus initialization which could hide a future bug. -- Colin Percival Security Officer Emeritus, FreeBSD | The power to serve Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid

svn commit: r276086 - head/usr.sbin/freebsd-update

2014-12-22 Thread Colin Percival
Author: cperciva Date: Mon Dec 22 21:52:37 2014 New Revision: 276086 URL: https://svnweb.freebsd.org/changeset/base/276086 Log: Strip trailing / characters from paths in not present index entries, not just directory entries. Prior to this commit, if / was added as part of a security

svn commit: r273487 - head/sys/kern

2014-10-22 Thread Colin Percival
Author: cperciva Date: Wed Oct 22 23:35:32 2014 New Revision: 273487 URL: https://svnweb.freebsd.org/changeset/base/273487 Log: Avoid leaking data from the kernel environment: When we convert the initial static environment to a dynamic one, zero the static environment buffer, and zero

svn commit: r273489 - head/sys/geom/eli

2014-10-22 Thread Colin Percival
Author: cperciva Date: Wed Oct 22 23:41:15 2014 New Revision: 273489 URL: https://svnweb.freebsd.org/changeset/base/273489 Log: Populate the GELI passphrase cache with the kern.geom.eli.passphrase variable (if any) provided in the boot environment. Unset it from the kernel environment

Re: svn commit: r273487 - head/sys/kern

2014-10-22 Thread Colin Percival
On 10/22/14 16:35, Colin Percival wrote: Author: cperciva Date: Wed Oct 22 23:35:32 2014 New Revision: 273487 URL: https://svnweb.freebsd.org/changeset/base/273487 Log: Avoid leaking data from the kernel environment: When we convert the initial static environment to a dynamic one

Re: svn commit: r272393 - head/etc

2014-10-01 Thread Colin Percival
variables for its own use, there's no need to use functions from rc.subr -- it can just set the variables directly. If a script is editing rc.conf, sending a SIGALRM to $$ will signal /etc/rc to re-source rc.conf. I'm really not clear on what this commit accomplishes. -- Colin Percival Security

svn commit: r272207 - in head/games: factor primes

2014-09-27 Thread Colin Percival
Author: cperciva Date: Sat Sep 27 09:00:38 2014 New Revision: 272207 URL: http://svnweb.freebsd.org/changeset/base/272207 Log: Switch primes(6) from using unsigned long to using uint64_t. This fixes 'limited range of type' warnings about comparisons on 32-bit systems, and allows 32-bit

Re: svn commit: r272207 - in head/games: factor primes

2014-09-27 Thread Colin Percival
On 09/27/14 05:52, John Baldwin wrote: On Saturday, September 27, 2014 09:00:39 AM Colin Percival wrote: #define BIG ULONG_MAX /* largest value will sieve */ Should this be UINT64_MAX (or however that is spelled) instead of ULONG_MAX now? (or is it even still used

svn commit: r272166 - in head/games: factor primes

2014-09-26 Thread Colin Percival
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/primes/spsp.cFri Sep 26 09:40:48 2014(r272166) @@ -0,0 +1,181 @@ +/*- + * Copyright (c) 2014 Colin Percival + * All rights reserved. + * + * Redistribution and use in source and binary forms

svn commit: r271664 - head/sys/geom/eli

2014-09-16 Thread Colin Percival
Author: cperciva Date: Tue Sep 16 08:40:52 2014 New Revision: 271664 URL: http://svnweb.freebsd.org/changeset/base/271664 Log: Cache GELI passphrases entered at the console during the boot process, in order to improve user-friendliness when a system has multiple disks encrypted using the

svn commit: r265876 - head/sys/kern

2014-05-11 Thread Colin Percival
Author: cperciva Date: Sun May 11 10:32:58 2014 New Revision: 265876 URL: http://svnweb.freebsd.org/changeset/base/265876 Log: In cf_get_method, when we don't already know what clock speed the CPU is running at, guess the nearest value instead of looking for a value within 25 MHz of the

svn commit: r258956 - head/sys/kern

2013-12-04 Thread Colin Percival
Author: cperciva Date: Thu Dec 5 03:01:41 2013 New Revision: 258956 URL: http://svnweb.freebsd.org/changeset/base/258956 Log: Make panic_reboot_wait_time static. Submitted by: jhb Modified: head/sys/kern/kern_shutdown.c Modified: head/sys/kern/kern_shutdown.c

Re: svn commit: r258894 - head/etc

2013-12-04 Thread Colin Percival
On 12/04/13 06:03, John Baldwin wrote: On Tuesday, December 03, 2013 4:55:58 pm Colin Percival wrote: The rc system aggressively caches the contents of /etc/rc.conf in order to improve boot performance; this produces arguably astonishing (non-)results if /etc/rc.conf is modified during

svn commit: r258893 - head/sys/kern

2013-12-03 Thread Colin Percival
Author: cperciva Date: Tue Dec 3 21:35:25 2013 New Revision: 258893 URL: http://svnweb.freebsd.org/changeset/base/258893 Log: Add a new sysctl / loader tunable kern.panic_reboot_wait_time which defaults to PANIC_REBOOT_WAIT_TIME (a long-existing kernel config setting). Use this

svn commit: r258894 - head/etc

2013-12-03 Thread Colin Percival
Author: cperciva Date: Tue Dec 3 21:55:57 2013 New Revision: 258894 URL: http://svnweb.freebsd.org/changeset/base/258894 Log: The rc system aggressively caches the contents of /etc/rc.conf in order to improve boot performance; this produces arguably astonishing (non-)results if

svn commit: r258124 - head/usr.sbin/portsnap/portsnap

2013-11-14 Thread Colin Percival
Author: cperciva Date: Thu Nov 14 09:22:32 2013 New Revision: 258124 URL: http://svnweb.freebsd.org/changeset/base/258124 Log: When verifying that files we need are present, also check that they don't have zero length. Filesystem corruption will tend to truncate files, and since these are

Re: svn commit: r258124 - head/usr.sbin/portsnap/portsnap

2013-11-14 Thread Colin Percival
On 11/14/13 01:47, Robert Watson wrote: On Thu, 14 Nov 2013, Colin Percival wrote: When verifying that files we need are present, also check that they don't have zero length. Filesystem corruption will tend to truncate files, and since these are short that's likely to result in them

svn commit: r258086 - head

2013-11-13 Thread Colin Percival
Author: cperciva Date: Wed Nov 13 08:08:56 2013 New Revision: 258086 URL: http://svnweb.freebsd.org/changeset/base/258086 Log: Strip the -pN patch level from the VERSION string which gets encoded into CTF data. Otherwise FreeBSD Update builds think every kernel file has changed every time

svn commit: r257879 - head/usr.sbin/freebsd-update

2013-11-08 Thread Colin Percival
Author: cperciva Date: Sat Nov 9 04:50:05 2013 New Revision: 257879 URL: http://svnweb.freebsd.org/changeset/base/257879 Log: Fix typo in r256646: We want to generate lists of directories in INDEX-OLD and INDEX-NEW and compare them, not generate the same list of directories from INDEX-OLD

svn commit: r257129 - head/contrib/subversion/subversion/libsvn_subr

2013-10-25 Thread Colin Percival
Author: cperciva Date: Fri Oct 25 18:43:53 2013 New Revision: 257129 URL: http://svnweb.freebsd.org/changeset/base/257129 Log: Remove time and date stamps from svn* binaries, in order to make the builds reproducible. Reviewed by: peter MFC after:3 days Modified:

svn commit: r257038 - head/usr.sbin/freebsd-update

2013-10-23 Thread Colin Percival
Author: cperciva Date: Thu Oct 24 03:36:39 2013 New Revision: 257038 URL: http://svnweb.freebsd.org/changeset/base/257038 Log: Be more selective when filtering for lib*.so.N files. These are deleted at the end of the upgrade process, after warning users to upgrade any 3rd party software

svn commit: r256921 - head

2013-10-22 Thread Colin Percival
Author: cperciva Date: Tue Oct 22 18:36:39 2013 New Revision: 256921 URL: http://svnweb.freebsd.org/changeset/base/256921 Log: Thou shalt not leak build host state into the system being compiled. The VERSION variable is encoded into the SUNW_ctf sections of the kernel and every kernel

Re: svn commit: r256767 - head/usr.sbin/freebsd-update

2013-10-19 Thread Colin Percival
On 10/19/13 02:40, Dag-Erling Smørgrav wrote: - P=[-+./:=%@_[[:alnum:]] + P=[-+./:=%@_[~[:alnum:]] Shouldn't this be P=[-+./:=%@_~[[:alnum:]] instead? -- Colin Percival Security Officer Emeritus, FreeBSD | The power to serve Founder, Tarsnap | www.tarsnap.com | Online backups

Re: svn commit: r256767 - head/usr.sbin/freebsd-update

2013-10-19 Thread Colin Percival
On 10/19/13 14:53, Jilles Tjoelker wrote: On Sat, Oct 19, 2013 at 01:03:51PM -0700, Colin Percival wrote: On 10/19/13 02:40, Dag-Erling Smørgrav wrote: - P=[-+./:=%@_[[:alnum:]] + P=[-+./:=%@_[~[:alnum:]] Shouldn't this be P=[-+./:=%@_~[[:alnum:]] instead? That is equivalent

svn commit: r256594 - head/usr.sbin/freebsd-update

2013-10-16 Thread Colin Percival
Author: cperciva Date: Wed Oct 16 08:19:58 2013 New Revision: 256594 URL: http://svnweb.freebsd.org/changeset/base/256594 Log: Speed up `freebsd-update IDS` by using IFS to split fields instead of forking lots of processes to run echo|cut. In one test this reduced the CPU time from 980s to

svn commit: r256646 - head/usr.sbin/freebsd-update

2013-10-16 Thread Colin Percival
Author: cperciva Date: Wed Oct 16 18:36:53 2013 New Revision: 256646 URL: http://svnweb.freebsd.org/changeset/base/256646 Log: When installing updates, install new directories first and remove old directories last. This is generally handled by the fact that the list of filesystem objects

svn commit: r255878 - head/etc

2013-09-26 Thread Colin Percival
Author: cperciva Date: Thu Sep 26 10:33:15 2013 New Revision: 255878 URL: http://svnweb.freebsd.org/changeset/base/255878 Log: Now that the portsnap buildbox is generating the raw bits for INDEX-10, add it to the set of INDEX files built by portsnap. Approved by: re (marius), portmgr

svn commit: r255459 - head/share/man/man4

2013-09-10 Thread Colin Percival
Author: cperciva Date: Tue Sep 10 21:16:18 2013 New Revision: 255459 URL: http://svnweb.freebsd.org/changeset/base/255459 Log: Remove documentation describing functionality which geom(4) does not, in fact, provide. Reviewed by: phk MFC after:3 days Approved by: re (gjb)

Re: svn commit: r255316 - head/sys/kern

2013-09-07 Thread Colin Percival
On 09/07/13 00:03, Gleb Smirnoff wrote: Does that mean that we always have had ability for a jail-root to investigate kernel memory? Only if you're crazy enough to have a /dev/kmem inside your jail. -- Colin Percival Security Officer Emeritus, FreeBSD | The power to serve Founder, Tarsnap

Re: svn commit: r255316 - head/sys/kern

2013-09-07 Thread Colin Percival
On 09/07/13 01:03, Slawa Olhovchenkov wrote: On Sat, Sep 07, 2013 at 12:06:32AM -0700, Colin Percival wrote: On 09/07/13 00:03, Gleb Smirnoff wrote: Does that mean that we always have had ability for a jail-root to investigate kernel memory? Only if you're crazy enough to have a /dev/kmem

svn commit: r255051 - head/sys/dev/xen/blkfront

2013-08-29 Thread Colin Percival
Author: cperciva Date: Fri Aug 30 01:46:56 2013 New Revision: 255051 URL: http://svnweb.freebsd.org/changeset/base/255051 Log: If reading a virtual-device value fails, attempt to read a virtual-device-ext value. Some hosts do not publish extended disk IDs via virtual-device in an attempt

svn commit: r254968 - head/sys/dev/xen/blkfront

2013-08-27 Thread Colin Percival
Author: cperciva Date: Tue Aug 27 19:10:36 2013 New Revision: 254968 URL: http://svnweb.freebsd.org/changeset/base/254968 Log: Remove duplicate dev.xbd.*.max_requests sysctl added in r252260. Approved by: gibbs Modified: head/sys/dev/xen/blkfront/blkfront.c Modified:

Re: svn commit: r254380 - in head/sys: kern sys

2013-08-16 Thread Colin Percival
or multiple threads read or write a file somewhat unintelligently (a small file, operations on the whole file, like in blogbench), they will effectively content for the byte 0, right? There can be multiple reads or one write, so yes there would be contention in that case. -- Colin Percival Security

svn commit: r254380 - in head/sys: kern sys

2013-08-15 Thread Colin Percival
Author: cperciva Date: Thu Aug 15 20:19:17 2013 New Revision: 254380 URL: http://svnweb.freebsd.org/changeset/base/254380 Log: Change the queue of locks in kern_rangelock.c from holding lock requests in the order that they arrive, to holding (a) granted write lock requests, followed by

Re: svn commit: r254380 - in head/sys: kern sys

2013-08-15 Thread Colin Percival
On 08/15/13 13:29, Ivan Voras wrote: On 15 August 2013 22:19, Colin Percival cperc...@freebsd.org wrote: For workloads with R parallel reads and W parallel writes, this improves the time spent from O((R+W)^2) to O(W*(R+W)); i.e., heavy parallel-read workloads become significantly more

Re: svn commit: r254380 - in head/sys: kern sys

2013-08-15 Thread Colin Percival
On 08/15/13 14:34, Ivan Voras wrote: On 15 August 2013 22:32, Colin Percival cperc...@freebsd.org wrote: No, I wasn't aware that it existed. Given that this change applies only to parallel operations *on the same vnode* and blogbench seems to have traffic randomly spread between many files, I

svn commit: r253541 - head/contrib/openbsm/m4

2013-07-22 Thread Colin Percival
Author: cperciva Date: Mon Jul 22 08:46:15 2013 New Revision: 253541 URL: http://svnweb.freebsd.org/changeset/base/253541 Log: Remove weirdly-named autofoo file. This is not needed for the (FreeBSD) build, and freebsd-update chokes on it. 9.2-RELEASE candidate. Approved by:

svn commit: r253224 - head/usr.sbin/portsnap/portsnap

2013-07-11 Thread Colin Percival
Author: cperciva Date: Thu Jul 11 22:19:18 2013 New Revision: 253224 URL: http://svnweb.freebsd.org/changeset/base/253224 Log: Fix bug in deleting files: If two ports had the same tarball and one of them changed (or was removed from the tree) then portsnap would delete that file. This

svn commit: r252854 - head/sys/net

2013-07-05 Thread Colin Percival
Author: cperciva Date: Fri Jul 5 23:40:08 2013 New Revision: 252854 URL: http://svnweb.freebsd.org/changeset/base/252854 Log: Fix typo: minmum - minimum. Submitted by: @z3ndrag0n Modified: head/sys/net/if_var.h Modified: head/sys/net/if_var.h

Re: svn commit: r251297 - head/sys/dev/xen/netfront

2013-06-05 Thread Colin Percival
of fragments). -- Colin Percival Security Officer Emeritus, FreeBSD | The power to serve Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn

svn commit: r250000 - head/sys/netinet

2013-04-27 Thread Colin Percival
Author: cperciva Date: Sat Apr 27 23:36:01 2013 New Revision: 25 URL: http://svnweb.freebsd.org/changeset/base/25 Log: Move IPPROTO_IPV6 from #ifdef __BSD_VISIBLE to #if __POSIX_VISIBLE = 201112 since POSIX 2001 states that it shall be defined. Reported by: sbruno Reviewed by:

<    1   2   3   >