* [uml-devel] ubd=mmap problem
@ 2003-12-25 13:03 Sven 'Darkman' Michels
2003-12-26 18:36 ` BlaisorBlade
2004-01-06 2:59 ` [uml-devel] Re: [uml-user] " Jeff Dike
0 siblings, 2 replies; 4+ messages in thread
From: Sven 'Darkman' Michels @ 2003-12-25 13:03 UTC (permalink / raw)
To: UML devel list, user-mode-linux-user
Hi there,
i started uml with udb=mmap, the box runs fine but today i
noticed that the box was terminated after a nightly cron
run inside the uml. While trying to figure out what the
problem was, i noticed that the uml can't reboot anymore
cause it hangs in an endless loop when unmounting the devices.
all i saw was:
map : /proc/mm map failed, err = 9
map : /proc/mm map failed, err = 9
map : /proc/mm map failed, err = 9
map : /proc/mm map failed, err = 9
map : /proc/mm map failed, err = 9
map : /proc/mm map failed, err = 9
this was with 2.4.23 and latest uml 2.4.22 patch. So i thought
its an problem with the patches and builded a fres 2.4.23 with
the latest -1 patch. But the problem is still there. When i
remove the udb=mmap from my startup line, uml works and reboots
like expected. Anyone had that too or can tell me what the
Problem is? ;) The host is running 2.4.22 with skas patch.
Regards,
Sven
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [uml-devel] ubd=mmap problem
2003-12-25 13:03 [uml-devel] ubd=mmap problem Sven 'Darkman' Michels
@ 2003-12-26 18:36 ` BlaisorBlade
2003-12-27 2:46 ` Jeff Chua
2004-01-06 2:59 ` [uml-devel] Re: [uml-user] " Jeff Dike
1 sibling, 1 reply; 4+ messages in thread
From: BlaisorBlade @ 2003-12-26 18:36 UTC (permalink / raw)
To: user-mode-linux-devel
Alle 14:03, giovedì 25 dicembre 2003, Sven 'Darkman' Michels ha scritto:
> Hi there,
>
> i started uml with udb=mmap, the box runs fine but today i
> noticed that the box was terminated after a nightly cron
> run inside the uml.
This first problem is a known one. Did you mount the host root with hostfs
inside Uml? If yes, check /var/log/messages and you should see an Oops from
the host kernel. If that happens, apply on the host the patch in this thread
on 10 Dec 2003:
[uml-devel] [PATCH] fix for: Host panic when UML reads host /dev/shm
For the second I can't help you, probably it is a still unknown bug, someone
else will help you or post a fix.
--
cat <<EOSIGN
Paolo Giarrusso, aka Blaisorblade
Linux Kernel 2.4.21/2.6.0-test on an i686; Linux registered user n. 292729
EOSIGN
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id\x1278&alloc_id371&opÌk
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [uml-devel] ubd=mmap problem
2003-12-26 18:36 ` BlaisorBlade
@ 2003-12-27 2:46 ` Jeff Chua
0 siblings, 0 replies; 4+ messages in thread
From: Jeff Chua @ 2003-12-27 2:46 UTC (permalink / raw)
To: BlaisorBlade; +Cc: user-mode-linux-devel
On Fri, 26 Dec 2003, BlaisorBlade wrote:
> This first problem is a known one. Did you mount the host root with hostfs
> inside Uml? If yes, check /var/log/messages and you should see an Oops from
> the host kernel. If that happens, apply on the host the patch in this thread
> on 10 Dec 2003:
>
> [uml-devel] [PATCH] fix for: Host panic when UML reads host /dev/shm
Can you please repost this patch?
Thanks,
Jeff
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* [uml-devel] Re: [uml-user] ubd=mmap problem
2003-12-25 13:03 [uml-devel] ubd=mmap problem Sven 'Darkman' Michels
2003-12-26 18:36 ` BlaisorBlade
@ 2004-01-06 2:59 ` Jeff Dike
1 sibling, 0 replies; 4+ messages in thread
From: Jeff Dike @ 2004-01-06 2:59 UTC (permalink / raw)
To: Sven 'Darkman' Michels; +Cc: UML devel list, user-mode-linux-user
sven@darkman.de said:
> i noticed that the uml can't reboot anymore cause it hangs in an
> endless loop when unmounting the devices. all i saw was:
> map : /proc/mm map failed, err = 9
I take it this is reproducable? ubd-mmap has been stable here, so there's
something about what you're doing that's sending it off the deep end.
The best way I can think to debug it is to stick printks where /proc/mm and
ubd devices get opened and closed showing what file descriptor is involved.
Apparently, the ubd driver is closing a file descriptor that UML thinks is
a /proc/mm descriptor.
So, could you add printks for the following values in the following places -
fd in arch/um/kernel/skas/process.c:get_mm() after the os_open_file
mm->context.skas.mm_fd in arch/um/kernel/skas/mmu.c:destroy_context_skas()
fd in arch/um/drivers/ubd_user.c:open_ubd_file() before the os_lock_file
dev->fd and dev->cow.fd in arch/um/drivers/ubd_kern.c:ubd_close() before
their respective calls to os_close_file
Make sure that logging is set up so that printks show up in the messages file
or on the console so that you don't lose any of it.
What I think you're looking for is ubd_close closing a /proc/mm descriptor.
This would explain things going to hell when devices are being unmounted.
I'm a little suspicious of the fact that ubd_close doesn't set the descriptors
to -1 after closing them, but I don't see a bug there offhand.
Jeff
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-01-06 2:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-25 13:03 [uml-devel] ubd=mmap problem Sven 'Darkman' Michels
2003-12-26 18:36 ` BlaisorBlade
2003-12-27 2:46 ` Jeff Chua
2004-01-06 2:59 ` [uml-devel] Re: [uml-user] " Jeff Dike
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.