Is there the ability to read and write raw RAM contents?

2019-03-25 Thread Z Ero
I understand this would be a severe security/stability issue in many
cases but for some applications it would be interesting/useful if one
could dd and grep, etc, RAM on a live system. Is there any way to do
this on OpenBSD? Or is program memory space read write access always
protected by the kernel in every instance?



Reading suggestions for running graphical X based Linux applications on OpenBSD using a Virtual Machine?

2019-03-17 Thread Z Ero
This should be possible, correct? I understand that vmd does not
currently support VGA output inside the VM but but I should be able to
run a headless Linux instance in a VM image hosted on OpenBSD vmm and
then pipe the graphical output over the virtual network interface to a
display on the OpenBSD host system. For example if I want to run the
Linux version of Mathematica this way that should be possible,
correct? Does anybody know of a configuration tutorial in this area?

Thanks...



Live ACPI "Hibernate" Style Snapshot possible without Powering Down?

2019-03-04 Thread Z Ero
Hello,

Curious if there is a facility to save system memory state to disk for
recovery such as is done the ZZZ (hibernate) command without actually
powering down? Could be useful to return to a previous active memory
state for devices that are not on UPS or not closely monitored but do
preform non-scripted batch work.

So, for example if there is a transient power interruption on
03-05-2019 at 12 AM the device could be configured just to reboot to
the state it was in at 03-04-2019 at 12 AM where it was doing similar
work. I don't mean load a file back up but reload a previous active
memory / process state as if returning from hibernate.

Thus to enable this hibernate style dumps would be saved periodically
by cron for example.

I understand that for some dumping active memory to disk without
powering down might present a security concern but this is not a
problem for my application.

Thanks



Re: Java program question

2019-02-20 Thread Z Ero
Thanks a bunch...as I mentioned I never run java anymore...

On 2/20/19, Karel Gardas  wrote:
> pkg_info -Q jdk
>
> Then pkg_add 
>
> Then go to shell and do:
>
> export JAVA_HOME=/usr/local/jdk-1.8.0
>
> export PATH=$PATH:$JAVA_HOME/bin
>
> since now, you should have sane VM executable by "java"
>
> So java -jar 
>
> May do the play...
>
> On 2/20/19 8:38 PM, Z Ero wrote:
>> Hello,
>>
>> I am trying to run the stand alone Java program cgoban.jar found at
>> https://www.gokgs.com/ for playing the board game "Go."
>>
>> I very rarely run Java programs these days.
>>
>> OpenBSD only seems to offer jamvm for a virtual machine and for
>> whatever reason that does not work with this program.
>>
>> This is not a browser applet but a program you download and use
>> outside a browser by running on a Java VM to connect to their servers.
>> They used to offer a browser applet many years ago but now just offer
>> the stand alone program.
>>
>> Any suggestions?
>>
>> Thanks...
>
>



Java program question

2019-02-20 Thread Z Ero
Hello,

I am trying to run the stand alone Java program cgoban.jar found at
https://www.gokgs.com/ for playing the board game "Go."

I very rarely run Java programs these days.

OpenBSD only seems to offer jamvm for a virtual machine and for
whatever reason that does not work with this program.

This is not a browser applet but a program you download and use
outside a browser by running on a Java VM to connect to their servers.
They used to offer a browser applet many years ago but now just offer
the stand alone program.

Any suggestions?

Thanks...
Exception during event dispatch:
java.lang.NoClassDefFoundError: org/igoweb/cgoban/MainWindow$7$1
   at org.igoweb.cgoban.MainWindow$7.actionPerformed(MainWindow.java:222)
   at org.igoweb.igoweb.client.swing.LoginPanel.login(LoginPanel.java:166)
   at org.igoweb.igoweb.client.swing.LoginPanel.okPressed(LoginPanel.java:145)
   at org.igoweb.igoweb.client.swing.LoginPanel.access$200(LoginPanel.java:39)
   at 
org.igoweb.igoweb.client.swing.LoginPanel$2.actionPerformed(LoginPanel.java:110)
   at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1257)
   at 
javax.swing.AbstractButton$EventHandler.actionPerformed(AbstractButton.java:206)
   at 
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:298)
   at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:403)
   at 
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:323)
   at java.awt.Component.processMouseEvent(Component.java:3833)
   at java.awt.Component.processEvent(Component.java:3692)
   at java.awt.Container.processEvent(Container.java:1030)
   at java.awt.Component.dispatchEventImpl(Component.java:5739)
   at java.awt.Container.dispatchEventImpl(Container.java:1954)
   at java.awt.Component.dispatchEvent(Component.java:2852)
   at java.awt.LightweightDispatcher.redispatch(LightweightDispatcher.java:326)
   at 
java.awt.LightweightDispatcher.handleMouseEvent(LightweightDispatcher.java:151)
   at 
java.awt.LightweightDispatcher.dispatchEvent(LightweightDispatcher.java:115)
   at java.awt.Container.dispatchEventImpl(Container.java:1943)
   at java.awt.Window.dispatchEventImpl(Window.java:618)
   at java.awt.Component.dispatchEvent(Component.java:2852)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:624)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:88)
Caused by: java.lang.NoClassDefFoundError: com/gokgs/client/swing/KGuiClient
   at java.lang.VMClassLoader.defineClass(Native Method)
   at 
java.lang.VMClassLoader.defineClassWithTransformers(VMClassLoader.java:343)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:471)
   at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:83)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:617)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:341)
   at java.lang.ClassLoader$1.loadClass(ClassLoader.java:1112)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:293)
   at org.igoweb.cgoban.MainWindow$7.actionPerformed(MainWindow.java:222)
   ...23 more
Caused by: java.lang.ClassFormatError: bad constant pool tag
   at java.lang.VMClassLoader.defineClass(Native Method)
   at 
java.lang.VMClassLoader.defineClassWithTransformers(VMClassLoader.java:343)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:471)
   at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:83)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:617)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:341)
   at java.lang.ClassLoader$1.loadClass(ClassLoader.java:1112)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:293)
   at java.lang.VMClassLoader.defineClass(Native Method)
   ...31 more


Re: Selling things through the mailing list allowed? I have compatible THIN CLIENTS for Firewall / Router appliance use Available

2018-08-30 Thread Z Ero
Seems like a rational response to the issue.

On 8/30/18, Allan Streib  wrote:
> I quote from the FAQ:
>
> Complaining about and commenting upon spam on the list proper is
> counter-productive, as it generates more traffic than the spam
> itself.
>
> I am cognizant that I am violating this rule right now, but maybe helps
> reduce pointless traffic in the future...
>
> Allan
>
>



Re: Has anyone got OpenBSD Arm to run on the Marvel Espresso Bin?

2018-08-29 Thread Z Ero
How about in August? Is it supported now?

Thanks

On 3/28/18, Patrick Harper  wrote:
> Armada 3700LP chipset not supported at present.
>
> --
>   Patrick Harper
>   paia...@fastmail.com
>
> On Sun, 25 Mar 2018, at 22:11, Z Ero wrote:
>> If yes is the on board ethernet switch supported? What wifi cards are
>> supported in the miniPCIe slot?
>>
>
>



Re: Selling things through the mailing list allowed? I have compatible THIN CLIENTS for Firewall / Router appliance use Available

2018-08-29 Thread Z Ero
Hi Stuart,

Thanks for the respectful reply. I am a little bewildered by the
degree of unwarranted hostility the original post met, but whatever,
when in Rome... I believe as of now most commercially available small
business or home LAN routers / WAN gateways are 32 bit MIPS or ARM
based (as opposed to enterprise, c.f. the 64 bit MIPS Octeon Edge
Router). I understand your comment about the larger 64 bit address
space being more secure because it is such a vaster space better able
to be randomised, but I am not sure how much this really matters
practically. For example, have journal studies shown that in the real
world 32 bit routers are actually hacked or 'pwned' at a higher rate
(after accounting for market share) than 64 bit based machines?

On 8/28/18, Stuart Henderson  wrote:
> On 2018/08/28 18:21, Z Ero wrote:
>> Hello Stuart,
>>
>> Yes it is correct that the Intel atom is 32 bit i386. Just out of
>> curiosity why would you not recommend it for a router / internet
>> appliance application? Not everybody needs 10G Ethernet or AC wifi on
>> their home or office LAN. Is it a security issue, a performance issue,
>> or a lack of developer attention issue (i.e. there are more eyes /
>> there is more focus on the 64 bit code base than the 32 bit code base
>> at this time)?
>>
>> Here is the Intel info on these N280 processors in these thin clients.
>> https://ark.intel.com/products/41411/Intel-Atom-Processor-N280-512K-Cache-1_66-GHz-667-MHz-FSB
>>
>> If it is a perfomance issue I beg to differ. This machine more than
>> capable for normal LAN use for a home or small business assuming one
>> is not generating massive continuous traffic. Compare to microtik
>> routers, for example. Many if not most routers are 32 bit MIPS based
>> even today. If it is a security issue due to W^X or something about
>> memory / execution protection are there not similar issues on other
>> platforms used in routers such as MIPS or not? If your firewall rules
>> / open ports are prudent shouldn't that prevent remote execution
>> anyway? Is the Atom effected by Meltdown?
>>
>> I use this machine myself as my home router, although I guess maybe
>> that is not saying much because I also use a ten year old Thinkpad as
>> my daily driver machine...kind of stuck in 2008 I guess lol. But I
>> really don't think most home or business applications really need
>> anything more than 1G ethernet or 802.11n wireless it is like 1080p vs
>> 4k in HD TV. At a certain point the marginal returns to increased
>> capability diminish, and diminish at an accelerating rate.
>>
>> Last year I was using a 128mb RAM 200 mhz Soekris based router. I
>> could watch HD Youtube videos on that without issue.
>>
>> Not trying to flame. Just conversing.
>>
>>
>> On 8/28/18, Stuart Henderson  wrote:
>> > On 2018-08-28, Z Ero  wrote:
>> >> I have a bunch (about 50) of atom based HP T5740 thin clients that
>> >> work great as an OpenBSD based VPN gateway, router, firewall, print
>> >> server, wifi or other network appliance.
>> >
>> > Those are i386 (32-bit) only aren't they?
>> >
>> > I think I would not recommend i386 for any new installations
>> > at this point ..
>> >
>> >
>> >
>
> In recent times the Intel compatible architectures have proved to be
> quite high-maintenance. I can't imagine it will have been much fun for
> people working on fixes for the various speculative execution related
> bugs to do that on one architecture let alone porting fixes to a second,
> especially when as time goes on there are fewer really useful x86
> machines that are 32-bit only, and at the same time other architectures
> are getting a lot more interesting with respect to performance.
>
> Security-wise disregarding any other features, the small address space
> is a problem by itself. There's little room for allocation randomness,
> the % of the address space that can be left unmapped is minuscule
> compared to 64-bit architectures.
>
> Ports-wise the small address space is also a problem. Things like browsers
> and rust need various hacks to get them to build at all (rust is now a
> dependency of large parts of the ports tree via librsvg - currently the
> old C version of this is still viable but that won't last). Developers
> of this type of software generally expect cross-compiling from a larger
> architecture for 32-bit systems, which is not how OpenBSD works.
>
> Given the rather limited number of developers working on low-level parts
> of the system I think what remaining interest there is, is going to move
> elsewhere.
>
> For small routers etc with limited packets-per-second flows those
> machines just about work for now, but it's getting tight and I'd rather
> not build anything new on something which is already on borrowed time
> when I can make a fair guess that it's going to need tearing out before
> too much longer.
>
>



Re: Selling things through the mailing list allowed? I have compatible THIN CLIENTS for Firewall / Router appliance use Available

2018-08-28 Thread Z Ero
Hello Stuart,

Yes it is correct that the Intel atom is 32 bit i386. Just out of
curiosity why would you not recommend it for a router / internet
appliance application? Not everybody needs 10G Ethernet or AC wifi on
their home or office LAN. Is it a security issue, a performance issue,
or a lack of developer attention issue (i.e. there are more eyes /
there is more focus on the 64 bit code base than the 32 bit code base
at this time)?

Here is the Intel info on these N280 processors in these thin clients.
https://ark.intel.com/products/41411/Intel-Atom-Processor-N280-512K-Cache-1_66-GHz-667-MHz-FSB

If it is a perfomance issue I beg to differ. This machine more than
capable for normal LAN use for a home or small business assuming one
is not generating massive continuous traffic. Compare to microtik
routers, for example. Many if not most routers are 32 bit MIPS based
even today. If it is a security issue due to W^X or something about
memory / execution protection are there not similar issues on other
platforms used in routers such as MIPS or not? If your firewall rules
/ open ports are prudent shouldn't that prevent remote execution
anyway? Is the Atom effected by Meltdown?

I use this machine myself as my home router, although I guess maybe
that is not saying much because I also use a ten year old Thinkpad as
my daily driver machine...kind of stuck in 2008 I guess lol. But I
really don't think most home or business applications really need
anything more than 1G ethernet or 802.11n wireless it is like 1080p vs
4k in HD TV. At a certain point the marginal returns to increased
capability diminish, and diminish at an accelerating rate.

Last year I was using a 128mb RAM 200 mhz Soekris based router. I
could watch HD Youtube videos on that without issue.

Not trying to flame. Just conversing.


On 8/28/18, Stuart Henderson  wrote:
> On 2018-08-28, Z Ero  wrote:
>> I have a bunch (about 50) of atom based HP T5740 thin clients that
>> work great as an OpenBSD based VPN gateway, router, firewall, print
>> server, wifi or other network appliance.
>
> Those are i386 (32-bit) only aren't they?
>
> I think I would not recommend i386 for any new installations
> at this point ..
>
>
>



Selling things through the mailing list allowed? I have compatible THIN CLIENTS for Firewall / Router appliance use Available

2018-08-28 Thread Z Ero
I am trying to clear out some things I have in my basement. I thought
these may be of interest to the OpenBSD community so I am mentioning
them here. Not trying to spam or distract anybody...

I have a bunch (about 50) of atom based HP T5740 thin clients that
work great as an OpenBSD based VPN gateway, router, firewall, print
server, wifi or other network appliance. I have the expansion modules
for these clients as well and Intel or Broadcom dual NIC cards. So
there are a total of 3 gb LAN ports. Additionally these thin clients
have a miniPCI express slot. I have antennas and OpenBSD compatible
Atheros AR5B95 cards. So these machines can be configured as a stand
along Wifi router or AP. Privately email me if interested.

Here is a overview of the client
http://www.parkytowers.me.uk/thin/hp/t5740/index.shtml (not my site).
I may have my own site up soon, depending on what else I have to do.

In addition to the thin clients I have

(1) a bunch of 2GB PC2-6400S modules of DDR2 SODDIM PC2-6400S laptop
RAM available, if anybody is still running an older laptop such as a
Thinkpad.

(2) a bunch of laptop wireless cards including Atheros and Intel cards
that tend to work well with OpenBSD

(3) a lot of Thinkpad T60 / T61  / R61 hardware parts.

(4) about six Thinkpad T60 / T61 / R61 machines which run OpenBSD
flawlessly and are fully capable of being daily use machines if your
use pattern is mainly on line or over SSH along with word processing
and business productivity tasks and basic image management and
manipulation.

[ I use OpenBSD on an dual core 2.0 ghz Thinkpad X61 notebook daily,
with 6GB of RAM (max capacity 8GB) and I find this machine is able to
do everything I need it do. If I need something more powerful, such as
to compile large software quickly I can just run a VPS in the cloud. ]

Payment to be arranged privately through Paypal, cryptocurrency or
cash in mail. Shipping included in prices for USA buyers, if
international, buyers must be willing to pay for shipping.

If such solicitations are not allowed through this mailing list then I
apologize. I won't do it again.



Does dd have error checking and correction?

2018-04-28 Thread Z Ero
Forgive me if the is a naive question. Does the dd utility use
something like a CRC to verify data integrity or is this managed at a
lower level (eg. by the kernel services that dd uses to transfer
data)?



Atheros ATH9485 in athn

2018-04-28 Thread Z Ero
Can any one give an idea as to the work required to get support for
the ATH9485, found in the the AR5B225 and AR5B125 cards? I have a
bunch of 225s and 125s that I would like to use with Openbsd but I see
this chipset is not currently supported by the athn driver. I guess
FreeBSD and Linux support it.



Re: kernel relink segfaults on ALIX

2018-04-19 Thread Z Ero
Did you see my reply...i had the epiphany that no incantation is
necessary. I have seen the light.

On Thu, Apr 19, 2018 at 6:58 AM, Paul de Weerd <we...@weirdnet.nl> wrote:
> On Thu, Apr 19, 2018 at 06:53:26AM -0500, Z Ero wrote:
> | Is the feature documented in the manual pages...thanks...if this really 
> works.
>
> OpenBSD doesn't normally document how to disable security features.
> Generally, security features cannot be disabled.  In this case you
> can because of the way it's implemented.
>
> Please make sure you write "make_me_less_secure_please" to the file
> though and chant the same phrase every day at noon (in your
> /etc/localtime timezone) for each day you run in this state; this is
> an important part of stopping the kernel relinking...
>
> Paul 'WEiRD' de Weerd
>
> | On Thu, Apr 19, 2018 at 4:29 AM, Paul de Weerd <we...@weirdnet.nl> wrote:
> | > On Thu, Apr 19, 2018 at 04:15:50AM -0500, Z Ero wrote:
> | > | Coincidently I just logged in to write the misc  list about relinking
> | > | on boot. Is it possible to disable it? What about just relinking on
> | > | the first boot after install? So then every kernel image is different
> | > | but not re-randomized each boot! There are some low memory / slow CPU
> | > | embedded systems like Alix / Soekris where the benefit, in my opinion,
> | > | of re-linking every single boot is not worth the cost. That said
> | > | granted these systems should not be rebooted frequently anyway once in
> | > | production during normal use. I had a soekris recently that performed
> | > | well for the task I needed it for but that I chose to install OpenBSD
> | > | version 5.8 on...because I did not want to put up with the
> | > | relinking...I would have rather used 6.2...would it be possible to
> | > | give users a "switch" to turn off relinking if they want without
> | > | recompiling the kernel...please forgive my ignorance (or flame
> | > | away...) if this already exists.
> | >
> | > echo make_me_less_secure_please | doas tee /var/db/kernel.SHA256
> | >
> | > Going back to an older release to *avoid* security features in newer
> | > versions... wow.  You do realise that this kernel relinking thing is
> | > not the only improvement that's made in the more than two years since
> | > 5.8, right?
> | >
> | > Paul 'WEiRD' de Weerd
> | >
> | > --
> | >>[<++>-]<+++.>+++[<-->-]<.>+++[<+
> | > +++>-]<.>++[<>-]<+.--.[-]
> | >  http://www.weirdnet.nl/
>
> --
>>[<++>-]<+++.>+++[<-->-]<.>+++[<+
> +++>-]<.>++[<>-]<+.--.[-]
>  http://www.weirdnet.nl/



Re: kernel relink segfaults on ALIX

2018-04-19 Thread Z Ero
Coincidently I just logged in to write the misc  list about relinking
on boot. Is it possible to disable it? What about just relinking on
the first boot after install? So then every kernel image is different
but not re-randomized each boot! There are some low memory / slow CPU
embedded systems like Alix / Soekris where the benefit, in my opinion,
of re-linking every single boot is not worth the cost. That said
granted these systems should not be rebooted frequently anyway once in
production during normal use. I had a soekris recently that performed
well for the task I needed it for but that I chose to install OpenBSD
version 5.8 on...because I did not want to put up with the
relinking...I would have rather used 6.2...would it be possible to
give users a "switch" to turn off relinking if they want without
recompiling the kernel...please forgive my ignorance (or flame
away...) if this already exists.

Thanks.

On Thu, Apr 19, 2018 at 2:16 AM, Darren Tucker  wrote:
> On 19 April 2018 at 16:52, Jan Stary  wrote:
>> This is a fresh upgrade of current/i386 on an ALIX 2D3.
>> Upon start, kernel relinking fails, with relink.log saying:
>
> Do you have any swap configured?  Relinking takes a reasonable amount
> of ram and the ALIX doesn't have a lot.
>
> --
> Darren Tucker (dtucker at dtucker.net)
> GPG key 11EAA6FA / A86E 3E07 5B19 5880 E860  37F4 9357 ECEF 11EA A6FA (new)
> Good judgement comes with experience. Unfortunately, the experience
> usually comes from bad judgement.
>



Re: Atheros AT5424 (ath) issue on 6.2 (amd65)

2018-04-15 Thread Z Ero
# ifconfig ath0 down
# ifcondig ath0 up
ksh: ifcondig: not found
# ifconfig ath0 up
# dhclient ath0
ath0: DHCPREQUEST to 255.255.255.255
ath0: DHCPACK from 192.168.0.1 (00:00:24:cd:c6:01)
ath0: bound to 192.168.0.22 -- renewal in 21600 seconds
# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: icmp_seq=0 ttl=60 time=130.032 ms
64 bytes from 8.8.8.8: icmp_seq=1 ttl=60 time=163.518 ms
^C
--- 8.8.8.8 ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 130.032/146.775/163.518/16.743 ms
# dmesg | grep ath0*
mpath0 at root
scsibus0 at mpath0: 256 targets
ath0 at pci2 dev 0 function 0 "Atheros AR5212" rev 0x01: apic 1 int 17
ath0: AR5424 10.3 phy 6.1 rf5424 10.2 eeprom 5.3, WOR2W, address
00:19:7e:43:c6:6b

On Sun, Apr 15, 2018 at 11:12 PM, Z Ero <zerotetrat...@gmail.com> wrote:
> Amd64. Fat fingers...
>
> On Sun, Apr 15, 2018 at 11:10 PM, Z Ero <zerotetrat...@gmail.com> wrote:
>> Hello,
>>
>> I experience an intermittent issue with my Atheros wifi card or the
>> OpenBSD driver  for it on 6.2.
>>
>> What happens is that it seems to drop out of the network ocassionally.
>> I am sitting in the same room as the access point so it can't be a
>> signal problem.
>>
>> I have found that bringing the interface down and them back up and
>> renewing the DHCP lease seems to solve the problem.
>>
>> Also, OpenBSD does not seem to realize the problem is solved until I
>> test the link with a ping.
>>
>> E.g even after the interface is toggled on/off and the lease is
>> renewed firefox will still be waiting for a page to load until I ping.
>>
>> That seems strange.
>>
>> I wonder if it is a hardware / thermal problem with the card. The area
>> the card is in in my machine is pretty hot.
>>
>> This is a pretty minor issue and I could try another wifi card sometime...
>>
>> I am just wondering if anyone has any insight into other possible causes.
>>
>> Thanks.



Re: Atheros AT5424 (ath) issue on 6.2 (amd65)

2018-04-15 Thread Z Ero
Amd64. Fat fingers...

On Sun, Apr 15, 2018 at 11:10 PM, Z Ero <zerotetrat...@gmail.com> wrote:
> Hello,
>
> I experience an intermittent issue with my Atheros wifi card or the
> OpenBSD driver  for it on 6.2.
>
> What happens is that it seems to drop out of the network ocassionally.
> I am sitting in the same room as the access point so it can't be a
> signal problem.
>
> I have found that bringing the interface down and them back up and
> renewing the DHCP lease seems to solve the problem.
>
> Also, OpenBSD does not seem to realize the problem is solved until I
> test the link with a ping.
>
> E.g even after the interface is toggled on/off and the lease is
> renewed firefox will still be waiting for a page to load until I ping.
>
> That seems strange.
>
> I wonder if it is a hardware / thermal problem with the card. The area
> the card is in in my machine is pretty hot.
>
> This is a pretty minor issue and I could try another wifi card sometime...
>
> I am just wondering if anyone has any insight into other possible causes.
>
> Thanks.



Atheros AT5424 (ath) issue on 6.2 (amd65)

2018-04-15 Thread Z Ero
Hello,

I experience an intermittent issue with my Atheros wifi card or the
OpenBSD driver  for it on 6.2.

What happens is that it seems to drop out of the network ocassionally.
I am sitting in the same room as the access point so it can't be a
signal problem.

I have found that bringing the interface down and them back up and
renewing the DHCP lease seems to solve the problem.

Also, OpenBSD does not seem to realize the problem is solved until I
test the link with a ping.

E.g even after the interface is toggled on/off and the lease is
renewed firefox will still be waiting for a page to load until I ping.

That seems strange.

I wonder if it is a hardware / thermal problem with the card. The area
the card is in in my machine is pretty hot.

This is a pretty minor issue and I could try another wifi card sometime...

I am just wondering if anyone has any insight into other possible causes.

Thanks.



Re: Firefox does not start (at least without significant lag) sometimes after crashing

2018-04-15 Thread Z Ero
$ firefox &
[2] 24794
$ top
$ ps
  PID TT  STAT   TIME COMMAND
16819 p1  Z   0:00.00 (firefox)
61237 p1  Z   0:00.00 (firefox)
32024 p1  Ssp 0:00.01 ksh
 8876 p1  I   0:00.19 firefox
24794 p1  S   0:04.79 firefox
  373 p1  R+p/0   0:00.00 ps
$ kill -9 16819
$ ps
  PID TT  STAT   TIME COMMAND
61237 p1  Z   0:00.00 (firefox)
32024 p1  Ssp 0:00.01 ksh
24794 p1  I   0:04.79 firefox
28606 p1  R+p/1   0:00.00 ps
[1] - Done firefox
$ kill -9 61237
$ ps
  PID TT  STAT   TIME COMMAND
61237 p1  Z   0:00.00 (firefox)
32024 p1  Ssp 0:00.01 ksh
24794 p1  I   0:04.79 firefox
91733 p1  R+p/1   0:00.00 ps
$ kill -9 61237
ksh: kill: 61237: No such process
$ ps
  PID TT  STAT   TIME COMMAND
32024 p1  Ssp 0:00.01 ksh
24794 p1  D   0:06.13 firefox
17741 p1  S   0:00.00 dbus-launch
--autolaunch=d3a4785d28139dbad41abb225a91d3af --binary-syntax
--close-stderr
46916 p1  R+p/0   0:00.00 ps

On Sun, Apr 15, 2018 at 10:58 PM, Z Ero <zerotetrat...@gmail.com> wrote:
> 6.2 AMD64, firefox 58.
>
> If firefox crashes (which happens rarely) sometimes I find it does not
> start back up again. It seems to become a zombie or something. It
> starts then goes directly to suspend. Why? Any work around known?
>
> I suspect it has something to do with dbus waiting for something or
> firefox waiting for something from dbus.
>
> I have found killing my multiple attempts at starting firefox
> eventually produces a dialogue window saying "firefox is already
> running but not responding." Well... Then when I kill the process that
> started the dialogue window it firefox finally starts.
>
> But this behaviour is strange and the solution would not be intuitive
> to many less technical users (e.g. if one was using OpenBSD + Firefox
> as a platform for a thinclient / web browser + think client based
> application). Maybe firefox eventually starts on its own (after 5
> minutes) but I have never had the patience to wait around to try
> that...in any case that would be unacceptable for a general user.
>
> Does any one else experience this?
>
> Is there any solution / work around?
>
> Thanks.



Firefox does not start (at least without significant lag) sometimes after crashing

2018-04-15 Thread Z Ero
6.2 AMD64, firefox 58.

If firefox crashes (which happens rarely) sometimes I find it does not
start back up again. It seems to become a zombie or something. It
starts then goes directly to suspend. Why? Any work around known?

I suspect it has something to do with dbus waiting for something or
firefox waiting for something from dbus.

I have found killing my multiple attempts at starting firefox
eventually produces a dialogue window saying "firefox is already
running but not responding." Well... Then when I kill the process that
started the dialogue window it firefox finally starts.

But this behaviour is strange and the solution would not be intuitive
to many less technical users (e.g. if one was using OpenBSD + Firefox
as a platform for a thinclient / web browser + think client based
application). Maybe firefox eventually starts on its own (after 5
minutes) but I have never had the patience to wait around to try
that...in any case that would be unacceptable for a general user.

Does any one else experience this?

Is there any solution / work around?

Thanks.



Re: swapctl question

2018-04-14 Thread Z Ero
Also, why is Firefox 58 taking up about 2 gb of ram when I have 8
(non-multimedia) tabs open?

On Sun, Apr 15, 2018 at 12:37 AM, Z Ero <zerotetrat...@gmail.com> wrote:
> amd64, 6.2
>
> I have my swap partition set to priority 9 in fstab.
>
> Why does swapctl report priority 0?
>
> # swapctl
> Device  512-blocks UsedAvail Capacity  Priority
> /dev/sd0b 11874624  1266232 1060839211%0
> # cat /etc/fstab
> 14d16d0d42a89629.a / ffs rw,softdep 1 1
> 14d16d0d42a89629.k /home ffs rw,softdep,nodev,nosuid 1 2
> 14d16d0d42a89629.d /tmp ffs rw,nodev,nosuid 1 2
> 14d16d0d42a89629.f /usr ffs rw,softdep,nodev 1 2
> 14d16d0d42a89629.g /usr/X11R6 ffs rw,softdep,nodev 1 2
> 14d16d0d42a89629.h /usr/local ffs rw,softdep,wxallowed,nodev 1 2
> 14d16d0d42a89629.b none swap sw,priority=9
> 14d16d0d42a89629.e /var ffs rw,softdep,nodev,nosuid 1 2
>
> I want to minimize swapping since I am using a mechanical hard disk
> and thus swap slows things down.
>
> I can disable swap if I want with swapctl -d but I would rather not.
>
> Thanks



swapctl question

2018-04-14 Thread Z Ero
amd64, 6.2

I have my swap partition set to priority 9 in fstab.

Why does swapctl report priority 0?

# swapctl
Device  512-blocks UsedAvail Capacity  Priority
/dev/sd0b 11874624  1266232 1060839211%0
# cat /etc/fstab
14d16d0d42a89629.a / ffs rw,softdep 1 1
14d16d0d42a89629.k /home ffs rw,softdep,nodev,nosuid 1 2
14d16d0d42a89629.d /tmp ffs rw,nodev,nosuid 1 2
14d16d0d42a89629.f /usr ffs rw,softdep,nodev 1 2
14d16d0d42a89629.g /usr/X11R6 ffs rw,softdep,nodev 1 2
14d16d0d42a89629.h /usr/local ffs rw,softdep,wxallowed,nodev 1 2
14d16d0d42a89629.b none swap sw,priority=9
14d16d0d42a89629.e /var ffs rw,softdep,nodev,nosuid 1 2

I want to minimize swapping since I am using a mechanical hard disk
and thus swap slows things down.

I can disable swap if I want with swapctl -d but I would rather not.

Thanks



kernel (6.2 amd-64 mp) relinking failed on cloned disk

2018-04-10 Thread Z Ero
Hello

I cloned a disk that had OpenBSD installed via

dd if=/dev/r{source_dev} of=/dev/r{target_dev} bs=16m

Now when I boot from the cloned disk I get the following error
login: reorder_kernel: kernel relinking failed; see
/usr/share/compile/GENERIC.MP
/relink.log


When I cat "relink.log" I get
 (SHA256) /bsd: FAILED

Does this mean that a machine specific hash / checksum required to
validate / execute the kernel relink is not working or what?

Otherwise the machine works fine.

Is the error a real cause for concern? Cloning a working setup with dd
as I did saves me a bunch of time vs. installing and configuring a new
system.

Also, how to correct the error, if possible?

Thanks



Re: Why are so many people running and writing about current snapshots

2018-03-26 Thread Z Ero
I just don't want OpenBSD to turn into Linux where the fixation is on
newest shiny thing rather than doing code right. Sometimes I think
people who are excessively interested in bleeding edge features more
want an OS for tinkering with than an OS for production / work. I want
something stable to use. But to each his own.

On Mon, Mar 26, 2018 at 3:49 AM, Stuart Henderson <s...@spacehopper.org> wrote:
> On 2018-03-25, Z Ero <zerotetrat...@gmail.com> wrote:
>> Is 6.3 release almost here? Is that why? If you are using your
>> computer for production and are not actively developing / debugging
>> OpenBSD why would you run a current snapshot rather than the stable
>> release? Just curious.
>
> - easy access to newer packages, at the cost of a bit more work updating.
>
> - maybe you want new features from -current, or bug fixes that haven't
> been backported to -stable.
>
>
>



Has anyone got OpenBSD Arm to run on the Marvel Espresso Bin?

2018-03-25 Thread Z Ero
If yes is the on board ethernet switch supported? What wifi cards are
supported in the miniPCIe slot?



Fwd: door opening sensor HW for OpenBSD?

2018-03-25 Thread Z Ero
-- Forwarded message --
From: Z Ero <zerotetrat...@gmail.com>
Date: Sun, Mar 25, 2018 at 3:49 AM
Subject: Re: door opening sensor HW for OpenBSD?
To: Robert <info...@die-optimisten.net>


For example: 
https://www.smarthome.com/functional-devices-clc212-10a-closet-light-controller.html

On Sun, Mar 25, 2018 at 2:16 AM, Z Ero <zerotetrat...@gmail.com> wrote:
> Serial ports are rare on laptops today and just interrupting the power
> supply to the laptop does not require any rewiring and can use off the
> shelf parts.
>
> On Sun, Mar 25, 2018 at 2:12 AM, Z Ero <zerotetrat...@gmail.com> wrote:
>> Interesting ideas. I had the barometer one too. Is GPS really
>> sensitive enough to monitor a door opening and closing?
>>
>> In terms of practical solutions he can implement without over
>> engineering I would say his best solution is to have a switch driving
>> a 120 volt relay. When the door opens the switch actuates the relay
>> causing it to open and the notebook to transition from AC to battery
>> power. This transition in power sources could be monitored by a simple
>> shell script which sends an email alert whenever the door opens (and
>> AC power is temporarily interrupted). I am pretty sure whisker /
>> proximity switches / door open relays are readily available at places
>> like Amazon.com
>>
>> On Sat, Mar 24, 2018 at 4:50 PM, Robert <info...@die-optimisten.net> wrote:
>>> On Sat, 24 Mar 2018 22:32:02 +0100
>>> "Hess THR" <hessnovth...@mail.com> wrote:
>>>> Can you please recommend any hardware, that I could plug in to the 
>>>> notebook and though I could send a warning mail when the door was moved 
>>>> (open/closed).
>>>
>>> I can think of so many ways to do this, from boring to insane :)
>>>
>>> * Mount a switch on top of the door that gets unpressed when the door
>>>   opens, and connect to the serial port. Then read the pin status.
>>> * The same, but mount the switch behind the door so that it gets
>>>   pressed when the door opens.
>>> * Use a magnetic switch instead, and read it through the serial port.
>>> * Put a keyboard behind the door, so that the door presses against a
>>>   key when it opens. Map the key to a script.
>>> * Attach a mouse to the door and react on the mouse movement.
>>> * Attach a GPS sensor to the door and measure movements.
>>> * Attach a USB barometer and detect the air pressure diff when the door
>>>   opens.
>>> * Attach a USB gyroscope to the door. Detect movement.
>>> * Attach a USB light sensor (Arduino?) and detect movement.
>>> * Put an RFID tag on the door, and attach an RFID reader, to detect
>>>   when the tag approaches the reader.
>>> * Attach the laptop to the door and use the built-in gyroscope (if
>>>   available).
>>> * Same, but use the gyroscope from the HD. Might require firmware
>>>   hacking.
>>> * Don't oil the door and evaluate the microphone input.
>>> * Attach any USB device, but route the 5V line through a switch
>>>   attached to the door. Detect when the device attaches.
>>> * Mount the laptop behind the door so that the door opens/closes the
>>>   laptop lid. Detect wake/sleep state.
>>> * Fix your credit card to the door and have it move through a card
>>>   reader when the door opens. Check account balance through script.
>>>
>>> Send pix!
>>>
>>> regards,
>>> Robert
>>>



Why are so many people running and writing about current snapshots

2018-03-25 Thread Z Ero
Is 6.3 release almost here? Is that why? If you are using your
computer for production and are not actively developing / debugging
OpenBSD why would you run a current snapshot rather than the stable
release? Just curious.



Re: How do I disable specific keys on Thinkpad laptop?

2018-03-23 Thread Z Ero
Use xev to get key code. Use xmodmap to map to null. Answered on my own.

On Sat, Mar 24, 2018 at 12:08 AM, Z Ero <zerotetrat...@gmail.com> wrote:
> Hello,
>
> I want to disable / render dead in the software environment the web
> navigation keys next to the arrow keys. Multiple times I have gone to
> press the up or down arrow keys while filling out forms in Firefox and
> accidentally hit the "back" key. If I have typed up a 500 word forum
> post it is lost irretrievably. I don't want these keys to function any
> more in X11 but I would rather not mutilate my keyboard to make that
> happen. I suppose I could research it but I want to go back to
> retyping my post and am hoping some kind individual can point me in
> the right direction to speed the process of the solving this problem
> along...
>
> Thanks a lot!



How do I disable specific keys on Thinkpad laptop?

2018-03-23 Thread Z Ero
Hello,

I want to disable / render dead in the software environment the web
navigation keys next to the arrow keys. Multiple times I have gone to
press the up or down arrow keys while filling out forms in Firefox and
accidentally hit the "back" key. If I have typed up a 500 word forum
post it is lost irretrievably. I don't want these keys to function any
more in X11 but I would rather not mutilate my keyboard to make that
happen. I suppose I could research it but I want to go back to
retyping my post and am hoping some kind individual can point me in
the right direction to speed the process of the solving this problem
along...

Thanks a lot!



Minor user space issues

2018-03-15 Thread Z Ero
Hello,

Two quick questions that may be basic but I never learned to solve yet
since they are not necessary for my work. Solving them would just make
my user experience a little better.

1. Is there a way to eliminate core dumps from crashed applications. I
don't want firefox to make a 1 GB core dump in my home directory if it
crashes.

2. Is there a way to supress or redirect console messages &
application error messages so they do not clutter my xterm. For
example I would rather

cat console.txt

than see a message on my xterm every time I plug in a USB device, etc.
Also I don't care about seeing every single little GTK error or
warning firefox has. In fact I would like to see none of them on my
xterm but would not necessarily mind storing them in a log file or
/dev/null.



Re: Lenovo X61 (notebook not tablet) does not return from sleep

2018-03-15 Thread Z Ero
If the adapter is ejected before closing the laptop lid there is no
problem waking from sleep. But is a minor inconvenience to eject the
adapter. Would it be possible to patch the kernel some how to make it
think the adapter is ejected before entering sleep?

On Thu, Mar 15, 2018 at 11:27 PM, Z Ero <zerotetrat...@gmail.com> wrote:
> On 6.2 amd-64 mp ONLY when PC card to CF-II adapter is in PC card slot
> and 2Gb Sandisk Ultra II CF media is inserted in adaptor. Repeatable.
> No other sleep / wake problems.
>
> OpenBSD 6.2 (GENERIC.MP) #6: Wed Feb 28 21:13:02 CET 2018
> 
> r...@syspatch-62-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 4201316352 (4006MB)
> avail mem = 4066914304 (3878MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (63 entries)
> bios0: vendor LENOVO version "7NET25WW (1.06 )" date 07/02/2007
> bios0: LENOVO 76754KU
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S3 S4 S5
> acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET SLIC BOOT ASF!
> SSDT SSDT SSDT SSDT
> acpi0: wakeup devices LID_(S3) SLPB(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) EHC0(S3) EHC1(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 T7300 @ 2.00GHz, 798.15 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,NXE,LONG,LAHF,PERF,SENSOR,MELTDOWN
> cpu0: 4MB 64b/line 16-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, IBE
> cpu1 at mainbus0: apid 1 (application processor)
> cpu1: Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz, 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,NXE,LONG,LAHF,PERF,SENSOR,MELTDOWN
> cpu1: 4MB 64b/line 16-way L2 cache
> cpu1: smt 0, core 1, package 0
> ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
> , remapped to apid 1
> 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 -1 (EXP2)
> acpiprt5 at acpi0: bus -1 (EXP3)
> acpiprt6 at acpi0: bus -1 (EXP4)
> acpiprt7 at acpi0: bus 5 (PCI1)
> acpicpu0 at acpi0: !C3(100@57 mwait.3@0x30), !C2(500@1 mwait.1@0x10),
> C1(1000@1 mwait.1), PSS
> acpicpu1 at acpi0: !C3(100@57 mwait.3@0x30), !C2(500@1 mwait.1@0x10),
> C1(1000@1 mwait.1), PSS
> acpipwrres0 at acpi0: PUBS, resource for USB0, USB2, USB4, EHC0, EHC1
> acpitz0 at acpi0: critical temperature is 127 degC
> acpitz1 at acpi0: critical temperature is 99 degC
> acpibtn0 at acpi0: LID_
> acpibtn1 at acpi0: SLPB
> "IBM3780" at acpi0 not configured
> tpm0 at acpi0: TPM_ addr 0xfed4/0x5000: device 0x32031114 rev 0x9
> acpibat0 at acpi0: BAT0 model "92P1003" serial 19888 type LION oem "SANYO"
> acpiac0 at acpi0: AC unit offline
> acpithinkpad0 at acpi0
> acpidock0 at acpi0: GDCK not docked (0)
> acpivideo0 at acpi0: VID_
> acpivout0 at acpivideo0: LCD0
> acpivideo1 at acpi0: VID_
> cpu0: Enhanced SpeedStep 798 MHz: speeds: 2001, 2000, 1600, 1200, 800 MHz
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "Intel GM965 Host" rev 0x0c
> inteldrm0 at pci0 dev 2 function 0 "Intel GM965 Video" rev 0x0c
> drm0 at inteldrm0
> intagp0 at inteldrm0
> agp0 at intagp0: aperture at 0xe000, size 0x1000
> inteldrm0: msi
> inteldrm0: 1024x768, 32bpp
> wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
> wsdisplay0: screen 1-5 added (std, vt100 emulation)
> "Intel GM965 Video" rev 0x0c at pci0 dev 2 function 1 not configured
> em0 at pci0 dev 25 function 0 "Intel ICH8 IGP M AMT" rev 0x03: msi,
> address 00:16:d3:cc:f4:f4
> uhci0 at pci0 dev 26 function 0 "Intel 82801H USB" rev 0x03: apic 1 int 20
> uhci1 at pci0 dev 26 function 1 "Intel 82801H USB" rev 0x03: apic 1 int 21
> ehci0 at pci0 dev 26 function 7 "Intel 82801H USB" rev 0x03: apic 1 int 22
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev
>

Lenovo X61 (notebook not tablet) does not return from sleep

2018-03-15 Thread Z Ero
On 6.2 amd-64 mp ONLY when PC card to CF-II adapter is in PC card slot
and 2Gb Sandisk Ultra II CF media is inserted in adaptor. Repeatable.
No other sleep / wake problems.

OpenBSD 6.2 (GENERIC.MP) #6: Wed Feb 28 21:13:02 CET 2018

r...@syspatch-62-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4201316352 (4006MB)
avail mem = 4066914304 (3878MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (63 entries)
bios0: vendor LENOVO version "7NET25WW (1.06 )" date 07/02/2007
bios0: LENOVO 76754KU
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET SLIC BOOT ASF!
SSDT SSDT SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(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) EHC0(S3) EHC1(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 T7300 @ 2.00GHz, 798.15 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,NXE,LONG,LAHF,PERF,SENSOR,MELTDOWN
cpu0: 4MB 64b/line 16-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, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz, 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,NXE,LONG,LAHF,PERF,SENSOR,MELTDOWN
cpu1: 4MB 64b/line 16-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
, remapped to apid 1
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 -1 (EXP2)
acpiprt5 at acpi0: bus -1 (EXP3)
acpiprt6 at acpi0: bus -1 (EXP4)
acpiprt7 at acpi0: bus 5 (PCI1)
acpicpu0 at acpi0: !C3(100@57 mwait.3@0x30), !C2(500@1 mwait.1@0x10),
C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: !C3(100@57 mwait.3@0x30), !C2(500@1 mwait.1@0x10),
C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: PUBS, resource for USB0, USB2, USB4, EHC0, EHC1
acpitz0 at acpi0: critical temperature is 127 degC
acpitz1 at acpi0: critical temperature is 99 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
"IBM3780" at acpi0 not configured
tpm0 at acpi0: TPM_ addr 0xfed4/0x5000: device 0x32031114 rev 0x9
acpibat0 at acpi0: BAT0 model "92P1003" serial 19888 type LION oem "SANYO"
acpiac0 at acpi0: AC unit offline
acpithinkpad0 at acpi0
acpidock0 at acpi0: GDCK not docked (0)
acpivideo0 at acpi0: VID_
acpivout0 at acpivideo0: LCD0
acpivideo1 at acpi0: VID_
cpu0: Enhanced SpeedStep 798 MHz: speeds: 2001, 2000, 1600, 1200, 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel GM965 Host" rev 0x0c
inteldrm0 at pci0 dev 2 function 0 "Intel GM965 Video" rev 0x0c
drm0 at inteldrm0
intagp0 at inteldrm0
agp0 at intagp0: aperture at 0xe000, size 0x1000
inteldrm0: msi
inteldrm0: 1024x768, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"Intel GM965 Video" rev 0x0c at pci0 dev 2 function 1 not configured
em0 at pci0 dev 25 function 0 "Intel ICH8 IGP M AMT" rev 0x03: msi,
address 00:16:d3:cc:f4:f4
uhci0 at pci0 dev 26 function 0 "Intel 82801H USB" rev 0x03: apic 1 int 20
uhci1 at pci0 dev 26 function 1 "Intel 82801H USB" rev 0x03: apic 1 int 21
ehci0 at pci0 dev 26 function 7 "Intel 82801H USB" rev 0x03: apic 1 int 22
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev
2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 82801H HD Audio" rev 0x03: msi
azalia0: codecs: Analog Devices AD1984, 0x/0x, using Analog
Devices AD1984
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801H PCIE" rev 0x03: msi
pci1 at ppb0 bus 2
ppb1 at pci0 dev 28 function 1 "Intel 82801H PCIE" rev 0x03: msi
pci2 at ppb1 bus 3
ath0 at pci2 dev 0 function 0 "Atheros AR5212" rev 0x01: apic 1 int 17
ath0: AR5424 10.3 phy 6.1 rf5424 10.2 eeprom 5.3, WOR2W, address
00:19:7e:43:c6:6b
uhci2 at pci0 dev 29 function 0 "Intel 82801H USB" rev 0x03: apic 1 int 16
uhci3 at pci0 dev 29 function 1 "Intel 82801H USB" rev 0x03: apic 1 int 17
ehci1 at pci0 dev 29 function 7 "Intel 82801H USB" rev 0x03: apic 1 int 19
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev
2.00/1.00 addr 1
ppb2 at pci0 dev 30 function 0 "Intel 82801BAM 

Fwd: Is Absolute Software's Computrace AKA Lojack for Laptops a problem?

2018-03-07 Thread Z Ero
-- Forwarded message --
From: Z Ero <zerotetrat...@gmail.com>
Date: Sun, Mar 4, 2018 at 7:32 PM
Subject: Is Absolute Software's Computrace AKA Lojack for Laptops a problem?
To: misc <misc@openbsd.org>


For OpenBSD users on second hand Thinkpads does computrace present a
security concern? I understand that the phone home agent runs on
windows but is there anything is the "predesktop environment" that can
pose a security threat to OpenBSD users related to computrace? Thanks.



Is Absolute Software's Computrace AKA Lojack for Laptops a problem?

2018-03-04 Thread Z Ero
For OpenBSD users on second hand Thinkpads does computrace present a
security concern? I understand that the phone home agent runs on
windows but is there anything is the "predesktop environment" that can
pose a security threat to OpenBSD users related to computrace? Thanks.



Webserver Meltdown Patch Importance?

2018-03-03 Thread Z Ero
I have a web facing server running nginx, php5-fpm and mysql /
mariadb, It is still on 6.1. Remarkably I have a continuous uptime
without incident of 150+ days. I understand the meltdown patch is
available for 6.2. From a security standpoint how urgent is it that I
upgrade and apply the patch?

Notably the webserver is a VPS not on bare metal. If my VPS provider
is not patched against meltdown what difference would it make?

Are virtual CPUs even susceptible to meltdown? I suspect not. But the
underlying physical CPU would be.



drm permissions error with i965 on amd64 6.2 with libGL applications

2018-03-03 Thread Z Ero
"libGL error: failed to open drm device: Permission denied
libGL error: failed to load driver: i965"

I can solve it by changing the permissions on /dev/drm0 to rw for users but:

(1) I am not sure if that introduces a realistic security risk.
(2) The permissions are reverted on reboot making a minor annoyance to
reset them.

Advice?



Re: iwi0: fatal firmware error

2018-03-03 Thread Z Ero
I believe these era Thinkpads will not accept a non-IBM authorized
minipci WIFI card without Bios modification.

See http://www.thinkwiki.org/wiki/Problem_with_unauthorized_MiniPCI_network_card

If your bios accepts an IBM part numbered Atheros card I would
recommend that as the Ath cards have excellent support on OpenBSD
and have good reception characteristics.

If not either you have to live with the error, hack around it, or get
an external / usb wifi adapter.


On Sat, Mar 3, 2018 at 5:01 AM, Stefan Sperling  wrote:
> On Fri, Mar 02, 2018 at 09:39:34PM +, Xianwen Chen wrote:
>> Dear Stefan,
>>
>> Thank you. I guess the first step is to find out a way to ask iwi0
>> driver to output more details of the error, before it could be fixed.
>> I don't have prior experiences with the iwi0 driver. Do you know how I
>> can enable a debugger mode, if there is one?
>>
>> Yours sincerely,
>> Xianwen
>
> You would have to edit the source code. There is no debugging mode.
> There is nobody willing to work on this, so you'd have to fix it yourself.
> I'd be happy to review and test patches.
>
> However, this won't be easy at all. The driver has almost no control over
> this hardware. Most things are handled inside the firmware and we cannot
> look inside. The driver only sees a single bit which says "a fatal error
> occured" with no further information available.
> The driver tries to recover from such errors automatically by resetting
> the device. There's nothing else it can do if such an error is reported.
> The only way to fix the problem would be to prevent the situation where
> the firmware error occurs, but we don't even know why it is happening.
> If the problem turned out to be a firmware bug it could not even be fixed
> in the firmware because nobody at Intel will care about this anymore :(
>
> There is much nicer hardware with better drivers and firmware available,
> both for regular usage and for hacking/debugging/learning.
>
> If you can open up the machine and swap out the miniPCI wifi card,
> an ath(4), old athn(4), or ral(4) card should work much better.
> These are similarly old devices and can be bought second hand.
> See the man pages for device names which can be searched on the web.
>
> Or you could use a USB device. I would recommend an AR9271 USB athn(4)
> device because it uses open source firmware, or a run(4) or urtwn(4) device.
>



py3-qt5

2018-03-01 Thread Z Ero
Not showing in pip3 --list after installed with pkg_add. Not available
module. Why?



ReText Python Based Mardown Composer on OpenBSD

2018-03-01 Thread Z Ero
Does anyone have experience running ReText on OpenBSD? Anything to
watch out for when installing or any tips?

Generally Python packages work well on OpenBSD. I am having some
trouble with this one in terms of missing module(s) / etc.

On a slightly other note I attempted to build Qt5 from ports/x11/qt5
and that did not work. What is the best way to get a working version
of qmake(5)?

I need qmake to build a python-qt dependency that ReText apparently
requires to show live previews (the whole point in running ReText to
start).

Maybe there is another way to install the missing dependency.

ReText is Python3 based. My system is primarily using Python2 modules.
It seems that Python3 did not recognize the Py3-Qt5 module required.

Any help would be greatly appreciated.

I don't know if it is only me but building large complicated ports
like Qt always seems to be living hell / very little reward for the
work.

Thanks.