From: David Mosberger <davidm@napali.hpl.hp.com>
To: linux-ia64@vger.kernel.org
Subject: [Linux-ia64] forwarded message from Russell King
Date: Fri, 15 Mar 2002 19:41:58 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590701905296@msgid-missing> (raw)
[-- Attachment #1: message body text --]
[-- Type: text/plain, Size: 110 bytes --]
I thought I'd forward this bug-report as I won't be able to act on it
before leaving for vacation.
--david
[-- Attachment #2: forwarded message --]
[-- Type: message/rfc822, Size: 3387 bytes --]
From: Russell King <rmk@arm.linux.org.uk>
To: linux-kernel@vger.kernel.org, Linus Torvalds <torvalds@transmeta.com>, Marcelo Tosatti <marcelo@conectiva.com.br>, davej@suse.de
Subject: [PATCH] 2.4 and 2.5: fix /proc/kcore
Date: Fri, 15 Mar 2002 13:28:37 +0000
Message-ID: <20020315132837.D24984@flint.arm.linux.org.uk>
As mentioned on May 11 on LKML, here is a patch to fix /proc/kcore for
architectures which do not have RAM located at physical address 0.
I did say I'd send this on Monday, however I only got feedback from the
ia64 people, and /proc/kcore is already broken on their machines anyway.
(They need to fix it up; they place modules below PAGE_OFFSET, which
breaks our generated ELF core header).
So I've decided to send it a few days early.
Please apply.
--- orig/fs/proc/kcore.c Fri Mar 15 10:14:44 2002
+++ linux/fs/proc/kcore.c Fri Mar 15 11:18:21 2002
@@ -381,8 +381,13 @@
return tsz;
}
#endif
- /* fill the remainder of the buffer from kernel VM space */
- start = (unsigned long)__va(*fpos - elf_buflen);
+
+ /*
+ * Fill the remainder of the buffer from kernel VM space.
+ * We said in the ELF header that the data which starts
+ * at 'elf_buflen' is virtual address PAGE_OFFSET. --rmk
+ */
+ start = PAGE_OFFSET + (*fpos - elf_buflen);
if ((tsz = (PAGE_SIZE - (start & ~PAGE_MASK))) > buflen)
tsz = buflen;
--
Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux
http://www.arm.linux.org.uk/personal/aboutme.html
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
reply other threads:[~2002-03-15 19:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=marc-linux-ia64-105590701905296@msgid-missing \
--to=davidm@napali.hpl.hp.com \
--cc=linux-ia64@vger.kernel.org \
/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