Skip to contentSkip to conversation

Bug in [PATCH] sparc: Align clone and signal stacks to 16 bytes

DISCUSSION Blue Swirl 2 participants 2 messages Feb 11, 2010

lore
Share & tools
lore

Blue Swirl

author
#0 lore raw

Hi,

I just browsed sparc-linux list and spotted this bug in the patch:

childstack = (struct sparc_stackf __user *)
- (sp & ~0x7UL);
+ (sp & ~0x15UL);
parentstack = (struct sparc_stackf __user *)

0x15UL is wrong, it should be either 0xfUL or 15UL.

#1 lore raw

From: Blue Swirl <[email protected]>
Date: Thu, 11 Feb 2010 19:31:47 +0200

Quoted 10 lines

Hi,

I just browsed sparc-linux list and spotted this bug in the patch:

(quoted diff) +1 -1
 			childstack = (struct sparc_stackf __user *)
-				(sp & ~0x7UL);
+				(sp & ~0x15UL);
 			parentstack = (struct sparc_stackf __user *)

0x15UL is wrong, it should be either 0xfUL or 15UL.

Thanks, I'll fix that.