Re: Filesystem corruption on OpenBSD routers after power outage?

2019-06-17 Thread Theo de Raadt
Ted Unangst wrote: > Theo de Raadt wrote: > > How does sync() fix this? Please explain this. Look at the source > > code. > > > > sync() is an asyncronous call requesting syncronization, and once > > it has marked the blocks that should be pushed, it returns before > > the work has been done.

Re: Filesystem corruption on OpenBSD routers after power outage?

2019-06-17 Thread Ted Unangst
Theo de Raadt wrote: > How does sync() fix this? Please explain this. Look at the source > code. > > sync() is an asyncronous call requesting syncronization, and once > it has marked the blocks that should be pushed, it returns before > the work has been done. Ah, indeed. > > 2. cp could do

Re: Filesystem corruption on OpenBSD routers after power outage?

2019-06-17 Thread Theo de Raadt
Ted Unangst wrote: > Mogens Jensen wrote: > > Even after many tries, I have not yet been able to corrupt the > > filesystem so fsck cannot repair it without manual intervention. > > However, if power is removed while the 'reorder_kernel' script runs, > > the system will become completely

Re: Filesystem corruption on OpenBSD routers after power outage?

2019-06-17 Thread Ted Unangst
Mogens Jensen wrote: > Even after many tries, I have not yet been able to corrupt the > filesystem so fsck cannot repair it without manual intervention. > However, if power is removed while the 'reorder_kernel' script runs, > the system will become completely unbootable. I could do this multiple

Re: relayd shows ssh sessions as idle

2019-06-17 Thread Sebastian Benoit
Joel Carnat(j...@carnat.net) on 2019.06.12 16:10:25 +0200: > Hi, > > I have configured relayd(8) on my vmd(8) host so that I can connect to > the running VMs using SSH. > > Using relayctl(8), I can see that those sessions have the same value for > age and idle ; even when something happens in

Re: Filesystem corruption on OpenBSD routers after power outage?

2019-06-17 Thread Mogens Jensen
Since posting this question I have been trying to intentionally corrupt the router filesystem, by simulating power outages while writing files and various other things. Even after many tries, I have not yet been able to corrupt the filesystem so fsck cannot repair it without manual intervention.

Re: IPTV handling on OpenBSD soft router

2019-06-17 Thread Peer
Could it be that your IPTV is using a non-IP protocoll, e.g. an ethertype which is not IPv4 nor IPv6, but something different? Like Powerline, G.hn or so? -- And which is blocked by pf?There are several protocol and type fields on the different layers (MAC, IP, TCP/UDP), and I recently noticed

Re: hardware security (was Re: Installing OpenBSD on Supermicro A2SDi-4C-HLN4F

2019-06-17 Thread Joseph A Borg
apparently the F-35 project sources motherboards for key instrumentation from China. This is a new economic cold war. Do what you feel best but a big part of this is politics. Maybe the list should qualify when a mail thread is verging on personal politics and out of strictly technical