linux-um archives
 help / color / mirror / Atom feed
From: BlaisorBlade <blaisorblade_spam@yahoo.it>
To: user-mode-linux-devel@lists.sourceforge.net
Cc: Jeff Dike <jdike@addtoit.com>,
	Bodo Stroesser <bstroesser@fujitsu-siemens.com>
Subject: Re: [uml-devel] What to send to Andrew next
Date: Sat, 23 Oct 2004 05:57:00 +0200	[thread overview]
Message-ID: <200410230557.00754.blaisorblade_spam@yahoo.it> (raw)
In-Reply-To: <200410222128.i9MLSmWY005910@ccure.user-mode-linux.org>

On Friday 22 October 2004 23:28, Jeff Dike wrote:
> blaisorblade_spam@yahoo.it said:
> > 1) FOR INSTANCE, I sent the patch avoiding SIGPROF being touched by
> > change_signals(). Why did not you bother at it?
> > 2) copy_from_user_skas() does not make sense. When accessing the page
> > tables,  they would be happy to get some locking. If you want to take
> > a look to the  4G-4G patch from Ingo Molnar, which must do something
> > identical,
>
> Because I lost them, probably.  I'll go look for them.
>
> > Well, yes, but let's try to be fast on these. They are very good
> > patches and  fix also security problems.

> Yeah, syscall-security-* can go in now.  I want to see his test cases
> before pushing the signal delivery stuff though.

> > And why on x86_64 you do: #define NR_syscalls 1024

> > irq-bits - needed for mainline updates at least since -bk4, but not
> > complete.

> ?  That's removing code that's duplicated now in -mm but not mainline.

You refer to irq-bits here. No, it was merged at least since -bk4. Give a look 
at linux.bkbits.com - there is a nice web-interface for checking changelogs. 
Go to either 2.5 or 2.6 - they are the same repository.

> Not sure, that was in the patch I have left over from earlier this year,
> and I don't remember why it's there.
You refer to x86_64.
> Looks like we largely agree.  I'm not going to get to push stuff
> Andrew-ward until Sunday at least, so feel free to send stuff in
> beforehand.

I'm sending some trivial Kconfig changes just now - I'll be away on weekend.

We are also solving the problem on host 2.6.9 - the explaination seems to be 
that we should use PTRACE_KILL instead of just a SIGKILL. Is there any reason 
against that?

If you agree, I'll also merge some of these changes. You can also find, below, 
some issues I've not yet solved, but that I think I've tracked down. They are 
for later, however.

- rename the headers like  arch/um/kernel/skas/include/mmu.h and 
arch/um/kernel/tt/include/mmu.h to mmu-skas and mmu-tt, and update includes.
Including them with #include "../.. [....]" is ugly.

- This patch (apply by hand):

-static void winch_handler(int sig)
-{
-}
-
[...]
-       signal(SIGWINCH, winch_handler);
+       signal(SIGWINCH, SIG_IGN);

-

- not blocking SIGPROF in change_signals.

- I'm moving almost all code away from ubd_user.c to ubd_kern.c. This will 
allow using the new bio's, if needed, for the actual IO. Btw, a BIO contains 
multiple chunks of data; with AIO, we could even try to send them at once and 
see if performance increases (it should, but right now AIO is poorly 
supported).

- why do we disable kmalloc_ok in one piece of code?
I first didn't try answering and sent the patch allowing using kfree() in 
__wrap_free (the one about KMALLOC_START and KMALLOC_STOP, whose real aim was 
this).
While actually looking at this, the only explaination I found was that in that 
point we must be atomic, while kmalloc is not called atomically normally. So, 
we could simply add a global flag for using an atomic kmalloc, instead. 
However, the second way avoids any memory leak, but is still racy when UML is 
SMP. So a spinlock around those flags should be added.

- use the safe mconsole_proc() from Gerd Knorr. I'm just commenting out your 
version, until it's fixed. I understand your point, but until the proc 
command is broken, it's useless. Plus, try compiling HPPFS. It's so broken 
that it mistakes a <type> * for a <type>**, or something such. I have not 
fixed it because if it's so rotten, it will be better rewritten using 
externfs later. I marked it as BROKEN.
-- 
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

  reply	other threads:[~2004-10-23  3:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-22  5:16 [uml-devel] What to send to Andrew next Jeff Dike
2004-10-22 16:52 ` BlaisorBlade
2004-10-22 21:28   ` Jeff Dike
2004-10-23  3:57     ` BlaisorBlade [this message]
2004-10-25  9:05     ` Bodo Stroesser

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=200410230557.00754.blaisorblade_spam@yahoo.it \
    --to=blaisorblade_spam@yahoo.it \
    --cc=bstroesser@fujitsu-siemens.com \
    --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