Re: reference_init.pl for Linux 2.6

From: Randy.Dunlap
Date: Thu Feb 19 2004 - 12:44:15 EST


On Thu, 19 Feb 2004 23:00:48 +1100 Keith Owens <kaos@xxxxxxxxxx> wrote:

| On Wed, 18 Feb 2004 18:23:13 -0800,
| "Randy.Dunlap" <rddunlap@xxxxxxxx> wrote:
| >I have updated Keith Owens "reference_init.pl" script for
| >Linux 2.6. It searches for code that refers to other code
| >sections that they should not reference, such as init code
| >calling exit code or v.v.
| >script for Linux 2.6 is at:
| >http://developer.osdl.org/rddunlap/scripts/reference_init26.pl
|
| You added '$from !~ /\.data/'. Any references from the .data section
| to .init or .exit text should be checked. It is usually a struct
| containing a pointer to code that will be discarded, and is dangerous.
|
| There is also a spurious comment line,
| # $from !~ $line && $line !~ $from &&
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Both fixed and reposted.
The output probably has a bit more false positives reported now.

script:
http://developer.osdl.org/rddunlap/scripts/reference_init26.pl

output on linux-2.6.3 with CONFIG_HOTPLUG=n and very few modules:
http://developer.osdl.org/rddunlap/scripts/badrefs.out


Thanks, Keith.
--
~Randy
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/