Re: vmd: set dhcp hostname option during netboot

2018-12-10 Thread Mike Larkin
On Tue, Dec 11, 2018 at 08:08:38AM +0100, Anton Lindqvist wrote: > On Mon, Dec 10, 2018 at 09:40:41PM -0800, Mike Larkin wrote: > > On Mon, Dec 10, 2018 at 07:27:40PM -0800, Carlos Cardenas wrote: > > > On Sat, Dec 08, 2018 at 10:13:47AM +0100, Anton Lindqvist wrote: > > > > Hi, > > > > I've been

Re: vmd: set dhcp hostname option during netboot

2018-12-10 Thread Anton Lindqvist
On Mon, Dec 10, 2018 at 09:40:41PM -0800, Mike Larkin wrote: > On Mon, Dec 10, 2018 at 07:27:40PM -0800, Carlos Cardenas wrote: > > On Sat, Dec 08, 2018 at 10:13:47AM +0100, Anton Lindqvist wrote: > > > Hi, > > > I've been trying out the new fake netboot feature in vmd. Overall, a > > > great

Re: add more bootdevices to vmctl

2018-12-10 Thread Mike Larkin
On Mon, Dec 10, 2018 at 10:35:23PM +0100, Claudio Jeker wrote: > Now that fw_cfg support is in vmd it makes sense to have -B disk > and -B cdrom. Also error out if the option is not known. > > This allows to use -B cdrom to force booting from the cdrom disk image > e.g. to update the VM image. >

Re: vmd: set dhcp hostname option during netboot

2018-12-10 Thread Mike Larkin
On Mon, Dec 10, 2018 at 07:27:40PM -0800, Carlos Cardenas wrote: > On Sat, Dec 08, 2018 at 10:13:47AM +0100, Anton Lindqvist wrote: > > Hi, > > I've been trying out the new fake netboot feature in vmd. Overall, a > > great addition that removed the need for me to run dhcpd/rebound locally > > to

Re: vmd: set dhcp hostname option during netboot

2018-12-10 Thread Carlos Cardenas
On Sat, Dec 08, 2018 at 10:13:47AM +0100, Anton Lindqvist wrote: > Hi, > I've been trying out the new fake netboot feature in vmd. Overall, a > great addition that removed the need for me to run dhcpd/rebound locally > to achieve auto install. It would be convenient if the DHCP lease > included a

opt-in per cpu counters for interfaces

2018-12-10 Thread David Gwynne
if vlan will be allowed to bypass its ifq when outputting packets, it will still need to count them. if this potential vlan_output exists, it will support being called concurrently in the system, so we need some way of counting concurrently. this adds per cpu counters to struct ifnet. interfaces

Re: add more bootdevices to vmctl

2018-12-10 Thread Carlos Cardenas
On Mon, Dec 10, 2018 at 11:30:05PM +0100, Claudio Jeker wrote: > On Mon, Dec 10, 2018 at 02:28:48PM -0800, Carlos Cardenas wrote: > > On Mon, Dec 10, 2018 at 10:38:56PM +0100, Reyk Floeter wrote: > > > OK reyk@ > > > > > > Please think about the manpage. > > > > > > > Am 10.12.2018 um 22:35

Re: allow weak passwd

2018-12-10 Thread Mark Kettenis
> From: "Ted Unangst" > Date: Mon, 10 Dec 2018 14:14:08 -0500 > Content-Type: text/plain; charset=utf-8 > > So I was actually looking at the passwd check rules because I wanted > to add a flag to disable the 3 bad passwords then ok whatever. > > This adds passwd -w to allow user to skip the

Re: Importing FreeBSD eMMC code

2018-12-10 Thread Heppler, J. Scott
Here is my 6.4_amd64 dmesg generated from a usb thumb drive with OpenBSD installed. OpenBSD 6.4 (GENERIC.MP) #364: Thu Oct 11 13:30:23 MDT 2018 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 8128622592 (7752MB) avail mem = 7872995328 (7508MB) mpath0 at root

Re: make build as root fails when SUDO=doas

2018-12-10 Thread Marc Espie
On Mon, Dec 10, 2018 at 01:33:49PM +0100, Solene Rapenne wrote: > hi > > I have SUDO=doas in /etc/mk.conf for ports, this is preventing a `make build` > in /usr/src as root if /etc/doas.conf doesn't have a line "permit nopass root > as root". This fails when using "doas" in regress/usr/bin/ssh/ >

Re: make build as root fails when SUDO=doas

2018-12-10 Thread Stuart Henderson
On 2018/12/10 23:28, Marc Espie wrote: > On Mon, Dec 10, 2018 at 08:17:04PM +0100, Anton Lindqvist wrote: > > On Mon, Dec 10, 2018 at 01:33:49PM +0100, Solene Rapenne wrote: > > > hi > > > > > > I have SUDO=doas in /etc/mk.conf for ports, this is preventing a `make > > > build` > > > in /usr/src

Re: make build as root fails when SUDO=doas

2018-12-10 Thread Marc Espie
On Mon, Dec 10, 2018 at 03:37:48PM -0500, Ted Unangst wrote: > Solene Rapenne wrote: > > Not sure how to fix it. Maybe people shouldn't try to compile as root when > > having SUDO=doas set and then, it's not an issue anymore? > > yeah, i would say this is an issue of your own making. you ask to

Re: add more bootdevices to vmctl

2018-12-10 Thread Claudio Jeker
On Mon, Dec 10, 2018 at 02:28:48PM -0800, Carlos Cardenas wrote: > On Mon, Dec 10, 2018 at 10:38:56PM +0100, Reyk Floeter wrote: > > OK reyk@ > > > > Please think about the manpage. > > > > > Am 10.12.2018 um 22:35 schrieb Claudio Jeker : > > > > > > Now that fw_cfg support is in vmd it makes

Re: make build as root fails when SUDO=doas

2018-12-10 Thread Marc Espie
On Mon, Dec 10, 2018 at 08:17:04PM +0100, Anton Lindqvist wrote: > On Mon, Dec 10, 2018 at 01:33:49PM +0100, Solene Rapenne wrote: > > hi > > > > I have SUDO=doas in /etc/mk.conf for ports, this is preventing a `make > > build` > > in /usr/src as root if /etc/doas.conf doesn't have a line

Re: add more bootdevices to vmctl

2018-12-10 Thread Carlos Cardenas
On Mon, Dec 10, 2018 at 10:38:56PM +0100, Reyk Floeter wrote: > OK reyk@ > > Please think about the manpage. > > > Am 10.12.2018 um 22:35 schrieb Claudio Jeker : > > > > Now that fw_cfg support is in vmd it makes sense to have -B disk > > and -B cdrom. Also error out if the option is not known.

Re: add more bootdevices to vmctl

2018-12-10 Thread Reyk Floeter
OK reyk@ Please think about the manpage. > Am 10.12.2018 um 22:35 schrieb Claudio Jeker : > > Now that fw_cfg support is in vmd it makes sense to have -B disk > and -B cdrom. Also error out if the option is not known. > > This allows to use -B cdrom to force booting from the cdrom disk image >

add more bootdevices to vmctl

2018-12-10 Thread Claudio Jeker
Now that fw_cfg support is in vmd it makes sense to have -B disk and -B cdrom. Also error out if the option is not known. This allows to use -B cdrom to force booting from the cdrom disk image e.g. to update the VM image. -- :wq Claudio Index: main.c

Re: vmd(4) fw_cfg support

2018-12-10 Thread Carlos Cardenas
On Mon, Dec 10, 2018 at 05:52:43PM +0100, Claudio Jeker wrote: > This adds the fw_cfg interface that QEMU is using to pass data to the > BIOS. It implements both IO port access and DMA access. SeaBIOS will use > the latter if available. This should be useful for adding ACPI tables or > SMBIOS

Re: make build as root fails when SUDO=doas

2018-12-10 Thread Ted Unangst
Solene Rapenne wrote: > Not sure how to fix it. Maybe people shouldn't try to compile as root when > having SUDO=doas set and then, it's not an issue anymore? yeah, i would say this is an issue of your own making. you ask to use doas, make is going to use doas.

Re: bgpd refactor aspath_match a bit

2018-12-10 Thread Denis Fondras
On Thu, Dec 06, 2018 at 12:21:19PM +0100, Claudio Jeker wrote: > On Wed, Nov 28, 2018 at 10:35:37AM +0100, Claudio Jeker wrote: > > On Tue, Nov 27, 2018 at 06:55:51PM +0100, Job Snijders wrote: > > > On Tue, Nov 27, 2018 at 06:23:53PM +0100, Claudio Jeker wrote: > > > > On Tue, Nov 27, 2018 at

Re: vmd(4) fw_cfg support

2018-12-10 Thread Mike Larkin
On Mon, Dec 10, 2018 at 05:52:43PM +0100, Claudio Jeker wrote: > This adds the fw_cfg interface that QEMU is using to pass data to the > BIOS. It implements both IO port access and DMA access. SeaBIOS will use > the latter if available. This should be useful for adding ACPI tables or > SMBIOS

Re: make build as root fails when SUDO=doas

2018-12-10 Thread Anton Lindqvist
On Mon, Dec 10, 2018 at 01:33:49PM +0100, Solene Rapenne wrote: > hi > > I have SUDO=doas in /etc/mk.conf for ports, this is preventing a `make build` > in /usr/src as root if /etc/doas.conf doesn't have a line "permit nopass root > as root". This fails when using "doas" in regress/usr/bin/ssh/ >

allow weak passwd

2018-12-10 Thread Ted Unangst
So I was actually looking at the passwd check rules because I wanted to add a flag to disable the 3 bad passwords then ok whatever. This adds passwd -w to allow user to skip the default 3 warnings and just do what they want. If, by chance, you have configured warnings in login.conf then they

Re: vmm(4) allow IO ports for fw_cfg interface

2018-12-10 Thread Mike Larkin
On Mon, Dec 10, 2018 at 05:29:39PM +0100, Claudio Jeker wrote: > qemu has the fw_cfg mechanism to pass data from the emulator to the bios. > SeaBIOS also includes fw_cfg support and so it makes sense to add this to > vmd(4) as well. To make this happen the following IO ports need to be > forwarded

vmd(4) fw_cfg support

2018-12-10 Thread Claudio Jeker
This adds the fw_cfg interface that QEMU is using to pass data to the BIOS. It implements both IO port access and DMA access. SeaBIOS will use the latter if available. This should be useful for adding ACPI tables or SMBIOS data. This requires the latest vmm-firmware (which I just commited) and

vmm(4) allow IO ports for fw_cfg interface

2018-12-10 Thread Claudio Jeker
qemu has the fw_cfg mechanism to pass data from the emulator to the bios. SeaBIOS also includes fw_cfg support and so it makes sense to add this to vmd(4) as well. To make this happen the following IO ports need to be forwarded by vmm(4) to vmd(8). FW_CFG_IO_SELECT0x510

Re: carp though bridge with vmd

2018-12-10 Thread Mischa
Hi Reyk, If there is anything I can supply let me know, but I guess it's simple enough to replicate. Let me check carppeer anyway. Mischa > On 10 Dec 2018, at 09:55, Reyk Floeter wrote: > > Hi, > > as a general note for virtual switches and clouds that don’t support CARP due > to

[no subject]

2018-12-10 Thread Jan Stary
Currently, pcap_setdirection() is described in pcap.3 as follows: pcap_setdirection() is used to limit the direction that packets must be flowing in order to be captured. The "direction" is not described, except in pcap.h. Should the constants be mentioned in the manpage? Also, the direction

pcap_dump() arguments

2018-12-10 Thread Jan Stary
pcap_dump() is described in pcap.3 as follows: pcap_dump() outputs a packet to the savefile opened with pcap_dump_open(). Note that its calling arguments are suitable for use with pcap_dispatch(). That formulation is imho not entirely clear, as the arguments mention no "savefile". (Looking

Re: pwd_check tweak

2018-12-10 Thread Theo de Raadt
Stuart Henderson wrote: > On 2018/12/10 06:49, Sebastien Marie wrote: > > On Sun, Dec 09, 2018 at 09:14:38PM -0500, Ted Unangst wrote: > > > These patterns try to detect a1a1a1 style passwords. By making the regex > > > a bit > > > more flexible we can just use one. Also now catches mMmMmM

Re: pwd_check tweak

2018-12-10 Thread Stuart Henderson
On 2018/12/10 06:49, Sebastien Marie wrote: > On Sun, Dec 09, 2018 at 09:14:38PM -0500, Ted Unangst wrote: > > These patterns try to detect a1a1a1 style passwords. By making the regex a > > bit > > more flexible we can just use one. Also now catches mMmMmM fwiw. > > it will also catches any

make build as root fails when SUDO=doas

2018-12-10 Thread Solene Rapenne
hi I have SUDO=doas in /etc/mk.conf for ports, this is preventing a `make build` in /usr/src as root if /etc/doas.conf doesn't have a line "permit nopass root as root". This fails when using "doas" in regress/usr/bin/ssh/ doas: Operation not permitted *** Error 1 in regress/usr.bin/ssh

Re: nsd 4.1.26

2018-12-10 Thread Stuart Henderson
On 2018/12/06 11:02, Florian Obser wrote: > tests, OKs? OK. Very little change apart from the dnstap interface that we can't use.

Re: pwd_check tweak

2018-12-10 Thread Theo de Raadt
This seems to substantially reduce the search space, so who is it actually helping? > These patterns try to detect a1a1a1 style passwords. By making the regex a bit > more flexible we can just use one. Also now catches mMmMmM fwiw. > > > Index: pwd_check.c >

Re: request for testing: patch for boot loader out of mem

2018-12-10 Thread Otto Moerbeek
On Mon, Dec 10, 2018 at 08:30:10AM +0100, Otto Moerbeek wrote: > Hi, > > the bootloader uses a very simple allocator for dynamic memory. It > maintains a list of free allocations. If it needs a block, it searches > the freelist and returns the smallest allocation that fits. > > Allocation

ospfd: fib-priority

2018-12-10 Thread Remi Locherer
Hi, below patch adds "fib-priority" to ospfd.conf which allows to set a custom priority to routes. 32 is still the default if not set. Changing the priority with a reload is also supported. A discussion about the feature can be found here: https://marc.info/?l=openbsd-tech=138360663119816=2 My

Re: sys/net/pf*.[ch]: remove useless macros

2018-12-10 Thread Alexandr Nedvedicky
Hello, On Sat, Dec 08, 2018 at 09:25:04AM +0100, Klemens Nanni wrote: > All they do is case conversion^Wconfusion, so remove them. > > Relevant pfvar.h diff at the top, all other hunks were done with sed(1). > > Feedback? Objections? OK? your patch seems to be a follow up to mcbride's

Re: nsd 4.1.26

2018-12-10 Thread Florian Obser
*prod* On Thu, Dec 06, 2018 at 11:02:01AM +0100, Florian Obser wrote: > tests, OKs? > > diff --git Makefile.in Makefile.in > index 16d193f766d..fbfc44be33b 100644 > --- Makefile.in > +++ Makefile.in > @@ -29,6 +29,8 @@ nsdconfigfile = @nsd_conf_file@ > zonesdir = @zonesdir@ > chrootdir=

Re: carp though bridge with vmd

2018-12-10 Thread Reyk Floeter
Hi, as a general note for virtual switches and clouds that don’t support CARP due to restrictions on multicast and/or additional MACs: I use carppeer and lladdr of the parent interface in such cases. That doesn’t mean that you should need it with vmd and bridge and we have to look into this.

Re: carp though bridge with vmd

2018-12-10 Thread Mischa Peters
Hi David, Yes there is. Currently the machine are directly connected to each other on em0, the VMs are able to reach each other. VM1 -> bridge1 -> em0 — em0 <- bridge1 <- VM2 Mischa -- > On 10 Dec 2018, at 03:00, David Gwynne wrote: > > Is there a shared ethernet network between the

Re: malloc: simplify "not my pool" lock dance

2018-12-10 Thread Otto Moerbeek
On Thu, Dec 06, 2018 at 11:30:03AM +0100, Otto Moerbeek wrote: > Hi, > > This simpifies the lock dance when a free is done for a pointer not in > "my pool". Should reduce lock contention. > > Please review & test, especially with multithread heavy apps. This is now committed. Thanks to all the