Re: [uml-devel] [uml-user] Hanging using 'iptables -L' in UML vm booted with con0=pts

2007-09-13 Thread Blaisorblade
; (gdb) bt > [showing the trace I've already sent in the other mail] > > Maybe there are "other outputs" apart of the output that the ./linux > produces which could be causing the problem? Please try logging in via SSH and reproducing the problem and the stacktrace, an

[uml-devel] Request for enhancement: UML management tools / VNUML (was: Re: Question regarding new versions of bb/bs guest UML patches)

2007-09-12 Thread Blaisorblade
gh I'm the > VNUML main developers, much of the UML technology stills being a mystery > to me, specially the pieces that lay in the kernel space). Are you > thinking in a particular idea/plan/issue? Maybe having a look to VNUML > as I suggest above may help to get an idea of wha

Re: [uml-devel] init_new_context_skas - new_mm failed, errno = -24

2007-09-11 Thread Blaisorblade
On martedì 11 settembre 2007, Jeff Dike wrote: > On Tue, Sep 11, 2007 at 04:00:58PM +0200, Blaisorblade wrote: > > errno = 24 means EMFILE (too many open files). > > Whoops, I mentally turned that into -ENOMEM. > > Maybe we should resurrect os_print_error as you suggested

Re: [uml-devel] init_new_context_skas - new_mm failed, errno = -24

2007-09-11 Thread Blaisorblade
isual Studio 2005. > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ SourceForge has not implemented AdSense at all, it seems... -- "Doh!" (cit.), I've made another mistake! Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 http://www.user-mode-linux

Re: [uml-devel] [uml-user] Hanging using 'iptables -L' in UML vm booted with con0=pts

2007-09-11 Thread Blaisorblade
and by module support, and that I've learnt this while we debugged some very old vmalloc bug (I may be talking of 2.4.20). I've not had the time to look at that report, but does what I say make sense to you? -- "Doh!" (cit.), I've made another mistake! Paolo Giarru

Re: [uml-devel] [PATCH 3/6] UML - Userspace files should call libc directly

2007-08-26 Thread Blaisorblade
er, not to simplify it for users). Btw, the inlined abs() call is not very nice; on the other hand, it's a simple solution to make it robust, and we do not to be extra-optimal on these debug code paths. Bye -- "Doh!" (cit.), I've made another mistake! Paolo Giarrusso, aka Bl

Re: [uml-devel] [PATCH 6/6] UML - Fix hostfs style

2007-08-24 Thread Blaisorblade
On venerdì 24 agosto 2007, Jeff Dike wrote: > On Thu, Aug 23, 2007 at 04:54:59PM +0200, Blaisorblade wrote: > > > actually. Personally I'd prefer: > > > > > > else > > > type = OS_TYPE_DIR; > > > > I strongly agree with this s

Re: [uml-devel] [PATCH 6/6] UML - Fix hostfs style

2007-08-23 Thread Blaisorblade
Personally I'd prefer: > > else > type = OS_TYPE_DIR; I strongly agree with this style; beyond style itself, one strong reason is that joining statements hinder singlestepping through function code (it's easy to run gdb on UML, and anyway kgdb exists). Bye

Re: [uml-devel] [PATCH] UML - Add a .note.SuSE section

2007-08-23 Thread Blaisorblade
On mercoledì 22 agosto 2007, Jeff Dike wrote: > On Tue, Aug 21, 2007 at 07:05:53PM +0200, Blaisorblade wrote: > > It's not the first time we hit effects of such bugs, is it? > > I don't remember seeing this before. > > > The .note.ABI-tag fix, time ago, may be a

Re: [uml-devel] [PATCH 1/5] um/... convert #include "linux/..." to #include

2007-08-21 Thread Blaisorblade
d for host headers) - at least that's what I think (I've never asked to Jeff, but I silently deduced this and followed this practice). -- "Doh!" (cit.), I've made another another mistake! Paolo Giarrusso, aka Blaisorb

Re: [uml-devel] [PATCH] UML - Add a .note.SuSE section

2007-08-21 Thread Blaisorblade
} > > Ooh, this sounds promising, thanks. It's not the first time we hit effects of such bugs, is it? The .note.ABI-tag fix, time ago, may be about the same problem. Can you double-check all UML linker scripts for more instances of this bug? Bye -- "Doh!" (cit.), I'v

Re: [uml-devel] [RFC PATCH] vde network backend

2007-08-12 Thread Blaisorblade
quot; (cit.), I've made another another mistake! Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade signature.asc Description: This is a digitally signed message part. --

Re: [uml-devel] Deadlock when calling securityfs_create_dir

2007-07-03 Thread Blaisorblade
er case, it may even not compile successfully). If you add a breakpoint on securityfs_create_dir and singlestep to look at what happens (which you should do), you'll probably see that a bit after the breakpoint gdb shows the correct value (it often does not at breakpoint's time),

Re: [uml-devel] [PATCH 4/5] UML - Simplify helper stack handling

2007-07-03 Thread Blaisorblade
sprintf() because it used 32K of stack. -- Inform me of my mistakes, so I can add them to my list! Paolo Giarrusso, aka Blaisorblade http://www.user-mode-linux.org/~blaisorblade signature.asc Description: This is a digitally signed message part. ---

Re: [uml-devel] [PATCH 2/2] UML - Add stack usage monitoring

2007-06-20 Thread Blaisorblade
On mercoledì 20 giugno 2007, Jeff Dike wrote: > On Wed, Jun 20, 2007 at 04:06:58PM +0200, Blaisorblade wrote: > > Oh, it's exactly what CONFIG_DEBUG_STACK_USAGE does for i386... (not sure > > if you were still wondering...). > > Where? The only usage in i386 that I se

Re: [uml-devel] [PATCH 2/2] UML - Add stack usage monitoring

2007-06-20 Thread Blaisorblade
neric, utilising the > stack-page-zeroing which CONFIG_DEBUG_STACK_USAGE enables. There's nothing > UML-specific about it. > low_water_lock and lowest_to_date should be static to check_stack_usage(), > btw.. -- Inform me of my mistakes, so I can add them to my list! Paolo Giarrusso, a

Re: [uml-devel] [PATCH 2/2] UML - Add stack usage monitoring

2007-06-20 Thread Blaisorblade
er this thursday (i.e. tomorrow). I'd need to get Jeff's patchset to fix it. Please let me know. Bye! -- Inform me of my mistakes, so I can add them to my list! Paolo Giarrusso, aka Blaisorblade http://www.user-mode-linux.org/~blaisorblade do-src-style-fix Description: applica

Re: [uml-devel] [uml-user] ppp and UML -possible? why or why not?

2007-06-15 Thread Blaisorblade
hanks, > Mark You can test if it works, but I believe that UML serial driver does not implement many of the ioctl's needed for a proper serial port, so it's difficult it will work. Bye -- Inform me of my mistakes, so I can add them to my list! Paolo Giarrusso, ak

Re: [uml-devel] fix SEGV in handle_page_fault() when current->mm is NULL

2007-05-26 Thread Blaisorblade
gt; The trivial attached patch fixes this. > > -Nicolas Dade Acked-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> -- Inform me of my mistakes, so I can add them to my list! Paolo Giarrusso, aka Blaisorblade http://

Re: [uml-devel] doubt in debugging.

2007-05-23 Thread Blaisorblade
le I assume you are _STILL_ using a 2.4 UML kernel, right? -- Inform me of my mistakes, so I can add them to my list! Paolo Giarrusso, aka Blaisorblade http://www.user-mode-linux.org/~blaisorblade - This SF.net email is sponsored

Re: [uml-devel] [uml-user] Doubt regarding UML

2007-05-23 Thread Blaisorblade
t kernel. There are. Go to this page: http://user-mode-linux.sourceforge.net/ and look for "debugging" in _that_ page. Then follow the "debugging in SKAS mode". -- Inform me of my mistakes, so I can add them to my list! Paolo Giarrusso,

Re: [uml-devel] [patch] um: use __used attribute

2007-05-14 Thread Blaisorblade
On sabato 12 maggio 2007, David Rientjes wrote: > Use the newly introduced __used attribute in place of the deprecated > __attribute_used__. Functionally the same. > > Signed-off-by: David Rientjes <[EMAIL PROTECTED]> Acked-by: Paolo 'Blaisorblade' Giarrusso <[EMAI

Re: [uml-devel] [PATCH 5/6] UML - Network and pcap cleanup

2007-05-03 Thread Blaisorblade
). -- Inform me of my mistakes, so I can add them to my list! Paolo Giarrusso, aka Blaisorblade http://www.user-mode-linux.org/~blaisorblade - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE

Re: [uml-devel] uml crashes when producing large files

2007-04-26 Thread Blaisorblade
/tmpfs filesystem (which is backed by ram), that's an almost normal behaviour, and can happen even on host systems. > thanx for any reply, > Herbert -- Inform me of my mistakes, so I can add them to my list! Paolo Giarrusso, aka Blaisorblade http://www.user-mode-linux.org/~blaiso

Re: [uml-devel] regression: pcap broken in 2.6.20.x

2007-04-26 Thread Blaisorblade
unno about other distributions. If there are so many interfaces and they were just reordered, this could be caused by a (non-existant) change in link order. Or (I don't know how) it could derive some way from the fact that interfaces are initialized later (instead of __initcall, late_ini

Re: [uml-devel] [PATCH] Make hostfs_setattr() support operations on closed files.

2007-04-25 Thread Blaisorblade
return(-errno); > + } else if(utime(file, &buf) != 0){ > return(-errno); > + } > } > } > if(attrs->ia_valid & HOSTFS_ATTR_CTIME) ; > if(attrs->ia_valid & (HOSTFS_ATTR_ATIM

Re: [uml-devel] [PATCH 2/4] UML - tidy process.c

2007-04-03 Thread Blaisorblade
rn unsigned long stack_sp(unsigned long page); > +#endif > extern int kernel_thread_proc(void *data); > extern void syscall_segv(int sig); > extern int current_pid(void); -- Inform me of my mistakes, so I can add them to my li

Re: [uml-devel] [RFC] UML kernel & rootfs bundle with every kernel release ?

2007-04-03 Thread Blaisorblade
browser image (running IE via wine in a limited image > with just X + wine + IE - I would much prefer that to having wine+IE > installed locally), testing framebuffer apps like gtk-fb/cairo-fb > without risking your dev environment, etc... > > Antoine -- Inform me of my mistakes

Re: [uml-devel] [RFC] UML kernel & rootfs bundle with every kernel release ?

2007-04-01 Thread Blaisorblade
hot is a faster COW? Something to setup it automatically would be good). There would be more to say on this, but I can't right now (I've other stuff to do). -- Inform me of my mistakes, so I can add them to my list! Paolo Giarrusso, aka Blaisorblade http://www.user-mode-linux.org/~blaiso

[uml-devel] [RFC] Auto-fixups for CodingStyle against major UML violations

2007-03-31 Thread Blaisorblade
Have you got sick of fixing your sources CodingStyle by hand? Are you reintroducing violations because you've always programmed in a certain style and those kernel hacker have dictated an insane one which you'll never learn? Stop that, the spamful company "BlaisorBlade Inc.

Re: [uml-devel] [PATCH] UML - fix I/O hang when multiple devices are in use

2007-03-31 Thread Blaisorblade
On giovedì 29 marzo 2007, Jeff Dike wrote: > On Thu, Mar 29, 2007 at 02:36:43AM +0200, Blaisorblade wrote: > > > Sometimes you need to. I'd probably just remove the do_ubd check and > > > always recall the request function when handling completions, it's &g

Re: [uml-devel] [patch 06/37] UML - Fix static linking

2007-03-30 Thread Blaisorblade
e = .; >__ex_table : { *(__ex_table) } >__stop___ex_table = .; -- Inform me of my mistakes, so I can add them to my list! Paolo Giarrusso, aka Blaisorblade http://www.user-mode-linux.org/~blaisorblade - T

[uml-devel] [PATCH] [PATCH] uml: fix static linking for real

2007-03-30 Thread Paolo &#x27;Blaisorblade' Giarrusso
There was a typo in commit 7632fc8f809a97f9d82ce125e8e3e579390ce2e5, preventing it from working - 32bit binaries crashed hopelessly before the below fix and work perfectly now. Merge for 2.6.21, please. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> ---

Re: [uml-devel] [PATCH 1/2] UML - Fix umid in xterm titles

2007-03-30 Thread Blaisorblade
On venerdì 30 marzo 2007, Jeff Dike wrote: > From: Davide Brini <[EMAIL PROTECTED]> > > Calls lines_init() *after* xterm_title is modified to include umid. > > Signed-off-by: Davide Brini <[EMAIL PROTECTED]> > Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Acke

Re: [uml-devel] [PATCH 2/2] UML - Speed up exec

2007-03-30 Thread Blaisorblade
force_sig(SIGKILL, current); > + } > + > switch_mm_skas(¤t->mm->context.skas.id); > } -- Inform me of my mistakes, so I can add them to my list! Paolo Giarrusso, aka Blaisorblade http://www.user-mode-linux.org/~blaisorblade Index: linux-2.6.git/arch/um/include/sk

[uml-devel] "Stracing" guest from gdb on the host and examining its memory.

2007-03-30 Thread Blaisorblade
to look at it, since it's deleted? Uml has mapped the whole of it, starting from the address stored in uml_physmem onwards. So in gdb I must just look (with the 'x' or 'disassemble' command) to uml_physmem + 0x03fb4000 + 0x12. These are the basi

Re: [uml-devel] [PATCH] UML - fix I/O hang when multiple devices are in use

2007-03-30 Thread Blaisorblade
On giovedì 29 marzo 2007, Jeff Dike wrote: > On Thu, Mar 29, 2007 at 02:36:43AM +0200, Blaisorblade wrote: > > > Sometimes you need to. I'd probably just remove the do_ubd check and > > > always recall the request function when handling completions, it's &g

Re: [uml-devel] [PATCH] UML - fix I/O hang when multiple devices are in use

2007-03-28 Thread Blaisorblade
On giovedì 29 marzo 2007, Blaisorblade wrote: > On mercoledì 28 marzo 2007, Jeff Dike wrote: > > [ This patch needs to get into 2.6.21, as it fixes a serious bug > > introduced soon after 2.6.20 ] > > > > Commit 62f96cb01e8de7a5daee472e540f726db2801499 introduced per-d

Re: [uml-devel] [PATCH] UML - fix I/O hang when multiple devices are in use

2007-03-28 Thread Blaisorblade
ike 150 Mbit/s - 100 Mbit/s, depending whether UML trasmits or receives data; with 2GHz double rates). Update: I now get 150Mbit / 200Mbit (Uml receives/Uml sends) at 1GHz, and still the double at 2Ghz. This is a different UML though. * using futexes instead

[uml-devel] [PATCH][2.6.21] uml: fix unreasonably long udelay

2007-03-28 Thread Paolo &#x27;Blaisorblade' Giarrusso
x86_64 users, especially using Device Mapper. To hit this bug, a compile-time constant time parameter must be passed - that's why UML seems to work most times. Fix this with a simple udelay implementation. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> -

Re: [uml-devel] [ PATCH 4/7 ] UML - create as-layout.h

2007-03-22 Thread Blaisorblade
Bye! -- Inform me of my mistakes, so I can add them to my list! Paolo Giarrusso, aka Blaisorblade http://www.user-mode-linux.org/~blaisorblade Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http

Re: [uml-devel] [PATCH] x86_64 32-bit ptrace mangles sixth systemcall argument

2007-03-12 Thread Blaisorblade
On Monday 12 March 2007 11:42, Bodo Stroesser wrote: > Blaisorblade wrote: > > On Tuesday 06 March 2007 00:26, Blaisorblade wrote: > > > On Tuesday 06 March 2007 00:10, Jeff Dike wrote: > > > > On Tue, Mar 06, 2007 at 12:03:26AM +0100, Blaisorblade wrote: >

Re: [uml-devel] [PATCH] x86_64 32-bit ptrace mangles sixth system call argument

2007-03-09 Thread Blaisorblade
On Tuesday 06 March 2007 00:26, Blaisorblade wrote: > On Tuesday 06 March 2007 00:10, Jeff Dike wrote: > > On Tue, Mar 06, 2007 at 12:03:26AM +0100, Blaisorblade wrote: > > > > No, RCX corruption is different - that happens when a sysexit is done > > > > from a s

Re: [uml-devel] Question about system call trap in UML

2007-03-06 Thread Blaisorblade
ll mmap() to install the mapping. > Can somebody explain the > process to me? The above is just a little start, to let you explore more and ask more specific questions. Bye -- Inform me of my mistakes, so I can add them to my list! Paolo Giarrusso, aka Blaisorblade http://www.user-mode-linux.o

Re: [uml-devel] [PATCH 4/5] UML - driver formatting fixes

2007-03-06 Thread Blaisorblade
goto out_close; > } The second line should better say -err instead of err. -- Inform me of my mistakes, so I can add them to my list! Paolo Giarrusso, aka Blaisorblade http://www.user-mode-linux.org/~blaisorblade C

Re: [uml-devel] [PATCH] broken uml_util.spec

2007-03-06 Thread Blaisorblade
release. It will be published on my homepage. -- Inform me of my mistakes, so I can add them to my list! Paolo Giarrusso, aka Blaisorblade http://www.user-mode-linux.org/~blaisorblade Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.me

Re: [uml-devel] [PATCH] x86_64 32-bit ptrace mangles sixth system call argument

2007-03-05 Thread Blaisorblade
On Tuesday 06 March 2007 00:10, Jeff Dike wrote: > On Tue, Mar 06, 2007 at 12:03:26AM +0100, Blaisorblade wrote: > > > No, RCX corruption is different - that happens when a sysexit is done > > > from a system call where userspace wasn't prepared to save and restore &g

[uml-devel] [PATCH 1/2] uml: make sigio_lock() irq-safe

2007-03-05 Thread Paolo &#x27;Blaisorblade' Giarrusso
From: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> sigio_lock is taken both from process context and from interrupt context. So we *must* use irqsave. Then, remove irq disabling from update_thread(), as it's called with sigio_lock() held (yes, set_signals(0) is loca

[uml-devel] [PATCH 2/2] uml: avoid calling request_irq in atomic context

2007-03-05 Thread Paolo &#x27;Blaisorblade' Giarrusso
From: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> To avoid calling request_irq under a spinlock, and to simplify code around, code a state machine to allow safely dropping and retaking sigio_lock during initialization. The state variable is protected by a spinlock together

Re: [uml-devel] [PATCH] x86_64 32-bit ptrace mangles sixth system call argument

2007-03-05 Thread Blaisorblade
On Friday 02 February 2007 21:12, Jeff Dike wrote: > On Fri, Feb 02, 2007 at 06:48:39PM +0100, Blaisorblade wrote: > > Is this a recent regression or did this always happen? > > I haven't looked at the history of the code, but it has the look of > something that's been

Re: [uml-devel] [PATCH 04/11] uml - hostfs: avoid possible escapes from hostfs=.

2007-03-05 Thread Blaisorblade
On Monday 05 March 2007 23:03, Jeff Dike wrote: > On Mon, Mar 05, 2007 at 09:49:02PM +0100, Paolo 'Blaisorblade' Giarrusso wrote: > > From: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> > > > > Avoid accepting things like -o .., -o dir/../../

Re: [uml-devel] [PATCH] broken uml_util.spec

2007-03-05 Thread Blaisorblade
I'm not a subscriber to the list. Thanks, I've applied this some time ago to my tree, on uml_util.spec.in. Bye -- Inform me of my mistakes, so I can add them to my list! Paolo Giarrusso, aka Blaisorblade http://www.user-mode-linux.org/~blaisorblade Chiacchiera con i tuoi amici in temp

[uml-devel] Remap_file_pages protection support: when to send patches?

2007-03-05 Thread Blaisorblade
++- mm/memory.c | 124 -- mm/mprotect.c |7 ++ mm/rmap.c |3 mm/shmem.c|2 40 files changed, 472 insertions(+), 98 deletions(-) -- Paolo Gia

[uml-devel] [PATCH 04/11] uml - hostfs: avoid possible escapes from hostfs=.

2007-03-05 Thread Paolo &#x27;Blaisorblade' Giarrusso
From: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> Avoid accepting things like -o .., -o dir/../../dir2, -o dir/../.. . This may be considered useless, but YMMV. I consider that this has a limited security value, exactly like disabling module support (in many case it is usef

[uml-devel] [PATCH 11/11] uml: fix errno usage

2007-03-05 Thread Paolo &#x27;Blaisorblade' Giarrusso
From: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> Avoid reusing userspace errno twice - it can be cleared by libc code everywhere (in particular printk() does clear it in my setup). Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> ---

[uml-devel] [PATCH 07/11] uml: remove dead code about os_usr1_signal() and os_usr1_process()

2007-03-05 Thread Paolo &#x27;Blaisorblade' Giarrusso
From: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> os_usr1_signal() is totally unused, os_usr1_process() is used only by TT mode. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> --- arch/um/include/os.h |3 ++- arch/um/os-Linux/

[uml-devel] [PATCH 00/11] Uml simple fixes

2007-03-05 Thread Paolo &#x27;Blaisorblade' Giarrusso
Some tested UML fixes - should be applied for 2.6.21. -- Paolo Giarrusso, aka Blaisorblade http://www.user-mode-linux.org/~blaisorblade - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Te

[uml-devel] [PATCH 01/11] uml: code convention cleanup of a file

2007-03-05 Thread Paolo &#x27;Blaisorblade' Giarrusso
From: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> Fix coding conventions violations is arch/um/os-Linux/helper.c. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> --- arch/um/os-Linux/helper.c |2 +- 1 files changed, 1 insertions(

[uml-devel] [PATCH 10/11] uml - activate_fd: return ENOMEM only when appropriate

2007-03-05 Thread Paolo &#x27;Blaisorblade' Giarrusso
From: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> Avoid returning ENOMEM in case of a duplicate IRQ - ENOMEM was saved into err earlier. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> --- arch/um/kernel/irq.c |1 + 1 files chang

[uml-devel] [PATCH 06/11] uml: fix a memory leak in the multicast driver

2007-03-05 Thread Paolo &#x27;Blaisorblade' Giarrusso
From: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> Memory allocated by mcast_user_init must be freed in the matching mcast_remove. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> --- arch/um/drivers/mcast_user.c | 10 +- 1 f

[uml-devel] [PATCH 02/11] uml - hostfs: fix double free

2007-03-05 Thread Paolo &#x27;Blaisorblade' Giarrusso
From: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> Fix double free in the error path - when name is assigned into root_inode we do not own it any more and we must not kfree() it - see patch for details. Thanks to William Stearns for the initial report. CC: William

[uml-devel] [PATCH 09/11] uml: fix confusion irq early reenabling

2007-03-05 Thread Paolo &#x27;Blaisorblade' Giarrusso
From: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> Fix confusion about call context - comments and code are inconsistent and plain wrong, my fault. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> --- arch/um/drivers/line.c |6 +++--

[uml-devel] [PATCH 05/11] hostfs: rename some vars for clarity

2007-03-05 Thread Paolo &#x27;Blaisorblade' Giarrusso
From: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> * rename name to host_root_path * rename data to req_root. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> --- fs/hostfs/hostfs_kern.c | 26 +- 1 files changed

[uml-devel] [PATCH 08/11] uml: mark both consoles as CON_ANYTIME

2007-03-05 Thread Paolo &#x27;Blaisorblade' Giarrusso
From: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> Since both UML consoles do not use percpu variables, they may be called when the cpu is still offline, and they may be marked CON_ANYTIME (this is documented in kernel/printk.c, grep for CON_ANYTIME to find mentions of this)

[uml-devel] [PATCH 03/11] uml - hostfs: make hostfs= option work as a jail, as intended.

2007-03-05 Thread Paolo &#x27;Blaisorblade' Giarrusso
From: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> When a given host directory is specified to be mounted both in hostfs=path1 and with mount option -o path2, we should give access to path1/path2, but this does not happen. Fix that in the simpler way. Also, root_ino can be

Re: [uml-devel] [uml-user] [PATCH] uml hostfs: fix interaction between hostfs=path1 and -o path2 at mount time

2007-03-05 Thread Blaisorblade
On Sunday 04 March 2007 23:53, Antoine Martin wrote: > Blaisorblade wrote: > > On Sunday 04 March 2007 17:50, Sylvain Beucler wrote: > >> On Sat, Mar 03, 2007 at 07:32:46PM +0100, Blaisorblade wrote: > >> Hi, > >> > >> I tested and it works. > >&

Re: [uml-devel] When opening /tmp/uml.ctl fails, what do we get?

2007-03-05 Thread Blaisorblade
On Monday 05 March 2007 16:51, Jeff Dike wrote: > On Sun, Mar 04, 2007 at 08:13:39PM +0100, Blaisorblade wrote: > > Have you checked if other calls require that register_netdev was already > > called? > > Just did, nothing else depends on it. Fine. > > Hmm, I'm

[uml-devel] 2.6.21-rc CONFIG_DEBUG_SHIRQ breaks UML

2007-03-05 Thread Blaisorblade
IRQ handlers with SA_SHIRQ really ought to be able to handle an interrupt happening before request_irq() returns. They also ought to be able to handle an interrupt happening during the start of their call to free_irq(). Let's test that hypothesis -- Inform me of my mist

Re: [uml-devel] When opening /tmp/uml.ctl fails, what do we get?

2007-03-04 Thread Blaisorblade
On Thursday 22 February 2007 20:59, Jeff Dike wrote: > On Thu, Feb 22, 2007 at 12:54:04AM +0100, Blaisorblade wrote: > > I started uml_daemon as root by mistake, so /tmp/uml.ctl even if > > /dev/net/tun was world-readable. Ok, I did it. This is the result (after > > tr

Re: [uml-devel] [uml-user] [PATCH] uml hostfs: fix interaction between hostfs=path1 and -o path2 at mount time (was: Re: hostfs kernel parameter fail?)

2007-03-04 Thread Blaisorblade
On Sunday 04 March 2007 17:50, Sylvain Beucler wrote: > On Sat, Mar 03, 2007 at 07:32:46PM +0100, Blaisorblade wrote: > Hi, > > I tested and it works. > > Thanks, You'll probably also see that -o .. allows bypassing the 'hostfs jail', and I've just impl

Re: [uml-devel] [PATCH] fix misleading error message in tools/tunctl/tunctl.c

2007-03-01 Thread Blaisorblade
TOWNER, owner) < 0){ > - perror("TUNSETPERSIST"); > + perror("TUNSETOWNER"); >exit(1); > } > if(brief) > Applied in my tree, thanks. -- Inform me of my mistakes, so I can add them to my list! Paolo Giarrusso, aka Blaisorblade http

Re: [uml-devel] [PATCH] UML - Fix 2.6.20 hang

2007-02-21 Thread Blaisorblade
.events = read ? POLLIN : POLLOUT, > Was that removal wanted or it happened by mistake? That way, err is completely lost. -- Inform me of my mistakes, so I can add them to my list! Paolo Giarrusso, aka Blaisorblade http://www.user-mode-linux.org/~blaisorblade Chiacchiera con i tu

Re: [uml-devel] [PATCH 2/3] UML - x86_64 thread fixes

2007-02-21 Thread Blaisorblade
ebug at that time). -- Inform me of my mistakes, so I can add them to my list! Paolo Giarrusso, aka Blaisorblade http://www.user-mode-linux.org/~blaisorblade Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail

[uml-devel] When opening /tmp/uml.ctl fails, what do we get?

2007-02-21 Thread Blaisorblade
it shouldn't, and we're hitting this. um_interrupt is called with fd => 0 because errno is cleared after printk (verified under debugging, I did not trace it fully to where it's changing but it's sufficient for a patch anyway). -- Inform me of my mistakes, so I can add them to m

Re: [uml-devel] [PATCH 4/4] UML - lock host ldt retrieval

2007-02-21 Thread Blaisorblade
Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >

[uml-devel] x86_64: PTRACE_[GS]ET_THREAD_AREA should be accepted

2007-02-21 Thread Paolo &#x27;Blaisorblade' Giarrusso
: Andi Kleen <[EMAIL PROTECTED]> Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> Index: linux-2.6.18/arch/x86_64/ia32/ptrace32.c === --- linux-2.6.18.orig/arch/x86_64/ia32/ptrace32.c +++ linux-2

Re: [uml-devel] [UML] fix crash in block layer

2007-02-19 Thread Blaisorblade
you explain this me, I'm wondering. How do things work when kmalloc_ok is disabled (i.e. initial_thread_cb)? I thought all reserved memory would stay reserved for the whole UML kernel lifetime. -- Inform me of my mistakes, so I can add them to my list! Paolo Giarrusso, aka Blaisorblade http://www

Re: [uml-devel] [PATCH] uml: fix pte_mkread setting page read/write

2007-02-19 Thread Blaisorblade
On Monday 19 February 2007 20:52, Jeff Dike wrote: > On Mon, Feb 19, 2007 at 06:34:42PM +0100, Blaisorblade wrote: > > Jeff, no answer to this yet? I've just checked and it's not on the > > patchset page either. > I already had it in my -mm patchset, minus any attrib

Re: [uml-devel] Possible hostfs uml kernel data corruption with missing host directory (fc6, 2.6.20-rc5-git3 on opteron)

2007-02-19 Thread Blaisorblade
On Thursday 15 February 2007 05:42, Blaisorblade wrote: > On Thursday 15 February 2007 04:36, Blaisorblade wrote: > > On Friday 26 January 2007 16:13, Jeff Dike wrote: > > > On Fri, Jan 26, 2007 at 04:07:05AM -0500, William Stearns wrote: > > > > After bisect

Re: [uml-devel] [PATCH] uml: fix pte_mkread setting page read/write

2007-02-19 Thread Blaisorblade
On Saturday 10 February 2007 18:27, Paolo 'Blaisorblade' Giarrusso wrote: > Fix the fact that pte_mkread set _PAGE_RW instead of _PAGE_USER (the logic > is copied from i386 in most place, so it is really as bad as you're > thinking). > > Thus currently page tables

Re: [uml-devel] x86_64: fix 2.6.18 regression - PTRACE_OLDSETOPTIONS should be accepted

2007-02-16 Thread Blaisorblade
On Friday 16 February 2007 20:02, Jeff Dike wrote: > On Thu, Feb 15, 2007 at 08:05:56PM +0100, Blaisorblade wrote: > > Jeff, I verified my patch is _almost_ enough for 2.6.18 for fully booting > > a 32bit UML; on 2.6.18 I had to also add PTRACE_GET/SET_THREAD_AREA (this > &

Re: [uml-devel] [UML] fix crash in block layer

2007-02-16 Thread Blaisorblade
On Friday 16 February 2007 18:02, Jason Lunz wrote: > On Thu, Feb 15, 2007 at 08:29:28PM +0100, Blaisorblade wrote: > > The following could be a suggestion, if max_low_pfn is not used between > > the old and the new moment of assignment (and it seems it is not). This > > is

Re: [uml-devel] x86_64: fix 2.6.18 regression - PTRACE_OLDSETOPTIONS should be accepted

2007-02-16 Thread Blaisorblade
o I can add them to my list! Paolo Giarrusso, aka Blaisorblade http://www.user-mode-linux.org/~blaisorblade Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com - Take Su

Re: [uml-devel] [UML] fix crash in block layer

2007-02-16 Thread Blaisorblade
a brief look - drawing a picture which explains all those variables would help. Both for UML and for every arch... BTW: init_bootmem is not called by us and we probably should - min_low_pfn is not initialized. -- Inform me of my mistakes, so I can add them to my list! Paolo Giarrusso, aka Blai

Re: [uml-devel] Possible hostfs uml kernel data corruption with missing host directory (fc6, 2.6.20-rc5-git3 on opteron)

2007-02-14 Thread Blaisorblade
On Thursday 15 February 2007 04:36, Blaisorblade wrote: > On Friday 26 January 2007 16:13, Jeff Dike wrote: > > On Fri, Jan 26, 2007 at 04:07:05AM -0500, William Stearns wrote: > > > After bisecting the difference between the two root filesystems, > > > the critica

Re: [uml-devel] x86_64: fix 2.6.18 regression - PTRACE_OLDSETOPTIONS should be accepted

2007-02-14 Thread Blaisorblade
On Thursday 15 February 2007 03:54, Jeff Dike wrote: > On Thu, Feb 15, 2007 at 03:34:23AM +0100, Paolo 'Blaisorblade' Giarrusso wrote: > > Index: linux-2.6.git/arch/x86_64/ia32/ptrace32.c > > === > &

Re: [uml-devel] UML/64bit is miscompiled by gcc 4.0.3 on Ubuntu 6.06 LTS

2007-02-14 Thread Blaisorblade
ng the "checking > ptrace" step. Just fixed such a regression in 2.6.18 - patch is 'x86_64: fix 2.6.18 regression - PTRACE_OLDSETOPTIONS should be accepted'. Actually, Jeff discovered the same bug today, like me! Please test it to make sure there are no further bugs. For

Re: [uml-devel] Possible hostfs uml kernel data corruption with missing host directory (fc6, 2.6.20-rc5-git3 on opteron)

2007-02-14 Thread Blaisorblade
m; however, the other call to file_type (in init_inode) is also unchecked, and that is less robust. -- Inform me of my mistakes, so I can add them to my list! Paolo Giarrusso, aka Blaisorblade http://www.user-mode-linux.org/~blaisorblade Subject: uml - hostfs: fix double free From: Paolo 'Blaisorbl

[uml-devel] x86_64: fix 2.6.18 regression - PTRACE_OLDSETOPTIONS should be accepted

2007-02-14 Thread Paolo &#x27;Blaisorblade' Giarrusso
was a style change - when a case is added, it must be explicitly tested this way. In this case, not enough testing was done. Cc: Andi Kleen <[EMAIL PROTECTED]> Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> Index: linux-2.6.git/arch/

Re: [uml-devel] [patch 094/241] uml: fix error output during early boot

2007-02-12 Thread Blaisorblade
On Saturday 10 February 2007 23:21, Jeff Dike wrote: > On Sat, Feb 10, 2007 at 01:31:20PM +0100, Blaisorblade wrote: > > libc's printf has an enormous stack usage, so that my_printf is used for > > direct output instead of printf; if this is ok because it's bootup > &

[uml-devel] [PATCH] uml: fix pte_mkread setting page read/write

2007-02-12 Thread Paolo &#x27;Blaisorblade' Giarrusso
igned-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> Index: linux-2.6.git/include/asm-um/pgtable.h === --- linux-2.6.git.orig/include/asm-um/pgtable.h +++ linux-2.6.git/include/asm-um/pgtable.h @@ -270,7 +2

Re: [uml-devel] [patch 094/241] uml: fix error output during early boot

2007-02-10 Thread Blaisorblade
uld be marked as "bootup code only"; otherwise we may reuse vsprintf() and write() or fputs(); this should match what happens in my_printf, to avoid any unlikely problem with libc's buffering. -- Inform me of my mistakes, so I can add them to my list! Paolo Giarrusso, aka Blaisorblade ht

Re: [uml-devel] [PATCH] skas3 update for linux 2.6.20-rc5

2007-02-07 Thread Blaisorblade
of my mistakes, so I can add them to my list! Paolo Giarrusso, aka Blaisorblade http://www.user-mode-linux.org/~blaisorblade Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com --

Re: [uml-devel] adding a system call in uml

2007-02-06 Thread Blaisorblade
in uml? -- Inform me of my mistakes, so I can add them to my list! Paolo Giarrusso, aka Blaisorblade http://www.user-mode-linux.org/~blaisorblade Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com ---

Re: [uml-devel] [PATCH] x86_64 32-bit ptrace mangles sixth system call argument

2007-02-02 Thread Blaisorblade
s corrupted. And what is the impact on UML (Bodo said his bug would affect SKAS behaviour)? Above all, how can UML run in SKAS0 mode with this bug (if it can)? -- Inform me of my mistakes, so I can add them to my list! Paolo Giarrusso, aka Blaisorblade http://www.user-mode-linux.org/~blaisorblade Ch

Re: [uml-devel] [PATCH] [UML] fix mknod

2007-01-26 Thread Blaisorblade
On Thursday 25 January 2007 05:31, Andrew Morton wrote: > On Tue, 23 Jan 2007 23:33:29 +0100 > > Blaisorblade <[EMAIL PROTECTED]> wrote: > > On Tuesday 23 January 2007 14:17, Johannes Stezenbach wrote: > > > On Tue, Jan 23, 2007 at 09:02:30AM +0100, Blaisorblade wrote

Re: [uml-devel] [PATCH] [UML] fix mknod

2007-01-23 Thread Blaisorblade
On Tuesday 23 January 2007 14:17, Johannes Stezenbach wrote: > On Tue, Jan 23, 2007 at 09:02:30AM +0100, Blaisorblade wrote: > > On Monday 22 January 2007 21:13, Johannes Stezenbach wrote: > > > I was playing with user-mode Linux and found that mknod creates > > > device

Re: [uml-devel] UML/64bit is miscompiled by gcc 4.0.3 on Ubuntu 6.06 LTS

2007-01-23 Thread Blaisorblade
On Monday 22 January 2007 21:59, Jeff Dike wrote: > On Sat, Jan 20, 2007 at 12:18:30AM +0100, Blaisorblade wrote: > > Ok, I hope I remembered correctly how to debug such faults (I'm posting > > the full procedure so you can give a look) > > Correct. > > > 0x00

Re: [uml-devel] [PATCH] [UML] fix mknod

2007-01-23 Thread Blaisorblade
join.php&p=sourceforge&CID=DEVDEV > ___ > User-mode-linux-devel mailing list > User-mode-linux-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel -- Inform me of my mistakes, so I can add the

Re: [uml-devel] Something wrong with booting the UML in new kernel

2007-01-23 Thread Blaisorblade
s on your / can cause trouble to both your host and your guest (well, if you boot with init=/bin/sh then there are less problems). -- Inform me of my mistakes, so I can add them to my list! Paolo Giarrusso, aka Blaisorblade http://www.user-mode-linux.org/~blaisor

  1   2   3   4   5   6   7   8   9   10   >