Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2058568rwb; Mon, 7 Nov 2022 08:41:11 -0800 (PST) X-Google-Smtp-Source: AMsMyM5kqhaxB3+jKCQuuAIpVlpx0hGMaAg0j/ZUVCIqHyEBXgrakSZ6VTPMS3Ge5MGFDfwQRpcj X-Received: by 2002:a05:6a00:4c93:b0:56e:55de:986e with SMTP id eb19-20020a056a004c9300b0056e55de986emr23423541pfb.42.1667839271640; Mon, 07 Nov 2022 08:41:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667839271; cv=none; d=google.com; s=arc-20160816; b=B862gEk3bsEGK6f6n60nA6ujfwX5WOnKyiTectB0XNcfwjvUX3NXzA8cYy4oKAXTY/ UDx9630KLf7qz1pajCfAvNb6ofFHkWxMb0BRYjnodyCvmZ4fp9dFe8l62CaF++0iXg9p bR5FXvvmQVqeyL0mMuBH32cjE3b0U/UQAVx7hFT7OKLKodX37qPO5CM7CIIK82Orc/Rf mMTKzrWI7NdMDgk9IQwPs5c/8O+cRc3ycfg5X9ajLVdXgrXFcg/c3Hq2cCVgrxcxEqQh wooUAMXpYh01f2KjoaYkq/ZW8QqsT4EebpPXipkmq99MVftuBQIV2lwq2aGQMD4MEHWX WLLA== 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:date:dkim-signature :dkim-signature; bh=G0G+B1FI+BKf60trmrpBtM4TOdviP/AMi7QSrgajnxY=; b=WDVv6aQewm4Nt7+Cb4Gg578C86yXzHaDkqzXM5b2cTcd3E9wpblUpBoHvFLMF2HYvQ E+lN0+JezZyw1TpQhQlxjFADb47c5lwXjv6UQP2DYM7+t7kMoTyVHLryi/pH4rGlUgEz 8H97Qxp643j1JvlD3jl6I2YIRmEVTiNFAFkmrr8A/Mn2E6nu7+K6ggzMuz+HqRMsaKuy j0F27V8ME/ifMI0ayL3TYFvBodABYCWJJiskWSG0axNu0gBH+Z9sV7WbqP/HogEmOCUH LdA91+AyHmhImbxUSH8+5+0CWg/Ndg1POjVe1PiRJpGoynPGtxS2H30/IkwKF1KbNbgY RBfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="BTo9v/Eg"; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=PK7RCHFO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ba2-20020a170902720200b00186b945c0bdsi9351446plb.72.2022.11.07.08.40.57; Mon, 07 Nov 2022 08:41:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="BTo9v/Eg"; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=PK7RCHFO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232773AbiKGQcY (ORCPT + 93 others); Mon, 7 Nov 2022 11:32:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232255AbiKGQcL (ORCPT ); Mon, 7 Nov 2022 11:32:11 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E16622612F for ; Mon, 7 Nov 2022 08:30:18 -0800 (PST) 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-out1.suse.de (Postfix) with ESMTPS id 8E0D221BEF; Mon, 7 Nov 2022 16:30:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1667838617; h=from:from:reply-to: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=G0G+B1FI+BKf60trmrpBtM4TOdviP/AMi7QSrgajnxY=; b=BTo9v/EgI3aiUqd9iYdCjvuDON7F80CE/ezeiPUveyP7INNgclAUERekwrK9x8cO5EjM3b aC1BrvvtBvYjP8GJN3KXj98yBhYPMsCtVQbNRmyd4Xgpgpp35JQdbUyEltzQJ6m0gTPEIg of74ywEbq8ZAlq9O7TMYH77/JxdN194= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1667838617; h=from:from:reply-to: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=G0G+B1FI+BKf60trmrpBtM4TOdviP/AMi7QSrgajnxY=; b=PK7RCHFOtfp6/i3VgV0LRgDc3OMqg70TdNovuWtuGSVS3jnxgfN5QEQgoXEkFyAHG65E6n 1PrWrdMRuHuFxXDg== 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 8030A13AC7; Mon, 7 Nov 2022 16:30:17 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id Zb8/H5kyaWNSYAAAMHmgww (envelope-from ); Mon, 07 Nov 2022 16:30:17 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id E16D1A0704; Mon, 7 Nov 2022 17:30:16 +0100 (CET) Date: Mon, 7 Nov 2022 17:30:16 +0100 From: Jan Kara To: Sebastian Andrzej Siewior Cc: Jan Kara , LKML , Thomas Gleixner , Steven Rostedt , Mel Gorman , Peter Zijlstra , Ingo Molnar , Will Deacon , Waiman Long , Catalin Marinas Subject: Re: Crash with PREEMPT_RT on aarch64 machine Message-ID: <20221107163016.cnzhknmdnhajfxdh@quack3> References: <20221103115444.m2rjglbkubydidts@quack3> <20221107135636.biouna36osqc4rik@quack3> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 07-11-22 16:10:34, Sebastian Andrzej Siewior wrote: > + locking, arm64 > > On 2022-11-07 14:56:36 [+0100], Jan Kara wrote: > > > spinlock_t and raw_spinlock_t differ slightly in terms of locking. > > > rt_spin_lock() has the fast path via try_cmpxchg_acquire(). If you > > > enable CONFIG_DEBUG_RT_MUTEXES then you would force the slow path which > > > always acquires the rt_mutex_base::wait_lock (which is a raw_spinlock_t) > > > while the actual lock is modified via cmpxchg. > > > > So I've tried enabling CONFIG_DEBUG_RT_MUTEXES and indeed the corruption > > stops happening as well. So do you suspect some bug in the CPU itself? > > If it is only enabling CONFIG_DEBUG_RT_MUTEXES (and not whole lockdep) > then it looks very suspicious. Just to confirm, CONFIG_DEBUG_RT_MUTEXES is the only thing I've enabled and the list corruption disappeared. Honza -- Jan Kara SUSE Labs, CR