Subject: Re: a bug in systrace to crash the system
To: Ossi Herrala <oherrala@ees2.oulu.fi>
From: Charles Blundell <cb@kittenz.org>
List: current-users
Date: 11/16/2002 19:21:49
hello,

on Sat, Nov 16, 2002 at 07:30:50PM +0200, Ossi Herrala wrote:
> As an accident I found a nice "feature" to crash my system.
>
> mkdir ~/.systrace
> dd if=/dev/urandom of=~/.systrace/bin_ls bs=500 count=1
> systrace ls
> 
> will do it. I'm running
> 
> NetBSD txpo 1.6J NetBSD 1.6J (GENERIC.MP) #0: Mon Oct 28 00:12:10 EET 2002
> 
> Can someone test this also so it's not only in my system?

i get (uniprocessor):

$ uname -srm
NetBSD 1.6I i386
$ ident /sys/kern/kern_systrace.c
$NetBSD: kern_systrace.c,v 1.18 2002/10/11 21:54:57 provos Exp $
$ dd if=/dev/urandom of=.systrace/bin_ls bs=500 count=1
1+0 records in
1+0 records out
500 bytes transferred in 0.003 secs (166666 bytes/sec)
$ systrace ls
.systrace/bin_ls:1: syntax error.
[ui kicks in for mmap(2) as expected]

have you got a back trace from ddb? does systrace work normally otherwise?