linux-um archives
 help / color / mirror / Atom feed
From: BlaisorBlade <blaisorblade_spam@yahoo.it>
To: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] Kernel mode fault at addr 0x48965000, ip 0x400e51a4 (fwd)
Date: Tue, 6 Jan 2004 20:00:08 +0100	[thread overview]
Message-ID: <200401062000.08665.blaisorblade_spam@yahoo.it> (raw)
In-Reply-To: <Pine.LNX.4.58.0401070219030.1840@boston.corp.fedex.com>

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

      parent reply	other threads:[~2004-01-06 19:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200401062000.08665.blaisorblade_spam@yahoo.it \
    --to=blaisorblade_spam@yahoo.it \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox