Latest 2.6.34 patch does not work with 2.6.34.6

Discuss and suggest new grsecurity features

Latest 2.6.34 patch does not work with 2.6.34.6

Postby hanno » Sun Aug 29, 2010 3:49 pm

I get some failures and some reverse patch messages when trying to apply
grsecurity-2.2.0-2.6.34.4-201008131840.patch
on top of 2.6.34.6.

Can you provide an updated patch?
hanno
 
Posts: 26
Joined: Thu Dec 16, 2004 4:37 am

Re: Latest 2.6.34 patch does not work with 2.6.34.6

Postby spender » Sun Aug 29, 2010 9:27 pm

I've just uploaded new patches for 2.6.32.21 and 2.6.34.6.

-Brad
spender
 
Posts: 2185
Joined: Wed Feb 20, 2002 8:00 pm

Re: Latest 2.6.34 patch does not work with 2.6.34.6

Postby Troppauer » Tue Sep 14, 2010 3:33 am

Hi,

I have a problem with 2.6.34.6+grsecurity-2.2.0-2.6.34.6-201009130754.patch see below:


details from kernel compile (at almost all sources):

.
.
.

/usr/src/linux-2.6.34.6/arch/x86/include/asm/atomic.h:394:1: warning: this is the location of the previous definition
CC arch/x86/lib/atomic64_32.o
In file included from /usr/src/linux-2.6.34.6/arch/x86/include/asm/atomic.h:495,
from /usr/src/linux-2.6.34.6/arch/x86/include/asm/thread_info.h:24,
from include/linux/thread_info.h:56,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from arch/x86/lib/atomic64_32.c:2:
include/asm-generic/atomic-long.h:401:1: warning: "atomic_inc_return_unchecked" redefined
In file included from /usr/src/linux-2.6.34.6/arch/x86/include/asm/thread_info.h:24,
from include/linux/thread_info.h:56,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from arch/x86/lib/atomic64_32.c:2:
/usr/src/linux-2.6.34.6/arch/x86/include/asm/atomic.h:394:1: warning: this is the location of the previous definition
In file included from /usr/src/linux-2.6.34.6/arch/x86/include/asm/atomic.h:495,
from /usr/src/linux-2.6.34.6/arch/x86/include/asm/thread_info.h:24,
from include/linux/thread_info.h:56,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from arch/x86/lib/atomic64_32.c:2:
include/asm-generic/atomic-long.h:401:1: warning: "atomic_inc_return_unchecked" redefined
In file included from /usr/src/linux-2.6.34.6/arch/x86/include/asm/thread_info.h:24,
from include/linux/thread_info.h:56,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from arch/x86/lib/atomic64_32.c:2:
/usr/src/linux-2.6.34.6/arch/x86/include/asm/atomic.h:394:1: warning: this is the location of the previous definition
LD arch/x86/lib/built-in.o
AS arch/x86/lib/checksum_32.o
CC arch/x86/lib/delay.o
In file included from /usr/src/linux-2.6.34.6/arch/x86/include/asm/atomic.h:495,
from /usr/src/linux-2.6.34.6/arch/x86/include/asm/thread_info.h:24,
from include/linux/thread_info.h:56,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from arch/x86/lib/delay.c:14:
include/asm-generic/atomic-long.h:401:1: warning: "atomic_inc_return_unchecked" redefined

.
.
.


Best Regards,
Troppauer
 
Posts: 11
Joined: Tue Sep 14, 2010 3:27 am

Re: Latest 2.6.34 patch does not work with 2.6.34.6

Postby PaX Team » Tue Sep 14, 2010 5:17 am

Troppauer wrote:/usr/src/linux-2.6.34.6/arch/x86/include/asm/atomic.h:394:1: warning: this is the location of the previous definition
oops, my fault, will be fixed in the next patch. as a sidenote, you should enable REFCOUNT ;).
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

Re: Latest 2.6.34 patch does not work with 2.6.34.6

Postby Troppauer » Wed Sep 15, 2010 3:48 am

ok, thanks, but i don't use PaX for the present, just the grsec's jail protections.

Regards,
Laszlo Halasz
from Hungary
Troppauer
 
Posts: 11
Joined: Tue Sep 14, 2010 3:27 am

Re: Latest 2.6.34 patch does not work with 2.6.34.6

Postby cmouse » Wed Sep 15, 2010 9:57 am

This same problem exists in patch for 2.6.32.21. If CONFIG_REFCOUNT=n you get this warning.
cmouse
 
Posts: 98
Joined: Tue Dec 17, 2002 10:58 am

Re: Latest 2.6.34 patch does not work with 2.6.34.6

Postby spender » Fri Sep 17, 2010 8:53 pm

It's been fixed in the latest patches.

-Brad
spender
 
Posts: 2185
Joined: Wed Feb 20, 2002 8:00 pm

Re: Latest 2.6.34 patch does not work with 2.6.34.6

Postby Shadow » Mon Sep 20, 2010 2:57 pm

This is still happening on 2.6.32.21 (grsecurity-2.2.0-2.6.32.21-201009171945.patch)

include/asm-generic/atomic-long.h:401:1: warning: "atomic_inc_return_unchecked" redefined
In file included from /var/portage/tmp/portage/sys-kernel/gt-sources-2.6.32.21-r1/work/linux-2.6.32.21/arch/x86/include/asm/atomic.h:4,
from /var/portage/tmp/portage/sys-kernel/gt-sources-2.6.32.21-r1/work/linux-2.6.32.21/arch/x86/include/asm/thread_info.h:24,
from include/linux/thread_info.h:56,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from drivers/net/xen-netfront.c:32:
/var/portage/tmp/portage/sys-kernel/gt-sources-2.6.32.21-r1/work/linux-2.6.32.21/arch/x86/include/asm/atomic_64.h:373:1: warning: this is the location of the previous definition
Shadow
 
Posts: 3
Joined: Mon Sep 20, 2010 2:55 pm

Re: Latest 2.6.34 patch does not work with 2.6.34.6

Postby spender » Mon Sep 20, 2010 5:11 pm

I've uploaded a new patch for 2.6.32.21 to resolve this (the fix was different than for 2.6.34.7 and 2.6.35.4).

-Brad
spender
 
Posts: 2185
Joined: Wed Feb 20, 2002 8:00 pm

Re: Latest 2.6.34 patch does not work with 2.6.34.6

Postby Shadow » Mon Sep 20, 2010 5:18 pm

That was fast, confirmed as fixed. Thanks!
Shadow
 
Posts: 3
Joined: Mon Sep 20, 2010 2:55 pm


Return to grsecurity development