Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 111575

Summary: sys-kernel/usermode-sources-2.6.14: kernel panic when assigning more than 256M
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel>
Status: RESOLVED FIXED    
Severity: normal CC: blaisorblade_spam, user-mode-linux-devel
Priority: High    
Version: 2005.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: diff between working/non working config
unified diff
uml kernel config file

Description Toralf Förster gentoo-dev 2005-11-05 10:14:29 UTC
sys-kernel/usermode-sources-2.6.12-r2 works fine whereas the new version gives
me an :

tfoerste@n22 ~ $ start_uml.sh
Checking PROT_EXEC mmap in /tmp...OK
Checking for /proc/mm...not found
Checking for the skas3 patch in the host...not found
UML running in SKAS0 mode
Kernel virtual memory size shrunk to 258998272 bytes
Checking that ptrace can change system call numbers...OK
Checking syscall emulation patch for ptrace...missing
Linux version 2.6.14-usermode-bs1 (root@n22) (gcc version 3.3.6 (Gentoo 3.3.6,
ssp-3.3.6-1.0, pie-8.7.8)) #1 Sat Nov 5 19:02:48 CET 2005
Built 1 zonelists
Kernel command line: ubda=/opt/uml/root_fs ubdb=/opt/uml/swap_fs
eth0=tuntap,,,192.168.0.254 mem=256M root=98:0
PID hash table entries: 2048 (order: 11, 32768 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 253568k available
Mount-cache hash table entries: 512
Checking for host processor cmov support...Yes
Checking for host processor xmm support...No
Checking that host ptys support output SIGIO...Yes
Checking that host ptys support SIGIO on close...No, enabling workaround
Checking for /dev/anon on the host...Not available (open failed with errno 2)
Using 2.6 host AIO
NET: Registered protocol family 16
mconsole (version 2) initialized on /home/tfoerste/.uml/toralf/mconsole
ubd: Synchronous mode
UML Audio Relay (host dsp = /dev/sound/dsp, host mixer = /dev/sound/mixer)
Netdevice 0 : TUN/TAP backend - IP = 192.168.0.254
Coda Kernel/Venus communications, v6.0.0, coda@cs.cmu.edu
NTFS driver 2.1.24 [Flags: R/O].
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 4, 65536 bytes)
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Initialized stdio console driver
Console initialized on /dev/tty0
Initializing software serial port version 1
 ubda: unknown partition table
 ubdb: unknown partition table
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
line_ioctl: tty0: ioctl KDSIGACCEPT called
INIT: version 2.86 booting
Kernel panic - not syncing: copy_context_skas0 : failed to wait for
SIGUSR1/SIGTRAP, pid = 31380, n = 31380, errno = 0, status = 0xb7f


EIP: 0073:[<400a4458>] CPU: 0 Not tainted ESP: 007b:bf576ebc EFLAGS: 00200246
    Not tainted
EAX: ffffffda EBX: 40130ff4 ECX: bf577000 EDX: 00000000
ESI: bf577000 EDI: 08050290 EBP: bf576ec8 DS: 007b ES: 007b
a0ca3820:  [<a004a09d>] notifier_call_chain+0x2d/0x50
a0ca3830:  [<a0161846>] bust_spinlocks+0x46/0x50
a0ca3840:  [<a0037381>] panic+0x71/0x110
a0ca3860:  [<a001e5e2>] wait_stub_done+0xa2/0x110
a0ca3890:  [<a001f033>] copy_context_skas0+0x1b3/0x270
a0ca38a0:  [<a0016edd>] set_signals+0x7d/0x130
a0ca3980:  [<a001e442>] init_new_context_skas+0x162/0x180
a0ca39b0:  [<a00358c7>] copy_mm+0x357/0x390
a0ca39e0:  [<a0062a09>] kmem_cache_alloc+0x39/0x60
a0ca3a00:  [<a00362eb>] copy_process+0x4db/0xed0
a0ca3a20:  [<a001ab83>] setjmp_wrapper+0x83/0x90
a0ca3a30:  [<a0016edd>] set_signals+0x7d/0x130
a0ca3a58:  [<a001ab37>] setjmp_wrapper+0x37/0x90
a0ca3a70:  [<a0016d35>] change_signals+0x65/0x90
a0ca3b00:  [<a0036e01>] do_fork+0x81/0x1e0
a0ca3b20:  [<a0048505>] kernel_sigprocmask+0x65/0x140
a0ca3b30:  [<a0020840>] copy_to_user_skas+0x70/0xa0
a0ca3b60:  [<a00486c9>] sys_rt_sigprocmask+0xe9/0x160
a0ca3b80:  [<a0017021>] sys_fork+0x91/0xb0
a0ca3bb0:  [<a001ff3e>] handle_syscall+0x11e/0x140
a0ca3bd0:  [<a00111af>] run_init_process+0x4f/0x80
a0ca3c40:  [<a001e7a8>] handle_trap+0x38/0x140
a0ca3c70:  [<a001ee1e>] userspace+0x1ce/0x230
a0ca3cd4:  [<a00111e0>] init+0x0/0x170
a0ca3ce0:  [<a001f912>] new_thread_handler+0xf2/0x130
a0ca3d60:  [<a0202fb1>] __kill+0x11/0x20


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




tfoerste@n22 ~ $ emerge info
Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2,
2.6.13-gentoo-r5 i686)
=================================================================
System uname: 2.6.13-gentoo-r5 i686 Intel(R) Pentium(R) M processor 1700MHz
Gentoo Base System version 1.6.13
ccache version 2.3 [enabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://pandemonium.tiscali.de/pub/gentoo/
ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LINGUAS="de en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa apache2 apm arts avi berkdb bitmap-fonts browserplugin cdr
crypt cups curl dri dvd eds emboss encode fam font-server foomaticdb fortran gd
gdbm gif gpm gstreamer gtk gtk2 imagemagick imlib innodb ipv6 jai java
javascript jimi joystick jpeg junit kde libg++ libwww live mad mbox mikmod mmx
mmxext motif mp3 mpeg mysql nagios-dns nagios-ntp nagios-ping ncurses nls
nsplugin ogg oggvorbis opengl oss pam pcmcia pdflib perl png python qt quicktime
readline real rtc samba sdl slp snmp spell sse sse2 ssl tcltk tcpd tiff truetype
truetype-fonts type1-fonts udev userlocales vorbis wifi win32codecs xanim xine
xml2 xmms xv zlib linguas_de linguas_en userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Daniel Drake (RETIRED) gentoo-dev 2005-11-05 12:12:00 UTC
Could you please try vanilla-sources-2.6.13.x and see if the bug exists there.
Comment 2 Toralf Förster gentoo-dev 2005-11-05 13:40:05 UTC
Using linux-2.6.13.4 the systems hangs at 100% cpu after :

tfoerste@n22 ~/workspace/local_bin $ start_uml.sh
Checking for /proc/mm...not found
Checking for the skas3 patch in the host...not found
UML running in SKAS0 mode
Checking PROT_EXEC mmap in /tmp...OK
Kernel virtual memory size shrunk to 254803968 bytes
Linux version 2.6.13.4 (root@n22) (gcc version 3.3.6 (Gentoo 3.3.6,
ssp-3.3.6-1.0, pie-8.7.8)) #1 Sat Nov 5 22:18:43 CET 2005
Built 1 zonelists
Kernel command line: ubda=/opt/uml/root_fs ubdb=/opt/uml/swap_fs
eth0=tuntap,,,192.168.0.254 mem=256M root=98:0
PID hash table entries: 2048 (order: 11, 32768 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 253568k available
Mount-cache hash table entries: 512
Checking for host processor cmov support...Yes
Checking for host processor xmm support...No
Checking that ptrace can change system call numbers...OK
Checking syscall emulation patch for ptrace...missing
Checking that host ptys support output SIGIO...Yes
Checking that host ptys support SIGIO on close...No, enabling workaround
Checking for /dev/anon on the host...Not available (open failed with errno 2)
NET: Registered protocol family 16
mconsole (version 2) initialized on /home/tfoerste/.uml/toralf/mconsole
ubd: Synchronous mode
UML Audio Relay (host dsp = /dev/sound/dsp, host mixer = /dev/sound/mixer)
Netdevice 0 : TUN/TAP backend - IP = 192.168.0.254
Coda Kernel/Venus communications, v6.0.0, coda@cs.cmu.edu
NTFS driver 2.1.23 [Flags: R/O].
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Initialized stdio console driver
Console initialized on /dev/tty0
Initializing software serial port version 1
 ubda: unknown partition table
 ubdb: unknown partition table
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
line_ioctl: tty0: ioctl KDSIGACCEPT called
INIT: version 2.86 booting
line_ioctl: tty0: ioctl TIOCLINUX called

Gentoo Linux; http://www.gentoo.org/
 Copyright 1999-2005 Gentoo Foundation; Distributed under the GPLv2

 * Mounting proc at /proc ...                                                  
                                          [ ok ]
 * Mounting sysfs at /sys ...                                                  
                                          [ ok ]
 * Mounting /dev for udev ...                                                  
                                          [ ok ]
 * Configuring system to use udev ...
 *   Setting /sbin/udevsend as hotplug agent ...
                                                                               
                                          [ ok ]
 * Mounting devpts at /dev/pts ...                                             
                                          [ ok ]
 * Activating (possible) swap ...Adding 262136k swap on /dev/ubdb.  Priority:-1
extents:1
 
Comment 3 Daniel Drake (RETIRED) gentoo-dev 2005-11-05 17:00:00 UTC
Paolo, any ideas here? 2.6.14-bs1 produces a panic:

Kernel panic - not syncing: copy_context_skas0 : failed to wait for
SIGUSR1/SIGTRAP, pid = 31380, n = 31380, errno = 0, status = 0xb7f

This seems to have been introduced some time after 2.6.13 (which doesn't work,
but at least gets further).
Comment 4 Toralf Förster gentoo-dev 2005-11-12 11:08:42 UTC
It's funny, but using sys-kernel/gentoo-sources-2.6.14-r2 as sources and
starting the linux executable with strace the UML brought up at least a console
in a xterm as expected, but the halt command was bad:


 * Configuring system to use udev ...
 *   Setting /sbin/udevsend as hotplug agent ...
                                                                               
                                          [ ok ]
 * Mounting devpts at /dev/pts ...                                             
                                          [ ok ]
 * Activating (possible) swap ...Adding 262136k swap on /dev/ubdb.  Priority:-1
extents:1 across:262136k
                                                                               
         [ ok ]
 * Checking root filesystem .../dev/ubda: clean, 197933/655360 files,
832912/1310720 blocks
                                                                               
           [ ok ]
 * Remounting root filesystem read/write ...                                   
                                          [ ok ]
 * Setting hostname to n22_uml ...                                             
                                          [ ok ]
 * Checking all filesystems ...                                                
                                          [ ok ]
 * Mounting local filesystems ...                                              
                                          [ ok ]
 * Activating (possibly) more swap ...                                         
                                          [ ok ]
 * Setting system clock to hardware clock [UML] ...                            
                                          [ ok ]
cannot set up thread-local storage: cannot set up LDT for thread-local storage

cannot set up thread-local storage: cannot set up LDT for thread-local storage

cannot set up thread-local storage: cannot set up LDT for thread-local storage

INIT: Entering runlevel: 3
cannot set up thread-local storage: cannot set up LDT for thread-local storage

cannot set up thread-local storage: cannot set up LDT for thread-local storage

cannot set up thread-local storage: cannot set up LDT for thread-local storage

cannot set up thread-local storage: cannot set up LDT for thread-local storage

cannot set up thread-local storage: cannot set up LDT for thread-local storage

login(pam_unix)[507]: session opened for user root by LOGIN(uid=0)
INIT: Switching to runlevel: 0
INIT: Sending processes the TERM signal
login(pam_unix)[507]: session closed for user root
cannot set up thread-local storage: cannot set up LDT for thread-local storage

cannot set up thread-local storage: cannot set up LDT for thread-local storage

 * Deactivating swap ...                                                       
                                          [ ok ]
 * Unmounting filesystems ...                                                  
                                          [ ok ]
 * Remounting remaining filesystems readonly ...cannot set up thread-local
storage: cannot set up LDT for thread-local storage

/etc/init.d/halt.sh: line 187:   580 Segmentation fault      sleep 1
                                                                          [ ok ]
Power down.

[{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 25716
rt_sigprocmask(SIG_SETMASK, [RTMIN], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, 0xbfee0608, WNOHANG)        = -1 ECHILD (No child processes)
sigreturn()                             = ? (mask now [RTMIN])
rt_sigaction(SIGINT, {SIG_DFL}, {0x80786d0, [], 0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
read(255, "\n\n##############################"..., 1632) = 118
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_SETMASK, [RTMIN], NULL, 8) = 0
exit_group(0)                           = ?
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2006-01-10 08:16:44 UTC
Any joy with gentoo-sources-2.6.15?
Comment 6 Toralf Förster gentoo-dev 2006-01-11 01:56:17 UTC
no, neither with gentoo-sources nor with straight vanilla-sources 2.6.15, host kernel is vanilla 2.6.15, it stops after :

...
FS: Mounted root (ext3 filesystem) readonly.
line_ioctl: tty0: ioctl KDSIGACCEPT called
INIT: version 2.86 booting
line_ioctl: tty0: ioctl TIOCLINUX called

Gentoo Linux; http://www.gentoo.org/
 Copyright 1999-2005 Gentoo Foundation; Distributed under the GPLv2

 * Mounting proc at /proc ...                                                                                             [ ok ]
 * Mounting sysfs at /sys ...                                                                                             [ ok ]
 * Mounting /dev for udev ...                                                                                             [ ok ]
 * Configuring system to use udev ...
 *   Setting /sbin/udevsend as hotplug agent ...
                                                                                                                          [ ok ]
 * Mounting devpts at /dev/pts ...                                                                                        [ ok ]
 * Activating (possible) swap ...Adding 262136k swap on /dev/ubdb.  Priority:-1 extents:1 across:262136k
                                                                                         [ ok ]
        
Comment 7 Toralf Förster gentoo-dev 2006-01-11 11:02:47 UTC
Created attachment 76850 [details]
diff between working/non working config

Yep, joy factor increased significantly,

now it works using straight vanilla 2.6.15 as host kernel and linux-2.6.15-gentoo as UML kernel, changed .config (diff attached) until I got the UML up and running.
Comment 8 Daniel Drake (RETIRED) gentoo-dev 2006-01-11 11:38:25 UTC
Can you post a unified diff (diff -u) between the configs? They are much easier to read and show which file is which.
Comment 9 Toralf Förster gentoo-dev 2006-01-12 00:43:43 UTC
Created attachment 76886 [details, diff]
unified diff

BTW, IMO the bug seems to be related rather to the file system stuff. The processor type seems not to be the root cause b/c I've checked this.
Comment 10 Toralf Förster gentoo-dev 2006-01-12 02:24:00 UTC
Even with the new config sometimes the uml kernel didn't came up. After removing the option mem=256M from the uml command line this problems went away.
Comment 11 BlaisorBlade 2006-01-12 02:28:28 UTC
For comment #1 and comment #3: 2.6.14-latest bs and 2.6.15 should have solved that bug. There were all kind of miscompilations in arch/um/kernel/skas/clone.c (at a point the whole stack content is invalidated, and we couldn't explain clearly this to GCCs). Now we've found a way to make this compile reliably to what we mean.

Comment #4: either you're using a NPTL guest fs (which doesn't work yet, we've almost fixed this) or the problem is one which is known to be fixed in 2.6.14-bs3 and 2.6.15 (and I think we're in the latter case). The real bug in the trace is:

cannot set up thread-local storage: cannot set up LDT for thread-local storage


Comment #2, #6 and #9: yes, the diff says this very clearly. I see a suspicious CONFIG_CODA_FS - probably not lots of people mixed it with UML. Also, I don't see the full config but I'd check to disable CONFIG_SMP and CONFIG_HIGHMEM at the very least. Attach the full config please.

As a side note and an excusation for the problems - this high instability (which has been excessive) was brought in by the introduction of SKAS0 mode.

It didn't replace TT or SKAS3 modes, which are still available (though nobody is going to use TT now and it'll become buggy). But it was the default mode (it was fast), while it still gave a number of problems (the ones you see) when used widely. We've now fixed all them, it seems.

The reason to introduce it was that SKAS0 is much faster than TT.
Comment 12 BlaisorBlade 2006-01-12 02:58:06 UTC
Just seen latest comment - ok, attach the config (can be got with ./linux --showconfig) and let's look for strange options. I'd suggest retesting 2.6.15 after doing "make defconfig ARCH=um" and adjusting only defaults on that (no, the config doesn't start with the default one, often - Kbuild often picks the host one if it's in /boot).

It's more reasonable a random crash than a FS-related one.
Comment 13 Toralf Förster gentoo-dev 2006-01-13 01:36:25 UTC
Created attachment 76974 [details]
uml kernel config file

The attached .config is _not_ working using the command line:
$>/usr/src/uml/linux ubda=/opt/uml/root_fs ubdb=/opt/uml/swap_fs eth0=tuntap,,,192.168.0.254 mem=256M umid=toralf

It stops after
...
Gentoo Linux; http://www.gentoo.org/
 Copyright 1999-2005 Gentoo Foundation; Distributed under the GPLv2

 * Mounting proc at /proc ...                                                                                             [ ok ]
 * Mounting sysfs at /sys ...                                                                                             [ ok ]
 * Mounting /dev for udev ...                                                                                             [ ok ]
 * Configuring system to use udev ...
 *   Setting /sbin/udevsend as hotplug agent ...
                                                                                                                          [ ok ]
 * Mounting devpts at /dev/pts ...                                                                                        [ ok ]
 * Activating (possible) swap ...Adding 262136k swap on /dev/ubdb.  Priority:-1 extents:1 across:262136k
                                                                                         [ ok ]


The same excutable is working using nearly the same command line but _without_ option "mem=256M".
Comment 14 BlaisorBlade 2006-01-17 15:49:24 UTC
The only setting in the .config which is untested is:

CONFIG_MPENTIUMM=y

give a try to CONFIG_M386. Also, test disabling CONFIG_MODE_TT to see if it helps.

Additionally, since the problem is with mem=256M, I would check the first entry in this FAQ. The error message is different, but that could be due to internal changes in UML, but I would still check that.

http://uml.harlowhill.com/index.php/Troubleshooting#probsrunning

Somebody: please append "when assigning more than 256M" to the subject.
Comment 15 Toralf Förster gentoo-dev 2006-01-18 04:00:04 UTC
Hi,
has no effect: echo 262144 > /proc/sys/vm/max_map_count

switching to CONFIG_M686=y works ! (even with mem=256M)

switching to CONFIG_MODE_TT not tested

wwitching to CONFIG_M386 I got a compile error:

/usr/src/uml # make CC='ccache gcc' ARCH=um linux
  CHK     arch/um/include/uml-config.h
  UPD     arch/um/include/uml-config.h
ccache gcc -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -Os -fomit-frame-pointer -D__arch_um__ -DSUBARCH=\"i386\" -Dvmap=kernel_vmap -Din6addr_loopback=kernel_in6addr_loopback -Iarch/um/include  -I/usr/src/linux-2.6.15-gentoo/arch/um/kernel/tt/include  -I/usr/src/linux-2.6.15-gentoo/arch/um/kernel/skas/include -D_FILE_OFFSET_BITS=64 -march=i386 -mpreferred-stack-boundary=2 -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -S -o arch/um/user-offsets.s arch/um/sys-i386/user-offsets.c
  CHK     arch/um/include/user_constants.h
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  SYMLINK include/asm -> include/asm-um
  SPLIT   include/linux/autoconf.h -> include/config/*
ccache gcc -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -Os     -fomit-frame-pointer  -D__arch_um__ -DSUBARCH=\"i386\" -Iarch/um/include  -I/usr/src/linux-2.6.15-gentoo/arch/um/kernel/tt/include  -I/usr/src/linux-2.6.15-gentoo/arch/um/kernel/skas/include -Dvmap=kernel_vmap -Din6addr_loopback=kernel_in6addr_loopback -Derrno=kernel_errno -Dsigprocmask=kernel_sigprocmask -fno-unit-at-a-time -U__i386__ -Ui386 -march=i386 -mpreferred-stack-boundary=2 -D_LARGEFILE64_SOURCE -Wdeclaration-after-statement   -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h -S -o arch/um/kernel-offsets.s arch/um/sys-i386/kernel-offsets.c
In file included from include/asm/atomic.h:9,
                 from include/linux/spinlock.h:232,
                 from include/linux/capability.h:45,
                 from include/linux/sched.h:7,
                 from arch/um/sys-i386/kernel-offsets.c:3:
include/asm/arch/atomic.h: In function `atomic_add_return':
include/asm/arch/atomic.h:192: error: structure has no member named `x86'
make: *** [arch/um/kernel-offsets.s] Error 1
Comment 16 BlaisorBlade 2006-01-18 04:11:34 UTC
> switching to CONFIG_MODE_TT not tested
I suggested switching if off (just to make it clear).

> M386 gives error
Thanks, will fix this.
Comment 17 BlaisorBlade 2006-01-18 04:13:35 UTC
Forgot one question, and sorry, I don't want be be unkind - did you remember to test the CONFIG_m686 case (the working one) with more than one boot?
Comment 18 Toralf Förster gentoo-dev 2006-01-18 05:06:06 UTC
>with more than one boot?
oops, with M686 it doesn't work reliable, now it does not boot even if it started before ?!?

>> switching to CONFIG_MODE_TT not tested
>I suggested switching if off (just to make it clear)
You're right, this is the root cause.
Now I can start the uml kernel either with CONFIG_M686 as well as with CONFIG_MPENTIUMM and/or changing a lot of other kernel option, the uml kernel now starts under all circumstances tested until now, and with the option mem=256M :-)

>I don't want be be unkind 
heh, null problemo :-)
Comment 19 Daniel Drake (RETIRED) gentoo-dev 2006-02-11 02:35:41 UTC
Bump. Any news on these stability issues?
Comment 20 BlaisorBlade 2006-02-15 15:15:08 UTC
The report says switching "CONFIG_MODE_TT" off helped.

And currently, there is no known reason for which a user should need to enable TT mode.

So, this bug can be IMHO considered RESOLVED (since it's a configuration not recommended, it would turn out to be RESOLVED INVALID, likely).
Comment 21 Daniel Drake (RETIRED) gentoo-dev 2006-02-15 16:11:33 UTC
Toralf, are you happy with the resolution of turning TT mode off?
Comment 22 Toralf Förster gentoo-dev 2006-02-16 00:34:18 UTC
>Toralf, are you happy with the resolution of turning TT mode off?
Oh yes, of course, the UML works now fine and the option isn't really needed.
I close the bug.

Only one remark:
>since it's a configuration not recommended
The kernel menuconfig help says: "Normally, this should be set to Y"
Comment 23 BlaisorBlade 2006-02-16 08:27:58 UTC
> The kernel menuconfig help says: "Normally, this should be set to Y"
Yep, good note; however likely this has already been fixed.