public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@zip.com.au>
To: Keith Owens <kaos@ocs.com.au>
Cc: Linux Kernel Maillist <linux-kernel@vger.kernel.org>
Subject: Re: Hardwired drivers are going away?
Date: Sun, 20 Jan 2002 18:04:00 -0800	[thread overview]
Message-ID: <3C4B7710.6C518006@zip.com.au> (raw)
In-Reply-To: Your message of "Sun, 20 Jan 2002 17:30:12 -0800." <3C4B6F24.C2750F51@zip.com.au> <32505.1011578008@kao2.melbourne.sgi.com>

Keith Owens wrote:
> 
> On Sun, 20 Jan 2002 17:30:12 -0800,
> Andrew Morton <akpm@zip.com.au> wrote:
> >I suspect none of these "Heads" spend much time in protracted
> >email debug sessions.  Because the *first* thing you do is
> >ask the tester to compile the relevant driver into the
> >kernel.
> >
> >The problems which the removal of this option will cause include:
> >
> >1: Inability to look up symbols in the kernel elf image.
> >2: Breaks the kernel profiler
> >3: breaks kgdb
> >4: breaks ksymoops.
> >
> >How often have we seen nonsensical backtraces here because
> >modules were involved?   Possibly we can include a table
> >of module base addresses in the Oops output and teach ksymoops
> >about it.
> 
> You see nonsensical backtraces because people persist in using the oops
> decode option of klogd which is broken when faced with modules.  Turn
> off klogd oops (klogd -x) and you get a raw backtrace which ksymoops
> can handle.

ksymoops doesn't know what modules were loaded at the time
of the crash, and it doesn't know where they were loaded.

The `klogd -x' problem has been with us for *years* and
distributors still persist in turning it on.


>  Guess why these entries are in /proc/ksyms?
> 
> c48a2300 __insmod_3c589_cs_S.bss_L4     [3c589_cs]
> c48a0000 __insmod_3c589_cs_O/lib/modules/2.4.17-xfs/kernel/drivers/net/pcmcia/3c589_cs.o_M3C332CFF_V132113      [3c589_cs]
> c48a22a0 __insmod_3c589_cs_S.data_L96   [3c589_cs]
> c48a1820 __insmod_3c589_cs_S.rodata_L1152       [3c589_cs]
> c48a0060 __insmod_3c589_cs_S.text_L6064 [3c589_cs]
> 
> ksymoops uses the __insmod entries to work out exactly where each
> module is, it gives an accurate backtrace with modules.  man insmod for
> details.

It assumes too much.  Arjan has a kksymoops thingy which does the symbol
resolution at crash-time.  This seems much more reliable to me.  It also
handles the common case where the running vmlinux/System.map/etc no longer
exist.

> Kernel debuggers like kgdb and kdb use kallsyms which has full support
> for modules.  kgdb can also use the __insmod entries in /proc/ksyms to
> tell gdb where each module was loaded.
> 
> ksymoops has a save map option (-s) which writes out the combined
> system map, including the kernel and all symbols from all modules.
> 
> Sure, a dynamic system requires a little more work, but it has all been
> done.  Just kill the broken klogd code so it stops corrupting log data.

Keith, I have spent a *lot* of time working weird kernel bugs
with people via email.  Usually, things peter out simply because
the other party lacks the expertise or time to keep on doing
things.  So the bug doesn't get fixed.

I would prefer that all this become easier, simpler and more reliable.
We need a damn good reason for deprecating statically linked kernels
and certainly none has been presented yet.

-

  reply	other threads:[~2002-01-21  2:10 UTC|newest]

Thread overview: 97+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <fa.dardpev.1m1emjp@ifi.uio.no>
2002-01-14 10:14 ` ISA hardware discovery -- the elegant solution Giacomo Catenazzi
2002-01-14 16:16   ` Eric S. Raymond
2002-01-14 16:38     ` Giacomo Catenazzi
2002-01-14 16:34       ` Eric S. Raymond
2002-01-14 17:48     ` Alan Cox
2002-01-14 17:55       ` Mr. James W. Laferriere
2002-01-14 18:08         ` Alan Cox
2002-01-14 18:10           ` Hardwired drivers are going away? Eric S. Raymond
2002-01-14 18:50             ` David Lang
2002-01-14 19:04               ` Alan Cox
2002-01-14 18:57                 ` David Lang
2002-01-14 19:03                   ` Andrew Pimlott
2002-01-14 19:21                   ` Alan Cox
2002-01-15 10:45                   ` Horst von Brand
2002-01-15 11:13                     ` crispin
2002-01-15 14:25                     ` David Lang
2002-01-14 19:00                 ` Mr. James W. Laferriere
2002-01-14 19:17                   ` Alan Cox
2002-01-14 19:14                     ` Mr. James W. Laferriere
2002-01-14 19:37                       ` Alan Cox
2002-01-14 20:28                         ` Mr. James W. Laferriere
2002-01-14 19:44                     ` David Lang
2002-01-14 20:09                       ` Alexander Viro
2002-01-14 20:49                         ` Chris Friesen
2002-01-14 20:55                           ` Alexander Viro
2002-01-14 20:51                       ` Ian Molton
2002-01-14 22:11                         ` David Lang
2002-01-14 23:12                           ` Brian Gerst
2002-01-14 23:17                             ` David Lang
2002-01-14 23:22                           ` Ian Molton
2002-01-15  0:40                             ` H. Peter Anvin
2002-01-14 19:54                     ` David Lang
2002-01-15 17:27                     ` Aaron Lehmann
2002-01-15 17:47                       ` Alexander Viro
2002-01-15 19:48                       ` Alan Cox
2002-01-18 12:39                   ` Florian Weimer
2002-01-18 22:20                     ` Mr. James W. Laferriere
2002-01-18 23:22                       ` Keith Owens
2002-01-20 23:20                         ` Frank van de Pol
2002-01-21  0:54                           ` Bruce Harada
2002-01-21  3:49                             ` Andreas Ferber
2002-01-21  4:45                               ` Bruce Harada
2002-01-21  5:12                                 ` Andreas Ferber
2002-01-21  1:06                         ` Anton Altaparmakov
2002-01-21  1:07                           ` Mr. James W. Laferriere
2002-01-21  1:30                             ` Andrew Morton
2002-01-21  1:53                               ` Keith Owens
2002-01-21  2:04                                 ` Andrew Morton [this message]
2002-01-21  2:25                                   ` Keith Owens
2002-01-21  2:56                                     ` Andrew Morton
2002-01-21  3:43                                       ` Keith Owens
2002-01-21  4:24                                         ` Andrew Morton
2002-01-21  3:44                                     ` yodaiken
2002-01-21 20:57                                       ` Kai Henningsen
2002-01-21  2:13                                 ` John Levon
2002-01-21  2:31                                   ` Keith Owens
2002-01-21 23:52                                     ` Thomas Zimmerman
2002-01-21  9:34                               ` Horst von Brand
2002-01-21 14:29                                 ` John Levon
2002-01-21  1:31                           ` Anton Altaparmakov
2002-01-14 19:27               ` Alexander Viro
2002-01-15 17:24               ` Aaron Lehmann
2002-01-15 18:17                 ` David Lang
2002-01-15 19:25                   ` Aaron Lehmann
2002-01-15 19:44                 ` Kai Henningsen
2002-01-14 18:54             ` Mr. James W. Laferriere
2002-01-14 18:56             ` Alan Cox
2002-01-14 18:39               ` Eric S. Raymond
2002-01-14 19:09             ` Alexander Viro
2002-01-14 14:19               ` Rob Landley
2002-01-14 22:33                 ` Greg KH
2002-01-15 11:35                 ` Keith Owens
2002-01-15 15:34                   ` Oliver Xymoron
2002-01-14 19:24               ` Alan Cox
2002-01-14 20:17               ` Eric S. Raymond
2002-01-14 14:57                 ` Rob Landley
2002-01-14 20:51                 ` David Lang
2002-01-14 22:18                 ` Oliver Xymoron
2002-01-15 19:20                 ` Horst von Brand
2002-01-16  9:00                   ` Eric S. Raymond
2002-01-14 23:12               ` Rusty Russell
2002-02-09  0:19             ` Dr. Kelsey Hudson
2002-01-14 17:59       ` ISA hardware discovery -- the elegant solution Eric S. Raymond
2002-01-14 18:35         ` Alan Cox
     [not found] <20020115025840.11509.qmail@science.horizon.com.suse.lists.linux.kernel>
2002-01-15 12:16 ` Hardwired drivers are going away? Andi Kleen
2002-01-15  2:58 peter
2002-01-15 12:44 ` Alan Cox
2002-01-15 12:39   ` David S. Miller
2002-01-15 18:39     ` Rob Landley
     [not found] <mailman.1011034621.1626.linux-kernel2news@redhat.com>
2002-01-14 23:33 ` Pete Zaitcev
     [not found] <fa.g055bvv.qmq0hk@ifi.uio.no>
     [not found] ` <ksahkuv.tg60gl@ifi.uio.no>
2002-01-14 22:22   ` Chris Adams
  -- strict thread matches above, loose matches on Subject: below --
2001-08-05  0:39 module unresolved symbols rich+ml
2001-08-05  0:49 ` Jesse Pollard
2001-08-05  0:51 ` Steven Walter
2001-08-05  1:48 ` Keith Owens
2001-08-05 16:06   ` Horst von Brand
2001-08-06 11:18     ` Keith Owens

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=3C4B7710.6C518006@zip.com.au \
    --to=akpm@zip.com.au \
    --cc=kaos@ocs.com.au \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox