Return-Path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.12] helo=sc8-sf-mx2.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1DRG00-0002gg-CP for user-mode-linux-devel@lists.sourceforge.net; Thu, 28 Apr 2005 13:52:40 -0700 Received: from smtp001.mail.ukl.yahoo.com ([217.12.11.32]) by sc8-sf-mx2.sourceforge.net with smtp (Exim 4.41) id 1DRFzz-0005zC-Lw for user-mode-linux-devel@lists.sourceforge.net; Thu, 28 Apr 2005 13:52:40 -0700 From: Blaisorblade Subject: Re: [uml-devel] Hostfs permission checks are all wonky. References: <200503201417.59739.rob@landley.net> <200503241153.56262.blaisorblade@yahoo.it> <200503281448.22110.rob@landley.net> In-Reply-To: <200503281448.22110.rob@landley.net> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200504292253.45547.blaisorblade@yahoo.it> Sender: user-mode-linux-devel-admin@lists.sourceforge.net Errors-To: user-mode-linux-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: The user-mode Linux development list List-Post: List-Help: List-Subscribe: , List-Archive: Date: Fri, 29 Apr 2005 22:53:45 +0200 To: user-mode-linux-devel@lists.sourceforge.net Cc: Rob Landley On Monday 28 March 2005 21:48, Rob Landley wrote: > On Thursday 24 March 2005 05:53 am, Blaisorblade wrote: > > > You mean like this darn bug I've been seeing for weeks? > > > > > > io scheduler noop registered > > > loop: loaded (max 8 devices) > > > Initialized stdio console driver > > > Console initialized on /dev/tty0 > > > VFS: Mounted root (hostfs filesystem). > > > idr_remove called for id=3 which is not allocated. > > > Call Trace: > > > a01fba48: [] > > > a01fba84: [] > > > a01fba9c: [] > > > a01fbb04: [] > > > a01fbb4c: [] > > > a01fbb68: [] > > > a01fbb74: [] > > > a01fbb7c: [] > > > a01fbb80: [] > > > a01fbba8: [] > > > a01fbbc8: [] > > > a01fbbe4: [] > > > a01fbc24: [] > > > a01fbc38: [] > > > a01fbc54: [] > > > a01fbcc0: [] > > > a01fbce4: [] > > > a01fbd14: [] > > > a01fbd20: [] > > > > > > sh-2.05b# > > > > > > It does that all the time. (The id=? bit changes with each run.) > > > Somewhere around here I've got a trace from when I built it with debug > > > symbols, I can get that for you at the same time I try out your > > > patch... > > > > I'd like that a lot, and also your .config - I've never seen that message > > nor I know the users of that kernel internal API (but probably UML itself > > isn't using that). > > VFS: Mounted root (hostfs filesystem). > idr_remove called for id=1 which is not allocated. > Call Trace: > a086fa1c: [] sub_remove+0xe0/0xe9 > a086fa58: [] idr_remove+0x1f/0x8b > a086fa74: [] release_dev+0x64f/0x665 > a086fae0: [] init_dev+0x37e/0x472 > a086fb28: [] tty_open+0x1d1/0x300 > a086fb38: [] kobject_get+0x14/0x1c > a086fb48: [] cdev_get+0xb/0xe > a086fb54: [] exact_lock+0xb/0x17 > a086fb5c: [] kobj_lookup+0x90/0xba > a086fb6c: [] exact_match+0x0/0x8 > a086fb88: [] chrdev_open+0xcb/0xe8 > a086fbac: [] dentry_open+0xa7/0x151 > a086fbcc: [] filp_open+0x40/0x45 > a086fc0c: [] get_unused_fd+0x55/0x9d > a086fc24: [] sys_open+0x32/0x6c > a086fc44: [] execute_syscall_tt+0xd3/0xe0 > a086fcb4: [] syscall_handler_tt+0x3e/0x66 > a086fcdc: [] sig_handler_common_tt+0x93/0xe4 > a086fd10: [] sig_handler+0x18/0x27 > a086fd20: [] __restore+0x0/0x8 While doing other stuff, I've understood how UML reaches that code: hostfs_read_sb->get_sb_nodev->set_anon_super()->idr_XXX. However, I can't understand why the hell UML could have bugs in this path. Probably running it with a root hostfs will trigger this, but for now I haven't the time to play with this. Also, I've seen somebody else with a "idr" problem, related to devpts (recent posts, titled "ssh again" IIRC). Still I don't understand what's going on. -- Paolo Giarrusso, aka Blaisorblade Skype user "PaoloGiarrusso" Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade ------------------------------------------------------- SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel