Re: Race condition in module load causing undefined symbols

From: Stephen Lord (lord_at_xfs.org)
Date: 06/11/05

  • Next message: Martin J. Bligh: "Re: 2.6.12-rc6-mm1"
    Date:	Fri, 10 Jun 2005 22:30:46 -0500
    To: Andrew Morton <akpm@osdl.org>
    
    

    Andrew Morton wrote:
    > Stephen Lord <lord@xfs.org> wrote:
    >
    >>I am having troubles getting any recent kernel to boot successfully
    >> on one of my machines, a generic 2.6GHz P4 box with HT enabled
    >> running an updated Fedora Core 3 distro. This is present in
    >> 2.6.12-rc6. It does not manifest itself with the Fedora Core
    >> kernels which have identical initrd contents as far as the
    >> init script and the set of modules included goes.
    >>
    >> The problem manifests itself as various undefined symbols from
    >> module loads.
    >
    >
    > Peculiar. Module loading is all synchronous, isn't it?
    >

    Well, things are getting more bizarre, adding sleeps between
    module loads cures the problem with missing symbols. I then
    run into a problem with device mapper/lvm which seems to be
    having problems setting up devices. In this section of
    the init script:

    umount /sys
    echo Mounting root filesystem
    mount -o defaults --ro -t ext3 /dev/root /sysroot
    mount -t tmpfs --bind /dev /sysroot/dev
    echo Switching to new root
    switchroot /sysroot
    umount /initrd/dev

    The correct number of volumes are found, but adding a showlabels
    command to the init script fails to display them, it spits out
    errors about readdir failures in /dev/Volume00

    The umount of /sys fails, the root mount fails and obviously, the
    switchroot then fails.

    I tried using the same config options as the redhat supplied
    kernel without any success, this still has module symbol
    problems.

    I am baffled, but it looks like it is not a symbol table problem.

    Steve

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


  • Next message: Martin J. Bligh: "Re: 2.6.12-rc6-mm1"

    Relevant Pages

    • fails to make a bootable initramfs
      ... I have a root partition on lvm which is encrypted, ... installation. ... It fails saying "Begin: Waiting for root filesystem...". ... I then moved the valid initrd from the previous kernel out of the way ...
      (Debian-User)
    • Re: Etch on USB-HD wont boot - race condition?
      ... notebook but the kernel cannot find the root filesystem. ... I had an initial problem that I think I got solved: On boot, ... Begin: Mounting root file system... ... SCSI device sda: 78140159 512-byte hdwr sectors ...
      (Debian-User)
    • Re: Flaws in recent Linux kernels
      ... Many distributions include other programs which may be ... suitable for exploiting the kernel vulnerability. ... possible to install third-party SUID root programs which may be used. ... A new revision of the Openwall Linux kernel patch, 2.2.19-ow3, is now ...
      (Bugtraq)
    • Re: Beige PowerMac G3/266 trouble
      ... I downloaded the minimal "netinst" install CD image from ... The kernel initially seemed to load OK, and told me that it had found the ... At this point it threw up an error saying it couldn't open the root device ... request_module: runaway loop modprobe binfmt-0000 ...
      (comp.os.linux.powerpc)
    • Re: 2.6.9-rc2-mm1
      ... Fails to boot on my Altix. ... diff between 2.6.9-rc1-mm4 and 2.6.9-rc2 indicates some kind of PCI, ... Mounted root readonly. ... -doneshowconsole: Warning: the ioctl TIOCGDEV is not known by the kernel ...
      (Linux-Kernel)