mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Bug in do_mounts.c/namespace.c/devfs ?
@ 2002-03-10 19:31 Paul P Komkoff Jr
  2002-03-10 21:13 ` Alexander Viro
  0 siblings, 1 reply; 2+ messages in thread
From: Paul P Komkoff Jr @ 2002-03-10 19:31 UTC (permalink / raw)
  To: linux-kernel; +Cc: Richard Gooch

This is clearly reproducible here.
Let's have 2.4.19-pre2-ac{2,3,maybe 4}.
Let compile in devfs support but dont enable mount on boot etc.

After boot we will have in /proc/mounts the following line
devfs /dev devfs
(other mounts)

Digging into do_mounts.c brought me to following code fragments:


                        do_devfs = 1;
                }
        }
        sys_chdir("/dev");
        sys_unlink("root");
        sys_mknod("root", S_IFBLK|0600, kdev_t_to_nr(ROOT_DEV));
        if (do_devfs)
                sys_mount("devfs", ".", "devfs", 0, NULL);

followed then by ...

done:
        putname(fs_names);
        if (do_devfs)
                sys_umount(".", 0);

I am unfamiliar with devfs and vfs code so my bug-hunting go very slowly.
Maybe somebody will point into right direction ?

The only thing I can add that in 2.4.17 all was fine.

-- 
Paul P 'Stingray' Komkoff 'Greatest' Jr // (icq)23200764 // (irc)Spacebar
  PPKJ1-RIPE // (smtp)i@stingr.net // (http)stingr.net // (pgp)0xA4B4ECA4

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-03-10 21:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-10 19:31 Bug in do_mounts.c/namespace.c/devfs ? Paul P Komkoff Jr
2002-03-10 21:13 ` Alexander Viro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®