Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1051691pxb; Tue, 17 Aug 2021 02:35:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDfTlXGPIIj3BsQ+Y0o7ZIMQ6UuJRDqcR01irGdFrtzE+m/5N57OW98M5fDxSVLvkv4gt5 X-Received: by 2002:a6b:f714:: with SMTP id k20mr2186316iog.148.1629192912634; Tue, 17 Aug 2021 02:35:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629192912; cv=none; d=google.com; s=arc-20160816; b=vzO1M85ZrbwIndfL9Qhzn4h0LFY6I26LAKuWTv95L1qmMLgP2pnjBuLzFlNuK/GuE4 Ms3HRJGlIgOUGzmWndOYujiB7m28mqoIrCPm9p66AJfvhLGqbXjxb9SXVDvph30dvkgO IEjpgoGKG1sleflYyyghevNDM2ONtwVpHVNic7c4gZ0vmhOf8VSiQur+W4SL96nakNwl wbpbGfOP/4YGXRlCtf/ydBkA5cX36e/XVidNrAM0IcZmdZn0AYyJ97gzyABjZb13Y/ZF zr26Fcq1h9cSJ1LuhigLd8kYMF0rLns9l+pj/3gSKKt68bB3PtF4Gxyk0pCBLs2YIzbU 1YEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature :dkim-signature:date; bh=IZ6fACXUc9apVwlz8xHJ8mN1EdefFeUDadYvHeqk1X4=; b=c/U3iFFMmwcoVL3POC+FQB1i652iKhu/1R3nnt2Mb9KrFAKQt4GxILzOdkoX1MJVeF IEeJZqlAXnXt+xji8+2GbtHrjutc+wWe1hn0Muwaj7bA1UYpujtsV6axd1cJAuwOzYKa RTXBC9c7Oqul0NRzIh55GvU77NGB/W4xIemeFMO1kkSSoOVPjRB8rk736fbwyjXvgXL8 3P/SzxFoJe5LalISv+2rloSTE9zF9OfHOJkTKmczjatMadnRBzfb8U3ihExCQPVy+5lc 27dA4KJYPLqWy7cBOxO3dMZ6Cdbifp/OKy1XgcCMRc1/IiW/8O6xpX+vN73NkV9hLZMR LHEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=3s8hAMQi; dkim=neutral (no key) header.i=@linutronix.de header.b=bIGH2L88; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y11si1819448ilc.54.2021.08.17.02.35.00; Tue, 17 Aug 2021 02:35:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=3s8hAMQi; dkim=neutral (no key) header.i=@linutronix.de header.b=bIGH2L88; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234856AbhHQJet (ORCPT + 99 others); Tue, 17 Aug 2021 05:34:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234593AbhHQJeo (ORCPT ); Tue, 17 Aug 2021 05:34:44 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FDC6C061764 for ; Tue, 17 Aug 2021 02:34:12 -0700 (PDT) Date: Tue, 17 Aug 2021 11:34:08 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1629192849; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=IZ6fACXUc9apVwlz8xHJ8mN1EdefFeUDadYvHeqk1X4=; b=3s8hAMQiMxa0vuIbKYwmkRIGf5kGXAurxh8BLI70WIR9mypWnYmZkIB/13g+wBQDJbJLmH PQyQF5ETYv+GrOHioyMtiadHUKVFELfNY0HCkz1GKFpQXWBb6a2BHiMzAXun2SJyCSwZ+n uA+jbQ+TpfovebZqJfOQ4qyhpbBEt2rWb/HY16Jui4OhgSfGDzpTJjsuVgQKNUnY0EzjZ5 0hQflpoZYWg/be0Hue5mF19r63WQKEhh7fnkUM0GZwjpuV1ohB7IV5lVN6ps94PemKnV9i E9f5krH4zdz4jC52TfcnBiyi0Y0IwToD1rop0g2qQwuEDV99uCdaktcDB9Dtvg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1629192849; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=IZ6fACXUc9apVwlz8xHJ8mN1EdefFeUDadYvHeqk1X4=; b=bIGH2L88+AIsWN+iUd3kfGlZWpIcGLdQNkfOtDLmSa5eYpElsoU8Q4iTmGYdJJayifC69g vAWEvEJW849aIxCw== From: Sebastian Andrzej Siewior To: Vlastimil Babka Cc: Sven Eckelmann , akpm@linux-foundation.org, brouer@redhat.com, cl@linux.com, efault@gmx.de, iamjoonsoo.kim@lge.com, jannh@google.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, mgorman@techsingularity.net, penberg@kernel.org, rientjes@google.com, tglx@linutronix.de, Stephen Rothwell , Peter Zijlstra Subject: Re: [PATCH v4 35/35] mm, slub: convert kmem_cpu_slab protection to local_lock Message-ID: <20210817093408.zanfoybsbnrdnav7@linutronix.de> References: <2666777.vCjUEy5FO1@sven-desktop> <7329198a-2a4e-ebc2-abf8-f7f38f00d5e1@suse.cz> <20210817091224.nqnrro34cyb67chj@linutronix.de> <3da13f0a-2720-a38c-33a7-744668013390@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <3da13f0a-2720-a38c-33a7-744668013390@suse.cz> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-08-17 11:31:56 [+0200], Vlastimil Babka wrote: > On 8/17/21 11:12 AM, Sebastian Andrzej Siewior wrote: > > On 2021-08-17 10:37:48 [+0200], Vlastimil Babka wrote: > >> OK reproduced. Thanks, will investigate. > > > > With the local_lock at the top, the needed alignment gets broken for dbl > > cmpxchg. > > Right. I wondered why the checks in __pcpu_double_call_return_bool > didn't trigger. They are VM_BUG_ON() so they did trigger after enabling > DEBUG_VM. Without the right debugging enabled | typedef struct { | #ifdef CONFIG_DEBUG_LOCK_ALLOC | struct lockdep_map dep_map; | struct task_struct *owner; | #endif | } local_lock_t; the struct is just empty. Sebastian