Skip to contentSkip to conversation

Recent patches of note

uml-devel Jeff Dike 3 participants 3 messages Jun 20, 2005 1 message not in the archive User-mode Linux (UML)

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Jeff Dike

author
#1 lore raw
Quoted 12 lines · Anthony Brock

Second, I'm once again enountering problems with launch the UML instance. It likes to hang at:

Checking that ptrace can change system call numbers...OK Checking syscall emulation patch for ptrace...OK Checking advanced syscall emulation patch for ptrace...OK Checking if syscall restart handling in host can be skipped...OK Checking for the skas3 patch in the host:
- /proc/mm...found
- PTRACE_FAULTINFO...found
- PTRACE_LDT...found
Checking PROT_EXEC mmap in /tmp...OK

I remembered what this was about. Disable CONFIG_I8042, under -
UML-specific options
Input device support
Hardware I/O ports
i8042 PC Keyboard controller

This is a UML bug which I haven't tracked down yet.

Jeff

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#2 lore raw

Good afternoon, all,

Quoted 14 lines · Jeff Dike
Quoted 12 lines · Anthony Brock

Second, I'm once again enountering problems with launch the UML instance. It likes to hang at:

Checking that ptrace can change system call numbers...OK Checking syscall emulation patch for ptrace...OK Checking advanced syscall emulation patch for ptrace...OK Checking if syscall restart handling in host can be skipped...OK Checking for the skas3 patch in the host:
- /proc/mm...found
- PTRACE_FAULTINFO...found
- PTRACE_LDT...found
Checking PROT_EXEC mmap in /tmp...OK

Quoted 7 lines

I remembered what this was about. Disable CONFIG_I8042, under -
UML-specific options
Input device support
Hardware I/O ports
i8042 PC Keyboard controller

This is a UML bug which I haven't tracked down yet.

Just for reference, that's CONFIG_SERIO_I8042 on 2.6 kernels.
I disabled that on the kernel that was giving me the same hang
point on x86_64 and.... same hang. I turned off all the other hardware options in that menu (serial port, game port) and.... hmmm. A kernel that was at least successfully building before is now:

CC arch/um/sys-x86_64/signal.o
arch/um/sys-x86_64/signal.c: In function 'setup_signal_stack_si':
arch/um/sys-x86_64/signal.c:171: error: invalid lvalue in assignment make[1]: *** [arch/um/sys-x86_64/signal.o] Error 1
make: *** [arch/um/sys-x86_64] Error 2

The line in question is the ((unsigned char... :

frame = (struct rt_sigframe __user *)
round_down(stack_top - sizeof(struct rt_sigframe), 16) - 8;
((unsigned char *) frame) -= 128;

if (!access_ok(VERIFY_WRITE, fp, sizeof(struct _fpstate)))
goto out;

I'm reasonably sure this showed up because I upgraded to fc4 at
the end of last week - sorry about that.
.config attached.
Cheers,
- Bill

---------------------------------------------------------------------------
"My PID is Inigo Montoya. You kill -9 my parent process. Prepare to
vi."
- TVmisGuided on Slashdot
--------------------------------------------------------------------------
William Stearns ([email protected]). Mason, Buildkernel, freedups, p0f,
rsync-backup, ssh-keyinstall, dns-check, more at: http://www.stearns.org
--------------------------------------------------------------------------

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#3 lore raw
Quoted 32 lines · William Stearns

Good afternoon, all,

Quoted 22 lines · Jeff Dike
Quoted 4 lines · Anthony Brock

Second, I'm once again enountering problems with launch the UML instance. It likes to hang at:

Quoted 9 lines

Checking that ptrace can change system call numbers...OK Checking syscall emulation patch for ptrace...OK Checking advanced syscall emulation patch for ptrace...OK Checking if syscall restart handling in host can be skipped...OK Checking for the skas3 patch in the host:
- /proc/mm...found
- PTRACE_FAULTINFO...found
- PTRACE_LDT...found
Checking PROT_EXEC mmap in /tmp...OK

I remembered what this was about. Disable CONFIG_I8042, under -
UML-specific options
Input device support
Hardware I/O ports
i8042 PC Keyboard controller

This is a UML bug which I haven't tracked down yet.

(quoted diff) +0 -0
 	Just for reference, that's CONFIG_SERIO_I8042 on 2.6 kernels.
 	I disabled that on the kernel that was giving me the same hang

point on x86_64 and.... same hang. I turned off all the other hardware options in that menu (serial port, game port) and.... hmmm. A kernel that was at least successfully building before is now:

Quoted 7 lines
   CC      arch/um/sys-x86_64/signal.o

arch/um/sys-x86_64/signal.c: In function 'setup_signal_stack_si':
arch/um/sys-x86_64/signal.c:171: error: invalid lvalue in assignment make[1]: *** [arch/um/sys-x86_64/signal.o] Error 1
make: *** [arch/um/sys-x86_64] Error 2

The line in question is the ((unsigned char... :

That's a removed extension with GCC 4, so upgrading to FC4 is exactly the reason...

Replace the offending line with

frame -= 128 / sizeof(*frame);

And it should compile. In which case, Jeff may like a patch (or at least an ACK to do it himself).

Quoted 9 lines

frame = (struct rt_sigframe __user *)
round_down(stack_top - sizeof(struct rt_sigframe), 16) -
8; ((unsigned char *) frame) -= 128;

if (!access_ok(VERIFY_WRITE, fp, sizeof(struct _fpstate)))
goto out;

I'm reasonably sure this showed up because I upgraded to fc4 at
the end of last week - sorry about that.

Signature · 20 lines
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

		
___________________________________ 
Yahoo! Messenger: chiamate gratuite in tutto il mondo 
http://it.beta.messenger.yahoo.com



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel