From: Rick Hohensee <humbubba@smarty.smart.net>
To: linux-kernel@vger.kernel.org
Subject: Re: inserting a Forth-like language into the Linux kernel
Date: Sat, 5 May 2001 02:27:05 -0400 (EDT) [thread overview]
Message-ID: <200105050627.CAA21713@smarty.smart.net> (raw)
In 2.4.0-test10, in my kspamd kernel-thread that's like a hollowed-out
kswapd, I have x86 asm code like this...
[enter from in-kernel init]
[open 3 FDs on tty1]
LOOP:
pushf
pusha
call schedule
popa
popf
[ here is some code to use the write syscall to send
one byte to FD 1. A d, for example. ]
jmp LOOP
The d's get written until a syslog happens. If I do do_syslog(6,6,6); in
the C kspamd wrapper code it's about like so...
<gobs of d's>ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
dddddddddddddddINIT: entering runlevel 8
[more normal logging stuff, ext2 warnings and so on]
If I don't do the do_syslog() the same thing happens somewhat earlier,
i.e. on a from-the-kernel-itself syslog.
Boot is normal. I can't shift&pg_up vt1, which normally I can, but I can
switch vt's, email you, etc. /proc/4/status for kspamd shows
Name: kspamd
State: R (running)
Pid: 4
PPid: 1
PIDs 1, 2 and 3 don't have any open FD's. My simplistic wrapper pegs CPU
use at 1.0.
Why don't my d's continue?
Might this be easier to do in a 2.0 kernel?
Rick Hohensee
www.clienux.com
next reply other threads:[~2001-05-05 6:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-05 6:27 Rick Hohensee [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-05-10 6:12 inserting a Forth-like language into the Linux kernel Rick Hohensee
2001-05-06 16:32 Dunlap, Randy
2001-05-06 20:33 ` Rick Hohensee
[not found] <200105060652.f466qwH316756@saturn.cs.uml.edu>
2001-05-06 12:21 ` Rick Hohensee
2001-05-06 3:57 Rick Hohensee
2001-05-06 23:24 ` Jesse Pollard
2001-05-02 2:29 Rick Hohensee
2001-05-02 3:26 ` Alexander Viro
2001-05-02 15:44 ` Rick Hohensee
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200105050627.CAA21713@smarty.smart.net \
--to=humbubba@smarty.smart.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.