lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4474723F928CA640ADB2172099AEAB111B603F@exalfa.stromtelecom.cz>
Date:	Mon, 21 Jul 2008 17:24:50 +0200
From:	"Filka Michal" <Michal.Filka@...ronicsts.com>
To:	<netdev@...r.kernel.org>
Subject: kernel newbie question on kernel panic

Hi all,

I try to create my first kernel module.
I have following problem. I have a function rp ... interesting part
follows (just some initialization is ommited - nothing special - the
function is just a skeleton)

int rp( struct sk_buff ** skb)
{
	_filter_rule * rule = NULL;

...

	rule = placebo();
-->	if( rule == NULL)
		printk( KERN_DEBUG "null rule\n");
	return 1;
}

The rp is called (subsequently) in netfilter (prerouting) hook context,
so as far as I know it runs in a SoftIRQ.

The placebo function does nothing - just returns NULL. The problem is in
line selected (-->).Everything goes until I try to somehow access
returned value. The access raises kernel panic, seems that some page
fault happent. If I comment out the line bellow selected (the test), no
kernel panic happens.

Questions are:
- why the page fault happens (some trouble in memory usage, or so?)
- how to avoid it?

Thanks for any help
Michal Filka
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ