Dear friends, dear Jean,
I attached archive with 3 tests for IrDA statck
(I want to be regression tests :). The tst3.c=20
which try to bind() 256 irda SOCK_STREAM sockets
make linux kernel to go crazy.
WARNING! Run sync; sync; sync; before try!
After running please prepare to reboot soon.
The kernel still resist some more commands.
if you run:
cat /proc/net/irda/irias you obtain notthing
NOTE1: The kernel get a quake even bind()-ing
NOTE2: making sockets without slowing with usleep()
will make IAS entries with same ID because jiffies
are used to provide random IDs. For such great=20
Linux kernel we need to implement true routines=20
that ensure ID's are uniques and are reused.
NOTE3: we need to restrict the number of IAS=20
entries a user may make, otherwise it can
artificially use kernel memory. I can read=20
from my mind about IAS specs, but I think
there are not restriction for number of=20
IAS entries and attributes.
Claudiu Costin, claudiuc@...
Linux-KDE Romania http://www.ro.kde.org