[uml-devel] [patch 1/1] uml: fix oops related to exception table [for 2.6.12, urgent]

2005-04-26 Thread blaisorblade
From: Jeff Dike <[EMAIL PROTECTED]>, Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> In short: avoid that the kernel oopses during the extable sorting, as it can do now, because the extable is in the readonly section of the binary. >From Jeff: The exception table tu

Re: [uml-devel] The source to that firmware-uml thing is now up...

2005-04-28 Thread Blaisorblade
On Wednesday 27 April 2005 03:23, Rob Landley wrote: > On Saturday 23 April 2005 08:57 am, Blaisorblade wrote: > > > Can't do it before > > > running the UML kernel because A) it needs to make its memory file, 2) > > > it needs to access /proc/self/exe,

Re: [uml-devel] bugs in line.c and stdio_console.c

2005-04-28 Thread Blaisorblade
;sem); > } > > please help to confirm if it's correct? 1) The patch is reversed, and after noticing this it seems a bit more meaningful. 2)But that's not the correct fix, because data corruption is as bad as sched

Re: [uml-devel] UML Kernel support for NPTL

2005-04-28 Thread Blaisorblade
; version of glibc that was compiled with Native POSIX Thread Library (NPTL) > support. > Thanks. > Majid. Well, I've started working on this, even if this does not still work. The code is fairly complete, I hope I can finish it within two weeks. -- Paolo Giarrusso, aka Blaisor

Re: [uml-devel] Question about kernel_thread in UML TT mode

2005-04-28 Thread Blaisorblade
orks like the rest. In particular, it will call the arch-specific copy_thread; and copy_thread_tt will do the necessary work. > Then how does UML start a kernel > thread in TT mode? Is there any other functions being called? Thanks a lot! > Alex -- Paolo Giarrusso, aka Blaisorblade Sk

Re: [uml-devel] Re: [patch 1/7] uml: fix syscall table by including $(SUBARCH)'s one, for i386

2005-04-28 Thread Blaisorblade
yscall_table.S in the UML build, instead of > > tracking by hand the syscall table changes (which is inherently > > error-prone). > > Xen can use this as well (it was on my todo list). Yes, I had this idea too. So I guess this will be promptly merged, right? -- Paolo

Re: [uml-devel] Kernel panic with 2.6.11.6

2005-04-28 Thread Blaisorblade
> > Any ideas on how to troubleshoot this? Is it a known issue that I've > somehow missed on the list? Thanks! Hmm, maybe this could be related with the sigwinch problem that Jeff has a patch for ? It should be in the incrementals page. -- Paolo Giarrusso, aka Blaisorblade Skype use

Re: [uml-devel] UML-patches to prepare UML/s390

2005-04-28 Thread Blaisorblade
On Tuesday 26 April 2005 13:31, Bodo Stroesser wrote: > Blaisorblade wrote: > > Other issues follow, which refer to copied code going out-of-date wrt. my > > local tree (which I have snapshotted some time ago, after I started > > writing this mail). This is the problem wi

Re: [uml-devel] Re: Segfault 2.6.11-rc1-mm1

2005-04-28 Thread Blaisorblade
heck this with the other > > report, but unfortunately I cannot find it. Can you forward it me, > > please? > > This ist'n actually my system. It was some other users post, I found on the > user mailing-list on your sourceforge project page > (

Re: [uml-devel] Hostfs permission checks are all wonky.

2005-04-28 Thread Blaisorblade
On Monday 28 March 2005 21:48, Rob Landley wrote: > On Thursday 24 March 2005 05:53 am, Blaisorblade wrote: > > > You mean like this darn bug I've been seeing for weeks? > > > > > > io scheduler noop registered > > > loop: loaded (max 8 devices) > >

[uml-devel] [patch 1/1] x86_64: make string func definition work as intended

2005-05-01 Thread blaisorblade
From: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> CC: Andi Kleen <[EMAIL PROTECTED]> In include/asm-x86_64/string.h there are such comments: /* Use C out of line version for memcmp */ #define memcmp __builtin_memcmp int memcmp(const void * cs,const void * ct,size

Re: [uml-devel] gdb debugging problem on uml-2.6.10

2005-05-01 Thread Blaisorblade
mode? In the second case, then it can be a bug in the ptrace proxy (which has a big bug with some gdb releases >= 6.0). In the first case, maybe it's something I observed too (I'm not sure because I don't use a lot gdb with UML)... Better, I've observed breakpoints be

[uml-devel] [patch 1/1] Uml: kludgy compilation fixes for x86-64 subarch modules support [for -mm]

2005-05-01 Thread blaisorblade
From: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> Cc: Andi Kleen <[EMAIL PROTECTED]> These are some trivial fixes for the x86-64 subarch module support. The only potential problem is that I have to modify arch/x86_64/kernel/module.c, to avoid copying the whole

[uml-devel] [patch 1/1] Uml: obvious compile fixes for x86-64 Subarch and x86 regression fixes [for 2.6.12]

2005-05-01 Thread blaisorblade
From: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> This patch does some totally trivial compilation fixes. It also restores the debugregs manipulation, which was commented out simply because it doesn't compile on x86_64 (we haven't yet implemented there debugregs

Re: [uml-devel] The source to that firmware-uml thing is now up...

2005-05-01 Thread Blaisorblade
On Friday 29 April 2005 01:38, Rob Landley wrote: > On Friday 29 April 2005 03:16 pm, Blaisorblade wrote: > > > Hmmm... I suppose I could always have a wrapper script > > > > which can't be setuid if in bash, could if in Perl and perlsuid is > > installed. &

Factoring out common syscalls into asm-generic (was: Re: [uml-devel] Re: [patch 1/7] uml: fix syscall table by including $(SUBARCH)'s one, for i386

2005-05-01 Thread Blaisorblade
us maintenance problems, plus the fact that we must *match* other syscall tables rather than having our own. Otherwise there's probably no reason to rebuild the table. However, I guess that *new* syscalls are probably often generic, so for them there would be a good reason to have some gener

Re: [uml-devel] Re: [UML] Compile error when building with seperate source and object directories

2005-05-01 Thread Blaisorblade
27;ve added an #ifdef to re-include that code for x86, while excluding it for x86_64. Also, is that up-to-date wrt. 2.6.12-rc3? I had merged part of your code (at least the most urgent ones). Also, I'm thinking to a generic support for those conditional double includes... I'll p

Re: [uml-devel] Re: [UML] Compile error when building with seperate source and object directories

2005-05-02 Thread Blaisorblade
On Sunday 01 May 2005 18:07, Al Viro wrote: > On Sun, May 01, 2005 at 01:30:57PM +0200, Blaisorblade wrote: > > For now I've added an #ifdef to re-include that code for x86, while > > excluding it for x86_64. Also, is that up-to-date wrt. 2.6.12-rc3? > > Yes, it is. A

[uml-devel] [patch 1/1] uml: remove jail mode + other leftovers

2005-05-02 Thread blaisorblade
7;s finish dropping this. Also, remove some other useless definitions I met. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> --- linux-2.6.12-paolo/arch/um/kernel/tt/process_kern.c |6 -- linux-2.6.12-paolo/arch/um/kernel/um_arch.c |6 --

Re: [uml-devel] The source to that firmware-uml thing is now up...

2005-05-02 Thread Blaisorblade
On Monday 02 May 2005 07:14, Rob Landley wrote: > On Sunday 01 May 2005 07:06 am, Blaisorblade wrote: > > > (That said, if you do use -p to get get a setuid bash, there's several > > > other things you should do to make this marginally less dangerous. And > > >

Re: [uml-devel] Kernel panic with 2.6.11.6

2005-05-04 Thread Blaisorblade
> User-mode-linux-devel mailing list > User-mode-linux-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel > > > --- > This SF.Net email is sponsored by: NEC IT Guy Games. &

Re: [uml-devel] Re: [patch 1/1] Uml: kludgy compilation fixes for x86-64 subarch modules support [for -mm]

2005-05-04 Thread Blaisorblade
s this "for -mm" and not for -linus? That's a report on the current "review/testing" status, in this case because I wanted an ACK from Andi Kleen. Which acked it for himself but warned about the possible breakage for other archs. -- Paolo Giarrusso, aka Blaisorblad

Re: [uml-devel] Using SKAS, any examples?

2005-05-04 Thread Blaisorblade
I hope to address the second address space. I can do similar > code with modify_ldt but I'm restricted to using mmap to allocate memory > and therefore I don't get a fully addressable 4gb address space. You'll never get that, sadly, because the upper 1G is used by the kernel

[uml-devel] Re: [uml-user] Debugging kernel: break on every instruction?

2005-05-04 Thread Blaisorblade
lution, but a newer kernel would be nice :-) Can you experiment a bit with versions in the middle, with binary search (don't bother with 2.6.x.y kernels as they won't change *this* behaviour I think)? Please also include in the reports the SKAS patch version you used. Thanks -- Paolo

Re: [uml-devel] Scheduling latency in UML

2005-05-05 Thread Blaisorblade
it works as if CONFIG_PREEMPT is disabled. -- Paolo Giarrusso, aka Blaisorblade Skype user "PaoloGiarrusso" Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade --- This SF.Net email is sponsored by: NEC IT

[uml-devel] NACK on shift-MM_COPY_SEGMENTS for API change

2005-05-05 Thread Blaisorblade
at a child uses the father's LDT, though maybe uncommon. It would be better to move LDT copying to an arch-specific helper, defaulting to null (i.e. an empty inline) and defined only for i386 and x86-64 (even the same def. is ok, probably). -- Paolo Giarrusso, aka Blaisorblade Skype user

Re: [uml-devel] gdb debugging problem on uml-2.6.10

2005-05-05 Thread Blaisorblade
On Thursday 05 May 2005 04:54, Mei,Jia wrote: > Blaisorblade wrote: > >>When I try gdb-5.3.90 with uml in vanilla-2.6.10 kernel. I found a > >> problem. > >>When I set a breakpoint somewhere, and after some step, uml will > >>always get a SIGTRAP signal and

Re: [uml-devel] Status of 2.6.[10-11] constant 1 loadavg?

2005-05-07 Thread Blaisorblade
On Friday 06 May 2005 05:30, Christopher S. Aker wrote: > > Has the constant "loadavg of 1" bug been resolved, or has the patch been > > accepted into 2.6.12? > > > > Blaisorblade -- it appears to be back. My recent tests with 2.6.11 > > vanilla still

[uml-devel] Re: NACK on shift-MM_COPY_SEGMENTS for API change

2005-05-07 Thread Blaisorblade
On Friday 06 May 2005 13:04, Bodo Stroesser wrote: > Blaisorblade wrote: > > I understand the purpose of the patch; however, without any mention about > > the effects (which would be IMHO bad) we no more copy LDT segments on > > fork/clone, which is bad. > > No. The

Re: [uml-devel] Using SKAS, any examples?

2005-05-07 Thread Blaisorblade
I've no way to make sure of that (I'll have it either to a syscall to be intercepted from the parent or write a value in the memory, or do an inline syscall). I'd also avoid deleting the file to examine it later. Bye -- Paolo Giarrusso, aka Blaisorblade Skype user "PaoloGiar

[uml-devel] Generating patches with --show-c-functions

2005-05-07 Thread Blaisorblade
uld help a lot patch readability (I'm mailing this because I just misunderstood a Bodo's patch, thus sending a NACK on it). -- Paolo Giarrusso, aka Blaisorblade Skype user "PaoloGiarrusso" Linux registered user n. 292729 http://www.use

Re: [uml-devel] Using SKAS, any examples?

2005-05-08 Thread Blaisorblade
s version had was that the mmap's had a offset of 0, since the asid_mmap() loops will always stop at the first entry of AddressSpaces[ASID].map_info, which had a 0 offset. Currently I set the offset equal to the virtual address it's mapped to. Thanks a lot for posting the original

Re: [uml-devel] Using SKAS, any examples?

2005-05-09 Thread Blaisorblade
On Sunday 08 May 2005 20:09, Ian Rogers wrote: > Blaisorblade wrote: > Thanks. I will implment an emulator through this mechanism. My current > mechanism performs: > > loadByte(addr) { > pte = addr >> 12; > offset = addr & 0xFFF; > result = memory[ptr][offset

[uml-devel] Compile failure of 2.6.12-rc4 fixed

2005-05-09 Thread Blaisorblade
real problem). Jeff, please make sure that your patches remove files even when applied simply by patch. Possibly upgrade quilt if needed. -- Paolo Giarrusso, aka Blaisorblade Skype user "PaoloGiarrusso" Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade Sig

[uml-devel] 3-level pagetables broken on i386

2005-05-09 Thread Blaisorblade
x86-64, then let me know and I'll add an appropriate dependency. If not (and IIRC it worked some time ago), then choose how to fix that. -- Paolo Giarrusso, aka Blaisorblade Skype user "PaoloGiarrusso" Linux registered user n. 292729 http://www.user-

[uml-devel] [patch 0/6] latest bugfixes for 2.6.12

2005-05-09 Thread Blaisorblade
ks breaking things. We had the exactly opposite problem for 2.6.10 release - some important fixes which were sent by Jeff just before 2.6.10 release to be merged in it (but which weren't explicitly marked as such) were merged in 2.6.10-mm1. -- Paolo Giarrusso, aka Blaisorblade Skype user

[uml-devel] [patch 1/6] uml: remove elf.h [ compile-fix, for 2.6.12 ]

2005-05-09 Thread blaisorblade
Actually remove elf.h in the tree. The previous patch, due to a quilt bug/misuse, left it in the tree as a 0-length file, preventing the build to see it as missing and to generate a symlink in its place. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> ---

[uml-devel] [patch 6/6] uml: stack dump fix

2005-05-09 Thread blaisorblade
Copy (and adapt) to UML the stack code dumper used in i386 when CONFIG_FRAME_POINTER is enabled. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> --- linux-2.6.12-paolo/arch/um/include/sysrq.h |3 linux-2.6.12-paolo/arch/um/kernel/sysrq.c |

[uml-devel] [patch 2/6] uml: critical change memcpy to memmove [critical, for 2.6.12]

2005-05-09 Thread blaisorblade
Replace one memcpy() call with overlapping source and dest arguments with one call to memmove(), to avoid data corruption. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> --- linux-2.6.12-paolo/arch/um/kernel/irq_user.c | 10 -- 1 files changed, 8

[uml-devel] [patch 5/6] uml: split CONFIG_FRAME_POINTER from DEBUG_INFO

2005-05-09 Thread blaisorblade
d-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> --- diff -puN arch/um/Kconfig.debug~uml-split-frame-pointer-option arch/um/Kconfig.debug --- linux-2.6.git/arch/um/Kconfig.debug~uml-split-frame-pointer-option 2005-05-07 18:00:23.0 +0200 +++ linux-

[uml-devel] [patch 4/6] uml: add MOD_LICENSE to random driver

2005-05-09 Thread blaisorblade
Add a MODULE_LICENSE("GPL") to the driver, remove some unused macros and add the GPL license (it's GPL-licensed anyway since it's a GPL-derivative, apart that Jeff Dike releases GPL software, in case anybody is wondering). Signed-off-by: Paolo 'Blaisorblade

[uml-devel] [patch 3/6] uml: add modversions support

2005-05-09 Thread blaisorblade
Actually, the real support was added by some earlier patches. Now we simply re-enable the config. option. I've actually tested it and it works well. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> --- linux-2.6.git-paolo/init/Kconfig |2 +- 1 files

[uml-devel] Re: [patch 0/6] latest bugfixes for 2.6.12

2005-05-09 Thread Blaisorblade
On Tuesday 10 May 2005 01:45, Andrew Morton wrote: > Blaisorblade <[EMAIL PROTECTED]> wrote: > > Here are some more fixes intended for 2.6.12 (and well tested). Can you > > merge them soon, Andrew? Thanks. > > Sure. > > The first is a particularly bad one

[uml-devel] Re: [patch 1/6] uml: remove elf.h [ compile-fix, for 2.6.12 ]

2005-05-10 Thread Blaisorblade
ink in its place. Ok, I was confused by the fact that with patch-scripts, which you use, it works, and thought it was patch to make it work. -- Paolo Giarrusso, aka Blaisorblade Skype user "PaoloGiarrusso" Linux registered user n. 292729 http://www.us

[uml-devel] Re: [patch 0/6] latest bugfixes for 2.6.12

2005-05-10 Thread Blaisorblade
On Tuesday 10 May 2005 02:02, Andrew Morton wrote: > Blaisorblade <[EMAIL PROTECTED]> wrote: > > > Jeff sent in fixes which were dependent on other things I had, we're > > > maybe several weeks away from 2.6.12, > > > > Several weeks away? > >

Re: [uml-devel] Kernel panic with 2.6.11.6

2005-05-10 Thread Blaisorblade
g error: Remove include/asm-um/elf.h, which is a 0-length file, and it will work. And this is the real fix... -- Paolo Giarrusso, aka Blaisorblade Skype user "PaoloGiarrusso" Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade -

Restoring the link to snapshots on kernel.org (was: Re: [uml-devel] Re: [patch 0/6] latest bugfixes for 2.6.12)

2005-05-10 Thread Blaisorblade
On Tuesday 10 May 2005 12:42, Andrew Morton wrote: > Blaisorblade <[EMAIL PROTECTED]> wrote: > > On Tuesday 10 May 2005 02:02, Andrew Morton wrote: > > > Blaisorblade <[EMAIL PROTECTED]> wrote: > > > > > Jeff sent in fixes which were dependent on othe

[uml-devel] About puncuation-fixes in incrementals

2005-05-10 Thread Blaisorblade
e_kern.h" and "tt/mode_kern.h". Without fiddling with include path depending on the mode and so on. -- Paolo Giarrusso, aka Blaisorblade Skype user "PaoloGiarrusso" Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade ---

[uml-devel] Removing call to function pointer in inner loop of copy_from_user()

2005-05-16 Thread Blaisorblade
hat's your opinion? I'm ready to work on this. -- Paolo Giarrusso, aka Blaisorblade Skype user "PaoloGiarrusso" Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade --- This SF.Net email is

Re: [uml-devel] Removing call to function pointer in inner loop of copy_from_user()

2005-05-16 Thread Blaisorblade
On Monday 16 May 2005 17:00, Jeff Dike wrote: > On Sun, May 15, 2005 at 08:44:44PM +0200, Blaisorblade wrote: > > copy_from_user() loops, in SKAS mode, calls do_op inside the inner loop; > > do_op acts on 4k at once, so with modern pipelines, the potential cost of > > the func

[uml-devel] Re: [uml-user] uml patch

2005-05-16 Thread Blaisorblade
ersions, the more you'll likely get into trouble. Especially for 2.6 kernels. Also, with 2.6 you'll likely want to use the latest available UML version for greater stability. We currently keep fixing more bugs than we introduce. > Thanks, > Ashwin -- Paolo Giarrusso, aka Blaisorb

Re: [uml-devel] Explaination of system call function flow in TT mode

2005-05-16 Thread Blaisorblade
tracing off. -- Paolo Giarrusso, aka Blaisorblade Skype user "PaoloGiarrusso" Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the firs

[uml-devel] Uploaded new version of the test program and x86-64 SKAS patch working with it

2005-05-16 Thread Blaisorblade
ap_no) but I've not yet changed the test program, only the patch (which does not support FAULTINFO for 64-bit processes). -- Paolo Giarrusso, aka Blaisorblade Skype user "PaoloGiarrusso" Linux registered user n. 292729 http://www.user-mode-lin

[uml-devel] [patch 1/1] uml: replace pause with sigsuspend

2005-05-16 Thread blaisorblade
Replace pause with sigsuspend, to avoid needing to set an empty handler for SIGWINCH. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> --- linux-2.6.git-paolo/arch/um/drivers/chan_user.c | 15 --- 1 files changed, 4 insertions(+), 11 deletions(-)

Re: [uml-devel] Removing call to function pointer in inner loop of copy_from_user()

2005-05-16 Thread Blaisorblade
On Monday 16 May 2005 20:48, Jeff Dike wrote: > On Mon, May 16, 2005 at 07:04:13PM +0200, Blaisorblade wrote: > > I could move maybe move sigsetjmp to kernelspace code; > > How are you going to get a definition of jmp_buf in there? I actually want to include the headers. Not that I

[uml-devel] uml-general-protection-fault even more kludgy but mergeable

2005-05-16 Thread Blaisorblade
ially I didn't find what expected (i.e. I/O errors). -- Paolo Giarrusso, aka Blaisorblade Skype user "PaoloGiarrusso" Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade --- This SF.Net email is spon

Re: [uml-devel] Explaination of system call function flow in TT mode

2005-05-16 Thread Blaisorblade
:do_syscall_trace(), the call to ptrace_notify(). -- Paolo Giarrusso, aka Blaisorblade Skype user "PaoloGiarrusso" Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade --- This SF.Net email is sponsored by Ora

Re: [uml-devel] Uploaded new version of the test program and x86-64 SKAS patch working with it

2005-05-16 Thread Blaisorblade
On Monday 16 May 2005 20:58, Frank Sorenson wrote: > Blaisorblade wrote: > > First: the new SKAS patch does not yet support UML. However, it should > > support both modes for the test program. Jeff, I guess you might want to > > take a look at it (I'm working on t

[uml-devel] [patch 1/1] uml: remove 2_5compat.h

2005-05-16 Thread blaisorblade
Remove old useless header that was used in Ye Olde Times during 2.4->2.5 porting to abstract differences. It's definitions are no more used anyway, so let's finally kill it. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> --- linux-2.6.gi

Re: [uml-devel] Explaination of system call function flow in TT mode

2005-05-16 Thread Blaisorblade
id this". > 2) in TT mode, what if the user process (tracee) installs its own > signal handler for SIGUSR2? The syscall is intercepted so it can't install signal handlers; the one it installs are handled inside the UML kernel. -- Paolo Giarrusso, aka Blaisorblade Skype user &

Re: [uml-devel] Explaination of system call function flow in TT mode

2005-05-18 Thread Blaisorblade
explicitly scheduling and by the timer tick; there are also some additional cases when using preemption, but UML does not use them; look for cond_resched() and similar things in kernel sources). In this case, instead, for SKAS mode, we must switch the registers manually, since we have collapsed ever

Re: [uml-devel] [patch 1/1] uml: replace pause with sigsuspend

2005-05-18 Thread Blaisorblade
between pause() > and sigsuspend(), because sigsuspend's feature of accepting a sigmask > for use while waiting, in fact isn't needed here as the same mask is > set already before with sigprocmask(). Ok, seems like I'll drop this patch. Thanks for the review. -- Paolo Giar

Re: [uml-devel] Explaination of system call function flow in TT mode

2005-05-18 Thread Blaisorblade
ould speed up that call a bit, but would that be enough > to pay the cost of additional ptrace calls in switch_to or signal handling? I think no, because doing a syscall is probably more costly than copying some bytes, however it depends on the relative frequency. Doing a benchmark would probably be

[uml-devel] Saving a signal delivery to improve fork() performance in SKAS mode

2005-05-18 Thread Blaisorblade
le, after understanding it. Finally, the newly created thread is suspended during thread_wait is then resumed by the scheduler's call to switch_to that jumps in there. -- Paolo Giarrusso, aka Blaisorblade Skype user "PaoloGiarrusso" Linux registered user n. 292729 http://www.user-mode

Re: [uml-devel] [patch 1/1] uml: replace pause with sigsuspend

2005-05-19 Thread Blaisorblade
On Wednesday 18 May 2005 21:19, Bodo Stroesser wrote: > Blaisorblade wrote: > > On Tuesday 17 May 2005 12:14, Bodo Stroesser wrote: > >>I didn't have the time to test the patch, but I guess, it won't work. > >> > >>Maybe, the man pages f

Re: [uml-devel] Question about the kernel thread in UML TT mode

2005-05-19 Thread Blaisorblade
nk that's because sig is on the stack, and &sig + 1 points to the datas saved by the kernel when entering the signal handler, i.e. the registers of the caller, saved to be restored on return. -- Paolo Giarrusso, aka Blaisorblade Skype user "PaoloGiarrusso" Linux registered user n

Re: [uml-devel] copy_from_user in SKAS mode

2005-05-19 Thread Blaisorblade
p() directly. > and how does the UML kernel keep track of 0xa0 > -> 0xb0 mapping? maybe the same page table mechanism as host Linux? (i > guess so, though) -- Paolo Giarrusso, aka Blaisorblade Skype user "PaoloGiarrusso&qu

Re: [uml-devel] [PATCH] UML - 2.6.12-rc4-mm2 Compile error

2005-05-23 Thread Blaisorblade
e unsigned long virt_to_fix(const unsigned long vaddr) > { > - BUG_ON(vaddr >= FIXADDR_TOP || vaddr < FIXADDR_START); > + BUG_ON(vaddr >= FIXADDR_TOP || vaddr < FIXADDR_USER_START); > return __virt_to_fix(vaddr); > } -- Paolo Giarrusso, aka

Re: [uml-devel] [PATCH] UML - 2.6.12-rc4-mm2 Compile error

2005-05-23 Thread Blaisorblade
ould have been deleted it simply emptied it (courtesy of quilt). So include/asm-um/elf.h: $(call create_the_symlink) (which is pseudo-code) won't create it. As a last resort I'll force that symlink to be unconditional (I hope not needing this). -- Paolo Giarrusso, aka B

Re: [uml-devel] [PATCH] UML - 2.6.12-rc4-mm2 Compile error

2005-05-23 Thread Blaisorblade
s defined by either include/asm-um/archparam-x86_64.h or include/asm-um/elf-i386.h. Make sure you used a clean tree and a correct command line (make init/main.o ARCH=um wouldn't work because it would not create the needed header symlinks). -- Paolo Giarrusso, aka Blaisorblade Skype user "Pao

[uml-devel] pcap transport support

2005-05-23 Thread Blaisorblade
Please try the attached patch for it... it's done on top of 2.6.11-bs*. Remember to run UML as root as otherwise libpcap can't work... the stack trace you get otherwise is scaring. -- Paolo Giarrusso, aka Blaisorblade Skype user "PaoloGiarrusso" Linux registered user n. 29

Re: [uml-devel] patch warnings

2005-05-24 Thread Blaisorblade
u've not patched what should be a symlink... -- Paolo Giarrusso, aka Blaisorblade Skype user "PaoloGiarrusso" Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade --- This SF.Net email is sponsored by Yahoo.

Re: [uml-devel] [PATCH 7/7] UML - Remove unused code

2005-05-26 Thread Blaisorblade
t; Index: linux-2.6.11/arch/um/kernel/initrd_user.c > === > --- linux-2.6.11.orig/arch/um/kernel/initrd_user.c2005-05-26 > 17:15:14.0 -0400 +++ > linux-2.6.11/arch/um/kernel/initrd_user.c 2003-09-15 09:40:47.0 > -0400 @@ -1,46 +0,0 @@ Same for this. -- Paolo Giarrusso,

[uml-devel] [patch 0/8] uml: some fixes for 2.6.12

2005-05-26 Thread Blaisorblade
MPT_ACTIVE problem, which also extends to other archs, see my other mail). -- Paolo Giarrusso, aka Blaisorblade Skype user "PaoloGiarrusso" Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade ___

[uml-devel] Re: [patch 4/8] irq code: Add coherence test for PREEMPT_ACTIVE

2005-05-26 Thread Blaisorblade
estigation, however, so feel free to verify this better. -- Paolo Giarrusso, aka Blaisorblade Skype user "PaoloGiarrusso" Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade ___ Yahoo! Mail: grat

[uml-devel] [patch 1/1] [RFC] uml: add and use generic hw_controller_type->release

2005-05-26 Thread blaisorblade
From: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]>, Chris Wedgwood <[EMAIL PROTECTED]> CC: Ingo Molnar <[EMAIL PROTECTED]> Currently UML must explicitly call the UML-specific free_irq_by_irq_and_dev() for each free_irq call it's done. This is needed be

[uml-devel] [patch 1/8] uml: add modversions support

2005-05-26 Thread blaisorblade
Actually, the real support was added by some earlier patches. Now we simply re-enable the config. option. I've actually tested it and it works well. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> --- linux-2.6.git-paolo/init/Kconfig |2 +- 1 files

[uml-devel] [patch 4/4] uml: make it link in tt mode against NPTL glibc

2005-05-26 Thread blaisorblade
host archs, since it changes __syscall_return from . Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> --- linux-2.6.git-paolo/arch/um/kernel/tt/unmap.c | 25 + linux-2.6.git-paolo/arch/um/kernel/uml.lds.S | 12 +--- 2 files change

[uml-devel] [patch 2/8] uml: add MOD_LICENSE to random driver

2005-05-26 Thread blaisorblade
Add a MODULE_LICENSE("GPL") to the driver, remove some unused macros and add the GPL license (it's GPL-licensed anyway since it's a GPL-derivative, apart that Jeff Dike releases GPL software, in case anybody is wondering). Signed-off-by: Paolo 'Blaisorblade

[uml-devel] [patch 1/4] uml: do_fork calling cleanup

2005-05-26 Thread blaisorblade
Low-priority. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> --- linux-2.6.git-paolo/arch/um/kernel/process_kern.c | 17 ++--- linux-2.6.git-paolo/arch/um/kernel/skas/process_kern.c | 13 -- linux-2.6.git-paolo/arch/um/kernel/sysca

[uml-devel] [patch 2/4] uml: consolidate modify_ldt

2005-05-26 Thread blaisorblade
From: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> *) Reorganize the two cases of sys_modify_ldt to share all the reasonably common code. *) Avoid memory allocation when unneeded (i.e. when we are writing and the passed buffer size is known), thus not returning ENOMEM (whi

[uml-devel] [patch 6/8] uml: split CONFIG_FRAME_POINTER from DEBUG_INFO

2005-05-26 Thread blaisorblade
d-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> --- diff -puN arch/um/Kconfig.debug~uml-split-frame-pointer-option arch/um/Kconfig.debug --- linux-2.6.git/arch/um/Kconfig.debug~uml-split-frame-pointer-option 2005-05-07 18:00:23.0 +0200 +++ linux-

[uml-devel] [patch 4/8] irq code: Add coherence test for PREEMPT_ACTIVE

2005-05-26 Thread blaisorblade
ff-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> --- linux-2.6.git-paolo/include/linux/hardirq.h |6 +- 1 files changed, 5 insertions(+), 1 deletion(-) diff -puN include/linux/hardirq.h~coherence-test-preempt-active include/linux/hardirq.h --- linux-2.6.git/in

[uml-devel] [patch 3/8] uml: fix PREEMPT_ACTIVE

2005-05-26 Thread blaisorblade
From: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> Cc: Paul Mackerras <[EMAIL PROTECTED]>, Ingo Molnar <[EMAIL PROTECTED]> This is a continuation for UML of: http://linux.bkbits.net:8080/linux-2.5/[EMAIL PROTECTED] Signed-off-by: Paolo 'Blaisorb

[uml-devel] [patch 7/8] uml: stack dump fix

2005-05-26 Thread blaisorblade
Copy (and adapt) to UML the stack code dumper used in i386 when CONFIG_FRAME_POINTER is enabled. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> --- linux-2.6.12-paolo/arch/um/include/sysrq.h |3 linux-2.6.12-paolo/arch/um/kernel/sysrq.c |

[uml-devel] [patch 5/8] uml: fixlet for arch_prctl_skas

2005-05-26 Thread blaisorblade
s) rather than interpreting addr as a pointer, as requested in this case (see the man page). Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> --- linux-2.6.git-paolo/arch/um/sys-x86_64/syscalls.c | 16 ++-- 1 files changed, 10 insertions(+), 6 deletions(-)

[uml-devel] [patch 3/4] uml: clean and extend arch_switch() usage

2005-05-26 Thread blaisorblade
or all purposes, it seems a bug (otherwise the whole mechanism does not make sense, which is also a possibility to check), which causes some performance only problems (not correctness), since we write_debugregs when not needed. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL P

[uml-devel] [patch 8/8] uml: remove jail mode + other leftovers

2005-05-26 Thread blaisorblade
From: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> This var is currently useless, as it's apparent from reading the code. Until 2.6.11 it was used in some code related to jail mode, in the same proc.: if(jail){ while(!reading) sched_yield();

[uml-devel] Re: [patch 4/8] irq code: Add coherence test for PREEMPT_ACTIVE

2005-05-28 Thread Blaisorblade
On Friday 27 May 2005 15:33, David Howells wrote: > Blaisorblade <[EMAIL PROTECTED]> wrote: > > Ok, a grep shows that possible culprits (i.e. giving success to > > grep GENERIC_HARDIRQS arch/*/Kconfig, and using 0x400 as > > PREEMPT_ACTIVE, as given by grep PRE

[uml-devel] Re: [patch 4/8] irq code: Add coherence test for PREEMPT_ACTIVE

2005-05-28 Thread Blaisorblade
On Friday 27 May 2005 05:31, Paul Mundt wrote: > On Fri, May 27, 2005 at 03:06:09AM +0200, Blaisorblade wrote: > > On Friday 27 May 2005 02:38, [EMAIL PROTECTED] wrote: > > Ok, a grep shows that possible culprits (i.e. giving success to > > grep GENERIC_HARDIRQS arch

[uml-devel] Re: [patch 1/1] [RFC] uml: add and use generic hw_controller_type->release

2005-05-28 Thread Blaisorblade
On Friday 27 May 2005 04:11, Chris Wedgwood wrote: > On Fri, May 27, 2005 at 02:39:26AM +0200, [EMAIL PROTECTED] wrote: > > From: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]>, Chris > > Wedgwood <[EMAIL PROTECTED]> CC: Ingo Molnar <[EMAIL PROTECTED]&g

Re: [uml-devel] [PATCH 3/7] UML - Turn off kmalloc always on a fatal signal

2005-05-28 Thread Blaisorblade
and except in Kconfig, spaces are never used for indentation, and the above example is deliberately broken." -- Paolo Giarrusso, aka Blaisorblade Skype user "PaoloGiarrusso" Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade

Re: [uml-devel] Re: [patch 4/4] uml: make it link in tt mode against NPTL glibc

2005-05-28 Thread Blaisorblade
think that the linker script shouldn't be per architecture. Also (not verified) one section is either read-write or read-only, so merging .bss and .text does not seem good to me (I separated them on purpose). Good catch for using .bss instead of .data. -- Paolo Giarrusso, aka Blaisor

Re: [uml-devel] Problems applying patches to 2.6.12-rc5-mm1

2005-05-31 Thread Blaisorblade
ce. -- Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!". Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894) http://www.user-mode-linux.org/~blaisorblade

Re: [uml-devel] panic on shutdown bt for 2.4.26+ UML

2005-06-01 Thread Blaisorblade
e_thread (stack=0x81f, > switch_buf_ptr=0x81f0578, fork_buf_ptr=0x0) at process.c:303 > #18 0x080dc48a in start_uml_skas () at process_kern.c:193 > #19 0x080daae3 in linux_main (argc=19, argv=0x3000) at um_arch.c:393 > #20 0x08050286 in main (argc=19, argv=0xbfffd0b4, envp=

Re: [uml-devel] Problem with /dev/random and rngd daemon

2005-06-01 Thread Blaisorblade
tting back a > return code of '1' from the daemon (the rng-source is misbehaving) after a > pause of 10 seconds. Any ideas? Maybe the host /dev/random supports only one user at any given moment. -- Inform me of my mistakes, so I can keep imitating Homer Simpson's &

Re: [uml-devel] Problems applying patches to 2.6.12-rc5-mm1

2005-06-03 Thread Blaisorblade
oting? > Thanks! -- Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!". Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894) http://www.user-mode-linux.org/~blaisorblade ___

Re: [uml-devel] Problems applying patches to 2.6.12-rc5-mm2

2005-06-06 Thread Blaisorblade
um/sys-i386/stub_segv.o] Error 2 > make: *** [arch/um/sys-i386] Error 2 -- Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!". Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894) http://www.user-mode-linux.org/~blaisorblad

Re: [uml-devel] Problem running SMP-UML (both skas & tt)

2005-06-06 Thread Blaisorblade
to get the build to work..would > appreciate if somebody could point > us to a patch. However this is not the crux of the problem we're facing. The fixlet for this is attached... Sadly I cannot help for now on the bigger picture, but I'll have a look on it. -- Inform me of my mist

Re: [uml-devel] [PATCH 3/5] UML - Clean up tt mode remapping of UML binary

2005-06-06 Thread Blaisorblade
ict happening on some weird glibc combinations. I'll merge this work when it's ready. > Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> -- Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!". Paolo Giarrusso, aka Blaisorblade (Skype ID &qu

<    1   2   3   4   5   6   7   8   9   10   >