Re: Joining bridge(4) changes broadcast?

2016-06-06 Thread Masao Uebayashi
On Mon, Jun 06, 2016 at 12:50:04PM +0200, Martin Pieuchot wrote:
> On 06/06/16(Mon) 16:23, Masao Uebayashi wrote:
> > On Mon, Jun 06, 2016 at 08:50:49AM +0200, Martin Pieuchot wrote:
> > > On 06/06/16(Mon) 13:04, Masao Uebayashi wrote:
> > > > Broadcast frame, coming into a bridge'ed interface, passes if_input() 3 
> > > > times,
> > > > and actually input (ether_input()) twice.
> > > > 
> > > > - A frame enters an interface (e.g. pair(4)), the interface calls 
> > > > if_input()
> > > >   on it.  The frame is queued in if_input_queue.
> > > > 
> > > > - A task running if_input_process() is triggered.  It takes the frame 
> > > > and
> > > >   calls bridge_input().  Frame is queued in bridgeintrq.
> > > > 
> > > > - bridge_process() dispatches frame as multicast/broadcast (if
> > > >   (ETHER_IS_MULTICAST())) and calls bridge_ifinput() on it, then passes 
> > > > the
> > > >   frame to bridgeintr_frame().
> > > > 
> > > > - bridgeintr_frame() calls bridge_broadcast() on it.
> > > > 
> > > > - bridge_broadcast() calls bridge_localbroadcast(), which again calls
> > > >   bridge_ifinput().
> > > > 
> > > > bridge_ifinput() is called twice for each broadcast frames.  
> > > > bridge_ifinput()
> > > > calls if_input().  Thus 3 if_input() for each.
> > > > 
> > > > These duplicate frames confuse pppoe(4), that's why it stops working.
> > > 
> > > What do you mean by "confuse pppoe(4)"?  I still don't understand what's
> > > the link between pppoe(4) and bpf(4) in this case and why BPF matters
> > > for a kernel driver.
> > 
> > - PPPoE client (pppoe(4)) sends a PPPoE Discovery "initiation" frame, which 
> > is
> >   broadcast.
> > 
> > - PPPoE server (npppd(8)) receives 3 copies of it via bpf(4), then returns
> >   3 PPPoE Discovery "offer" frames.
> > 
> > - pppoe(4) receives 3 "offer" frames and gets confused ... somehow.
> > 
> > I don't know the internal of pppoe(4) yet.  pppoe(4) might have a bug, it
> > might be able to work even if it receives 3 replies at once, I don't know.
> > 
> > I don't think that npppd(8) receiving 3 copies of broadcast frames (via
> > bpf(4)) is an intentional design anyway.
> 
> I agree.  Diff below should reduce the number of copies to 2.

Diff works as expected for me, and reads me good.  OK uebayasi@.

> In order
> to remove the last copy somebody has to turn bridge_process() MP-safe
> and merge it with bridge_input().  
> 
> Once this is done, bridge_input() can return "0" for multicast packets
> and ether_input() will be call directly without the need for requeueing
> the packet.

I admit I don't fully understand the intention of if_ih_* handler.  Can
you safely assume that there is always ether_input() hook just after
bridge_input()?

> Index: net/if_bridge.c
> ===
> RCS file: /cvs/src/sys/net/if_bridge.c,v
> retrieving revision 1.279
> diff -u -p -r1.279 if_bridge.c
> --- net/if_bridge.c   30 May 2016 12:56:16 -  1.279
> +++ net/if_bridge.c   6 Jun 2016 10:46:01 -
> @@ -1129,7 +1129,7 @@ bridge_process(struct ifnet *ifp, struct
>   } else
>  #endif /* NGIF */
>   bridge_ifinput(ifp, mc);
> - 
> +
>   bridgeintr_frame(sc, ifp, m);
>   return;
>   }
> @@ -1225,14 +1225,15 @@ bridge_broadcast(struct bridge_softc *sc
>   if (bridge_filterrule(>bif_brlout, eh, m) == 
> BRL_ACTION_BLOCK)
>   continue;
>  
> - bridge_localbroadcast(sc, dst_if, eh, m);
> -
>   /*
>* Don't retransmit out of the same interface where
>* the packet was received from.
>*/
>   if (dst_if->if_index == ifp->if_index)
>   continue;
> +
> + bridge_localbroadcast(sc, dst_if, eh, m);
> +
>  #if NMPW > 0
>   /*
>* Split horizon: avoid broadcasting messages from wire to



Re: openbsd book references

2016-06-06 Thread francois miville-deschenes
On Mon, 6 Jun 2016 16:16:48 +0100
Dennis Dryden  wrote:

> On Monday, 6 June 2016, francois miville-deschenes
>  wrote:
> 
> > hello,
> >
> > i am looking for a good reference book for an IT beginner that
> > wants to learn the basics of openbsd, and has little experience
> > with unix. (ideally with examples of commands, such as in the
> > freebsd handbook).
> >
> > any suggestions ?
> >
> > thank you,
> >
> > francois  
> 
> 
> Check out:
> http://www.openbsd.org/books.html
> 
> "Absolute OpenBSD" might be what your after. The man pages are really
> good though.
> 
> Hope that helps,
> Dennis
> 

seems like absolute openbsd is an unanimous choice.

thank you for the reference.

i am also glad i found stephane huc's site.

best regards to all,

francois



Re: FOSS tools for flashing motherboard BIOS?

2016-06-06 Thread Alan Corey
The hard drive I stick in when I want some operating systems on one
has XP Pro and OpenBSD 5.2.  OpenBSD 5.2 doesn't have libpci even in
ports so that rules out flashrom unless I want to try to build libpci
from sources (or a distfile).

I tried in XP safe mode running HP's sp40750.exe (which is a SoftPaq
like Compaq uses) and got:
  Can not open driver Flash1.sys.
  The driver is not existed or the OS is not in administrator privilege.

Flash1.sys is contained in sp40750.exe so it must be safe mode that's
killing me.

This is a Phoenix BIOS, not Award, hence the winphlash.  I think I'm
going to try the Vista drivers on HP's page, they might work with XP
and let me boot not into Safe Mode.

On 6/6/16, li...@wrant.com  wrote:
> Mon, 6 Jun 2016 23:36:46 +0300 li...@wrant.com
>> Mon, 6 Jun 2016 16:09:46 -0400 Alan Corey 
>> > > Upgrading sqlports-compact keeps your pkg_mgr aware of current ports.
>> > >
>> > >> So, I guess I should look at BiosDisk too.
>> > >
>> > > If one utility warns you could potentially have unpredictable
>> > > flashing
>> > > results, how is the other utility that does not warn you so
>> > > different?
>> > >
>> > > Tech support may not be engineering support, which you could then
>> > > need.
>> > > Simply just use the manufacturer tools and not blame third party
>> > > tools.
>> >
>> > Because of the dozens of different machines on which this runs I'm not
>> > sure that mine is one that has the problem.  I'd like to actually see
>> > the warning before I decide not to use it.  Biosdisk is about 6 years
>> > old so I decided to not go that route.  Of course the machine is about
>> > 10 years old and so is the BIOS image.
>> >
>> > The manufacturer tools rely on Windows Vista which I don't have or
>> > want.  If they had a more typical floppy image file I'd use it.  I
>> > suspect it might run  under XP but I don't have a way to put XP on the
>> > machine, since it's booting from CD/DVD I'm trying to fix.  Although I
>> > do have a hard drive with XP on it from another machine which blue
>> > screens on this one, maybe I can bring it up in safe mode or
>> > something.  Especially if it doesn't need GUI.
>>
>> I think you're quite competent to continue but have in mind the gotchas.
>> From past experience I recall the command prompt stopped being truly DOS
>> compatible around win98, yet XP could be used to create a DOS compatible
>> boot disk, that would also be able to run award flashing tools.  The HP
>> proprietary stuff however may be another very different piece of... you
>> know what, so the risks that flashboot warns about may actually be Real.
>
> I meant flashrom, not flashboot (different topic).  Back in the days there
> were also uniflash (abandoned) and some other (universal) flash utilities.
>
> From quick searches online HP seem to have some support resources, which is
> your best bet, including the live (preboot environment) for WinXP
> (offlist).
>
>


-- 
Credit is the root of all evil.  - AB1JX



Re: hardware recommendation for openbsd-based thin client?

2016-06-06 Thread Predrag Punosevac
Stuart Henderson wrote:

> On 2016-05-26, Predrag Punosevac  wrote:
> > Right now at Carnegie Mellon University I use Intel NUC NUC5CPYH
> ..
> > I have tested OpenBSD on it but without X.
>
> On some NUC models everything works very well. On others there are some
> problems like X not working. Video is the usual problem, try to identify
> what it has in as much detail as possible and try and find someone who
> used the same video device.
>
Sorry for the very slow replay to this message. Please see the dmesg for
the NUC. X works perfectly all 2560x1440 of it using HDMI cable. I
didn't connect the machine to the Internet so you will see that firmware
for WiFi on the bottom of dmesg is missing.

Enjoy,
Predrag



OpenBSD 6.0-beta (RAMDISK_CD) #1954: Thu Jun  2 08:43:13 MDT 2016
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/RAMDISK_CD
real mem = 8489787392 (8096MB)
avail mem = 8230637568 (7849MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xedcb0 (49 entries)
bios0: vendor Intel Corp. version "PYBSWCEL.86A.0047.2015.1123.0950" date
11/23/2015
bios0: Intel Corporation NUC5CPYB
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP APIC FPDT FIDT MCFG SSDT SSDT SSDT UEFI LPIT CSRT
SSDT
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Celeron(R) CPU N3050 @ 1.60GHz, 1600.33 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX
,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND,
NXE,LONG,LAHF,3DNOWP,PERF,ITSC,SMEP,ERMS,SENSOR,ARAT
cpu0: 1MB 64b/line 16-way L2 cache
cpu0: apic clock running at 79MHz
cpu0: mwait min=64, max=64, C-substates=0.2.0.0.0.0.3.3, IBE
cpu at mainbus0: not configured
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 115 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (RP01)
acpiprt2 at acpi0: bus 2 (RP02)
acpiprt3 at acpi0: bus 3 (RP03)
acpiprt4 at acpi0: bus -1 (RP04)
acpiec0 at acpi0: not present
acpicpu at acpi0 not configured
acpipwrres at acpi0 not configured
acpipwrres at acpi0 not configured
acpipwrres at acpi0 not configured
acpipwrres at acpi0 not configured
acpipwrres at acpi0 not configured
acpipwrres at acpi0 not configured
acpitz at acpi0 not configured
"ITE8713" at acpi0 not configured
"INT33FF" at acpi0 not configured
"BCM43241" at acpi0 not configured
"ADMA22A8" at acpi0 not configured
"PNP0C0D" at acpi0 not configured
"PNP0C0E" at acpi0 not configured
"INT33FF" at acpi0 not configured
"INT33FF" at acpi0 not configured
"INT33FF" at acpi0 not configured
"INT3398" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Braswell Host" rev 0x21
vga1 at pci0 dev 2 function 0 "Intel HD Graphics" rev 0x21
vga1: aperture needed
wsdisplay1 at vga1 mux 1: console (80x25, vt100 emulation)
sdhc0 at pci0 dev 18 function 0 vendor "Intel", unknown product 0x2296 rev
0x21: apic 1 int 18
sdhc0: SDHC 3.0, 200 MHz base clock
sdmmc0 at sdhc0: 4-bit, sd high-speed, mmc high-speed, dma
ahci0 at pci0 dev 19 function 0 "Intel Braswell AHCI" rev 0x21: msi, AHCI
1.3.1
ahci0: port 0: 6.0Gb/s
ahci0: PHY offline on port 1
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0:  SCSI3 0/direct
fixed naa.55cd2e414c9899c7
sd0: 114473MB, 512 bytes/sector, 234441648 sectors, thin
xhci0 at pci0 dev 20 function 0 "Intel Braswell xHCI" rev 0x21: msi
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 "Intel xHCI root hub" rev 3.00/1.00 addr 1
"Intel Braswell SIO DMA" rev 0x21 at pci0 dev 24 function 0 not configured
"Intel Braswell SIO I2C" rev 0x21 at pci0 dev 24 function 6 not configured
"Intel Braswell SIO I2C" rev 0x21 at pci0 dev 24 function 7 not configured
"Intel Braswell TXE" rev 0x21 at pci0 dev 26 function 0 not configured
"Intel Braswell HD Audio" rev 0x21 at pci0 dev 27 function 0 not configured
ppb0 at pci0 dev 28 function 0 "Intel Braswell PCIE" rev 0x21: msi
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 1 "Intel Braswell PCIE" rev 0x21: msi
pci2 at ppb1 bus 2
iwm0 at pci2 dev 0 function 0 "Intel Dual Band Wireless AC 3165" rev 0x81,
msi
ppb2 at pci0 dev 28 function 2 "Intel Braswell PCIE" rev 0x21: msi
pci3 at ppb2 bus 3
re0 at pci3 dev 0 function 0 "Realtek 8168" rev 0x15: RTL8168H/8111H (0x5400),
msi, address b8:ae:ed:7f:a8:d3
rgephy0 at re0 phy 7: RTL8251 PHY, rev. 0
"Intel Braswell PCU LPC" rev 0x21 at pci0 dev 31 function 0 not configured
"Intel Braswell SMBus" rev 0x21 at pci0 dev 31 function 3 not configured
isa0 at mainbus0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay1
sdmmc0: can't enable card
umass0 at uhub0 port 1 configuration 1 interface 0 "SanDisk Cruzer Fit" rev
2.10/1.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
sd1 at 

Re: FOSS tools for flashing motherboard BIOS?

2016-06-06 Thread lists
Mon, 6 Jun 2016 23:36:46 +0300 li...@wrant.com
> Mon, 6 Jun 2016 16:09:46 -0400 Alan Corey 
> > > Upgrading sqlports-compact keeps your pkg_mgr aware of current ports.
> > >
> > >> So, I guess I should look at BiosDisk too.
> > >
> > > If one utility warns you could potentially have unpredictable flashing
> > > results, how is the other utility that does not warn you so different?
> > >
> > > Tech support may not be engineering support, which you could then need.
> > > Simply just use the manufacturer tools and not blame third party tools.
> >
> > Because of the dozens of different machines on which this runs I'm not
> > sure that mine is one that has the problem.  I'd like to actually see
> > the warning before I decide not to use it.  Biosdisk is about 6 years
> > old so I decided to not go that route.  Of course the machine is about
> > 10 years old and so is the BIOS image.
> >
> > The manufacturer tools rely on Windows Vista which I don't have or
> > want.  If they had a more typical floppy image file I'd use it.  I
> > suspect it might run  under XP but I don't have a way to put XP on the
> > machine, since it's booting from CD/DVD I'm trying to fix.  Although I
> > do have a hard drive with XP on it from another machine which blue
> > screens on this one, maybe I can bring it up in safe mode or
> > something.  Especially if it doesn't need GUI.
>
> I think you're quite competent to continue but have in mind the gotchas.
> From past experience I recall the command prompt stopped being truly DOS
> compatible around win98, yet XP could be used to create a DOS compatible
> boot disk, that would also be able to run award flashing tools.  The HP
> proprietary stuff however may be another very different piece of... you
> know what, so the risks that flashboot warns about may actually be Real.

I meant flashrom, not flashboot (different topic).  Back in the days there
were also uniflash (abandoned) and some other (universal) flash utilities.

>From quick searches online HP seem to have some support resources, which is
your best bet, including the live (preboot environment) for WinXP (offlist).



Re: Xeon-D 10GE nics

2016-06-06 Thread Hrvoje Popovski
On 14.4.2016. 9:29, Jonathan Gray wrote:
> On Tue, Apr 12, 2016 at 01:15:49PM +, Stuart Henderson wrote:
>> Does anyone know if the 10GE NICs on Xeon-D SoCs work on OpenBSD yet?
>> e.g. "Dual 10G SFP+ from D-1500 SoC" on Supermicro SYS-5018D-FN8T.
>>
> 
> The windows driver has:
> 
> 0x10a6 "Intel(R) X552 Multi-Function Network Device"
> 0x15ad "Intel(R) Ethernet Connection X552/X557-AT 10GBASE-T"
> 
> 0x15ad is IXGBE_DEV_ID_X550EM_X_10G_T in FreeBSD.
> 
> So someone needs to do another merge of the Intel code in FreeBSD for it
> to work with ix(4).
> 

If anyone is willing to port this 10GbE adapters to openbsd i am willing
to give full access to Supermicro SYS-5018D-FN8T box.



Re: FOSS tools for flashing motherboard BIOS?

2016-06-06 Thread lists
Mon, 6 Jun 2016 16:09:46 -0400 Alan Corey 
> > Upgrading sqlports-compact keeps your pkg_mgr aware of current ports.
> >
> >> So, I guess I should look at BiosDisk too.
> >
> > If one utility warns you could potentially have unpredictable flashing
> > results, how is the other utility that does not warn you so different?
> >
> > Tech support may not be engineering support, which you could then need.
> > Simply just use the manufacturer tools and not blame third party tools.
>
> Because of the dozens of different machines on which this runs I'm not
> sure that mine is one that has the problem.  I'd like to actually see
> the warning before I decide not to use it.  Biosdisk is about 6 years
> old so I decided to not go that route.  Of course the machine is about
> 10 years old and so is the BIOS image.
>
> The manufacturer tools rely on Windows Vista which I don't have or
> want.  If they had a more typical floppy image file I'd use it.  I
> suspect it might run  under XP but I don't have a way to put XP on the
> machine, since it's booting from CD/DVD I'm trying to fix.  Although I
> do have a hard drive with XP on it from another machine which blue
> screens on this one, maybe I can bring it up in safe mode or
> something.  Especially if it doesn't need GUI.

I think you're quite competent to continue but have in mind the gotchas.
>From past experience I recall the command prompt stopped being truly DOS
compatible around win98, yet XP could be used to create a DOS compatible
boot disk, that would also be able to run award flashing tools.  The HP
proprietary stuff however may be another very different piece of... you
know what, so the risks that flashboot warns about may actually be Real.



Re: FOSS tools for flashing motherboard BIOS?

2016-06-06 Thread Alan Corey
> Upgrading sqlports-compact keeps your pkg_mgr aware of current ports.
>
>> So, I guess I should look at BiosDisk too.
>
> If one utility warns you could potentially have unpredictable flashing
> results, how is the other utility that does not warn you so different?
>
> Tech support may not be engineering support, which you could then need.
> Simply just use the manufacturer tools and not blame third party tools.
>

Because of the dozens of different machines on which this runs I'm not
sure that mine is one that has the problem.  I'd like to actually see
the warning before I decide not to use it.  Biosdisk is about 6 years
old so I decided to not go that route.  Of course the machine is about
10 years old and so is the BIOS image.

The manufacturer tools rely on Windows Vista which I don't have or
want.  If they had a more typical floppy image file I'd use it.  I
suspect it might run  under XP but I don't have a way to put XP on the
machine, since it's booting from CD/DVD I'm trying to fix.  Although I
do have a hard drive with XP on it from another machine which blue
screens on this one, maybe I can bring it up in safe mode or
something.  Especially if it doesn't need GUI.

Inside HP's upgrade file is:

total 7600
drwxr-xr-x  1 root  wheel16384 Jun  5 15:14 INSIDE

total 96
-rwxr-xr-x  1 root  wheel  36864 Mar 15  2007 FLASHER.EXE
-rwxr-xr-x  1 root  wheel175 Sep 12  2006 FLASHER.INI
drwxr-xr-x  1 root  wheel  16384 Jun  5 15:14 winphlash
drwxr-xr-x  1 root  wheel  16384 Jun  5 15:14 winphlash64

./INSIDE/winphlash:
total 4096
-rwxr-xr-x  1 root  wheel  1083214 Aug 26  2008 30CDF2D.WPH
-rwxr-xr-x  1 root  wheel32768 Aug 14  2007 FLASH.DLL
-rwxr-xr-x  1 root  wheel  567 Aug 26  2008 FLASH1.INI
-rwxr-xr-x  1 root  wheel 2816 Jun 20  2007 FLASH1.SYS
-r-xr-xr-x  1 root  wheel   995383 Jun  6  2002 MFC42.DLL
-r-xr-xr-x  1 root  wheel   401462 Jun  6  2002 MSVCP60.DLL
-r-xr-xr-x  1 root  wheel   266293 Jun  6  2002 MSVCRT.DLL
-rwxr-xr-x  1 root  wheel  298 Oct  5  2007 PHLASH.INI
-rwxr-xr-x  1 root  wheel26883 Mar  3  2006 Phlash9X.vxd
-rwxr-xr-x  1 root  wheel   200704 Mar  1  2006 PhlashLc.dll
-rwxr-xr-x  1 root  wheel38592 Oct 19  2006 PhlashNT.sys
-rwxr-xr-x  1 root  wheel45056 Aug 14  2007 WFLASH.EXE
-rwxr-xr-x  1 root  wheel   283648 Aug  3  2004 WINHLP32.EXE
-rwxr-xr-x  1 root  wheel   380454 Jan  8  2003 WINPHLASH.HLP
-rwxr-xr-x  1 root  wheel   290816 Oct 19  2006 WinPhlash.exe

./INSIDE/winphlash64:
total 5824
-rwxr-xr-x  1 root  wheel  1083214 Aug 26  2008 30CDF2D.WPH
-rwxr-xr-x  1 root  wheel32768 May 11  2007 FLASH.DLL
-rwxr-xr-x  1 root  wheel  562 Aug 26  2008 FLASH2.INI
-rwxr-xr-x  1 root  wheel36864 May 11  2007 FLASH64.EXE
-rwxr-xr-x  1 root  wheel   635392 Mar 15  2007 FLASH64H.EXE
-r-xr-xr-x  1 root  wheel   995383 Jun  6  2002 MFC42.DLL
-r-xr-xr-x  1 root  wheel   401462 Jun  6  2002 MSVCP60.DLL
-r-xr-xr-x  1 root  wheel   266293 Jun  6  2002 MSVCRT.DLL
-rwxr-xr-x  1 root  wheel  298 Oct  5  2007 PHLASH.INI
-rwxr-xr-x  1 root  wheel   200704 Sep 28  2005 PhlashLc.dll
-rwxr-xr-x  1 root  wheel44400 Mar 28  2007 PhlashNT.sys
-rwxr-xr-x  1 root  wheel   283648 Aug  3  2004 WINHLP32.EXE
-rwxr-xr-x  1 root  wheel   356352 Apr 10  2007 WinPhlash64.exe
-rwxr-xr-x  1 root  wheel  1498301 Dec 22  2006 Winphlash.HLP


-- 
Credit is the root of all evil.  - AB1JX



Re: Win7 multiboot section in FAQ works fine for win 10 (bcdedit)

2016-06-06 Thread Theo Buehler
On Thu, Jun 02, 2016 at 03:20:45PM +0200, Theo Buehler wrote:
> On Thu, Jun 02, 2016 at 03:11:28PM +0100, Kevin Chadwick wrote:
> > Hardly matters much but just an FYI to say that I have just confirmed
> > the bcdedit multibooting VISTA/WIn7 section of the faq works perfectly
> > well on Windows 10 too so Win 10 could be added to the heading without
> > any other changes. :)
> 
> Thanks. There's a few extra steps that are apparently needed for
> Windows 7. "For Windows 7, finish up with..." I suspect that this would
> have to be changed as well, right?

Can someone please confirm this?

> Index: faq4.html
> ===
> RCS file: /var/cvs/www/faq/faq4.html,v
> retrieving revision 1.461
> diff -u -p -r1.461 faq4.html
> --- faq4.html 1 Jun 2016 10:27:07 -   1.461
> +++ faq4.html 2 Jun 2016 13:18:33 -
> @@ -739,7 +739,7 @@ kernel file /bsd.
>  Configure your system to boot from the other OS by default.
>  Booting from the flash drive will load OpenBSD.
>  
> -Windows Vista and Windows 7
> +Windows Vista, Windows 7 and 10
>  
>  With Vista, Microsoft dropped NTLDR support in favor of their newer Boot
>  Configuration Data (BCD) store used for controlling the boot
> @@ -774,7 +774,7 @@ The operation completed successfully.
>  
>  
>  Windows Vista users are done at this point.
> -For Windows 7, finish up with:
> +For Windows 7 and 10, finish up with:
>  
>  
>  C:\Windows\system32> bcdedit /set {0154a872-3d41-11de-bd67-a7060316bbb1} 
> device partition=c:



Re: SYN_RCVD

2016-06-06 Thread Claudio Jeker
On Sat, Jun 04, 2016 at 12:35:58AM +0200, Peter J. Philipp wrote:
> Hi,
> 
> In Mac OS X when I spoof a packet to it it prints somethign like this in
> the netstat -na:
> 
> -
> Active Internet connections (including servers)
> Proto Recv-Q Send-Q  Local Address  Foreign Address   
> (state)   
> tcp4   0  0  192.168.180.64.22  20.20.20.20.29991 
> SYN_RCVD  
> tcp4   0  0  192.168.180.64.22  20.20.20.20.2 
> SYN_RCVD  
> -
> 
> When I do the same to an OpenBSD host between 5.5 and 6.0 (I couldn't
> look further back due to newish hardware sorry), I noticed that no such
> state is written.
> 
> However pfctl -ss picks it up but netstat is silent.  Let me give you an
> example:
> 
> 
> # pfctl -ss | grep 20.20.20 && netstat -na|grep 20.20.20
> all tcp 192.168.34.4:22 <- 20.20.20.20:1   SYN_SENT:ESTABLISHED
> 
> 
> I'm unaware of this ever working on OpenBSD but it could be that it once
> did.  Absolute OpenBSD by Michael W. Lucas (second edition) on page 201
> mentions the SYN_RCVD state, so he must have seen it at one point.
> 
> Also the state diagram of RFC 793 page 23, shows more on this matter. 
> 
> So my question really is:  Why was this functionality removed from
> OpenBSD at some point?  When did that happen?  And why did it happen?  I
> saw mention of SYN_RCVD in 1 comment of the netinet/tcp_input.c file,
> but that was a long time ago and dealt with IPv6.
> 

OpenBSD uses the syncache for TCP sockets in the 3 way handshake to save a
lot of work to create a full socket in case of synfloods, etc.
These unhatched sockets do not show up in the netstat output. Maybe they
should be added but this is the first request that asks for them in the
10+ years we use the syncache.

-- 
:wq Claudio



Re: FOSS tools for flashing motherboard BIOS?

2016-06-06 Thread lists
Mon, 6 Jun 2016 09:52:49 -0400 Alan Corey 
> I don't see anything in there for flashing, just looking in pbrowser.

That pbrowser is not available as a package (~7 months), its Makefile
is in the attic.  You could try sysutils/pkg_mgr as a port (package).

CVS log for ports/x11/pbrowser
[http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/x11/pbrowser/]

FILE REMOVED 

> move pbrowser to the attic, last real update was in 2005, it's not LP64
> safe (segfaults at startup) which nobody has reported, so seems unlikely
> that it's getting much use, unknown whether it still works with a current
> ports tree which has moved on quite a lot in that time.  ok jca@ zhuk@

CVS log for ports/sysutils/pkg_mgr
[http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/sysutils/pkg_mgr/]

> pkg_mgr is a high-level, user-friendly package browser for OpenBSD. It
> allows the user to install, uninstall, search and browse available
> packages, using a simple curses interface. It relies on sqlports for
> its internal database, and pkg_add/pkg_info/pkg_delete for package
> operations.

Upgrading sqlports-compact keeps your pkg_mgr aware of current ports.

> So, I guess I should look at BiosDisk too.

If one utility warns you could potentially have unpredictable flashing
results, how is the other utility that does not warn you so different?

Tech support may not be engineering support, which you could then need.
Simply just use the manufacturer tools and not blame third party tools.



Re: Low brightness in text console

2016-06-06 Thread Walter Alejandro Iglesias
Another option (using current):

Section "Module"
Load"dri2"
Load"glamoregl"
EndSection

Section "Device"
Identifier  "Card0"
Driver  "intel"
BusID   "PCI:0:2:0"
Option  "AccelMethod"   "glamor"
EndSection

There are some Linux forums where people complain about experiencing
screen brightness issues using intel SNA acceleration.  Some of them got
them fixed by setting the "Backlight" option to the correct value as
explained in the intel(4) man page:

Option "Backlight" "string"
Override the probed backlight control interface. Sometimes the
automatically selected backlight interface may not correspond to
the correct, or simply most useful, interface available on the
system. This allows you to override that choice by specifying
the entry under /sys/class/backlight to use.

You won't find /sys/class/backlight in OpenBSD.  And setting the value
to "intel_backlight" as explained in some Linux wikis won't work since
in openbsd the interface seems to be wscons:

$ grep backlight /var/log/Xorg.0.log
[ 34783.393] (--) intel(0): found backlight control interface wscons

If after exiting X you run:

$ wsconsctl display.brightness

It'll return a value that doesn't correspond with the actual (very low)
brightness.  The wscons stored brightness value isn't reset but right
after you press the Fn+brightness keys.  I deduce SNA driver doesn't
pass wscons the brightness control properly.  Let's hope some expert
here tell us why. :-)


Walter



Re: FOSS tools for flashing motherboard BIOS?

2016-06-06 Thread Alan Corey
OK, so that's why it wasn't in pbrowser yet.  Running in single user
mode sounds like a pain.  Also the install puts the man page in
/usr/local/share/man/man8 .  And I haven't gotten to why it says not
to run on laptops yet.

On 6/6/16, Daniel Bolgheroni  wrote:

> See this:
>
> http://marc.info/?l=openbsd-ports=146464871825362=2
>
> --
> db
>


-- 
Credit is the root of all evil.  - AB1JX



Re: FOSS tools for flashing motherboard BIOS?

2016-06-06 Thread Alan Corey
>From flashrom's man page:

   Laptops

  Using flashrom on laptops is dangerous and may easily make your
  hardware unusable (see also the BUGS section). The embedded
  controller (EC) in these machines often interacts badly with
  flashing.  More information is in the wiki
  .  For example the EC firmware
  sometimes resides on the same flash chip as the host firmware.
  While flashrom tries to change the contents of that memory the
  EC might need to fetch new instructions or data from it and
  could stop working correctly. Probing for and reading from the
  chip may also irritate your EC and cause fan failure, backlight
  failure, sudden poweroff, and other nasty effects. flashrom will
  attempt to detect if it is running on a laptop and abort
  immediately for safety reasons if it clearly identifies the host
  computer as one. If you want to proceed anyway at your own risk,
  use

flashrom -p internal:laptop=force_I_want_a_brick

  We will not help you if you force flashing on a laptop because
  this is a really dumb idea.

So, I guess I should look at BiosDisk too.


On 6/6/16, Alan Corey  wrote:
> OK, so that's why it wasn't in pbrowser yet.  Running in single user
> mode sounds like a pain.  Also the install puts the man page in
> /usr/local/share/man/man8 .  And I haven't gotten to why it says not
> to run on laptops yet.
>
> On 6/6/16, Daniel Bolgheroni  wrote:
>
>> See this:
>>
>> http://marc.info/?l=openbsd-ports=146464871825362=2
>>
>> --
>> db
>>
>
>
> --
> Credit is the root of all evil.  - AB1JX
>


-- 
Credit is the root of all evil.  - AB1JX



Re: META: Does this list have no moderators?

2016-06-06 Thread Артур Истомин
On Sun, Jun 05, 2016 at 12:04:47PM -0400, Steve Litt wrote:
> On Sat, 4 Jun 2016 22:26:45 +0100
> Gareth Nelson  wrote:
> 
> > I'm sure we're all aware of the individual i'm thinking of when I say
> > their posts are both inappropriate and annoying.
> > 
> > The individual in question should be referred privately to mental
> > health services, but they should also be prohibited from posting
> > further to this list.
> > 
> > Thoughts?
> 
> I personally believe that people who post that way shouldn't be allowed
> on the list, but whether he's banned or not isn't important. Here's your
> solution:
> 
> :0:
> * ^From.*obnoxious_...@whatever.com
> * ^(To|Cc).*misc@openbsd.org
> /dev/null
> 
> He'll never be able to annoy you again, except in quoted text from
> those who choose to respond to him. If they're responding in anger,
> they should also employ the solution I recommended. Pretty soon
> obnoxious_boy isn't a problem to anyone, because nobody's listening.
> And then, likely as not, he'll take his obnoxo-talk to a different list.

Or rejoining with new email/nickname )

I never realy understood problems with trolls or annoying people. They're
amusing sometimes. When not - you can simply not read. It is very simple
rule and it work even for me - very irritable and short-tempered person.

> 
> I wrote about this subject at
> http://www.troubleshooters.com/linux/init/killfile.htm
> 
> SteveT
> 
> Steve Litt
> June 2016 featured book: Troubleshooting: Why Bother?
> http://www.troubleshooters.com/twb



heads up about doas.conf change

2016-06-06 Thread Ted Unangst
A recent change to doas allowed using SETENV blocks in the config file. This
had a side effect of making = a special character. If your doas.conf file
contains = characters (such as for command args) they'll need to be quoted.



openssl in 5.9-stable

2016-06-06 Thread 3ydft0+8enuoywmx5ae4
Hello,

I am tracking 5.9-stable with cvs. Everything is fine.

The only
problem I see is that "openssl version" prints LibreSSL 2.3.4 instead of
2.3.6.
I rebuilt libcrypto, libssl and even openssl with no change.

According
to this file 
/usr/src/lib/libssl/src/crypto/opensslv.h
it should print 2.3.6
right ?






Sent using GuerrillaMail.com
Block or report abuse:
https://www.guerrillamail.com/abuse/?a=TEhnBi0PU7Ebih2wvnENdQ%3D%3D



Re: FOSS tools for flashing motherboard BIOS?

2016-06-06 Thread Daniel Bolgheroni
On Mon, Jun 06, 2016 at 09:52:49AM -0400, Alan Corey wrote:
> 
> On the Arch Linux page at
> https://wiki.archlinux.org/index.php/Flashing_BIOS_from_Linux there's
> mention of a couple programs that might work: BiosDisk and Flashrom.
> Anybody use either of those under OpenBSD?  I haven't tried chasing
> down the source and trying to build them, I was a little surprised
> they aren't in sysutils.  I don't see anything in there for flashing,
> just looking in pbrowser.

See this:

http://marc.info/?l=openbsd-ports=146464871825362=2

-- 
db



Re: openbsd book references

2016-06-06 Thread Dennis Dryden
On Monday, 6 June 2016, francois miville-deschenes 
wrote:

> hello,
>
> i am looking for a good reference book for an IT beginner that wants to
> learn the basics of openbsd, and has little experience with unix.
> (ideally with examples of commands, such as in the freebsd handbook).
>
> any suggestions ?
>
> thank you,
>
> francois


Check out:
http://www.openbsd.org/books.html

"Absolute OpenBSD" might be what your after. The man pages are really good
though.

Hope that helps,
Dennis



Re: openbsd book references

2016-06-06 Thread Jack J. Woehr

Book _Absolute BSD_

francois miville-deschenes wrote:

hello,

i am looking for a good reference book for an IT beginner that wants to
learn the basics of openbsd, and has little experience with unix.
(ideally with examples of commands, such as in the freebsd handbook).

any suggestions ?

thank you,

francois





--
Jack J. Woehr # Science is more than a body of knowledge. It's a way of
www.well.com/~jax # thinking, a way of skeptically interrogating the universe
www.softwoehr.com # with a fine understanding of human fallibility. - Carl Sagan



Re: startx is taking a long time to initiate

2016-06-06 Thread francois miville-deschenes
On Sun, 5 Jun 2016 19:38:46 -0700
Philip Guenther  wrote:

> On Sun, Jun 5, 2016 at 7:12 PM, Chris Bennett
>  wrote:
> > On Sun, Jun 05, 2016 at 06:55:20PM -0700, Philip Guenther wrote:  
> >> I said the problem starts from having an unqualified HOSTNAME...so
> >> you describe everything but that.
> >>
> >>   
> >
> >  > something important.>  
> 
> 
> > So, how do I get a qualified hostname from the three different
> > WiFi's I use here? Make that six random IP's when I put in the
> > other WiFi card.  
> 
> "hostname", by default, means "the name that the system calls itself
> internally, as shown by the hostname(1) or uname(1) commands".  It's
> set at boot from /etc/myname, which is created by the installer.  It
> has nothing to do with the names associated with any IPs that the
> machine has, if any.
> 
> *That* is the name that should be a qualified name with .domain part
> and not just a bare name.  If it isn't, then change /etc/myname and
> matching entry in /etc/hosts, and reboot.
> 
> What domain should you use?  Well, I use ".local", because that was
> squatted by Apple (for the Bonjour protocol) and I have no qualms
> about squatting on their squat
> 
> 
> Philip Guenther
> 

i thought my hostname was set during installation, but seems that it is
not defined properly. i will play with that. i have never bothered
setting it differently in the past, and had no problems. is there
something new with 6.0 that requires to change the default hostname set
during installation ? or is it actually set during install ?



Re: openbsd book references

2016-06-06 Thread kapu
On Mon, Jun 06, 2016 at 10:24:51AM -0400, francois miville-deschenes wrote:
> hello,
> 
> i am looking for a good reference book for an IT beginner that wants to
> learn the basics of openbsd, and has little experience with unix. 
> (ideally with examples of commands, such as in the freebsd handbook).
> 
> any suggestions ?
> 
> thank you,
> 
> francois

http://www.openbsd.org/books.html



Re: Synaptics/Chrome two-finger scrolling behaviour

2016-06-06 Thread Henrik Friedrichsen
On Mon, Jun 06, 2016 at 04:08:32PM +0200, Matej Nanut wrote:
> I noticed the option to navigate by overscrolling was turned on by
> default in version 51. Maybe it has something to do with this? Maybe
> common code changes?
> 
> I disabled it immediately because I find it annoying.
> 
> You can find it at chrome://flags/. The option is named "Overscroll
> history navigation".

Thanks for the hint, that doesn't seem to fix it for me, though :/



Re: openbsd book references

2016-06-06 Thread joekiser
On Mon, Jun 6, 2016, at 09:24, francois miville-deschenes wrote:
> hello,
> 
> i am looking for a good reference book for an IT beginner that wants to
> learn the basics of openbsd, and has little experience with unix. 
> (ideally with examples of commands, such as in the freebsd handbook).
> 
> any suggestions ?
> 
> thank you,
> 
> francois

Michael W. Lucas' Absolute OpenBSD, 2nd Edition.

-joekiser



Re: openbsd book references

2016-06-06 Thread Stephane HUC "PengouinPdt"
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Hi, François.

Are you french?
If yes, you find new french community into : http://obsd4a.net

"Absolute BSD" as suggested by jack or in Fr, "Le Cahier de l'Admin
BSD" a little dated.

bye :D

On 06/06/2016 16:24, francois miville-deschenes wrote:
> hello,
> 
> i am looking for a good reference book for an IT beginner that
> wants to learn the basics of openbsd, and has little experience
> with unix. (ideally with examples of commands, such as in the
> freebsd handbook).
> 
> any suggestions ?
> 
> thank you,
> 
> francois
> 

- -- 
 ~ " Fully Basic System Distinguish Life! " ~ " Libre as a BSD "
+=<<< 
- 
Stephane HUC as PengouinPdt or CIOTBSD
b...@stephane-huc.net
iQIcBAEBCgAGBQJXVZfiAAoJEJUiXy553OsCAmAQAMAyebTslPRHx/WmSpBASXJf
emfEW05RVJPAb7rmoFLwD53EEfp4GqpnDDomIyW91QJQUH4vXkpq7CchCeD2ylNn
KYsSNws8W+MqSlBtbVoLIdfSxf1e9WEmbGXBPzQ9S37ggLncVlVsbTsbcrznYOqw
cL+A34X5F2bK++JVmdIucrgJp4+7URALZQ5F35KT5Q+yJngiBuO0wQh5Wheho9N3
D3xDYJ4FgrBbQocu2DKXaZSKfIkwVk3wDPWDZdhNYugymC/tmC8idtXnXS6+0gdY
EMiD5LJjdiWiDqRpDLIbAHzK9M7Xltc2Q8z/x0YtH+Nla7jB72TWsfbjNufzc25M
MLLvfOmjYLi1/otdtk7zjZo4B1fUcnxyeBP0IlTUZ65bQ0M/wlNERarZ1oleRPvh
UQGxkgTVcrDyDfQwqn8fxK6KDY1jnANcy8IjAk0UDFjbZkAk5UwVbwhNxw409oFT
JpIA8f31A+3eunqRAt/C1AkCcSvm1Wcdlnt5OQUzU/q6bvt72SDwEdkgo3vqnJaF
y0a7Zva0UhLT8hi6mYjlM9aL4WG9KDiTNEi33WyrU1GKCr7y+8CaGckYN7SqsJM+
FVP0am25L0ANvCLb4sKMjPVlAbt/hLRSEWrqniAIOPJzexjgd6dxBMXB27aOgGxm
wdNlq9oC3C13OorveBw+
=7rdB
-END PGP SIGNATURE-



Re: FOSS tools for flashing motherboard BIOS?

2016-06-06 Thread Mihai Popescu
> I have an HP Pavilion DV2700 laptop with an old BIOS version I'd like
> to update.  HP's official solution is to run something under the
> dinosaur Windows Vista, which I was glad to wash my hands of about 7
> years ago.

Are you sure there is no iso image with self boot and update, ready to
be burned on a cdrom? I don't know for sure, but I think last time I
was using that. I don't own HP gear, but IBM/Lenovo has this kind of
iso image and I've used it a lot.



openbsd book references

2016-06-06 Thread francois miville-deschenes
hello,

i am looking for a good reference book for an IT beginner that wants to
learn the basics of openbsd, and has little experience with unix. 
(ideally with examples of commands, such as in the freebsd handbook).

any suggestions ?

thank you,

francois



Re: FOSS tools for flashing motherboard BIOS?

2016-06-06 Thread Kirill Bychkov
On Mon, June 6, 2016 16:52, Alan Corey wrote:
> I have an HP Pavilion DV2700 laptop with an old BIOS version I'd like
> to update.  HP's official solution is to run something under the
> dinosaur Windows Vista, which I was glad to wash my hands of about 7
> years ago.
>
> I opened up HP's exe file (rename to a zip and unzip), inside is a 1
> meg file 30cdf2d.wph which I think is the payload.  It's a Phoenix
> BIOS so it's set up to use Phoenix's WinPhlash utility.  I have no
> operating system at all on the machine at present, it has no floppy
> drive, doesn't boot from the CD/DVD.  I can boot from USB or the hard
> drive only.  I can put in an old hard drive from another laptop and
> boot it into OpenBSD.  Not booting from the CD is what I'm trying to
> fix, a guy at HP support seems to think flashing the BIOS may help.
> It's possible there are remnants of Windows "Secure Boot" around from
> somebody trying to load Windows 7+ although since I can boot from USB
> (a gparted ISO written to an SD card plugged into a USB reader) I
> doubt it.
>
> On the Arch Linux page at
> https://wiki.archlinux.org/index.php/Flashing_BIOS_from_Linux there's
> mention of a couple programs that might work: BiosDisk and Flashrom.
> Anybody use either of those under OpenBSD?  I haven't tried chasing
> down the source and trying to build them, I was a little surprised
> they aren't in sysutils.  I don't see anything in there for flashing,
> just looking in pbrowser.
>
Hi,
flashrom was imported some time ago:
http://marc.info/?l=openbsd-ports-cvs=146479937629535=2



Re: Synaptics/Chrome two-finger scrolling behaviour

2016-06-06 Thread Matej Nanut
On Mon, Jun 6, 2016 at 2:34 PM, Henrik Friedrichsen  wrote:
> Good to know. Looks like it is a Chromium problem then.

I noticed the option to navigate by overscrolling was turned on by
default in version 51. Maybe it has something to do with this? Maybe
common code changes?

I disabled it immediately because I find it annoying.

You can find it at chrome://flags/. The option is named "Overscroll
history navigation".



Re: /usr/ and wxallowed

2016-06-06 Thread Stuart Henderson
On 2016-06-06, Kevin Chadwick  wrote:
>> > Hello,I have non-standard partitioned OpenBSD-current installation
>> > dated before 05/27.I don't have separate filesystem/disklabel
>> > partition for /usr/local/.I have /usr/ on separate ffs
>> > filesystem. Can I add wxallowed to /usr/ filesystem or I must
>> > repartition/reinstall OpenBSD?  
>> 
>> You can add it at any point.  It just means that binaries in /usr
>> which do PROT_WRITE|PROT_EXEC mappings will succeed (with a warning,
>> of course).
>> 
>> Over time, these semantics will probably change.
>
> If you would like the protection then I don't see any need to reinstall
> btw.
>
> I'm guessing (could be wrong) /usr isn't huge (so won't take ages) but
> it's dead easy to gain the protection by using cp -Rp /usr to /home/usr
>
> Then simply delete the /usr in disklabel and create a /usr
> and /usr/local and copy back /home/usr to /usr and /home/usr/local
> to /usr/local because cp is static and in the / root fs so you don't
> even need to reboot, of course you would have to consider running
> programs read requirements on those filesystems.
>

So you are talking about moving /usr from its own filesystem to /.
Careful with that. If you follow the auto disklabel defaults, / is
usually max 1GB and after a couple of upgrades /usr can easily get
too big for that (new libraries, new perl versions, etc). I would
rather take longer to do a dump/repartition/restore (or do some
other carving up/rejiggling of partitions) rather than leave a
timebomb for my future self, updates with too little space for
/usr are not very funny.



FOSS tools for flashing motherboard BIOS?

2016-06-06 Thread Alan Corey
I have an HP Pavilion DV2700 laptop with an old BIOS version I'd like
to update.  HP's official solution is to run something under the
dinosaur Windows Vista, which I was glad to wash my hands of about 7
years ago.

I opened up HP's exe file (rename to a zip and unzip), inside is a 1
meg file 30cdf2d.wph which I think is the payload.  It's a Phoenix
BIOS so it's set up to use Phoenix's WinPhlash utility.  I have no
operating system at all on the machine at present, it has no floppy
drive, doesn't boot from the CD/DVD.  I can boot from USB or the hard
drive only.  I can put in an old hard drive from another laptop and
boot it into OpenBSD.  Not booting from the CD is what I'm trying to
fix, a guy at HP support seems to think flashing the BIOS may help.
It's possible there are remnants of Windows "Secure Boot" around from
somebody trying to load Windows 7+ although since I can boot from USB
(a gparted ISO written to an SD card plugged into a USB reader) I
doubt it.

On the Arch Linux page at
https://wiki.archlinux.org/index.php/Flashing_BIOS_from_Linux there's
mention of a couple programs that might work: BiosDisk and Flashrom.
Anybody use either of those under OpenBSD?  I haven't tried chasing
down the source and trying to build them, I was a little surprised
they aren't in sysutils.  I don't see anything in there for flashing,
just looking in pbrowser.

-- 
Credit is the root of all evil.  - AB1JX



Re: Synaptics/Chrome two-finger scrolling behaviour

2016-06-06 Thread Henrik Friedrichsen
On Mon, Jun 06, 2016 at 02:24:37PM +0200, Nicklas Mikkelinen wrote:
> I have the same issue in both openbsd, win10 and mac os x yosemite. 
> 
> Thought it was my mouse though. 

Good to know. Looks like it is a Chromium problem then.



Re: Synaptics/Chrome two-finger scrolling behaviour

2016-06-06 Thread Nicklas Mikkelinen
I have the same issue in both openbsd, win10 and mac os x yosemite. 

Thought it was my mouse though. 

N
(mobile)

> 6 juni 2016 kl. 14:17 skrev Henrik Friedrichsen :
> 
> Hey,
> 
> I'm not sure, but something seems to have changed two-finger-scrolling
> on Synaptics touchpads in the latest snapshots.
> 
> My snapshot is from June 2nd. The following is what happens:
> 
> In Chromium, if I click somewhere and subsequently scroll the website
> using two-finger-scrolling, it scrolls more units (e.g. to the
> top/bottom of the page) and sometimes even in reverse. I can't quite
> extract the pattern, yet.
> 
> Can anyone confirm this? Is this Xenocara or Chromium related?



Synaptics/Chrome two-finger scrolling behaviour

2016-06-06 Thread Henrik Friedrichsen
Hey,

I'm not sure, but something seems to have changed two-finger-scrolling
on Synaptics touchpads in the latest snapshots.

My snapshot is from June 2nd. The following is what happens:

In Chromium, if I click somewhere and subsequently scroll the website
using two-finger-scrolling, it scrolls more units (e.g. to the
top/bottom of the page) and sometimes even in reverse. I can't quite
extract the pattern, yet.

Can anyone confirm this? Is this Xenocara or Chromium related?



Re: /usr/ and wxallowed

2016-06-06 Thread Kevin Chadwick
> > Hello,I have non-standard partitioned OpenBSD-current installation
> > dated before 05/27.I don't have separate filesystem/disklabel
> > partition for /usr/local/.I have /usr/ on separate ffs
> > filesystem. Can I add wxallowed to /usr/ filesystem or I must
> > repartition/reinstall OpenBSD?  
> 
> You can add it at any point.  It just means that binaries in /usr
> which do PROT_WRITE|PROT_EXEC mappings will succeed (with a warning,
> of course).
> 
> Over time, these semantics will probably change.

If you would like the protection then I don't see any need to reinstall
btw.

I'm guessing (could be wrong) /usr isn't huge (so won't take ages) but
it's dead easy to gain the protection by using cp -Rp /usr to /home/usr

Then simply delete the /usr in disklabel and create a /usr
and /usr/local and copy back /home/usr to /usr and /home/usr/local
to /usr/local because cp is static and in the / root fs so you don't
even need to reboot, of course you would have to consider running
programs read requirements on those filesystems.

-- 

KISSIS - Keep It Simple So It's Securable



Re: Joining bridge(4) changes broadcast?

2016-06-06 Thread Martin Pieuchot
On 06/06/16(Mon) 16:23, Masao Uebayashi wrote:
> On Mon, Jun 06, 2016 at 08:50:49AM +0200, Martin Pieuchot wrote:
> > On 06/06/16(Mon) 13:04, Masao Uebayashi wrote:
> > > Broadcast frame, coming into a bridge'ed interface, passes if_input() 3 
> > > times,
> > > and actually input (ether_input()) twice.
> > > 
> > > - A frame enters an interface (e.g. pair(4)), the interface calls 
> > > if_input()
> > >   on it.  The frame is queued in if_input_queue.
> > > 
> > > - A task running if_input_process() is triggered.  It takes the frame and
> > >   calls bridge_input().  Frame is queued in bridgeintrq.
> > > 
> > > - bridge_process() dispatches frame as multicast/broadcast (if
> > >   (ETHER_IS_MULTICAST())) and calls bridge_ifinput() on it, then passes 
> > > the
> > >   frame to bridgeintr_frame().
> > > 
> > > - bridgeintr_frame() calls bridge_broadcast() on it.
> > > 
> > > - bridge_broadcast() calls bridge_localbroadcast(), which again calls
> > >   bridge_ifinput().
> > > 
> > > bridge_ifinput() is called twice for each broadcast frames.  
> > > bridge_ifinput()
> > > calls if_input().  Thus 3 if_input() for each.
> > > 
> > > These duplicate frames confuse pppoe(4), that's why it stops working.
> > 
> > What do you mean by "confuse pppoe(4)"?  I still don't understand what's
> > the link between pppoe(4) and bpf(4) in this case and why BPF matters
> > for a kernel driver.
> 
> - PPPoE client (pppoe(4)) sends a PPPoE Discovery "initiation" frame, which is
>   broadcast.
> 
> - PPPoE server (npppd(8)) receives 3 copies of it via bpf(4), then returns
>   3 PPPoE Discovery "offer" frames.
> 
> - pppoe(4) receives 3 "offer" frames and gets confused ... somehow.
> 
> I don't know the internal of pppoe(4) yet.  pppoe(4) might have a bug, it
> might be able to work even if it receives 3 replies at once, I don't know.
> 
> I don't think that npppd(8) receiving 3 copies of broadcast frames (via
> bpf(4)) is an intentional design anyway.

I agree.  Diff below should reduce the number of copies to 2.  In order
to remove the last copy somebody has to turn bridge_process() MP-safe
and merge it with bridge_input().  

Once this is done, bridge_input() can return "0" for multicast packets
and ether_input() will be call directly without the need for requeueing
the packet.

Index: net/if_bridge.c
===
RCS file: /cvs/src/sys/net/if_bridge.c,v
retrieving revision 1.279
diff -u -p -r1.279 if_bridge.c
--- net/if_bridge.c 30 May 2016 12:56:16 -  1.279
+++ net/if_bridge.c 6 Jun 2016 10:46:01 -
@@ -1129,7 +1129,7 @@ bridge_process(struct ifnet *ifp, struct
} else
 #endif /* NGIF */
bridge_ifinput(ifp, mc);
-   
+
bridgeintr_frame(sc, ifp, m);
return;
}
@@ -1225,14 +1225,15 @@ bridge_broadcast(struct bridge_softc *sc
if (bridge_filterrule(>bif_brlout, eh, m) == 
BRL_ACTION_BLOCK)
continue;
 
-   bridge_localbroadcast(sc, dst_if, eh, m);
-
/*
 * Don't retransmit out of the same interface where
 * the packet was received from.
 */
if (dst_if->if_index == ifp->if_index)
continue;
+
+   bridge_localbroadcast(sc, dst_if, eh, m);
+
 #if NMPW > 0
/*
 * Split horizon: avoid broadcasting messages from wire to



Re: Low brightness in text console

2016-06-06 Thread Marcus MERIGHI
To me this sounds like "Screen brightness is reset when changing from X
to console" thread on bugs@ [1].

[1] http://marc.info/?l=openbsd-bugs=146451346724515

Walter Alejandro Iglesias' workaround worked for me (thank you,
Walter!):

- run -current.
- use /etc/xorg.conf:

Section "Device"
Identifier  "Card0"
Driver  "intel"
Option  "AccelMethod"  "UXA"
EndSection

Bye, Marcus

just22@gmail.com (Alessandro DE LAURENZIS), 2016.06.05 (Sun) 20:04 (CEST):
> Hello Noah,
> 
> On 06/05/16 16:52, Noah wrote:
> > Have you tried "wsconsctl display.brightness=100" yet?
> > 
> > What's the output of "wsconsctl display" from the text console?
> 
> display.type=inteldrm
> display.emulations=vt100
> display.screentypes=std
> display.focus=0
> display.brightness=100.00%
> display.screen_on=250
> display.screen_off=0
> display.vblank=off
> display.kbdact=on
> display.msact=on
> display.outact=on
> 
> but setting "display.brightness" to a lower value makes the screen actually
> brighter; and putting 100 after restore the correct brightness.
> 
> Somewhat similar to [1], but in this case putting
> 
> display.brightness=50
> display.brightness=100
> 
> in /etc/wsconsctl.conf doesn't help a lot, 'cause the misbehaviour happens
> again after the next Ctrl-Alt-FnX switch.
> 
> It's worth mentioning that switching back to X, the brightness stays low for
> a (very) short time, then it's restored.
> 
> Copying Mark, just in case he's interested in this too.
> 
> All the best
> 
> [1] http://marc.info/?l=openbsd-misc=146006055104594=2
> 
> > 
> > 
> > On Sun, Jun 5, 2016 at 1:06 AM, Alessandro DE LAURENZIS
> > > wrote:
> > 
> > Dear misc@ readers,
> > 
> > Starting from some snapshot probably in April, when I switch to text
> > console (Ctrl-Alt-FnX), the LCD brightness is reduced (it's restored
> > when I switch back to X).
> > 
> > Not a really new thing: I remember something similar happening some
> > years ago, but recently the switch worked flawlessly.
> > 
> > dmesg in [0].
> > 
> > Thanks in advance for any info.
> > 
> > Cheers
> > 
> > [0]
> > OpenBSD 6.0-beta (GENERIC.MP ) #2157: Tue May 31
> > 17:02:24 MDT 2016
> > 
> > dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> > 
> > real mem = 3177906176  (3030MB)
> > avail mem = 3077050368  (2934MB)
> > mpath0 at root
> > scsibus0 at mpath0: 256 targets
> > mainbus0 at root
> > bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (73 entries)
> > bios0: vendor LENOVO version "7LETD0WW (2.30 )" date 02/27/2012
> > bios0: LENOVO 7735WX2
> > acpi0 at bios0: rev 2
> > acpi0: sleep states S0 S3 S4 S5
> > acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET BOOT ASF! SSDT
> > SSDT SSDT SSDT
> > acpi0: wakeup devices LID_(S3) SLPB(S3) LURT(S3) DURT(S3) IGBE(S4)
> > EXP0(S4) EXP1(S4) EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3)
> > USB1(S3) USB2(S3) USB3(S3) USB4(S3) [...]
> > acpitimer0 at acpi0: 3579545 Hz, 24 bits
> > acpiec0 at acpi0
> > acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
> > cpu0 at mainbus0: apid 0 (boot processor)
> > cpu0: Intel(R) Core(TM)2 Duo CPU T8100 @ 2.10GHz, 798.14 MHz
> > cpu0:
> > 
> > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,NXE,LONG,LAHF,PERF,SENSOR
> > cpu0: 3MB 64b/line 8-way L2 cache
> > cpu0: smt 0, core 0, package 0
> > mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> > cpu0: apic clock running at 199MHz
> > cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2.1.3, IBE
> > cpu1 at mainbus0: apid 1 (application processor)
> > cpu1: Intel(R) Core(TM)2 Duo CPU T8100 @ 2.10GHz, 798.00 MHz
> > cpu1:
> > 
> > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,NXE,LONG,LAHF,PERF,SENSOR
> > cpu1: 3MB 64b/line 8-way L2 cache
> > cpu1: smt 0, core 1, package 0
> > ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
> > acpimcfg0 at acpi0 addr 0xf000, bus 0-63
> > acpihpet0 at acpi0: 14318179 Hz
> > acpiprt0 at acpi0: bus 0 (PCI0)
> > acpiprt1 at acpi0: bus -1 (AGP_)
> > acpiprt2 at acpi0: bus 2 (EXP0)
> > acpiprt3 at acpi0: bus 3 (EXP1)
> > acpiprt4 at acpi0: bus 4 (EXP2)
> > acpiprt5 at acpi0: bus 5 (EXP3)
> > acpiprt6 at acpi0: bus 13 (EXP4)
> > acpiprt7 at acpi0: bus 21 (PCI1)
> > acpicpu0 at acpi0: !C3(250@17 mwait.3@0x20), !C2(500@1
> > mwait.1@0x10), C1(1000@1 mwait.1), PSS
> > acpicpu1 at acpi0: !C3(250@17 mwait.3@0x20), !C2(500@1
> > mwait.1@0x10), C1(1000@1 

Re: Joining bridge(4) changes broadcast?

2016-06-06 Thread Masao Uebayashi
On Mon, Jun 06, 2016 at 08:50:49AM +0200, Martin Pieuchot wrote:
> On 06/06/16(Mon) 13:04, Masao Uebayashi wrote:
> > Broadcast frame, coming into a bridge'ed interface, passes if_input() 3 
> > times,
> > and actually input (ether_input()) twice.
> > 
> > - A frame enters an interface (e.g. pair(4)), the interface calls if_input()
> >   on it.  The frame is queued in if_input_queue.
> > 
> > - A task running if_input_process() is triggered.  It takes the frame and
> >   calls bridge_input().  Frame is queued in bridgeintrq.
> > 
> > - bridge_process() dispatches frame as multicast/broadcast (if
> >   (ETHER_IS_MULTICAST())) and calls bridge_ifinput() on it, then passes the
> >   frame to bridgeintr_frame().
> > 
> > - bridgeintr_frame() calls bridge_broadcast() on it.
> > 
> > - bridge_broadcast() calls bridge_localbroadcast(), which again calls
> >   bridge_ifinput().
> > 
> > bridge_ifinput() is called twice for each broadcast frames.  
> > bridge_ifinput()
> > calls if_input().  Thus 3 if_input() for each.
> > 
> > These duplicate frames confuse pppoe(4), that's why it stops working.
> 
> What do you mean by "confuse pppoe(4)"?  I still don't understand what's
> the link between pppoe(4) and bpf(4) in this case and why BPF matters
> for a kernel driver.

- PPPoE client (pppoe(4)) sends a PPPoE Discovery "initiation" frame, which is
  broadcast.

- PPPoE server (npppd(8)) receives 3 copies of it via bpf(4), then returns
  3 PPPoE Discovery "offer" frames.

- pppoe(4) receives 3 "offer" frames and gets confused ... somehow.

I don't know the internal of pppoe(4) yet.  pppoe(4) might have a bug, it
might be able to work even if it receives 3 replies at once, I don't know.

I don't think that npppd(8) receiving 3 copies of broadcast frames (via
bpf(4)) is an intentional design anyway.



Re: Joining bridge(4) changes broadcast?

2016-06-06 Thread Martin Pieuchot
On 06/06/16(Mon) 13:04, Masao Uebayashi wrote:
> Broadcast frame, coming into a bridge'ed interface, passes if_input() 3 times,
> and actually input (ether_input()) twice.
> 
> - A frame enters an interface (e.g. pair(4)), the interface calls if_input()
>   on it.  The frame is queued in if_input_queue.
> 
> - A task running if_input_process() is triggered.  It takes the frame and
>   calls bridge_input().  Frame is queued in bridgeintrq.
> 
> - bridge_process() dispatches frame as multicast/broadcast (if
>   (ETHER_IS_MULTICAST())) and calls bridge_ifinput() on it, then passes the
>   frame to bridgeintr_frame().
> 
> - bridgeintr_frame() calls bridge_broadcast() on it.
> 
> - bridge_broadcast() calls bridge_localbroadcast(), which again calls
>   bridge_ifinput().
> 
> bridge_ifinput() is called twice for each broadcast frames.  bridge_ifinput()
> calls if_input().  Thus 3 if_input() for each.
> 
> These duplicate frames confuse pppoe(4), that's why it stops working.

What do you mean by "confuse pppoe(4)"?  I still don't understand what's
the link between pppoe(4) and bpf(4) in this case and why BPF matters
for a kernel driver.