lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <201005311636.55786.toralf.foerster@gmx.de>
Date:	Mon, 31 May 2010 16:36:55 +0200
From:	Toralf Förster <toralf.foerster@....de>
To:	Borislav Petkov <borislav.petkov@....com>
Cc:	Borislav Petkov <bp@...en8.de>, "H. Peter Anvin" <hpa@...or.com>,
	Geert Uytterhoeven <geert@...ux-m68k.org>,
	"user-mode-linux-devel@...ts.sourceforge.net" 
	<user-mode-linux-devel@...ts.sourceforge.net>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] x86, hweight: Fix UML boot crash


Borislav Petkov wrote at 16:10:58

> Did you do 'make mrproper' before rebuilding UML with it?
Yes, I did "make mrproper ARC H= um" and "make mrproper"

> Also, can you do
> 
> grep -EriIn 'x86.*hweight\.h' arch/um/
tfoerste@n22 ~/devel/linux-2.6 $ grep -EriIn 'x86.*hweight\.h' arch/um/
tfoerste@n22 ~/devel/linux-2.6 $ 

And here :
tfoerste@n22 ~/devel/linux-2.6 $ tail arch/um/include/asm/arch_hweight.h
#ifndef _ASM_UM_HWEIGHT_H
#define _ASM_UM_HWEIGHT_H

#include <asm-generic/bitops/arch_hweight.h>

#endif


What I get is this :
tfoerste@n22 ~/devel/linux-2.6 $ ./linux
Locating the bottom of the address space ... 0x1000
Locating the top of the address space ... 0xc0000000
Core dump limits :
        soft - NONE
        hard - NONE
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 for tmpfs mount on /dev/shm...OK
Checking PROT_EXEC mmap in /dev/shm/...OK
Checking for the skas3 patch in the host:
  - /proc/mm...not found: No such file or directory
  - PTRACE_FAULTINFO...not found
  - PTRACE_LDT...not found
UML running in SKAS0 mode
Adding 20832256 bytes to physical memory to account for exec-shield gap
Linux version 2.6.35-rc1 (tfoerste@n22) (gcc version 4.3.4 (Gentoo 4.3.4 p1.1, pie-10.1.5) ) #1 Mon May 31 16:33:40 CEST 2010
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 13174
Kernel command line: root=98:0
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 28816k available
Hierarchical RCU implementation.
        RCU-based detection of stalled CPUs is disabled.
        Verbose stalled-CPUs detection is disabled.
NR_IRQS:15
Calibrating delay loop... 4679.27 BogoMIPS (lpj=23396352)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
Checking for host processor cmov support...Yes
Checking that host ptys support output SIGIO...Yes
Checking that host ptys support SIGIO on close...No, enabling workaround
Using 2.6 host AIO
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
Switching to clocksource itimer
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
mconsole (version 2) initialized on /home/tfoerste/.uml/xpp9B9/mconsole
Checking host MADV_REMOVE support...OK
UML Audio Relay (host dsp = /dev/sound/dsp, host mixer = /dev/sound/mixer)
Host TLS support detected
Detected host type: i386 (GDT indexes 6 to 9)
Installing knfsd (copyright (C) 1996 okir@...ad.swb.de).
msgmni has been set to 56
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler cfq registered (default)
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@...lcomm.com>
TCP cubic registered
NET: Registered protocol family 17
Initialized stdio console driver
Console initialized on /dev/tty0
console [tty0] enabled
Initializing software serial port version 1
console [mc-1] enabled
Couldn't stat "root_fs" : err = 2
Failed to initialize ubd device 0 :Couldn't determine size of device's file
VFS: Cannot open root device "98:0" or unknown-block(98,0)
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(98,0)
0ac5af10:  [<08286f60>] panic+0x60/0xd9
0ac5af28:  [<080499f4>] mount_block_root+0x160/0x286
0ac5af64:  [<080e04f7>] sys_mknod+0x27/0x30
0ac5af78:  [<08049b75>] mount_root+0x5b/0x60
0ac5af8c:  [<08049c8c>] prepare_namespace+0x112/0x185
0ac5afa4:  [<080491cc>] kernel_init+0x108/0x12e
0ac5afbc:  [<0806ec90>] run_kernel_thread+0x30/0x60
0ac5afd8:  [<0806ec7f>] run_kernel_thread+0x1f/0x60
0ac5afe4:  [<0805d37b>] new_thread_handler+0x6b/0xa0
0ac5afe8:  [<080490c4>] kernel_init+0x0/0x12e


EIP: 0073:[<b784e424>] CPU: 0 Not tainted ESP: 007b:bfccdbdc EFLAGS: 00000246
    Not tainted
EAX: 00000000 EBX: 00004793 ECX: 00000013 EDX: 00004793
ESI: 0000478f EDI: 0000003b EBP: bfccdc68 DS: 007b ES: 007b
0ac5aeec:  [<0809a074>] notifier_call_chain+0x34/0x70
0ac5af10:  [<08286f88>] panic+0x88/0xd9
0ac5af28:  [<080499f4>] mount_block_root+0x160/0x286
0ac5af64:  [<080e04f7>] sys_mknod+0x27/0x30
0ac5af78:  [<08049b75>] mount_root+0x5b/0x60
0ac5af8c:  [<08049c8c>] prepare_namespace+0x112/0x185
0ac5afa4:  [<080491cc>] kernel_init+0x108/0x12e
0ac5afbc:  [<0806ec90>] run_kernel_thread+0x30/0x60
0ac5afd8:  [<0806ec7f>] run_kernel_thread+0x1f/0x60
0ac5afe4:  [<0805d37b>] new_thread_handler+0x6b/0xa0
0ac5afe8:  [<080490c4>] kernel_init+0x0/0x12e

Segmentation fault (core dumped)

-- 
MfG/Sincerely
Toralf Förster

pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3


View attachment ".config" of type "text/plain" (16822 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ