Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932887Ab1CXSWM (ORCPT ); Thu, 24 Mar 2011 14:22:12 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:49378 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754886Ab1CXSWI (ORCPT ); Thu, 24 Mar 2011 14:22:08 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=aIIB0flttNU6c2Kt/OktyxD2W3Trlqco2t1FjL4P5KpY6Zsoe9hIFHvDrSHM+b1aSa Ed0gQgHRgm/UallN9/79LP/md0TYy31oBxokmTMa49M+GecM4hv8A2IbcKJkP+8WBo4h PoflpmldDo/VTagcU0F92UVDF/3aqLKp2VxU8= Subject: Re: [GIT PULL] SLAB changes for v2.6.39-rc1 From: Eric Dumazet To: Christoph Lameter Cc: Pekka Enberg , Ingo Molnar , torvalds@linux-foundation.org, akpm@linux-foundation.org, tj@kernel.org, npiggin@kernel.dk, rientjes@google.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org In-Reply-To: References: <20110324142146.GA11682@elte.hu> <20110324172653.GA28507@elte.hu> Content-Type: text/plain; charset="UTF-8" Date: Thu, 24 Mar 2011 19:20:53 +0100 Message-ID: <1300990853.3747.189.camel@edumazet-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1468 Lines: 56 Le jeudi 24 mars 2011 à 13:15 -0500, Christoph Lameter a écrit : > But then we would get the bug in kmem_cache_alloc() and not in the > *_emu() function. So the _emu is executing but failing on Ingo's system > but not on mine. Question is why. > > For some reason the first reference to %gs:(%rsi) wont work right on his > system: > > From arch/x86/lib/cmpxchg16b_emu > > # > # Emulate 'cmpxchg16b %gs:(%rsi)' except we return the result in %al not > # via the ZF. Caller will access %al to get result. > # > # Note that this is only useful for a cpuops operation. Meaning that we > # do *not* have a fully atomic operation but just an operation that is > # *atomic* on a single cpu (as provided by the this_cpu_xx class of > # macros). > # > this_cpu_cmpxchg16b_emu: > pushf > cli > > cmpq %gs:(%rsi), %rax > jne not_same > cmpq %gs:8(%rsi), %rdx > jne not_same > > movq %rbx, %gs:(%rsi) > movq %rcx, %gs:8(%rsi) > > popf > mov $1, %al > ret > > not_same: > popf > xor %al,%al > ret > > CFI_ENDPROC Random guess Masking interrupts, and accessing vmalloc() based memory for the first time ? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/