From: BlaisorBlade <blaisorblade_spam@yahoo.it>
To: Jeff Dike <jdike@addtoit.com>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] Re: Hostfs and Humfs
Date: Fri, 9 Apr 2004 19:54:54 +0200 [thread overview]
Message-ID: <200404091954.54804.blaisorblade_spam@yahoo.it> (raw)
In-Reply-To: <200404051840.i35IeHhZ029055@ccure.user-mode-linux.org>
Alle 20:40, lunedì 5 aprile 2004, hai scritto:
> BTW, if you do IRC, you will have a better idea of what exactly I'm doing
> if you hang on the UML IRC channel - #uml on oftc.net. I'm there quite
> often, and I tend to mumble about what I'm working on at the moment.
>
> Also, would you be interested in being able to put downloads on the UML
> site rather than having them on user-linux-linux.org, which isn't as
> visible?
Sorry for answering so late, but I've been away for a week, for theoretical
studies in computer science. For now I must decrease my UML activity since
I'll have to solve a very hard test soon; and I cannot do that myself.
However, especially for the second question, the answer is "yes".
At least for the 2.4.25 and 2.6.4 Skas patches, which are VERY important for
users. Especially because there are 3 bugs in most SKAS patches floating
around:
- the SMP bug we discussed about some time ago, fixed in my last release;
- this change (the one in the 2nd one) from Ingo Molnar that everyone else
missed:
-static int write_ldt(void __user * ptr, unsigned long bytecount, int oldmode)
+static int write_ldt(struct mm_struct * mm, void __user * ptr, unsigned long
bytecount, int oldmode)
{
- struct mm_struct * mm = current->mm;
__u32 entry_1, entry_2, *lp;
int error;
struct user_desc ldt_info;
@@ -195,7 +197,7 @@
down(&mm->context.sem);
if (ldt_info.entry_number >= mm->context.size) {
///// ---------------> NO ONE NOTICED this!
- error = alloc_ldt(¤t->mm->context,
ldt_info.entry_number+1, 1);
+ error = alloc_ldt(&mm->context, ldt_info.entry_number+1, 1);
if (error < 0)
goto out_unlock;
}
- and finally this bug he fixed in ldt.c
- if (reload) {
+ if (reload && (¤t->active_mm->context == pc)) {
They are perfectly, with only one issue: since there is CONFIG_PROC_MM in the
headers, which is created by make oldconfig, but you don't have a
user-visible option, user often miscompile the kernel (which then creates a
"Checking for Skas3 patch ... yes Checking for /proc/mm ... no").
Also, I see no reason for which the bug with switch_mm() that involved the
Skas patch in 2.6 should not happen also in 2.4; in 2.4.25 we have this
check, which has never been triggered (include/asm-i386/mmu_context.h):
if(cpu_tlbstate[cpu].active_mm != next)
out_of_line_bug();
So, maybe the 2.4 Skas patch could need the same change the 2.6 has in
include/asm-i386/mmu_context.h.
However, please review and upload them by yourself. I'm actually busy at the
moment - VERY busy.
Bye
--
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&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
next prev parent reply other threads:[~2004-04-09 17:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <40686E7D.2080600@unclewebster.com>
[not found] ` <200403300217.i2U2HKxc026892@ccure.user-mode-linux.org>
2004-04-01 17:53 ` [uml-devel] Hostfs and Humfs BlaisorBlade
2004-04-01 19:54 ` [uml-devel] Re: [uml-user] " Jeff Dike
[not found] ` <200404051840.i35IeHhZ029055@ccure.user-mode-linux.org>
2004-04-09 17:54 ` BlaisorBlade [this message]
2004-04-11 14:51 ` [uml-devel] Re: [uml-user] one drawback to using cows commercially BlaisorBlade
2004-04-13 4:58 ` Jeff Dike
2004-05-26 23:57 ` update on cowlinks - was: " roland
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=200404091954.54804.blaisorblade_spam@yahoo.it \
--to=blaisorblade_spam@yahoo.it \
--cc=jdike@addtoit.com \
--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