Naim, Halim. | 26 Feb 19:36 2015
Picon

Error During Upgrade

I was upgrading my system today to the most recent snapshot (from a
previous snapshot). The Upgrade process failed (After booting bsd.rd),
with error 'uid 0 on /: file system full'
I finally found out that the problem was that my /bsd was a symlink to
/bsd.sp (I had modified it to test if the ehci error was present with
the sp kernel). After deleting the symlink. and cp'ing /bsd.mp to /bsd
everything worked as expected. I didn't find anyting in the archives
about this, so I thought I'd share the experience.  

Henrique Lengler | 26 Feb 19:11 2015

Cairo, bug fix and stability increase included on -stable

Hi,

In august of 2014, I reported a bug, that makes cairo unstable and gives
some segafaults. There was some other people with the same problem.
They fixed it, but the fix was only introduced in 1.13, so the
openbsd cairo version, have the problem.

I would like to know if can this patches be applied on -stable branch?

The bug report and the discussion is here:
https://bugs.freedesktop.org/show_bug.cgi?id=81699

The two commits that solve the problem is here:
http://cgit.freedesktop.org/cairo/commit/?id=13a09526d2120c244471e03b6ae979016ef88e83
http://cgit.freedesktop.org/cairo/commit/?id=a5f51588afd9d5629b03297eb29ff46350b6ba50 

--

-- 
Regards

Henrique Lengler 

D'Arcy J.M. Cain | 26 Feb 17:52 2015
Picon

pf add not working

I am running pf under NetBSD.  As far as I know it is pretty much stock
OpenBSD pf.  I asked this question in the NetBSD mailing list but
didn't gat a useful answer.  I hope that someone here has a deeper
understanding of how pf works.  Note the examples here are from
November last year but it is still behaving the same today.

Adding to persistent tables doesn't seem to work.  At least, it doesn't
seem to work all the time.  Here is an example from my logs.  Note
that most addresses detected by my intrusion system get blocked just
fine.

I am checking my Asterisk logs once a minute to see if there are any
hack attempts.  Here are the first and last lines in the log for the IP
in question.

[Nov 21 10:58:56] NOTICE[-1][C-00002a9d] chan_sip.c: Call from
'' (62.210.91.28:8507) to extension '000' rejected because extension
not found in context 'unauthenticated'.

[Nov 21 13:32:41] NOTICE[-1][C-0001b146] chan_sip.c: Call from
'' (62.210.91.28:8507) to extension '99999' rejected because extension
not found in context 'unauthenticated'.

Notice that the attempts keep coming for over 2.5 hours.  However, I
know that the rule was added very early.

Fri Nov 21 10:59:00 EST 2014 > 62.210.91.28

That's a log entry from a changes file.  I know that it took because I
read the table each time and only perform add and del when there is a
(Continue reading)

Markus Kolb | 26 Feb 10:30 2015
Picon

Re: Xen PV DomU with OpenBSD?

Am 2015-02-23 15:59, schrieb Joel Roberts:
> My recent experience with OpenBSD under Xen ran into some problems.  
> First,
> SMP didn't work.  At the point in kernel boot where it brings up the 
> other
> CPUs it would die.  Installation of the OS worked because it used a 
> non-SMP
> kernel.  Second, once I was booted I untarred the ports tree.  This
> destroyed the file system.  Third is a wish and not a problem per se, 
> I'd
> like to see PV drivers for disk and network.  I'm not a competent 
> kernel
> developer, but I am willing to offer some monetary compensation for 
> work on
> these problems.  I know the reasons why not to trust EC2, but I'd 
> really
> like to be able to use OpenBSD on EC2.  If you're interested in doing 
> the
> work, contact me.
> 
> --Joel
> 
> On Sat, Feb 21, 2015 at 8:31 PM, Markus Kolb <openbsd <at> tower-net.de> 
> wrote:
> 
>> Hi,
>> 
>> there isn't any support for Xen PV DomU in OpenBSD, isn't it?
>> 
>> What happened with Christoph Egger's work he is talking about in
(Continue reading)

patrick keshishian | 26 Feb 03:39 2015
Picon

man pages ending in .1x from ports

Just noticed this, I imagine this may be known already, but
here it is just in case it isn't.

$ man xsel
man: /usr/local/man/man1/xsel.1: ERROR: No such file or directory

$ pkg_info -L xsel
Information for inst:xsel-1.2.0p1

Files:
/usr/local/bin/xsel
/usr/local/man/man1/xsel.1x

$ ls -l /usr/local/man/man1/xsel.1x
-r--r--r--  1 root  bin  4406 Feb 17 21:56 /usr/local/man/man1/xsel.1x

$ file /usr/local/man/man1/xsel.1x
/usr/local/man/man1/xsel.1x: ASCII English text

This used to work fine with 20141121 snapshot, last one
before 20150217 upgrade.

I'm guessing requesting following x11/ ports' man pages
will behave (fail?) similar fashion:

	x11/aewm
	x11/afterstep
	x11/qvwm
	x11/sisctrl
	x11/uwm
(Continue reading)

Romain FABBRI | 25 Feb 18:55 2015
Picon

Last snapshots won't install on VMWare ESXi or getting ether_output panic

On last snapshots I can't complete the install when installing as a guest VM in VMWare ESXi 5.5. (snap: 20150217->20150223)

The install fails when installing sets from CD.

So I tried to convert a Hyper-V install which completes correctly and then to deploy the image to VMWare ESXi 5.5.
It can boot but when doing a simple ping I get a kernel panic.

Ddb output :

panic: smashed stack in ether_output
Stopped at     Debugger+0x7:    leave
ddb>trace
Debugger(d09e204a,f53adc08,d09bae0c,f53adc08,da0336c4) at Debugger+0x7
panic(d09bae0c,d09c33de,0,f53adc1c,d0203025) at panic+0x71
__stack_smash_handler(d09c33de,e,2,da0336ca,f53adc9a) at __stack_smash_handler
0x19
ether_output(d4085830,d9ee8b00,da0336c4,da00fb54,0) at ether_output+0x541
ip_output(d9ee8b00,0,da0336bc,20,0) at ip_output+0xd0b
rip-output(d9ee8b00,d9f1f648,1b2d23e,d9ee8e00,0) at rip_output+0x144
sosend(d9f1f648,d9ee8e00,f53ade90,d9ee8e00,0) at sosend+0x444
sendit(d9ef6174,3,f53adef4,0,f53adf80) at sendit+0x1e1
sys_sendto(d9ef6174,3,f53adf60,f53adf80,d0569f25,d9ef6174) at sys_sendto+0x6c
syscall() at syscall+0x24d

ddb>ps
PID     PPID    PGRP    UID   S   FLAGS   WAIT  COMMAND
* 5393  20454   5393    0     7     0x33        ping

Tested from i386 image on VMWare ESXi 5.5 (I tried with E1000 and VMX3 network drivers and got same panic).

(Continue reading)

A Y | 25 Feb 19:22 2015
Picon

Re: ppp not found

# grep ppp /var/log/*
.....Failed to open /dev/cuaU2: device not configured......

David Coppa | 25 Feb 13:12 2015
Picon

Re: ppp not found

On Wed, Feb 25, 2015 at 12:35 PM, A Y <afyoussef <at> hotmail.com> wrote:
> I did exactly as you asked, but everything is the same.
> Is it possible that the USB modem doesn't like the Lenovo USB port?
> If you don't have any further suggestions, I would like to install OpenBSD on
> my PC and try the connection.
> I don't like to do that because this means that I have to remove Windows,
> install/try OpenBSD and then re-install Windows. But I have to I guess.
>

What are the logs from pppd now?

# grep ppp /var/log/*

ciao,
David

A Y | 25 Feb 12:35 2015
Picon

Re: ppp not found

I did exactly as you asked, but everything is the same.
Is it possible that the USB modem doesn't like the Lenovo USB port?
If you don't have any further suggestions, I would like to install OpenBSD on
my PC and try the connection.
I don't like to do that because this means that I have to remove Windows,
install/try OpenBSD and then re-install Windows. But I have to I guess.

A Y | 25 Feb 09:18 2015
Picon

Re: ppp not found

#dmesg | grep -B 1 ucom
same as your example but different port and different addr.
#ls -l /dev/cuaU*crw-rw---- 1 uucp dialer 66, 128 Feb 24 9:46
/dev/cuaU0crw-rw---- 1 uucp dialer 66, 129 Feb 24 9:46 /dev/cuaU1crw-rw---- 1
uucp dialer 66, 130 Feb 24 9:46 /dev/cuaU2crw-rw---- 1 uucp dialer 66, 131 Feb
24 9:46 /dev/cuaU3
#grep com /var/log/messagesSorry, I couldn't post all the output but I noticed
the following:com0 at isa0 portucom0 at umsm0ucom1 at umsm1ucom2 at umsm2
#ifconfig ppp0 ...umsm0: this device is not using CDC notify message in intr
pipe.Please send your dmesg to <bugs <at> openbsd.org>, thanks

Sam Good | 25 Feb 04:08 2015
Picon

sndio non-blocking with kqueue

From sndio design, it looks like non-blocking (like in sio_write) can be done with poll.
sio_pollfd can be used to obtain the pollfd struct which contains the file descriptor fd.
The fd descriptor seems to be equivalent to the unix stream for the sound playing device.

Would it be possible to use the file descriptor fd with kqueue instead of poll?

(I wanted to adapt an application that uses kqueue for internet/TCP server listening, and be able to add an
audio playing capability; I wanted to try to use kqueue for both. I also wanted to learn more about using kqueue)

I wrote a basic program that gets the sndio playing device file descriptor fd from sio_pollfd, and then adds
that fd to the kevent with filter EVFILT_WRITE.
Then loop with kevent appears to return that the fd is ready for WRITE, and 
the kevent return data shows '4096' (available space in buffer for write)
but sio_write returns with value 0, indicating that no bytes could be written into
the output buffer.

Is there something different about the file descriptor for the sndio output device, that kqueue/kevent
can't be used?

thanks.


Gmane