From: KOVACS Krisztian <hidden@balabit.hu>
To: emmanuel@netlab.hut.fi
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: My first target module is a fiasco.
Date: Mon, 15 Dec 2003 16:36:29 +0100 [thread overview]
Message-ID: <3FDDD4FD.6080204@balabit.hu> (raw)
In-Reply-To: <3FDDD174.5050409@netlab.hut.fi>
Hi,
Emmanuel Guiton wrote:
> After having written a first version of a new target module, I tried to
> test it. Well... I does not look promising: segmentation fault, the
> detail follows. However, what disturbs me is that I commented out
> totally my module, leaving only some printk to have some feedback and
> the backbone of the module: register, unregister, the static struct
> ipt_target, and the - empty - functions that go along with it.
> To summarize: empty module; segmentation fault.
Could you show us the code of the init function, and the static
structure it registers? However, it looks like the kernel thinks your
module failed to load (its __init function did not return 0), however, it
has successfully registered its target... This is bad, since the memory
allocated for your module is freed when your __init function returns any
value other than zero.
> Dec 15 16:53:34 pc104 insmod:
> /lib/modules/2.4.23/kernel/net/ipv4/netfilter/ipt_SYNDIS.o: init_module:
> Device or resource busy
> Dec 15 16:53:34 pc104 insmod: Hint: insmod errors can be caused by
> incorrect module parameters, including invalid IO or IRQ
> parameters. You may find more information in syslog or the output
> from dmesg
> Dec 15 16:53:34 pc104 insmod:
> /lib/modules/2.4.23/kernel/net/ipv4/netfilter/ipt_SYNDIS.o: insmod
> ipt_SYNDIS failed
> Dec 15 16:53:34 pc104 kernel: SYNDIS: target registered.<1>Unable to
> handle kernel paging request at virtual address c884c348
--
Regards,
Krisztian KOVACS
next prev parent reply other threads:[~2003-12-15 15:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-15 15:21 My first target module is a fiasco Emmanuel Guiton
2003-12-15 15:36 ` KOVACS Krisztian [this message]
2003-12-15 15:48 ` Emmanuel Guiton
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=3FDDD4FD.6080204@balabit.hu \
--to=hidden@balabit.hu \
--cc=emmanuel@netlab.hut.fi \
--cc=netfilter-devel@lists.netfilter.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.