Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5582255pxb; Wed, 19 Jan 2022 23:41:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJzrcLalKxxusZwI0PmiZn9j1EQUhoA9dEm9XGMPrf5Bio+TGgpsNCYANaNfq5AorEROodmj X-Received: by 2002:a17:902:e5cb:b0:14a:4de1:f5e9 with SMTP id u11-20020a170902e5cb00b0014a4de1f5e9mr37079902plf.91.1642664475279; Wed, 19 Jan 2022 23:41:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642664475; cv=none; d=google.com; s=arc-20160816; b=uA+DhM4EqN7ZbJmfzA2lwyxGXawxiW0frubusBYVdsHaEx0spitC7n/63VXMWCInSl 7wkc0g+HLmQ7KTlHBtgD+Ki8lBNURogPpsgMEev6dteJfFd70I3mrG2jwMNeGqHjW1jx bIxqS67QmDhW/mwNsvAln/QMNW94AWxZS5/hcE9g2DKy0QyIMr7fvVCKi4iE9qI8atZ0 bAWQ2lxIWG+h7nv8N9r3dmeqCpYHN2rmn3p9oTAN0ppEo5BHlt6kfVCDuo5LEXWmGr2C c4RKchmbaU3G8EcLl6FGjif+aYTEqRuJ89CS2z86S/DvW7mY4znudNDaGlvg9NNwLjcf C1vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=JBJ7AEiCYFHzM3I2zFFq4RgvGYZvYiPVEtyWVXWxLN0=; b=RTTa5svqCXF5evB75RKnyGt1YP0yyj8jgpqTVhTml0AEsNSuIBKYamcNL2IZqDNJCF m283hkxrps9ZPdTudb6NXeP9dFn0pEMKs+lwsZbPg67bNQlbD1Cztpkincy3U69qzp/V 6trIMPyJoZVghoRhPDssOIYo7PCxQpme9iTz5Qf3v1opunRi+jmFGqbwz4M+V5P8VuhW mxV0fGbTJgiL3aRLOq0JIm6NtD8pBLxKKGa1g7ys3J1KwyS7mOueqaHhifk91B5GG9nf LA7oYTyEladuwT4gpenAGuMerffEZPvyUGRSR2t5Cx+PAvFWgYevupDDTE6eB+Pa23yy q8/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=wNyJMttm; dkim=neutral (no key) header.i=@suse.cz header.b=b12NQcJm; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k25si2678937pgl.181.2022.01.19.23.41.03; Wed, 19 Jan 2022 23:41:15 -0800 (PST) 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=@suse.cz header.s=susede2_rsa header.b=wNyJMttm; dkim=neutral (no key) header.i=@suse.cz header.b=b12NQcJm; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239261AbiARLIE (ORCPT + 99 others); Tue, 18 Jan 2022 06:08:04 -0500 Received: from smtp-out2.suse.de ([195.135.220.29]:45240 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239175AbiARLHX (ORCPT ); Tue, 18 Jan 2022 06:07:23 -0500 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id A45041F3C0; Tue, 18 Jan 2022 11:07:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1642504041; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JBJ7AEiCYFHzM3I2zFFq4RgvGYZvYiPVEtyWVXWxLN0=; b=wNyJMttmonPq40jN9aGmLrlhMPB3R+0kJkRTmMtzp6FH6aKGo+p9S2IqQN5Nz0GXE/TEDb I0tTwbDhjJsATIFEu9ZbMeOKYujXAk8/RvcHYGB8obQ1uuDSqSJ2Z8Xofu7ULNbA1j1j/1 3CVCc1hyrRu96gEUDaSzUu2vy7KB1Lk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1642504041; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JBJ7AEiCYFHzM3I2zFFq4RgvGYZvYiPVEtyWVXWxLN0=; b=b12NQcJmVqQp1B4Dc9n1RQtxR7B3KuqqLyXdYIcS3ovaFM742ko1BTq816R3yVWYL+cnV0 FX/2ZX/eT2en9JBA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 77D3013DC7; Tue, 18 Jan 2022 11:07:21 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id CsKRHGmf5mHSQQAAMHmgww (envelope-from ); Tue, 18 Jan 2022 11:07:21 +0000 Message-ID: Date: Tue, 18 Jan 2022 12:07:21 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH] mm: slub: fix a deadlock warning in kmem_cache_destroy Content-Language: en-US To: Xin Long , Juri Lelli Cc: Sebastian Andrzej Siewior , Hyeonggon Yoo <42.hyeyoo@gmail.com>, LKML , linux-mm@kvack.org, Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Antoine Tenart , Clark Williams References: <388098b2c03fbf0a732834fc01b2d875c335bc49.1642170196.git.lucien.xin@gmail.com> <39a3470f-06ab-cf41-32e4-80edb249c7d3@suse.cz> <20220117131304.pdc3mfdowkzovw6q@localhost.localdomain> From: Vlastimil Babka In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/18/22 09:00, Xin Long wrote: > On Mon, Jan 17, 2022 at 9:13 PM Juri Lelli wrote: >> > >> > RHEL-8 kernel seems to be 4.18, unless RT uses a newer one. Could be some >> > silently relevant backport is missing? How about e.g. 59450bbc12be ("mm, >> > slab, slub: stop taking cpu hotplug lock") ? >> >> Hummm, looks like we have backported commit 59450bbc12be in RHEL-8. >> >> Xin Long, would you be able to check if you still see the lockdep splat >> with latest upstream RT? >> >> git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git linux-5.16.y-rt > Hi, Juri, > > Thanks for sharing the RT kernel repo. > > I just tried with this kernel, and I couldn't reproduce it on my env. > But I don't see how the upstream RT kernel can avoid the call trace. > > As this warning was triggered when the system was shutting down, it might > not be reproduced on it due to some timing change. As it was caught by lockdep and not as a real deadlock, I think it should be indepenedent of a timing change. Lockdep will correlate potentially deadlock scenarios even if they don't really occur in the same time, AFAIK. But let's go back to: > Although cpu_hotplug_lock is a RWSEM, [a] will not block in there. But as > lockdep annotations are added for cpu_hotplug_lock, a deadlock warning > would be detected: Is it possible that upstream lockdep handles this RWSEM scenario properly and doesn't report it, but the RHEL kernel is missing some relevant lockdep fix? >> >> Thanks! >> Juri >>