Re: dhcp-options(5) diff

2018-02-28 Thread Kenneth R Westerback
On Wed, Feb 28, 2018 at 05:27:41PM +0100, Matthieu Herrb wrote: > On Wed, Feb 28, 2018 at 05:24:20PM +0100, Matthieu Herrb wrote: > > Hi, > > > > I've started using the classless-static-route option in dhcpd(8). This > > was not as painless as possible because I missed some important > > informati

Odd Public WiFi breaks dhclient(8) but works for iPhone (Fix!)

2018-06-10 Thread Kenneth R Westerback
On Sat, Jun 09, 2018 at 02:10:09PM +0200, Claudio Jeker wrote: > On Sat, Jun 09, 2018 at 01:31:20PM +0200, Martin Pieuchot wrote: > > On 08/06/18(Fri) 18:06, Kenneth R Westerback wrote: > > > Testing at the alternate DHCP lab (the one that serves beer) I find > > > that

Re: Odd Public WiFi breaks dhclient(8) but works for iPhone (Fix!)

2018-06-12 Thread Kenneth R Westerback
On Sun, Jun 10, 2018 at 02:15:09PM -0400, Kenneth R Westerback wrote: > On Sat, Jun 09, 2018 at 02:10:09PM +0200, Claudio Jeker wrote: > > On Sat, Jun 09, 2018 at 01:31:20PM +0200, Martin Pieuchot wrote: > > > On 08/06/18(Fri) 18:06, Kenneth R Westerback wrote: > > >

Re: New installer - initial user creation

2009-06-26 Thread Kenneth R Westerback
On Fri, Jun 26, 2009 at 03:12:52PM +0200, Antoine Jacoutot wrote: > On Fri, 26 Jun 2009, Thordur I. Bjornsson wrote: > > > viq wrote on Fri 26.Jun'09 at 14:45:04 +0200 > > > > > Since the user created during installation is somewhat marketed as "root > > > replacement", shouldn't he be added to

Re: man pages conflict or clarification for mount_vnd, newfs and man 5 disklabel

2009-07-26 Thread Kenneth R Westerback
On Sun, Jul 26, 2009 at 04:44:45AM +1100, leon zadorin wrote: > Man page for mount_vnd states: > " > The `c' partition of a vnd image should not be used. When a superblock > becomes damaged, fsck_ffs(8) needs information contained in the disklabel > to determine the location of alternate

Re: man pages conflict or clarification for mount_vnd, newfs and man 5 disklabel

2009-07-26 Thread Kenneth R Westerback
On Mon, Jul 27, 2009 at 11:11:21AM +1000, leon zadorin wrote: > On 7/27/09, Kenneth R Westerback wrote: > > On Sun, Jul 26, 2009 at 04:44:45AM +1100, leon zadorin wrote: > >> Man page for mount_vnd states: > >> " > >> The `c' partition of a vn

Re: OpenBSD 4.6 crashing on kernel boot due to ahci0 seemingly

2009-10-06 Thread Kenneth R Westerback
On Mon, Oct 05, 2009 at 11:01:24PM +0900, Christophe Prevotaux wrote: > Hi, > > My machine is Running OpenBSD/amd64 4.6 (snapshot 02 Oct 2009) > > > The kernel crashed on AHCI detection. > > ahci0 at pci0 dev 18 function 0 "ATI SB600 SATA" rev 0x00: apic 2 int 22 (irq > 11), AHCI 1.1 > scsibus

ciss(4) NO_CCB support

2009-11-09 Thread Kenneth R Westerback
I put the diff below together to add NO_CCB handling to ciss(4). It has been beat on with on some new HP systems and no regressions reported so far. This diff removes the reservation of a couple of ccb's for bioctl and sensor i/o's and let's the NO_CCB backpressure mechanism handle the situations

Re: Small change to rc?

2009-12-04 Thread Kenneth R Westerback
On Fri, Dec 04, 2009 at 11:37:08AM +, Steffen Beyer wrote: > Hi, > > one of our embedded systems, booting from ro-flash, refused to reboot. > Analyzing the problem, I stumbled upon these lines: > > # set hostname, turn on network > echo 'starting network' > ifconfig -g carp carpdemote 128 >

Re: sizeof(x)/sizeof(x[0]) -> nitems(x)

2010-01-18 Thread Kenneth R Westerback
On Sun, Jan 17, 2010 at 12:45:29PM +, Stuart Henderson wrote: > This diff uses nitems in various places in sys/dev/pci. > If this is wanted I'll do more sometime. No md5 changes. > > Ok? ok krw@ Ken > > Index: adv_pci.c > ==

Re: mg + tinyscheme

2010-01-26 Thread Kenneth R Westerback
On Tue, Jan 26, 2010 at 05:29:19PM -0700, Bob Beck wrote: > I'm not 100% disagreeing. .but you're still making kitty scared. I > like mg being small and fast. > > All you need to do is look at vim to see how a small editor can be > turned into a monster with extensions. Because their extension ar

Re: Patch for dhclient to support RFC 3442

2010-02-10 Thread Kenneth R Westerback
It may be a bit late to consider this for 4.7. Ken On Wed, Feb 10, 2010 at 04:10:05PM +0300, ? ??? wrote: > Hi All, > > could you please include to new release this patch to dhclient, > based on FreeBSD dhclient's patch. > The patch adds support of RFC 3442 (The Classless Static Rou

Re: possible bug in mii_physubr.c with Broadcom BCM57780

2010-02-15 Thread Kenneth R Westerback
On Sun, Feb 14, 2010 at 08:36:56PM -0800, bruce wrote: > I've been trying to get OpenBSD working with a new Dell Inspiron > Zino, and I've run into what I think may be a bug in mii_physubr.c. > > First, the symptoms: > > (1) /bsd.rd works just fine. I can use the BCM57780 GigE > netwo

Re: enhancing i386 mbr.S

2010-02-20 Thread Kenneth R Westerback
On Sat, Feb 20, 2010 at 02:36:00PM -0500, Ted Unangst wrote: > On Sat, Feb 20, 2010 at 8:29 AM, Giuseppe Magnotta > wrote: > > Currently, the mbr will not check it there are many bootable partition > > in the partition table. It simply start the first active partition it > > found. > > > > I've ma

Re: enhancing i386 mbr.S

2010-02-20 Thread Kenneth R Westerback
On Sat, Feb 20, 2010 at 06:44:41PM -0700, Tobias Weingartner wrote: > On Saturday, February 20, Kenneth R Westerback wrote: > > > > I vote with Ted. Booting, even the wrong partition, seems better to me > > than not booting anything. > > The MBR is not really supposed

Re: fdisk(8) man page diff

2010-03-26 Thread Kenneth R Westerback
On Fri, Mar 26, 2010 at 12:32:15PM -0400, Anders Langworthy wrote: > On Fri, Mar 26, 2010 at 3:25 AM, Jason McIntyre wrote: > > On Thu, Mar 25, 2010 at 09:05:01PM -0400, Anders Langworthy wrote: > >> > >> Here is an updated diff with that in mind: > >> > >> Index: fdisk.8 > >>

Re: fdisk(8) man page diff

2010-03-26 Thread Kenneth R Westerback
On Fri, Mar 26, 2010 at 08:08:32PM +, Stuart Henderson wrote: > On 2010/03/26 17:47, Jason McIntyre wrote: > > On Fri, Mar 26, 2010 at 01:35:28PM -0400, Kenneth R Westerback wrote: > > > > &

Re: whois diff - add IPv6 lookup + nic.mil removal

2010-04-02 Thread Kenneth R Westerback
On Fri, Apr 02, 2010 at 07:11:07PM +0200, Sebastian Rother wrote: > This diff removes nic.mil because the US military does not provide > whois informations anymore for serval years. > > Except this it adds the functionality to lookup IPv6 adresses > using "whois %IP_v6%" which was not possible bef

Re: problem understanding install.md and the shell in general

2010-04-27 Thread Kenneth R Westerback
On Tue, Apr 27, 2010 at 11:51:28PM +0200, Toni Mueller wrote: > Hi, > > while playing with Nick Bender's auto-install stuff, I hit a problem: > > > In src/distrib/i386/common/install.md, I see this code: > > > > NCPU=$(sysctl -n hw.ncpufound) > > ((NCPU > 1)) && { DEFAULTSETS="bs

Re: diffs that matter (or not)

2010-05-06 Thread Kenneth R Westerback
On Thu, May 06, 2010 at 10:42:08AM +0200, Thomas Pfaff wrote: > Sometimes I'm reading code from the source tree and then stumble upon > various things that I'm wondering if it's worth "fixing". These are > not real bugs, which is the numero uno priority, but I'm wondering if > anyone care about th

Re: Patch for bogus pointer arithmetic in adw(4)

2010-06-21 Thread Kenneth R Westerback
On Mon, Jun 21, 2010 at 12:44:35PM -0700, Matthew Dempsky wrote: > It looks like adw(4) has never correctly supported >12 byte SCSI > requests. It wants to copy from 12 bytes past the start of the CDB, > but &xs->cmd[12] is actually 192 bytes past (and pointing at who knows > what). > > However,

Re: Patch for bogus pointer arithmetic in adw(4)

2010-06-22 Thread Kenneth R Westerback
On Tue, Jun 22, 2010 at 04:02:16PM +0200, Philipp Schafft wrote: > reflum, > > On Mon, 2010-06-21 at 12:44 -0700, Matthew Dempsky wrote: > > It looks like adw(4) has never correctly supported >12 byte SCSI > > requests. It wants to copy from 12 bytes past the start of the CDB, > > but &xs->cmd[12

Re: kill pkg_info -l

2010-06-25 Thread Kenneth R Westerback
On Fri, Jun 25, 2010 at 04:45:24PM +0200, Marc Espie wrote: > Is anyone actually using pkg_info -l ? > > It's an annoying flag that's not even implemented consistently, > and I would like to actually kill it. > I don't even know what it is. So, I'm a no. Ken

Re: IO sorting

2010-06-30 Thread Kenneth R Westerback
On Wed, Jun 30, 2010 at 01:55:30PM -0500, Marco Peereboom wrote: > New drives have much more sophisticated IO queueing algorithms and > posses much more information about the physical limitations of drive > platters (or lack thereof) than an OS can ever hope to have. So switch > SCSI (and SATA) dr

Re: ioprbs(4) patch needs testing

2010-07-13 Thread Kenneth R Westerback
On Tue, Jul 13, 2010 at 01:36:34PM +0200, Mark Kettenis wrote: > > Date: Tue, 13 Jul 2010 12:45:08 +0200 > > From: Claudio Jeker > > > > On Sun, Jun 27, 2010 at 09:48:03AM -0700, Matthew Dempsky wrote: > > > Anyone still using ioprbs(4)? If so, please test the diff below and > > > report back to

pms/pmsi mouse owners unite! And test!

2010-07-28 Thread Kenneth R Westerback
There is a problem with pms/pmsi mice vs suspend/resume. On my eeepc 1000HE for instance. The diff below is the latest and possibly last attempt before 4.8 is locked to get this working without adversely affecting existing performance. If this doesn't get tested enough, all recent changes to get

Re: snapshot install, disklabel quirks

2010-08-17 Thread Kenneth R Westerback
On Tue, Aug 17, 2010 at 09:25:10AM +0200, Thomas de Grivel wrote: > For the record, i met a couple problems with the snapshot install > > - when selecting custom layout of an existing OpenBSD partition, > the disklabel utility had kept the mount points from the auto > layout, and refused that i s

Re: Kill struct dkdriver, redux

2010-08-20 Thread Kenneth R Westerback
On Fri, Aug 20, 2010 at 09:53:15AM -0700, Matthew Dempsky wrote: > The diff below gets rid of the useless "struct dkdriver" field and its > many "notyet" fields. > > I sent this diff out shortly before the release and got one or two > oks, but didn't want to conflict with some of the changes jsing

Re: ehci booboo

2010-08-21 Thread Kenneth R Westerback
On Sat, Aug 21, 2010 at 07:43:18AM +, Jacob Meuser wrote: > returning here without calling usb_transfer_complete() can cause > the usbtask thread to sleep forever, which breaks all usb devices > that use usb_tasks. > > -- > jake...@sdf.lonestar.org > SDF Public Access UNIX System - http://sdf

Re: multiple specified interfaces for rarpd

2010-08-26 Thread Kenneth R Westerback
On Thu, Aug 26, 2010 at 08:51:50PM +1000, Jonathan Gray wrote: > On Thu, Aug 26, 2010 at 12:34:19AM +1000, Jonathan Gray wrote: > > Currently rarpd can only listen on all or one interface, the > > following lets multiple interfaces be specified like dhcpd. > > previous diff missed usage as pointed

Re: end the VOP experiment

2010-08-27 Thread Kenneth R Westerback
On Fri, Aug 27, 2010 at 09:34:30AM -0400, Ted Unangst wrote: > On Fri, Aug 27, 2010 at 4:54 AM, Thordur I Bjornsson > wrote: > > +/* Global vfs data structures for cd9660. */ > > +struct vops cd9660_vops = { > > + .vop_default= eopnotsupp, > > + .vop_lookup = cd9660_lookup, > >

Re: end the VOP experiment

2010-08-27 Thread Kenneth R Westerback
On Fri, Aug 27, 2010 at 07:07:03PM +0200, Peter N. M. Hansteen wrote: > Kenneth R Westerback writes: > > > Man, another reason to get my vax up to -current. Sigh. :-) > > More idle curiosity than anything else (although I occasionally get > that question myself), how lo

Re: bufq massage

2010-08-29 Thread Kenneth R Westerback
On Sun, Aug 29, 2010 at 10:26:14PM +1000, David Gwynne wrote: > this diff is largely a mechanical change. > > firstly, it makes struct bufq a member of the softc for devices > that use it, rather than it being a pointer to something that needs > to be allocated at attach. since all these devices n

Re: Looking for testers for a simple X test

2010-09-01 Thread Kenneth R Westerback
On Wed, Sep 01, 2010 at 09:35:17AM +0200, LEVAI Daniel wrote: > On Mon, Aug 30, 2010 at 23:31:25 +0200, Mark Kettenis wrote: > > The Xorg xserver runs a scary amount of code in a signal handler. > > It's supposed to make your mouse cursor move more smoothly, but I > > can't spot the difference when

Re: Looking for testers for a simple X test

2010-09-01 Thread Kenneth R Westerback
On Wed, Sep 01, 2010 at 12:39:52PM +0200, LEVAI Daniel wrote: > On Wed, Sep 01, 2010 at 06:30:05 -0400, Kenneth R Westerback wrote: > > On Wed, Sep 01, 2010 at 09:35:17AM +0200, LEVAI Daniel wrote: > [...] > > > However, using this option, after starting firefox everything

Re: fortune(6): chess help required

2010-09-04 Thread Kenneth R Westerback
On Sat, Sep 04, 2010 at 08:09:48AM +0059, Jason McIntyre wrote: > from a recent commit from j...@freebsd. any chess heads want to yay or > nay it? > > i'll add the whole fortune after the diff for convenience. > > jmc http://www.xs4all.nl/~timkr/records/records.htm, 'Shortest Game' link. Some s

Re: fortune(6): chess help required

2010-09-04 Thread Kenneth R Westerback
On Sat, Sep 04, 2010 at 12:24:41PM +0059, Jason McIntyre wrote: > On Sat, Sep 04, 2010 at 06:55:11AM -0400, Kenneth R Westerback wrote: > > On Sat, Sep 04, 2010 at 08:09:48AM +0059, Jason McIntyre wrote: > > > from a recent commit from j...@freebsd. any chess heads want to y

Re: fortune(6): chess help required

2010-09-04 Thread Kenneth R Westerback
On Sat, Sep 04, 2010 at 12:24:41PM +0059, Jason McIntyre wrote: > On Sat, Sep 04, 2010 at 06:55:11AM -0400, Kenneth R Westerback wrote: > > On Sat, Sep 04, 2010 at 08:09:48AM +0059, Jason McIntyre wrote: > > > from a recent commit from j...@freebsd. any chess heads want to y

Re: fortune(6): chess help required

2010-09-04 Thread Kenneth R Westerback
On Sat, Sep 04, 2010 at 07:58:42PM +0159, Han Boetes wrote: > Jason McIntyre wrote: > > I would say maybe not to stick the url in. otherwise fine by me. > > I second that. > > > > # Han I committed it w/o the link. Ken

Re: amd64 MP: stop sending superfluous IPIs

2010-09-06 Thread Kenneth R Westerback
On Mon, Sep 06, 2010 at 01:09:39AM -0500, Philip Guenther wrote: > The amd64 pmap keeps track of which cpu(s) a given pmap is in use on, so > that when the pmap's page tables are modified it can send IPIs to the > neccessary processors to have them invalidate those pages in their caches. > Unfo

Fix for tcpdump subnet filtering

2010-09-06 Thread Kenneth R Westerback
canacar@ came up with this just before release, so it didn't go in at that time. So here it is again. Fixes filtering based on subnets, and it works for me (tm). i.e. tcpdump -pflog0 -n -vv net 192.197.205.0/24 will now show packets for 192.197.205.0/24, when before it did not. ok? Ken In

Improve st(4) handling of sense data

2010-09-06 Thread Kenneth R Westerback
More specifically, make handling of resid consistant and at least superficially correct. Triggered by the hack I had to commit to fix a problem with a large un-tar from my ahci DAT drive. A cookie for those who can show any semantic change I made outside of the calculation and usage of resid's. A

Re: dhcpd: don't reject DHCPINFORM from behind relay

2017-07-05 Thread Kenneth R Westerback
On Wed, Jul 05, 2017 at 04:37:39PM +0200, Reyk Floeter wrote: > Hi, > > landry@ sees many log messages 'DHCPINFORM from xx but ciaddr yy is > not consistent with actual address' in a setup where dhcpd runs behind > dhcrelay. > > The code in dhcpd's dhcpinform() seems wrong - it assumes that ciadd

Microsoft Now OpenBSD Foundation Gold Contributor

2015-07-08 Thread Kenneth R Westerback
The OpenBSD Foundation is happy to announce that Microsoft has made a significant financial donation to the Foundation. This donation is in recognition of the role of the Foundation in supporting the OpenSSH project. This donation makes Microsoft the first Gold level contributor in the OpenBSD Foun

softraid and 4096-byte sectors 'fixed'

2015-07-22 Thread Kenneth R Westerback
The diff below is a first cut at making softraid usable on today's larger and larger disks which use 4096-byte sectors. It allows building softraid volumes with such devices, and even building volumes that mix 'classic' 512-byte sector devices with 'avante garde' 4k-sector devices. Unlikely to be

OpenBSD Foundation 2014/2015 News & Fundraising

2015-02-25 Thread Kenneth R Westerback
2014 was the most successful year to date for the OpenBSD Foundation. Both in the amount of money we raised and in the support we provided for the OpenBSD and related projects. We are extremely grateful for the support shown by our contributers large and small. A detailed summary of the Foundation

Re: Remove unused argument from *rtrequest()

2013-08-27 Thread Kenneth R Westerback
On Tue, Aug 27, 2013 at 03:58:51PM +0200, Martin Pieuchot wrote: > In order to define a proper API for our routine table, I'd like to turn > the "struct rt_addrinfo" into a private type (ie: only used in route.c > and rtsock.c). > > This type is used by a lost of code in our network stack to add o

Re: defer routing table updates on link state changes

2013-08-27 Thread Kenneth R Westerback
On Tue, Aug 27, 2013 at 01:54:34PM +0200, Mike Belopuhov wrote: > On 27 August 2013 13:39, Martin Pieuchot wrote: > > I think that's the right approach but the current code generating > > interfaces indexes is too clever from my point of view, it tries > > to reuse the last index if possible. Thi

Re: Split rtinit()

2013-08-27 Thread Kenneth R Westerback
On Tue, Aug 27, 2013 at 03:38:49PM +0200, Martin Pieuchot wrote: > So I started to play with the routine table and I'm slowly trying to > unify the various code paths to add and delete route entries. The > diff below is a first step, it splits rtinit() into rt_add() and > rt_delete() there should

Re: [PATCH] ELF: ensure PT_INTERP strings are NULL-terminated

2013-08-28 Thread Kenneth R Westerback
On Wed, Aug 28, 2013 at 02:54:11PM +0200, Maxime Villard wrote: > Updated diff, with small tweaks from Andres Perera, > * int -> size_t, signedness issue, even if it can't be >INT_MAX > * NULL -> NUL > > > Index: exec_elf.c > === >

Re: [PATCH] ELF: ensure PT_INTERP strings are NULL-terminated

2013-08-28 Thread Kenneth R Westerback
On Wed, Aug 28, 2013 at 08:44:26PM +0200, Maxime Villard wrote: > On 08/28/13 16:30, Kenneth R Westerback wrote: > > On Wed, Aug 28, 2013 at 02:54:11PM +0200, Maxime Villard wrote: > >> Updated diff, with small tweaks from Andres Perera, > >> * int -> size_t, sign

Re: [PATCH] ELF: ensure PT_INTERP strings are NULL-terminated

2013-08-28 Thread Kenneth R Westerback
On Wed, Aug 28, 2013 at 09:43:24PM +0200, Maxime Villard wrote: > On 08/28/13 20:57, Matthew Dempsky wrote: > > On Wed, Aug 28, 2013 at 5:54 AM, Maxime Villard wrote: > >> + /* Ensure interp is a valid, NUL-terminated string > >> */ > >> + for (n = 0; n

Re: useradd with empty -k doesn't chown/chmod new home directory

2013-08-31 Thread Kenneth R Westerback
On Sat, Aug 31, 2013 at 06:23:25AM -0600, Todd C. Miller wrote: > Assuming we want to make this a non-fatal error the following should > do. > > - todd > > Index: usr.sbin/user/user.c > === > RCS file: /home/cvs/openbsd/src/usr.sbin

Re: Introduce rt_msg() (was nd6_rtmsg)

2013-09-02 Thread Kenneth R Westerback
On Mon, Sep 02, 2013 at 12:43:51PM +0200, Martin Pieuchot wrote: > Diff below is just a small refactoring of two similar code chunks to > inform user processes that something changed regarding a route. > > I'd like to get this in because it removes one use of rt_addrinfo in > netinet6. > > There'

Re: Iso image integrity verification

2013-09-11 Thread Kenneth R Westerback
On Wed, Sep 11, 2013 at 08:53:50PM +0300, Valentin Zagura wrote: > I don't think I'm more paranoid than the average considering that Debian > has a way to do this (http://www.debian.org/CD/verify), fedora has a way to > do this (https://fedoraproject.org/verify), even Freebsd has a way to do > this

Re: Iso image integrity verification

2013-09-12 Thread Kenneth R Westerback
t easely show his security > >assessor that it has the right images using some "industry standard" ways, > >or someone living in a country that has an oppressive government and would > >download the image through tor could have some problems if the exit node is > >malic

Re: Iso image integrity verification

2013-09-12 Thread Kenneth R Westerback
On Thu, Sep 12, 2013 at 07:52:22PM +0300, Valentin Zagura wrote: > > There is no entity > > that owns or can be held responsible for the code, or is capable > > of providing a solid evidentuary path from commit to your hands. > > I thought if we buy the CDs we WILL get "a solid evidentuary path fr

Re: Iso image integrity verification

2013-09-13 Thread Kenneth R Westerback
On Fri, Sep 13, 2013 at 11:13:36AM +0300, Valentin Zagura wrote: > Security itself is not the primary issue here. The issue is to easily prove > an assessor "without reasonable doubt" that you are running the right thing. > They will not worry about governments trying to break in with MITM signed >

Re: enc interface errno

2013-09-27 Thread Kenneth R Westerback
On Fri, Sep 27, 2013 at 03:24:25PM +0200, Alexander Bluhm wrote: > Hi, > > The error return codes for the enc interface seem quite inconsistent. > Always return the appropriate errno. > > ok? > > bluhm > > Index: net/if_enc.c > ===

Re: enc interface errno

2013-09-27 Thread Kenneth R Westerback
On Fri, Sep 27, 2013 at 06:56:04PM +0200, Alexander Bluhm wrote: > On Fri, Sep 27, 2013 at 12:00:40PM -0400, Kenneth R Westerback wrote: > > I'm not sure what the 'rule' is regarding ENOMEM and ENOBUFS, but > > ENOMEN seems more appropriate to me. > > ma

Re: re(4) diff that needs testing

2013-10-02 Thread Kenneth R Westerback
On Tue, Oct 01, 2013 at 09:32:30PM +0200, Mark Kettenis wrote: > Some re(4) variants now use msi. Unfortunately the interrupt handler > isn't careful enough, and we might miss an interrupt. The diff below > seems to fix that by disabling the interrupts while processing an > interrupt. This is wh

Re: re(4) diff that needs testing

2013-10-02 Thread Kenneth R Westerback
On Tue, Oct 01, 2013 at 09:32:30PM +0200, Mark Kettenis wrote: > Some re(4) variants now use msi. Unfortunately the interrupt handler > isn't careful enough, and we might miss an interrupt. The diff below > seems to fix that by disabling the interrupts while processing an > interrupt. This is wh

Re: [PATCH] ELF: ensure PT_INTERP strings are NULL-terminated

2013-10-05 Thread Kenneth R Westerback
On Sat, Oct 05, 2013 at 03:22:36PM -0600, Todd C. Miller wrote: > On Wed, 28 Aug 2013 22:34:26 -0400, Kenneth R Westerback wrote: > > > > @@ -552,11 +552,16 @@ ELFNAME2(exec,makecmds)(struct proc *p, > > > > > > for (i = 0, pp = ph; i < eh->e_phn

Re: Fixing an LLVM warning in the i2o code

2013-11-04 Thread Kenneth R Westerback
On Sun, Nov 03, 2013 at 10:51:43PM -0500, Brad Smith wrote: > LLVM errors out on the i2o code with the following warning.. > > ../../../../dev/i2o/iop.c:2399:42: error: comparison of unsigned expression < > 0 is always false [-Werror,-Wtautological-compare] > pt->pt_nbufs < 0 || pt->p

Re: Fixing an LLVM warning in the i2o code

2013-11-04 Thread Kenneth R Westerback
On Tue, Nov 05, 2013 at 02:24:22AM +1000, David Gwynne wrote: > > On 5 Nov 2013, at 12:40 am, Kenneth R Westerback > wrote: > > > On Sun, Nov 03, 2013 at 10:51:43PM -0500, Brad Smith wrote: > >> LLVM errors out on the i2o code with the following warning.. > >

Re: Add fcu(4/macppc) to RAMDISK

2013-11-09 Thread Kenneth R Westerback
On Sat, Nov 09, 2013 at 08:36:23PM +0100, Martin Pieuchot wrote: > Without this driver, it's impossible to upgrade my PowerMac7,3 without > hearing a fan symphony. > > ok? As long as all the media still fit this is ok krw@. I don't think there are many in macppc. Ken > > Index: conf/RAM

Re: FDDI/ATM leftovers

2013-11-18 Thread Kenneth R Westerback
On Mon, Nov 18, 2013 at 11:28:56AM +, Alexey E. Suslikov wrote: > Martin Pieuchot nolizard.org> writes: > > > - case IFT_FDDI: > > - case IFT_ATM: > > case IFT_IEEE1394: > > any plans for FireWire? :) > Nope. :-) Ken

Re: rename local ticks

2013-11-29 Thread Kenneth R Westerback
On Fri, Nov 29, 2013 at 04:50:17PM -0500, Ted Unangst wrote: > bad form, i think, to have a local variable shadow a global. I like it. ok krw@ Ken > > Index: kern_clock.c > === > RCS file: /cvs/src/sys/kern/kern_clock.c,v > re

Re: dhclient support for /32 assignments

2013-12-03 Thread Kenneth R Westerback
On Tue, Dec 03, 2013 at 04:15:10PM -0800, Matthew Dempsky wrote: > The patch below extends dhclient to mimic this logic from ISC DHCP's > linux script: > > if [ "x$new_subnet_mask" = "x255.255.255.255" ] ; then > route add -host $router dev $interface > fi > route

Re: dhclient support for /32 assignments

2013-12-04 Thread Kenneth R Westerback
On Wed, Dec 04, 2013 at 10:57:41AM -0800, Matthew Dempsky wrote: > On Tue, Dec 03, 2013 at 11:48:05PM -0500, Kenneth Westerback wrote: > > Rfc 3442 is what I referred to. > > I don't think RFC 3442 discusses what to do with /32 IP address > assignments though? No, that was my point. i.e. don't av

Re: dhclient support for /32 assignments

2013-12-05 Thread Kenneth R Westerback
On Wed, Dec 04, 2013 at 12:47:19PM -0800, Matthew Dempsky wrote: > On Wed, Dec 04, 2013 at 02:10:21PM -0500, Kenneth R Westerback wrote: > > No, that was my point. i.e. don't avoid adding the route when given > > a /32 address just because class static routes are also present

Re: 5.4 amd64 - Poor disk performance with Smart Array 6404

2013-12-09 Thread Kenneth R Westerback
On Mon, Dec 09, 2013 at 07:24:19PM -0500, Adam Jensen wrote: > I recently (last night) installed OpenBSD-5.4-amd64 on an > HP-Proliant ML370-G4 that has a Smart Array 6404 controller card in > a 64-bit, 133-MHz PCI-X slot. It has two Ultra320 SCSI channels and > 192MB of RAM cache. One SCSI channel

growfs fix

2014-04-29 Thread Kenneth R Westerback
This seems to fix growfs on 4k-sector drives by doing the test write to the last sector rather than the last 512-byte block, which can't be accessed directly on 4k-sector drives. Any other growfs users out there want to test on 'normal' drives? Ken Index: growfs.c ==

Re: softraid iopoolification

2011-04-04 Thread Kenneth R Westerback
On Mon, Apr 04, 2011 at 10:47:37AM -0400, Kenneth R Westerback wrote: > On Sun, Apr 03, 2011 at 07:01:04PM -0400, Kenneth R Westerback wrote: > > Works on my crypto volume. People with other volume types would be nice > > to hear from. > > > > Ken > >

ahd(4) prerequisite for iopoolification

2011-04-05 Thread Kenneth R Westerback
We never allocate >253 scb's, and thus tag collisions should not be possible if they are correctly initialized. This diff just rips out the existing collision code. I haven't yet determined if we need to initialize tags differently. It is a prerequisite for iopoolification and testing on any ahd h

Re: mechanic rename M_{TCP|UDP}V4_CSUM_OUT -> M_{TCP|UDP}_CSUM_OUT

2011-04-05 Thread Kenneth R Westerback
On Tue, Apr 05, 2011 at 06:19:32PM +0200, Henning Brauer wrote: > so i wanna change the world order a bit again. > basically, no part of the tree should bother with setting tcp and udp > checksums. when they are needed, the stack just sets these flags, and > ip_output / ip6_output do the checksum t

Re: "no really, be quiet" mode for ping{,6}

2011-04-06 Thread Kenneth R Westerback
On Wed, Apr 06, 2011 at 03:19:00PM -0400, Ted Unangst wrote: > On Wed, Apr 6, 2011 at 7:00 AM, Peter Hessler wrote: > > I use silent ping very often (especially in scripts and cronjobs), and it > > pisses me off that I need to redirect to /dev/null. I'm scratching an > > itch, here. > > Sorry, I

Re: fsck_ffs diff needs testing

2011-04-07 Thread Kenneth R Westerback
On Thu, Apr 07, 2011 at 11:08:05AM +0200, Otto Moerbeek wrote: > Hi, > > I got little feedeback on this diff posed in a rather long thread, so > I am posting it again. > > Please test this, it makes fsck_ffs much faster (especially with -p) > and less memory hungry in a lot of cases. > > Note th

cac(4) iopoolification - test now or forever hold your peace

2011-04-07 Thread Kenneth R Westerback
This has been posted a few times with no feedback I can remember. This is a last chance to test before you become involuntary testers! It will be committed very soon, with c2k11 on the horizon to deal with any fallout. Ken Index: ic/cac.c

gdt(4) iopoolification - test now or forever hold your peace

2011-04-07 Thread Kenneth R Westerback
As with cac(4). You can test now or can break later. Ken Index: ic/gdt_common.c === RCS file: /cvs/src/sys/dev/ic/gdt_common.c,v retrieving revision 1.55 diff -u -p -r1.55 gdt_common.c --- ic/gdt_common.c 12 Oct 2010 00:53:3

dhclient(8) vs classful static routes

2011-04-07 Thread Kenneth R Westerback
Classful routing is no longer widely used. Our current support for DHCP option 33 (DHO_STATIC_ROUTES) does not treat the provided information as classful routes but as host routes. Is this deliberate or accidental on our part? If accidental I would recommend the diff below, removing the handling

Re: system/6586: rdist (file larger than 2GB) times out but will not die -- Testers needed

2011-04-10 Thread Kenneth R Westerback
No need to copy bugs@, tech@ and misc@. One is enough. I pick tech@. There a few size_t vs ssize_t inconsistencies but this looks very good for a start. I would suggest that as we are changing strtol and atoi calls that we take the opportunity to replace them with strtonum calls. Ken On Sat

Re: system/6586: rdist (file larger than 2GB) times out but will not die -- Testers needed

2011-04-10 Thread Kenneth R Westerback
On Sat, Apr 09, 2011 at 11:20:09AM -0400, Steven R. Gerber wrote: > Hi folks. > Current rdist will timeout with files >2GB, log as finished, but will > not die. > The bug (system/6586) was originally noted by IBM (AIX) in 2006: > https://www-304.ibm.com/support/docview.wss?uid=isg1IY85396 > I

Re: system/6586: rdist (file larger than 2GB) times out but will not die

2011-04-10 Thread Kenneth R Westerback
On Sat, Apr 09, 2011 at 03:21:40PM -0400, Steven R. Gerber wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 4/9/2011 1:04 PM, Theo de Raadt wrote: > > When you print and off_t, for portability you should use: > > > > "%lld", (long long)offt > > > > > > I'm a bit confused b

Re: Remove odd code in wskbd.c

2011-04-13 Thread Kenneth R Westerback
On Wed, Apr 13, 2011 at 09:19:12PM +0600, Alexandr Shadchin wrote: > Hi! > > wskbd_holdscreen() is not needed and can be removed. ok? > > -- > Alexandr Shadchin ok krw@ Ken > > Index: wskbd.c > === > RCS file: /cvs/src/sys/

Re: Reducing number of call update_leds()

2011-04-13 Thread Kenneth R Westerback
On Thu, Apr 14, 2011 at 12:35:18AM +0600, Alexandr Shadchin wrote: > Updating state LED only when necessary. ok? > > -- > Alexandr Shadchin > > Index: wskbd.c > === > RCS file: /cvs/src/sys/dev/wscons/wskbd.c,v > retrieving revision

disklabel -F|-f should print swap partitions too.

2011-04-16 Thread Kenneth R Westerback
If we are trying to create a faux fstab for a disk, it should include any swap partitions on the disk. Other than general aesthetic appeal, this will help the install script. Anybody know of reasons not to included the swap partitions in -F|-f output? Ken Index: editor.c ===

Re: disklabel -F|-f should print swap partitions too.

2011-04-16 Thread Kenneth R Westerback
On Sat, Apr 16, 2011 at 05:48:03PM +0100, Jason McIntyre wrote: > On Sat, Apr 16, 2011 at 12:11:19PM -0400, Kenneth R Westerback wrote: > > If we are trying to create a faux fstab for a disk, it should include > > any swap partitions on the disk. Other than general aesthetic appeal

Re: disklabel -F|-f should print swap partitions too.

2011-04-17 Thread Kenneth R Westerback
On Sun, Apr 17, 2011 at 07:26:28AM +0100, Jason McIntyre wrote: > On Sat, Apr 16, 2011 at 07:29:27PM -0400, Kenneth R Westerback wrote: > > > > My suggested man page tweaks are below. > > > > Ken > >

rdist assumes read() can't fail

2011-04-18 Thread Kenneth R Westerback
r1.18 of rdist/docmd.c changed while ((len = read(fd, buf, sizeof(buf))) != (size_t)-1) to while ((len = read(fd, buf, sizeof(buf))) > 0) when fixing PR#5009. Which allowed detection of a return value of 0, i.e. end of file. However len is size_t and thus does not grok -1 and th

Re: uname(3) return values

2011-04-18 Thread Kenneth R Westerback
On Tue, Apr 19, 2011 at 01:15:11AM +0200, Ingo Schwarze wrote: > Hi Matthew and Joachim, > > Matthew Dempsky wrote on Mon, Apr 18, 2011 at 11:34:50AM -0700: > > > The issue here (if any) is that we over-specify the *successful* > > return value as precisely 0, rather than generally non-negative.

Re: automatically set the default console?

2011-04-19 Thread Kenneth R Westerback
On Tue, Apr 19, 2011 at 12:21:57PM +0200, Peter Hessler wrote: > When I'm installing over a serial line, I would expect to use that as my > console in the future. This diff sets the default console to the one we > are currently using, so it's just another [enter]. (The style is based > on the xdm

eliminate gdt(4) raw_scsi mode

2011-04-19 Thread Kenneth R Westerback
gdt(4) man page says 'transparent raw SCSI mode' is unsupported. The code just returns errors to any attempts to submit i/o. I'm pretty sure nobody is going to add support so eliminate the framework for it. Shrinks the iopool diff. Any dissenting voices? Ken Index: share/man/man4/gdt.4 ==

Re: fsck_ffs: remove support support for old formats

2011-04-23 Thread Kenneth R Westerback
On Sat, Apr 23, 2011 at 12:52:46PM +0200, Otto Moerbeek wrote: > Little feedback on this, > > If you have good reasons to keep the ability to convert and/or check > (very) old ffs on-disk formats, speak up now. > > -Otto Let the old crap molder in the grave and not disturb us. If you want

chio(1) and mt(1) shouldn't use OPENDEV_PART

2011-04-23 Thread Kenneth R Westerback
OPENDEV_PART means "try tacking a 'c' onto the end of the provided device name when opening the device". The tape devices opened by mt and chio don't have 'c' partitions so it's kinda useless to try opening them before just trying the 'bare' provided device. The curious can examine lib/libutil/ope

Re: malloc: speed vs randomization

2011-04-28 Thread Kenneth R Westerback
On Thu, Apr 28, 2011 at 11:12:40AM +0200, Otto Moerbeek wrote: > > On Tue, Apr 26, 2011 at 09:13:47PM +0200, Otto Moerbeek wrote: > > > > Second version of diff. This is a conservative one, i.e. it does not > > change randomization in any way. The diff achieves a speedup by: > > > > - Move from l

Re: macppc: support for Dynamic Frequency Switching

2011-05-04 Thread Kenneth R Westerback
On Wed, May 04, 2011 at 11:58:16AM +0100, Stuart Henderson wrote: > On 2011/05/04 16:11, Martin Pieuchot wrote: > > > > > > Looks good! Unfortunately the G4 mini (which has the MPC7447A) > > > doesn't support this. > > > > Can you send me your device-tree dump? If it's really a MPC7447A (not a >

tunefs(8) don't need no stinkin' opendisk(3). And wants DUIDs!

2011-05-04 Thread Kenneth R Westerback
And by using opendev(3) tunefs can accept disk UID's. Any actual tunefs(8) guru's out there who can explain what this might break? Inspired by oga@'s work on atactl. This is the last use of opendisk(3) in the tree. Any reason to keep it if this goes in? ports? Ken Index: tunefs.c

Re: tunefs(8) don't need no stinkin' opendisk(3). And wants DUIDs!

2011-05-05 Thread Kenneth R Westerback
On Thu, May 05, 2011 at 11:51:22AM +0100, Owain Ainsworth wrote: > On Wed, May 04, 2011 at 11:59:52PM -0400, Kenneth R Westerback wrote: > > And by using opendev(3) tunefs can accept disk UID's. > > > > Any actual tunefs(8) guru's out there who can ex

Re: tunefs(8) don't need no stinkin' opendisk(3). And wants DUIDs!

2011-05-05 Thread Kenneth R Westerback
On Thu, May 05, 2011 at 08:09:16AM -0400, Kenneth R Westerback wrote: > On Thu, May 05, 2011 at 11:51:22AM +0100, Owain Ainsworth wrote: > > On Wed, May 04, 2011 at 11:59:52PM -0400, Kenneth R Westerback wrote: > > > And by using opendev(3) tunefs can accept disk UID's.

  1   2   3   4   >