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 for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 02 Jan 2008 18:53:00 +0100
From:	Miklos Szeredi <miklos@...redi.hu>
To:	jdike@...toit.com
CC:	akpm@...ux-foundation.org,
	user-mode-linux-devel@...ts.sourceforge.net,
	linux-kernel@...r.kernel.org
Subject: UML woes in 2.6.24-rc6-mm1

The below patch was needed to make UML compile in latest -mm.

But sometimes it doesn't boot and does weird things (this is a sample
with init=/bin/bash):

[    0.420000] EXT3-fs: mounted filesystem with ordered data mode.
[    0.420000] VFS: Mounted root (ext3 filesystem) readonly.
(none):/# ls
(none):/# ls -al
total 70
drwxr-xr-x 23 root root   1024 May  4  2007 .
drwxr-xr-x 23 root root   1024 May  4  2007 ..
drwxr-xr-x  2 root root   2048 Feb 18  2007 bin
drwxr-xr-x  2 root root   1024 May 16  2005 boot
[...]
(none):/# ls
Segmentation fault
(none):/# ls -l
: : No such file or directory

Miklos
----

Index: linux/arch/um/Kconfig
===================================================================
--- linux.orig/arch/um/Kconfig	2008-01-02 14:54:04.000000000 +0100
+++ linux/arch/um/Kconfig	2008-01-02 17:01:36.000000000 +0100
@@ -223,6 +223,10 @@ config KERNEL_STACK_ORDER
 
 endmenu
 
+config HZ
+	int
+	default 100
+
 source "init/Kconfig"
 
 source "drivers/block/Kconfig"
Index: linux/include/asm-um/param.h
===================================================================
--- linux.orig/include/asm-um/param.h	2007-10-09 22:31:38.000000000 +0200
+++ linux/include/asm-um/param.h	2008-01-02 17:02:31.000000000 +0100
@@ -10,7 +10,7 @@
 #define MAXHOSTNAMELEN  64      /* max length of hostname */
 
 #ifdef __KERNEL__
-#define HZ 100
+#define HZ CONFIG_HZ
 #define USER_HZ	100	   /* .. some user interfaces are in "ticks" */
 #define CLOCKS_PER_SEC (USER_HZ)  /* frequency at which times() counts */
 #endif
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ