All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [uml-devel] Kernel mode fault at addr 0x48965000, ip 0x400e51a4 (fwd)
@ 2004-01-06 18:23 Jeff Chua
  2004-01-06 18:29 ` Jeff Chua
  2004-01-06 19:00 ` BlaisorBlade
  0 siblings, 2 replies; 3+ messages in thread
From: Jeff Chua @ 2004-01-06 18:23 UTC (permalink / raw)
  To: Jeff Dike; +Cc: UserModeLinux, Johannes Formann


running with "strace -f klogd" ...

munmap(0x4013b000, 4096)                = 0
get_kernel_syms(0)                      = 956
brk(0x80a9000)                          = 0x80a9000
get_kernel_syms(0x8092118)              = 956
open("/dev/kmem", O_RDONLY)             = 3
_llseek(0x3, 0, 0xa8965000, 0xbffff934, 0) = 0
read(3, Kernel panic: Kernel mode fault at addr 0x48965000, ip 0x400df1a4


It seems to break while reading /dev/kmem

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] 3+ messages in thread

* Re: [uml-devel] Kernel mode fault at addr 0x48965000, ip 0x400e51a4 (fwd)
  2004-01-06 18:23 [uml-devel] Kernel mode fault at addr 0x48965000, ip 0x400e51a4 (fwd) Jeff Chua
@ 2004-01-06 18:29 ` Jeff Chua
  2004-01-06 19:00 ` BlaisorBlade
  1 sibling, 0 replies; 3+ messages in thread
From: Jeff Chua @ 2004-01-06 18:29 UTC (permalink / raw)
  To: Jeff Dike; +Cc: UserModeLinux, Johannes Formann


Again, just to point out that uml-patch-2.4.22-5 _DOES_NOT_ have such
problem. Patches after uml-patch-2.4.22-5 all have this same problem.



Thanks,
Jeff


On Wed, 7 Jan 2004, Jeff Chua wrote:

>
> running with "strace -f klogd" ...
>
> munmap(0x4013b000, 4096)                = 0
> get_kernel_syms(0)                      = 956
> brk(0x80a9000)                          = 0x80a9000
> get_kernel_syms(0x8092118)              = 956
> open("/dev/kmem", O_RDONLY)             = 3
> _llseek(0x3, 0, 0xa8965000, 0xbffff934, 0) = 0
> read(3, Kernel panic: Kernel mode fault at addr 0x48965000, ip 0x400df1a4
>
>
> It seems to break while reading /dev/kmem
>
> 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
>


-------------------------------------------------------
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] 3+ messages in thread

* Re: [uml-devel] Kernel mode fault at addr 0x48965000, ip 0x400e51a4 (fwd)
  2004-01-06 18:23 [uml-devel] Kernel mode fault at addr 0x48965000, ip 0x400e51a4 (fwd) Jeff Chua
  2004-01-06 18:29 ` Jeff Chua
@ 2004-01-06 19:00 ` BlaisorBlade
  1 sibling, 0 replies; 3+ messages in thread
From: BlaisorBlade @ 2004-01-06 19:00 UTC (permalink / raw)
  To: user-mode-linux-devel

Alle 19:23, martedì 6 gennaio 2004, Jeff Chua ha scritto:

> read(3, Kernel panic: Kernel mode fault at addr 0x48965000, ip 0x400df1a4
> It seems to break while reading /dev/kmem
This is likely, since a change to the /dev/kmem driver is in the patch 
starting with 2.4.22-6 (not in -5). It was needed to fix another bug. By the 
way, what is your exact command line? I've a suspect... (but I've been 
careful enough).

diff -Naur -X ../exclude-files orig/drivers/char/mem.c um/drivers/char/mem.c
--- orig/drivers/char/mem.c     2003-08-29 17:25:51.000000000 -0400
+++ um/drivers/char/mem.c       2003-11-09 03:17:45.000000000 -0500
@@ -209,6 +209,8 @@
        return 0;
 }

+extern unsigned long uml_physmem;
+
 /*
  * This function reads the *virtual* memory as seen by the kernel.
  */
@@ -219,7 +221,8 @@
        ssize_t read = 0;
        ssize_t virtr = 0;
        char * kbuf; /* k-addr because vread() takes vmlist_lock rwlock */
-
+
+       p += uml_physmem;
        if (p < (unsigned long) high_memory) {
                read = count;
                if (count > (unsigned long) high_memory - p)
@@ -268,7 +271,7 @@
                }
                free_page((unsigned long)kbuf);
        }
-       *ppos = p;
+       *ppos = p - uml_physmem;
        return virtr + read;
 }


-- 
cat <<EOSIGN
Paolo Giarrusso, aka Blaisorblade
Linux Kernel 2.4.23/2.6.0 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] 3+ messages in thread

end of thread, other threads:[~2004-01-06 19:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-06 18:23 [uml-devel] Kernel mode fault at addr 0x48965000, ip 0x400e51a4 (fwd) Jeff Chua
2004-01-06 18:29 ` Jeff Chua
2004-01-06 19:00 ` BlaisorBlade

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.