linux-um archives
 help / color / mirror / Atom feed
* [uml-devel] /dev/kmem panic in SKAS mode
@ 2004-03-16 10:38 Henrik Nordstrom
  2004-03-18 19:17 ` BlaisorBlade
  0 siblings, 1 reply; 4+ messages in thread
From: Henrik Nordstrom @ 2004-03-16 10:38 UTC (permalink / raw)
  To: user-mode-linux-devel

There seems to be some kind of vm addressing related issue in SKAS mode.  
This time related to reading of /dev/kmem.

The following kernel panic is seen when klogd starts up:

#0  panic (fmt=0xa014ce00 "Kernel mode fault at addr 0x%lx, ip 0x%lx") at 
panic.c:60
#1  0xa006fab6 in segv (address=1116127232, ip=1074706056, is_write=0, 
is_user=0, sc=0xa13c8274) at trap_kern.c:149
#2  0xa006feaa in segv_handler (sig=11, regs=0xa13c8274) at trap_user.c:67
#3  0xa007615d in sig_handler_common_skas (sig=11, sc_ptr=0x58) at 
trap_user.c:35
#4  0xa006ff99 in sig_handler (sig=0, sc= {gs = 0, __gsh = 0, fs = 0, __fsh = 0, es = 123, __esh = 0, ds = 123, __dsh = 0, edi = 2705474036, esi = 1116127232, ebp = 2705111756, esp = 2705111748, ebx = 2685835552, edx = 2705111928, ecx = 15, eax = 60, trapno = 14, err = 4, eip = 2684838993, cs = 115, __csh = 0, eflags = 
66054, esp_at_signal = 2705111748, ss = 123, __ssh = 0, fpstate = 0x0, oldmask = 0, cr2 = 1116127232}) at trap_user.c:103
#5  <signal handler called>
#6  0xa0076451 in copy_chunk_to_user (to=2705474036, len=60, arg=0xa13cbb78) at string.h:202
#7  0xa00762ca in do_op (addr=2705474036, len=60, is_write=1, op=0xa007643c <copy_chunk_to_user>, arg=0xa13cbb78) at uaccess.c:46
#8  0xa007630d in buffer_op (addr=134541812, len=-1589855368, is_write=1, op=0xa007643c <copy_chunk_to_user>, arg=0xa13cbb78) at uaccess.c:59
#9  0xa00764b8 in copy_to_user_skas (to=0x804f1f4, from=0x4286c000, n=-1589855368) at uaccess.c:122
#10 0xa0079851 in read_kmem (file=0xa13ae1e4, buf=0x804f1f4 <Address 0x804f1f4 out of bounds>, count=60, ppos=0xa13ae204) at mem.c:264
#11 0xa0032d41 in sys_read (fd=60, buf=0x804f1f4 <Address 0x804f1f4 out of bounds>, count=60) at read_write.c:177
#12 0xa0075c63 in execute_syscall_skas (r=0xa13cbc3c) at syscall_kern.c:28
#13 0xa0075cd8 in handle_syscall (regs=0xa13c8274) at syscall_user.c:26
#14 0xa0074e84 in handle_trap (pid=8470, regs=0xa13c8274) at process.c:85
#15 0xa0075140 in userspace (regs=0xa13c8274) at process.c:160
#16 0xa00758fa in fork_handler (sig=10) at process_kern.c:102
#17 <signal handler called>
#18 0xa00ff3ed in syscall () at string.h:486
Previous frame inner to this frame (corrupt stack?)

(gdb) frame 1
(gdb) p/x address
$2 = 0x4286c000

(gdb) frame 10
(gdb) p/x *ppos
$3 = 0xa286c000


In TT mode on the same host this problem is not seen.

Host OS: Fedora Core 2 test 1
Host kernel: Fedora kernel-2.6.3-1.118 + host-skas3-2.6.3-v1.patch


Regards
Henrik



-------------------------------------------------------
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=1470&alloc_id=3638&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-03-20 15:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-16 10:38 [uml-devel] /dev/kmem panic in SKAS mode Henrik Nordstrom
2004-03-18 19:17 ` BlaisorBlade
2004-03-18 23:37   ` Henrik Nordstrom
2004-03-20 16:06     ` BlaisorBlade

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox