Osi2897 | 21 Apr 19:22

3.3.2: conflicting types for sys_ni_syscall

Hi,

I tried to compile 3.3.2 UML on an old pentium III system (3.2.12 was no problem
on this system). With 3.3.2 I get the following error (conflicting types for
"sys_ni_syscall"):

CC      arch/x86/um/sys_call_table_32.o
arch/x86/um/sys_call_table_32.c:44:13: Fehler: In Konflikt stehende Typen für
»sys_ni_syscall«
In file included from arch/x86/um/sys_call_table_32.c:37:0:
arch/x86/include/generated/asm/syscalls_32.h:154:1: Anmerkung: Vorherige
Deklaration von »sys_ni_syscall« war hier
In file included from arch/x86/um/sys_call_table_32.c:52:0:
arch/x86/include/generated/asm/syscalls_32.h:1:1: Warnung: Initialisierung von
inkompatiblem Zeigertyp [standardmäßig aktiviert]
arch/x86/include/generated/asm/syscalls_32.h:1:1: Warnung: (nahe der
Initialisierung für »sys_call_table[0]«) [standardmäßig aktiviert]
arch/x86/include/generated/asm/syscalls_32.h:2:1: Warnung: Initialisierung von
inkompatiblem Zeigertyp [standardmäßig aktiviert]

Here is my .config:

#
# Automatically generated file; DO NOT EDIT.
# User Mode Linux/i386 3.3.2 Kernel Configuration
#
CONFIG_DEFCONFIG_LIST="arch/$ARCH/defconfig"
CONFIG_UML=y
CONFIG_MMU=y
CONFIG_NO_IOMEM=y
(Continue reading)

Ritesh Raj Sarraf | 3 Apr 15:26
Picon
Favicon

UML static linking and embedded library

Hello Richard and others,

I currently have 2 severity E(rrors) lintian rejects for the build I am
preparing for Debian.

The details for both the rejects are explained at:

http://lintian.debian.org/tags/binary-or-shlib-defines-rpath.html
http://lintian.debian.org/tags/embedded-library.html

Richard, Is this something that can be worked out upstream?

If there were decisions cautiously made for a reason, I can work it out
with an override to lintian. Just that I want to check out with you guys
first.

Ritesh

-------- Original Message --------
Subject: user-mode-linux_3.2-1um-1_i386.changes REJECTED
Date: Mon, 02 Apr 2012 15:35:36 +0000
From: Debian FTP Masters <ftpmaster <at> ftp-master.debian.org>
To: Ritesh Raj Sarraf <rrs <at> debian.org>, User Mode Linux Maintainers
<pkg-uml-pkgs <at> lists.alioth.debian.org>

Reject Reasons:
user-mode-linux: lintian output: 'binary-or-shlib-defines-rpath
usr/bin/linux.uml /lib', automatically rejected package.
user-mode-linux: If you have a good reason, you may override this
lintian tag.
(Continue reading)

Sergei Trofimovich | 2 Apr 20:17
Picon
Gravatar

3.4.0-rc1 is broken due to asm/system.h restructure

The asm/system.h patches missed ARCH=um
which caused build breakage [2].

The commit can be used as an example [2].
I've failed to produce fix myself. Sorry.

[1]:
> commit f05e798ad4c09255f590f5b2c00a7ca6c172f983
> Author: David Howells <dhowells <at> redhat.com>
> Date:   Wed Mar 28 18:11:12 2012 +0100
>
>    Disintegrate asm/system.h for X86

[2]:
linux-2.6/arch/um/drivers/mconsole_kern.c: In function 'stack_proc':
linux-2.6/arch/um/drivers/mconsole_kern.c:707:2: error: implicit declaration of function 'switch_to'
make[2]: *** [arch/um/drivers/mconsole_kern.o] Error 1
make[2]: Target `__build' not remade because of errors.
make[1]: *** [arch/um/drivers] Error 2
  CC      kernel/sys.o
  CC      kernel/sched/core.o
linux-2.6/kernel/sched/core.c: In function 'context_switch':
linux-2.6/kernel/sched/core.c:2086:2: error: expected ':' or ')' before '__percpu_arg'
make[3]: *** [kernel/sched/core.o] Error 1
make[3]: Target `__build' not remade because of errors.
make[2]: *** [kernel/sched] Error 2
make[2]: Target `__build' not remade because of errors.
make[1]: *** [kernel] Error 2
  CC      fs/exec.o
linux-2.6/fs/exec.c: In function 'setup_arg_pages':
(Continue reading)

Ritesh Raj Sarraf | 31 Mar 20:44
Picon
Favicon

uml build failure on arch i386

Hello,

I am trying to build uml on kernel 3.2. Following is the build failure I
get when building on my kvm x86 box.

The kvm box is arch:
root <at> debian-x86:~/user-mode-linux (build)# uname -a
Linux debian-x86 3.0.0-1-686-pae #1 SMP Sat Aug 27 16:41:03 UTC 2011
i686 GNU/Linux

My initial search led me to:
http://sourceforge.net/mailarchive/message.php?msg_id=27848489

Based on the comment there, I've tried SUBARCH=i386. But that didn't
help. Any suggestions?

  LD      vmlinux.o
  MODPOST vmlinux.o
  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
arch/x86/um/built-in.o:(___ksymtab+atomic64_add_unless_386+0x0):
undefined reference to `atomic64_add_unless_386'
arch/x86/um/built-in.o:(___ksymtab+atomic64_inc_not_zero_386+0x0):
undefined reference to `atomic64_inc_not_zero_386'
arch/x86/um/built-in.o:(___ksymtab+atomic64_dec_if_positive_386+0x0):
undefined reference to `atomic64_dec_if_positive_386'
(Continue reading)

Toralf Förster | 1 Apr 11:14
Picon
Picon

UML 3-4-rc1 /(rarely) core dumps

While playing with different tty settings I observed today a crash.
Unfortunately I do not have any other information than the back trace :

(gdb) bt
#0  0xb77fa424 in __kernel_vsyscall ()                                                                                                                                                  
#1  0x4ecd7446 in kill () at ../sysdeps/unix/syscall-template.S:82                                                                                                                      
#2  0x080738c5 in uml_abort () at arch/um/os-Linux/util.c:93                                                                                                                            
#3  0x08073c05 in os_dump_core () at arch/um/os-Linux/util.c:138                                                                                                                                               
#4  0x080617e7 in panic_exit (self=0x83784d8, unused1=0, unused2=0x839b5a0) at
arch/um/kernel/um_arch.c:235                                                                                                    
#5  0x0809c06a in notifier_call_chain (nl=<optimized out>, val=0, v=0x839b5a0, nr_to_call=-2,
nr_calls=0x0) at kernel/notifier.c:93                                                                            
#6  0x0809c1b3 in __atomic_notifier_call_chain (nr_calls=0x0, nr_to_call=-1, v=0x839b5a0, val=0,
nh=0x839b540) at kernel/notifier.c:182                                                                        
#7  atomic_notifier_call_chain (nh=0x839b540, val=0, v=0x839b5a0) at kernel/notifier.c:191                                                                                                                     
#8  0x082ea9ae in panic (fmt=0x8341180 "Kernel mode fault at addr 0x%lx, ip 0x%lx") at kernel/panic.c:120                                                                                                      
#9  0x080613ac in segv (fi=<incomplete type>, ip=0, is_user=0, regs=0x83765d0) at
arch/um/kernel/trap.c:224                                                                                                    
#10 0x080614f3 in segv_handler (sig=11, regs=0x83765d0) at arch/um/kernel/trap.c:170                                                                                                                           
#11 0x0807294d in sig_handler_common (sig=11, mc=0x8376910) at arch/um/os-Linux/signal.c:43                                                                                                                    
#12 0x08072ae2 in sig_handler (sig=11, mc=0x8376910) at arch/um/os-Linux/signal.c:230                                                                                                                          
#13 0x0807261c in hard_handler (sig=<optimized out>, info=0x837687c, p=0x83768fc) at
arch/um/os-Linux/signal.c:164                                                                                                                           
#14 <signal handler called>                                                                                                                                                                                                                  
#15 0x00000000 in ?? ()                                                                                                                                                                                                                      
#16 0x080bc36f in mask_ack_irq (desc=0x8380f10) at kernel/irq/chip.c:234                                                                                                                                                                     
#17 handle_edge_irq (irq=5, desc=0x8380f10) at kernel/irq/chip.c:487
#18 0x080b99ee in generic_handle_irq_desc (desc=0x8380f10, irq=5) at include/linux/irqdesc.h:114
#19 generic_handle_irq (irq=5) at kernel/irq/irqdesc.c:313
#20 0x0805e055 in do_IRQ (irq=5, regs=0x83769e0) at arch/um/kernel/irq.c:294
(Continue reading)

Toralf Förster | 1 Apr 10:09
Picon
Picon

3 cc warnings while compiling an UML kernel

Hello,

today I build an UML kernel with 3.4-rc1 sources and got the follwoing compile warnings :

arch/um/kernel/skas/mmu.c: In function ‘uml_setup_stubs’:
arch/um/kernel/skas/mmu.c:106:16: warning: unused variable ‘pages’

security/keys/keyctl.c: In function ‘keyctl_session_to_parent’:
security/keys/keyctl.c:1520:2: warning: #warning TIF_NOTIFY_RESUME not implemented

fs/nfs/nfs4xdr.c: In function ‘encode_exchange_id.clone.78’:
fs/nfs/nfs4xdr.c:1718:1: warning: the frame size of 1036 bytes is larger than 1024 bytes

I attached the use .config, hope this helps.

--

-- 
MfG/Sincerely
Toralf Förster
pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3
#
# Automatically generated file; DO NOT EDIT.
# User Mode Linux/i386 3.3.0 Kernel Configuration
#
CONFIG_DEFCONFIG_LIST="arch/$ARCH/defconfig"
CONFIG_UML=y
CONFIG_MMU=y
CONFIG_NO_IOMEM=y
# CONFIG_TRACE_IRQFLAGS_SUPPORT is not set
(Continue reading)

Boaz Harrosh | 27 Mar 04:18
Favicon
Gravatar

[PATCH ] um: uml_setup_stubs': warning: unused variable 'pages'


Fix the following gcc complain
arch/um/kernel/skas/mmu.c: In function 'uml_setup_stubs':
arch/um/kernel/skas/mmu.c:106:16: warning: unused variable 'pages' [-Wunused-variable]

Signed-Signed-off-by: Boaz Harrosh <bharrosh <at> panasas.com>
---
 arch/um/kernel/skas/mmu.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/arch/um/kernel/skas/mmu.c b/arch/um/kernel/skas/mmu.c
index 4947b31..0a49ef0 100644
--- a/arch/um/kernel/skas/mmu.c
+++ b/arch/um/kernel/skas/mmu.c
@@ -103,7 +103,6 @@ int init_new_context(struct task_struct *task, struct mm_struct *mm)

 void uml_setup_stubs(struct mm_struct *mm)
 {
-	struct page **pages;
 	int err, ret;

 	if (!skas_needs_stub)
--

-- 
1.7.6.5

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
(Continue reading)

Toralf Förster | 26 Mar 11:02
Picon
Picon

v3.3-6972-ge22057c core dumped

Hello,

I'm unsure whetehr it is worth/helpful to report core dumps during merge window, but nevertheless here's a
backtrace :

tfoerste <at> n22 ~ $ gdb --core=core /usr/local/bin/linux-v3.3-6972-ge22057c 
GNU gdb (Gentoo 7.3.1 p2) 7.3.1
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/local/bin/linux-v3.3-6972-ge22057c...done.

warning: core file may not match specified executable file.
[New LWP 17250]
[New LWP 17263]

warning: Can't read pathname for load map: Input/output error.
Core was generated by `/usr/local/bin/linux-v3.3-6972-ge22057c -h'.
Program terminated with signal 6, Aborted.
#0  0xb7778424 in __kernel_vsyscall ()
(gdb) bt
#0  0xb7778424 in __kernel_vsyscall ()
#1  0x4ecd7446 in kill () at ../sysdeps/unix/syscall-template.S:82
#2  0x08073825 in uml_abort () at arch/um/os-Linux/util.c:93
#3  0x08073b65 in os_dump_core () at arch/um/os-Linux/util.c:138
(Continue reading)

Toralf Förster | 23 Mar 11:01
Picon
Picon

kernel 3.3 panics during shutdown of an UML image

Hello,
tried today the new kernel (just to play with my image) and git htis :

 * Bringing down interface lo
 *   Removing addresses
 * Stopping syslog-ng ...
Kernel panic - not syncing: Kernel mode fault at addr 0x0, ip 0x0

EIP: 0073:[<40001172>] CPU: 0 Not tainted ESP: 007b:bff09224 EFLAGS: 00200246
    Not tainted
EAX: 00000323 EBX: 00000323 ECX: bff096d8 EDX: 00000000
ESI: 00000000 EDI: 00000323 EBP: bff096d8 DS: 007b ES: 007b
0838d868:  [<0807923d>] show_regs+0xed/0x120
0838d884:  [<080618dc>] panic_exit+0x2c/0x50
0838d894:  [<0809c54a>] notifier_call_chain+0x4a/0x70
0838d8bc:  [<0809c693>] atomic_notifier_call_chain+0x23/0x30
0838d8cc:  [<082f6211>] panic+0x94/0x179
0838d8f4:  [<080614bc>] segv+0x1cc/0x2c0
0838d9a4:  [<08061603>] segv_handler+0x53/0x80
0838d9cc:  [<08072a0d>] sig_handler_common+0x4d/0xc0
0838dc48:  [<08072ba2>] sig_handler+0x42/0x50
0838dc58:  [<080726dc>] hard_handler+0x6c/0xb0
0838dc7c:  [<b77da40c>] 0xb77da40c

Terminated

--

-- 
MfG/Sincerely
Toralf Förster
pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3
(Continue reading)

Boaz Harrosh | 13 Mar 23:38
Favicon
Gravatar

UML: Please help with __module_text_address crashing

Since a while now my UMLs are constantly crashing in __module_text_address

which makes no sense because if I do gdb> list *(__module_text_address+0xd)
I get:

0x6005614e is in __module_text_address (/media/usr0/export/dev/bharrosh/git/pub/linux-open-osd/kernel/module.c:3469).
3464     * module doesn't get freed during this.
3465     */
3466    struct module *__module_text_address(unsigned long addr)
3467    {
3468            struct module *mod = __module_address(addr);
3469            if (mod) {
3470                    /* Make sure it's within the text section. */
3471                    if (!within(addr, mod->module_init, mod->init_text_size)
3472                        && !within(addr, mod->module_core, mod->core_text_size))
3473                            mod = NULL;

It can not be crashing in line 3469, I suspect it's crashing inside __module_address(addr); at line 3468

Below it's crashing as part of the console operation, which is the most common one, but it can crash in
__module_text_address as part of other stack traces like networking and so on. From my feel it's always
related to some UML driver that actually operates as part of the host. But I can't be sure.

I'm running with 3.3-rc4 but I'm hit with this since 3.0, I tried to bisect
this at the time, but I found out that I could not find a perfectly good point
even as far as 3.6.37. So I suspected there is something wrong with my uml-image file
or my host. But now I upgraded both host and image to FC15 (was FC12/FC13) and I get
the same exact crashes. It came to a situation that I can't complete any kind
of heavy operation anymore and have abandoned UML for VMS for now. But I'm
very sorry to see UML go.
(Continue reading)

Toralf Förster | 3 Mar 09:52
Picon
Picon

make oldconfig asks every time for the 3 new options

I'm at this level :

$ git describe
v3.3-rc5-204-gae942ae

using old uml linux exe to generate a .config :

$ /usr/local/bin/linux-v3.3-rc5-204-gae942ae --showconfig > .config

and being ask every time for these 3 options:

$ make oldconfig ARCH=um
scripts/kconfig/conf --oldconfig arch/x86/um/Kconfig
*
* Restart config...
*
*
* Misc devices
*
Enclosure Services (ENCLOSURE_SERVICES) [N/y/?] (NEW) N
*
* Silicon Labs C2 port support (EXPERIMENTAL)
*
Silicon Labs C2 port support (EXPERIMENTAL) (C2PORT) [N/y/?] (NEW) N
*
* EEPROM support
*
EEPROM 93CX6 support (EEPROM_93CX6) [N/y/?] (NEW) N
*
* Texas Instruments shared transport line discipline
(Continue reading)


Gmane