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]
Message-ID: <520f0cf10809290110m6574d983h3b581443b2256cf5@mail.gmail.com>
Date:	Mon, 29 Sep 2008 10:10:10 +0200
From:	"John Kacur" <jkacur@...il.com>
To:	RT <linux-rt-users@...r.kernel.org>,
	"Steven Rostedt" <rostedt@...dmis.org>,
	"Thomas Gleixner" <tglx@...utronix.de>,
	"Ingo Molnar" <mingo@...e.hu>
Cc:	LKML <linux-kernel@...r.kernel.org>,
	"Leon Woestenberg" <leon.woestenberg@...il.com>
Subject: [PATCH]Real-time kernel compile-fix for 32-bit when disabling CONFIG_PREEMPT_RT

If you start with the real-time kernel linux-2.6.26.5-rt9 and
configure it to disable CONFIG_PREEMPT_RT, for example
CONFIG_PREEMPT_DESKTOP=y
# CONFIG_PREEMPT_RT is not set

you will get the following compile error on 32-bit i386. (actually,
this will happen on any platform that doesn't use
CONFIG_RWSEM_GENERIC_SPINLOCK)

In file included from include/linux/notifier.h:14,
                 from include/linux/memory_hotplug.h:6,
                 from include/linux/mmzone.h:560,
                 from include/linux/gfp.h:4,
                 from include/linux/slab.h:12,
                 from include/linux/percpu.h:5,
                 from include/linux/rcupdate.h:39,
                 from include/linux/tracepoint.h:18,
                 from include/linux/module.h:19,
                 from include/linux/crypto.h:21,
                 from arch/x86/kernel/asm-offsets_32.c:7,
                 from arch/x86/kernel/asm-offsets.c:2:
include/linux/rwsem.h:149: error: redefinition of 'rwsem_is_locked'
include/asm/rwsem.h:261: error: previous definition of
'rwsem_is_locked' was here
include/linux/rwsem.h: In function 'rwsem_is_locked':
include/linux/rwsem.h:151: error: implicit declaration of function
'compat_rwsem_is_locked'
make[1]: *** [arch/x86/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2

The fix is simple, and should be folded back into the rt-mutex-core.patch
Fix is attached.

Download attachment "rwsem_is_locked-fix.patch" of type "application/octet-stream" (854 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ